ZIYI CHEN ml17z4c 201214999
Dependencies: mbed
Diff: Food/Food.h
- Revision:
- 8:52e0506e98b8
- Parent:
- 7:8b6f175fcb0e
- Child:
- 9:a8b2086a46e5
diff -r 8b6f175fcb0e -r 52e0506e98b8 Food/Food.h --- a/Food/Food.h Tue Apr 30 09:14:17 2019 +0000 +++ b/Food/Food.h Mon May 06 00:06:15 2019 +0000 @@ -13,35 +13,22 @@ { public: - /** Constructor */ + Food(); - /** Destructor */ + ~Food(); - /** Initialisation function - * @param the inital starting position for the food, given in X and Y (int) - */ void init(int x, int y); - /** Gets the current X coordinate of the food - * @return the current X coordinate - */ int getX(); - - /** Gets the current Y coordinate of the food - * @return the current Y coordinate - */ int getY(); - - /** Randomises the current location of the food */ void random(); private: - //Private Variables int _x; int _y; }; \ No newline at end of file