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:
- 13:681192091568
- Parent:
- 12:7f7fadb5c106
- Child:
- 14:08ac9aaa34c3
--- a/GolfEngine/GolfEngine.h Fri May 03 09:39:24 2019 +0000
+++ b/GolfEngine/GolfEngine.h Mon May 06 10:00:57 2019 +0000
@@ -3,6 +3,7 @@
#include "mbed.h"
#include "N5110.h"
+#include "SDFileSystem.h"
#include "Gamepad.h"
#include "Ball.h"
@@ -26,20 +27,20 @@
void init(int frame_rate);
- void new_level();
+ void new_level(N5110 &lcd, SDFileSystem &sd);
void drawGame(N5110 &lcd, Gamepad &pad);
void read_input(Gamepad &pad);
void update_ball(Gamepad &pad);
-
- void printLevel(N5110 &lcd);
-
+
void set_level(int level);
int get_level();
+ void printLevel(N5110 &lcd);
+
void reset_hole_flag();
bool get_hole_flag();
@@ -49,7 +50,9 @@
void drawCourseWalls(N5110 &lcd, WallMap map[], int size);
void drawHole(N5110 &lcd, Coord hole);
-
+
+ void file_append(int value, SDFileSystem &sd);
+
int _level;
bool _hole_flag;