Kostadin Chakarov / Mbed 2 deprecated el17kec

Dependencies:   mbed

Revision:
6:39bda45efeed
Parent:
5:12c179da4788
Child:
7:cd3cafda3dd4
--- a/Map/Map.h	Tue Mar 26 09:16:35 2019 +0000
+++ b/Map/Map.h	Mon Apr 08 09:14:33 2019 +0000
@@ -6,6 +6,7 @@
 #include "Gamepad.h"
 #include "PlayerControl.h"
 #include "Ball.h"
+#include <vector>
 
 /** Map Class
 @author Kostadin Chakarov, University of Leeds
@@ -13,20 +14,22 @@
 @date March 2019
 */ 
 
-struct Centerpoints 
-{
-    int x;
-    int y;
+struct Brick {
+    int x, y, w, h;
 };
 
 class Map
 {
+private:
+    std::vector<Brick> bricks;
 
 public:
      Map();
     ~Map();
-    void setCenterpoints();
+    void initBricks();
     void drawMap(N5110 &lcd);
+    void checkCollision(GameObject &obj);
+    void destroyMap(N5110 &lcd, Gamepad &pad, Ball &ball);
     
 private: