JianWei Lee
/
project_game
Meteor defense project
GameEngine/GameEngine.h@10:926b1f89c4f1, 2017-03-28 (annotated)
- Committer:
- jasper0712
- Date:
- Tue Mar 28 21:15:18 2017 +0000
- Revision:
- 10:926b1f89c4f1
- Parent:
- 9:4c4d787c7a8b
- Child:
- 11:1c48fe71045c
tidying things up
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jasper0712 | 4:4145abd09075 | 1 | #ifndef GAMEENGINE_H |
jasper0712 | 4:4145abd09075 | 2 | #define GAMEENGINE_H |
jasper0712 | 4:4145abd09075 | 3 | |
jasper0712 | 4:4145abd09075 | 4 | #include "mbed.h" |
jasper0712 | 4:4145abd09075 | 5 | #include "N5110.h" |
jasper0712 | 4:4145abd09075 | 6 | #include "Gamepad.h" |
jasper0712 | 4:4145abd09075 | 7 | #include "Weapon.h" |
jasper0712 | 4:4145abd09075 | 8 | #include "Spawn.h" |
jasper0712 | 4:4145abd09075 | 9 | |
jasper0712 | 4:4145abd09075 | 10 | #define Rows 48 |
jasper0712 | 4:4145abd09075 | 11 | #define Cols 84 |
jasper0712 | 4:4145abd09075 | 12 | |
jasper0712 | 4:4145abd09075 | 13 | |
jasper0712 | 4:4145abd09075 | 14 | class GameEngine |
jasper0712 | 4:4145abd09075 | 15 | { |
jasper0712 | 4:4145abd09075 | 16 | |
jasper0712 | 4:4145abd09075 | 17 | public: |
jasper0712 | 4:4145abd09075 | 18 | GameEngine(); |
jasper0712 | 4:4145abd09075 | 19 | ~GameEngine(); |
jasper0712 | 4:4145abd09075 | 20 | void drawSpawn(N5110 &lcd); |
jasper0712 | 5:c74bbdda06f4 | 21 | void drawLaserPlayer(Gamepad &pad, N5110 &lcd); |
jasper0712 | 10:926b1f89c4f1 | 22 | void checkGameRule(N5110 &lcd); |
jasper0712 | 10:926b1f89c4f1 | 23 | void gameWave(); |
jasper0712 | 10:926b1f89c4f1 | 24 | void bomb(Gamepad &pad, N5110 &lcd); |
jasper0712 | 6:a554424e4517 | 25 | int Array1[Cols][Rows]; |
jasper0712 | 6:a554424e4517 | 26 | int Array2[Cols][Rows]; |
jasper0712 | 5:c74bbdda06f4 | 27 | |
jasper0712 | 9:4c4d787c7a8b | 28 | |
jasper0712 | 4:4145abd09075 | 29 | private: |
jasper0712 | 5:c74bbdda06f4 | 30 | Weapon weap; |
jasper0712 | 4:4145abd09075 | 31 | Spawn spa; |
jasper0712 | 4:4145abd09075 | 32 | int drawit; |
jasper0712 | 9:4c4d787c7a8b | 33 | |
jasper0712 | 4:4145abd09075 | 34 | }; |
jasper0712 | 4:4145abd09075 | 35 | |
jasper0712 | 4:4145abd09075 | 36 | #endif |