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:
- 12:7f7fadb5c106
- Parent:
- 10:9f54a6366e94
- Child:
- 13:681192091568
--- a/GolfEngine/GolfEngine.h Thu Apr 25 15:16:38 2019 +0000
+++ b/GolfEngine/GolfEngine.h Fri May 03 09:39:24 2019 +0000
@@ -13,7 +13,6 @@
* @date May, 2018
*/
-
class GolfEngine
{
@@ -35,33 +34,34 @@
void update_ball(Gamepad &pad);
- void drawCourseWalls(N5110 &lcd, WallMap map[], int size);
-
- void drawHole(N5110 &lcd, Coord hole);
-
void printLevel(N5110 &lcd);
-
+
void set_level(int level);
int get_level();
+ void reset_hole_flag();
+
bool get_hole_flag();
- void reset_hole_flag();
-
private:
- int _x_pos;
- int _y_pos;
+ void drawCourseWalls(N5110 &lcd, WallMap map[], int size);
+
+ void drawHole(N5110 &lcd, Coord hole);
+
int _level;
+
bool _hole_flag;
float _mag;
+
Vector2D _joy_coord;
+
float _angle;
Ball _ball;
-
+
};
#endif
\ No newline at end of file