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.
Diff: Food/Food.cpp
- Revision:
- 5:a3a9e0417e04
- Child:
- 7:c1e0593bfc99
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Food/Food.cpp Sun Apr 29 18:03:45 2018 +0000 @@ -0,0 +1,29 @@ +#include "Food.h" + +// nothing doing in the constructor and destructor +Food::Food() +{ + +} + +Food::~Food() +{ + +} + +void Food::init(int x, int y) +{ + //Inital values for variables + _x = x; + _y = y; +} + +int Food::getX() +{ + return _x; +} + +int Food::getY() +{ + return _y; +} \ No newline at end of file