Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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; }