Library containing the Game Engine

GameEngine.h

Committer:
ll14c4p
Date:
2017-05-02
Revision:
5:6224122fc07c
Parent:
3:2f8f003ce4fd
Child:
6:c710fbc0f48e

File content as of revision 5:6224122fc07c:

#ifndef GAMEENGINE_H
#define GAMEENGINE_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Player.h"
#include "Projectile.h"

class GameEngine
{
    public:
    GameEngine();
    ~GameEngine();

    void init( );
    void read_input(Gamepad &pad);
    void update(Gamepad &pad);
    void draw(N5110 &lcd);
    void get_pos();
    int playerx;
    int playery;
    
    private:
    
    Player _p;
    Projectile _proj;
    int _speed;
    Direction _d;
    float _mag;
    
};
#endif