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.h
- Revision:
- 2:430dcf420840
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/food/food.h Fri Jun 05 22:51:49 2020 +0000 @@ -0,0 +1,39 @@ +#ifndef FOOD_H +#define FOOD_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + +class Food +{ + +public: + /** Constructor */ + Food(); + + /** Destructor */ + ~Food(); + + /** Initialises food object */ + void init(); + + /** sets location of food */ + void food_location(N5110 &lcd); + + + /** All variables are public as need to be used by Body */ + + /** sets location of food */ + int fo_x; + int fo_y; + + /** changes location of food */ + int chng_food; + +private: + + +}; + +#endif \ No newline at end of file