ELEC2645 (2017/18) / Mbed OS el16ajm

Snek/Snek.cpp

Committer:
Andrew_M
Date:
2018-04-16
Revision:
2:9ca5e1c221c3
Parent:
1:a14415de3ad5
Child:
3:6253a2d374fa

File content as of revision 2:9ca5e1c221c3:

#include "Snek.h"

// nothing doing in the constructor and destructor
Snek::Snek()
{

}

Snek::~Snek()
{

}

void Snek::init(int x, int y)
{
    //Inital values for variables
    _x = x;
    _y = y;
}

void Snek::update(Direction d)
{
    _direction = d;
}

int Snek::getX()
{
    return _x;
}

int Snek::getY()
{
    return _y;
}