Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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