Meteor defense project

Dependencies:   N5110 mbed

GameEngine/GameEngine.h

Committer:
jasper0712
Date:
2017-04-03
Revision:
14:064b8d7f348d
Parent:
13:38cbce17d7d7
Child:
17:53aedd20155a

File content as of revision 14:064b8d7f348d:

#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];
    
    
private:
    Weapon weap;
    Spawn spa;
    int drawit;
    
    
    
};

#endif