Aiming Wu
/
Game
Implement basic functions.
Game1/Game1.h@0:7173d91b03e1, 2019-05-03 (annotated)
- Committer:
- Wuuu
- Date:
- Fri May 03 13:03:59 2019 +0000
- Revision:
- 0:7173d91b03e1
Copter, which with header programme.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Wuuu | 0:7173d91b03e1 | 1 | #ifndef GAME1_H |
Wuuu | 0:7173d91b03e1 | 2 | #define GAME1_H |
Wuuu | 0:7173d91b03e1 | 3 | |
Wuuu | 0:7173d91b03e1 | 4 | #include "mbed.h" |
Wuuu | 0:7173d91b03e1 | 5 | #include "N5110.h" |
Wuuu | 0:7173d91b03e1 | 6 | #include "Gamepad.h" |
Wuuu | 0:7173d91b03e1 | 7 | #include "Wall.h" |
Wuuu | 0:7173d91b03e1 | 8 | #include "Copter.h" |
Wuuu | 0:7173d91b03e1 | 9 | |
Wuuu | 0:7173d91b03e1 | 10 | class Game1 |
Wuuu | 0:7173d91b03e1 | 11 | { |
Wuuu | 0:7173d91b03e1 | 12 | public: |
Wuuu | 0:7173d91b03e1 | 13 | Game1(); |
Wuuu | 0:7173d91b03e1 | 14 | ~Game1(); |
Wuuu | 0:7173d91b03e1 | 15 | void init(); |
Wuuu | 0:7173d91b03e1 | 16 | int draw(N5110 &lcd, Gamepad &pad); |
Wuuu | 0:7173d91b03e1 | 17 | |
Wuuu | 0:7173d91b03e1 | 18 | private: |
Wuuu | 0:7173d91b03e1 | 19 | |
Wuuu | 0:7173d91b03e1 | 20 | int _m; |
Wuuu | 0:7173d91b03e1 | 21 | int _s; |
Wuuu | 0:7173d91b03e1 | 22 | int _a; |
Wuuu | 0:7173d91b03e1 | 23 | int _b; |
Wuuu | 0:7173d91b03e1 | 24 | int _c; |
Wuuu | 0:7173d91b03e1 | 25 | Copter _Copter; |
Wuuu | 0:7173d91b03e1 | 26 | Wall _Wall; |
Wuuu | 0:7173d91b03e1 | 27 | }; |
Wuuu | 0:7173d91b03e1 | 28 | |
Wuuu | 0:7173d91b03e1 | 29 | #endif |