Rush Hour board game on MBED for 4180 final project

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

Vehicle.cpp

Committer:
giavottop
Date:
2018-05-01
Revision:
0:22e251b14893

File content as of revision 0:22e251b14893:

#include "Vehicle.h"

Vehicle::Vehicle (int pY, int pX)
{
    xPos = pX;
    yPos = pY;
}

int Vehicle::getX()
{
    return  xPos;
}
int Vehicle::getY()
{
    return  yPos;
}

//void Vehicle::setX(int pX)
//{
//    xPos = pX;
//}
//
//void Vehicle::setY(int pY)
//{
//    yPos = pY;
//}

void Vehicle::dimX()
{
    xPos--;
}
void Vehicle::dimY()
{
    yPos--;
}

void Vehicle::incX()
{
    xPos++;
}
void Vehicle::incY()
{
    yPos++;
}