![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
Diff: models.h
- Revision:
- 2:50a76ed8bf55
- Child:
- 4:0fe59e58def9
diff -r 26e5e770f91b -r 50a76ed8bf55 models.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/models.h Fri Dec 02 06:16:50 2016 +0000 @@ -0,0 +1,33 @@ +#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 \ No newline at end of file