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.
Food/Food.h
- Committer:
- VivianDu
- Date:
- 2019-05-05
- Revision:
- 3:e11f0976b2db
- Parent:
- 2:b891a5841ee2
- Child:
- 5:e01f97a356be
File content as of revision 3:e11f0976b2db:
/** My Sample Class * @brief Does nothing useful * @author Du Xianjie * @date May, 2019 */ #ifndef FOOD_H #define FOOD_H #include <math.h> #include <stdlib.h> #include "Gamepad.h" #include "mbed.h" #include "N5110.h" //libraries including struct pos{ int x; int y; }; //define position of food class Food{ public: /** Constructor */ Food(); /** Destructor */ ~Food(); /** Set the screen * @param init () */ void init(); /** Draw the screen * @param (N5110 &lcd) */ void draw(N5110 &lcd); /** Get the response * @param () */ void response(); /** Get the score * @return the current score */ pos returnPos(); private: };//define functions #endif