Rush Hour board game on MBED for 4180 final project

Dependencies:   4DGL-uLCD-SE FATFileSystem SDFileSystem mbed wave_player

Committer:
giavottop
Date:
Tue May 01 21:56:16 2018 +0000
Revision:
0:22e251b14893
Final May 1st, 2018

Who changed what in which revision?

UserRevisionLine numberNew contents of line
giavottop 0:22e251b14893 1 #include "Vehicle.h"
giavottop 0:22e251b14893 2
giavottop 0:22e251b14893 3 Vehicle::Vehicle (int pY, int pX)
giavottop 0:22e251b14893 4 {
giavottop 0:22e251b14893 5 xPos = pX;
giavottop 0:22e251b14893 6 yPos = pY;
giavottop 0:22e251b14893 7 }
giavottop 0:22e251b14893 8
giavottop 0:22e251b14893 9 int Vehicle::getX()
giavottop 0:22e251b14893 10 {
giavottop 0:22e251b14893 11 return xPos;
giavottop 0:22e251b14893 12 }
giavottop 0:22e251b14893 13 int Vehicle::getY()
giavottop 0:22e251b14893 14 {
giavottop 0:22e251b14893 15 return yPos;
giavottop 0:22e251b14893 16 }
giavottop 0:22e251b14893 17
giavottop 0:22e251b14893 18 //void Vehicle::setX(int pX)
giavottop 0:22e251b14893 19 //{
giavottop 0:22e251b14893 20 // xPos = pX;
giavottop 0:22e251b14893 21 //}
giavottop 0:22e251b14893 22 //
giavottop 0:22e251b14893 23 //void Vehicle::setY(int pY)
giavottop 0:22e251b14893 24 //{
giavottop 0:22e251b14893 25 // yPos = pY;
giavottop 0:22e251b14893 26 //}
giavottop 0:22e251b14893 27
giavottop 0:22e251b14893 28 void Vehicle::dimX()
giavottop 0:22e251b14893 29 {
giavottop 0:22e251b14893 30 xPos--;
giavottop 0:22e251b14893 31 }
giavottop 0:22e251b14893 32 void Vehicle::dimY()
giavottop 0:22e251b14893 33 {
giavottop 0:22e251b14893 34 yPos--;
giavottop 0:22e251b14893 35 }
giavottop 0:22e251b14893 36
giavottop 0:22e251b14893 37 void Vehicle::incX()
giavottop 0:22e251b14893 38 {
giavottop 0:22e251b14893 39 xPos++;
giavottop 0:22e251b14893 40 }
giavottop 0:22e251b14893 41 void Vehicle::incY()
giavottop 0:22e251b14893 42 {
giavottop 0:22e251b14893 43 yPos++;
giavottop 0:22e251b14893 44 }