![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
models.h
- Committer:
- th_mbed
- Date:
- 2016-12-02
- Revision:
- 2:50a76ed8bf55
- Child:
- 4:0fe59e58def9
File content as of revision 2:50a76ed8bf55:
#ifndef models_h #define models_h #define DEFAULT_X 2 #define DEFAULT_Y 26 //31-6+1 #define MAX_JUMP_TIME 9 #define MAX_JUMP_COUNT 2 class Person { private: point p; int jump_count; int jump_time; public: Person(); point ground(); point update(); point jump(); }; class Bullet { private: point p; int v; public: Bullet(point p, int v); point update(); }; #endif