JianWei Lee
/
project_game
Meteor defense project
GameEngine/GameEngine.h
- Committer:
- jasper0712
- Date:
- 2017-04-19
- Revision:
- 31:1c0e47931e84
- Parent:
- 30:2e2d48cbfec3
- Child:
- 32:580d74825810
File content as of revision 31:1c0e47931e84:
#ifndef GAMEENGINE_H #define GAMEENGINE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Weapon.h" #include "Spawn.h" #include "GUI.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(); //not yet started void bombAndShield(Gamepad &pad, N5110 &lcd); void updateArray(); void init(); void update(Gamepad &pad, N5110 &lcd); void weapUpgrade(Gamepad &pad, N5110 &lcd); int done; int Array[Cols][Rows]; //main int Array2[Cols][Rows]; // secondary //this char array to differentiate the 4 different kind of spawn - a, b, c and d. char charArray[Cols][Rows]; //used as main array char charArray2[Cols][Rows]; //secondary array private: Weapon weap; Weapon _d1; Weapon _d2; Spawn spa; GUI _gui; int drawit; }; #endif