ELEC2645 (2018/19) / Mbed 2 deprecated el17set_

Dependencies:   mbed

Game/Game.h

Committer:
S_Tingle
Date:
2019-04-29
Revision:
8:bf4f93602b8b
Parent:
7:fa8629d7bb6e

File content as of revision 8:bf4f93602b8b:

#ifndef GAME_H
#define GAME_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Smiley.h"
#include "Maze.h"
#include "mazeCollisions.h"

class Game{
    
public:

    Game();
    ~Game();
    void init();
    void dirmag(Gamepad &pad);
    void drawSprite(N5110 &lcd);
    void movement(Gamepad &pad);
    void allCollisions(N5110 &lcd,Gamepad &pad);
    
private:

    Smiley smiley;
    Maze maze;
    mazeCollisions mazecollisions;
    Direction dir;
    int x;
    int y;
    int width;
    int height;
};

#endif