JianWei Lee
/
project_game
Meteor defense project
GameEngine/GameEngine.h
- Committer:
- jasper0712
- Date:
- 2017-04-10
- Revision:
- 17:53aedd20155a
- Parent:
- 14:064b8d7f348d
- Child:
- 19:7ccbb19703f9
File content as of revision 17:53aedd20155a:
#ifndef GAMEENGINE_H #define GAMEENGINE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Weapon.h" #include "Spawn.h" #define Rows 48 #define Cols 84 class GameEngine { public: GameEngine(); ~GameEngine(); void drawSpawn(N5110 &lcd); void drawLaserPlayer(Gamepad &pad, N5110 &lcd); void checkGameRule(N5110 &lcd); void gameWave(); void bombAndShield(Gamepad &pad, N5110 &lcd); int Array1[Cols][Rows]; int Array2[Cols][Rows]; //this char array to differentiate the 3 different spawn - a, b and c. char charArray[Cols][Rows]; void init(); void update(Gamepad &pad, N5110 &lcd); private: Weapon weap; Weapon _d1; Weapon _d2; Spawn spa; int drawit; }; #endif