ELEC2645 (2018/19) / Mbed 2 deprecated el17ebs

Dependencies:   mbed FATFileSystem

Revision:
9:bc34f2243e43
Parent:
8:d410856c6d04
Child:
10:9f54a6366e94
--- a/GolfEngine/GolfEngine.h	Thu Apr 18 10:42:42 2019 +0000
+++ b/GolfEngine/GolfEngine.h	Sat Apr 20 10:42:17 2019 +0000
@@ -27,25 +27,34 @@
     
     void init();
     
+    void new_level();
+    
     void drawGame(N5110 &lcd, Gamepad &pad);
     
     void read_input(Gamepad &pad);
     
     void update_ball(Gamepad &pad, int frame_rate);
     
-    void drawCourseWalls(N5110 &lcd, Course map[], int size);
+    void drawCourseWalls(N5110 &lcd, WallMap map[], int size);
     
-    void check_wall_bounce();
+    void drawHole(N5110 &lcd, Coord hole);
+    
+    void printLevel(N5110 &lcd);
     
     void set_level(int level);
 
     int get_level();
+    
+    bool get_hole_flag();
+    
+    void reset_hole_flag(); 
 
 private:
 
     int _x_pos;
     int _y_pos;
     int _level;
+    bool _hole_flag;
     
     float _mag;
     Vector2D _joy_coord;