Kostadin Chakarov / Mbed 2 deprecated el17kec

Dependencies:   mbed

Map/Map.h

Committer:
kocemax
Date:
2019-04-08
Revision:
6:39bda45efeed
Parent:
5:12c179da4788
Child:
7:cd3cafda3dd4

File content as of revision 6:39bda45efeed:

#ifndef MAP_H
#define MAP_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "PlayerControl.h"
#include "Ball.h"
#include <vector>

/** Map Class
@author Kostadin Chakarov, University of Leeds
@brief Creates the map in the Breakout++ game 
@date March 2019
*/ 

struct Brick {
    int x, y, w, h;
};

class Map
{
private:
    std::vector<Brick> bricks;

public:
     Map();
    ~Map();
    void initBricks();
    void drawMap(N5110 &lcd);
    void checkCollision(GameObject &obj);
    void destroyMap(N5110 &lcd, Gamepad &pad, Ball &ball);
    
private:


};
#endif