Rush Hour board game on MBED for 4180 final project
Dependencies: 4DGL-uLCD-SE FATFileSystem SDFileSystem mbed wave_player
Vehicle.h@0:22e251b14893, 2018-05-01 (annotated)
- Committer:
- giavottop
- Date:
- Tue May 01 21:56:16 2018 +0000
- Revision:
- 0:22e251b14893
Final May 1st, 2018
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
giavottop | 0:22e251b14893 | 1 | #ifndef _VEHICLE_ |
giavottop | 0:22e251b14893 | 2 | #define _VEHICLE_ |
giavottop | 0:22e251b14893 | 3 | |
giavottop | 0:22e251b14893 | 4 | |
giavottop | 0:22e251b14893 | 5 | class Vehicle |
giavottop | 0:22e251b14893 | 6 | { |
giavottop | 0:22e251b14893 | 7 | public: |
giavottop | 0:22e251b14893 | 8 | |
giavottop | 0:22e251b14893 | 9 | Vehicle(int pY, int pX); |
giavottop | 0:22e251b14893 | 10 | |
giavottop | 0:22e251b14893 | 11 | int getX(); |
giavottop | 0:22e251b14893 | 12 | int getY(); |
giavottop | 0:22e251b14893 | 13 | //void setX(int pX); |
giavottop | 0:22e251b14893 | 14 | // void setY(int pX); |
giavottop | 0:22e251b14893 | 15 | void dimX(); |
giavottop | 0:22e251b14893 | 16 | void dimY(); |
giavottop | 0:22e251b14893 | 17 | void incX(); |
giavottop | 0:22e251b14893 | 18 | void incY(); |
giavottop | 0:22e251b14893 | 19 | |
giavottop | 0:22e251b14893 | 20 | private: |
giavottop | 0:22e251b14893 | 21 | |
giavottop | 0:22e251b14893 | 22 | int xPos; |
giavottop | 0:22e251b14893 | 23 | int yPos; |
giavottop | 0:22e251b14893 | 24 | }; |
giavottop | 0:22e251b14893 | 25 | |
giavottop | 0:22e251b14893 | 26 | #endif |