Yuheng Huo
/
hyh_copy_copy
test
life/life.h
- Committer:
- Neowless
- Date:
- 2020-05-15
- Revision:
- 3:31ff7b3e2005
File content as of revision 3:31ff7b3e2005:
/** My Life Class * @Note the number of lives and draw the lives icon * @author Huo Yuheng * @date May, 2020 */ class #ifndef LIFE_H #define LIFE_H #include "Bitmap.h" #include "N5110.h" #include "Gamepad.h" class life{ public: void init(); /** decrease the lives */ void update(); /** show the remail lives on the display */ void display(N5110 &lcd); int liferest(); private: /**number of lives*/ int lives; /** bitmap of lives */ int icon[56]; }; #endif