Josh Davy / Mbed 2 deprecated Flip

Dependencies:   mbed el17jd

Revision:
8:21b6d4dbce44
Parent:
7:68e06dda79f7
Child:
9:96969b1c6bde
--- a/Level/Level.h	Wed Apr 17 12:39:46 2019 +0000
+++ b/Level/Level.h	Fri Apr 19 17:54:09 2019 +0000
@@ -12,6 +12,30 @@
     Vector2D second;
 };
 
+struct MovingBlock {
+    int block_index;
+    int x;
+    int y;
+    int s;
+    int f;
+    int yo;
+    int lol;
+};
+
+const int goalMap[11][6] = {
+    {0,1,0,0,0,0},
+    {0,1,0,0,0,0},
+    {0,1,1,0,0,0},
+    {0,1,1,1,1,0},
+    {0,1,1,1,1,1},
+    {0,1,1,1,1,0},
+    {0,1,1,0,0,0},
+    {0,1,0,0,0,0},
+    {0,1,0,0,0,0},
+    {0,1,0,0,0,0},
+    {1,1,1,1,0,0}
+};
+
 /*Level Class*/
 
 
@@ -20,14 +44,21 @@
 public:
     Level();
     ~Level();
-    void init(Block blocks [],int number_of_blocks);
+    void init(Block blocks [],MovingBlock moving_block [],
+              int number_of_blocks,
+              int number_of_moving_blocks,
+              Vector2D goal);
+    void update();
     void render(N5110 &lcd);
 
 
     
 private:  
-    Block _blocks [2] ;
+    Block _blocks [20] ;
     int _number_of_blocks;
+    int _number_of_moving_blocks;
+    Vector2D _goal;
+    MovingBlock _moving_blocks [10];
 };
 
 #endif
\ No newline at end of file