test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
models.h
- Committer:
- th_mbed
- Date:
- 2016-12-05
- Revision:
- 9:a2195ad200fa
- Parent:
- 8:2fd3eedcde64
- Child:
- 12:c74115744b24
File content as of revision 9:a2195ad200fa:
#include "point.h" #ifndef models_h #define models_h //Person params #define DEFAULT_X 2 #define DEFAULT_Y 25 //31-7+1 #define MAX_JUMP_TIME 7 #define MAX_JUMP_COUNT 2 #define JUMP_SIZE 2 #define GAME_OVER -1 //Bullet params #define HIGH_SPEED 5 #define NOMAL_SOEED 3 #define LOW_SPEED 1 class Person { private: point p; int jump_count; int jump_time; bool isGround(int height); public: Person(); point update(int height); point jump(); }; class Bullet { private: point p; int v; public: Bullet(point p, int v); point update(); }; #endif