Meteor defense project

Dependencies:   N5110 mbed

GameEngine/GameEngine.h

Committer:
jasper0712
Date:
2017-03-29
Revision:
11:1c48fe71045c
Parent:
10:926b1f89c4f1
Child:
13:38cbce17d7d7

File content as of revision 11:1c48fe71045c:

#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 bomb(Gamepad &pad, N5110 &lcd);
    int Array1[Cols][Rows];
    int Array2[Cols][Rows];
    
    
private:
    Weapon weap;
    Spawn spa;
    int drawit;
    int bombTarget;
    
    
};

#endif