Meteor defense project

Dependencies:   N5110 mbed

Committer:
jasper0712
Date:
Wed Mar 22 17:15:38 2017 +0000
Revision:
5:c74bbdda06f4
Parent:
4:4145abd09075
Child:
6:a554424e4517
tidying things up

Who changed what in which revision?

UserRevisionLine numberNew 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 5:c74bbdda06f4 22 void checkGameRule();
jasper0712 5:c74bbdda06f4 23
jasper0712 4:4145abd09075 24 private:
jasper0712 5:c74bbdda06f4 25 Weapon weap;
jasper0712 4:4145abd09075 26 Spawn spa;
jasper0712 4:4145abd09075 27 int drawit;
jasper0712 4:4145abd09075 28 };
jasper0712 4:4145abd09075 29
jasper0712 4:4145abd09075 30 #endif