Josh Davy / Mbed 2 deprecated Flip

Dependencies:   mbed el17jd

Revision:
11:db27d3838514
Parent:
9:96969b1c6bde
Child:
12:5549a299d41e
diff -r 58cf89dd878c -r db27d3838514 Level/Level.h
--- a/Level/Level.h	Mon May 06 10:11:42 2019 +0000
+++ b/Level/Level.h	Mon May 06 14:43:01 2019 +0000
@@ -1,16 +1,12 @@
 #ifndef LEVEL_H
 #define LEVEL_H
 
+
 #include "mbed.h"
 #include "N5110.h"
 #include "Gamepad.h"
 #include "Bitmap.h"
-
-
-struct Block {
-    Vector2D first; 
-    Vector2D second;
-};
+#include "LevelDefinitions.h"
 
 struct MovingBlock {
     int index;
@@ -46,7 +42,9 @@
     ~Level();
     void init(Block blocks [],
               int number_of_blocks,
-              Vector2D goal);
+              Vector2D goal,
+              MovingBlockDefinition moving_blocks[],
+              int number_of_moving_blocks);
     void update_moving_blocks();
     void render(N5110 &lcd);
     void declare_moving_block(int index,bool extending,int distance);