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.
Dependencies: mbed FATFileSystem
Diff: GolfEngine/GolfEngine.h
- 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;