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.
Diff: Options_Engine/OptionsEngine.h
- Revision:
- 24:c6415cc74b17
- Parent:
- 23:61fa82f76808
- Child:
- 25:b52aa23df120
--- a/Options_Engine/OptionsEngine.h Thu Apr 18 22:56:34 2019 +0000
+++ b/Options_Engine/OptionsEngine.h Fri Apr 19 11:16:19 2019 +0000
@@ -5,6 +5,8 @@
#include "Gamepad.h"
#include "N5110.h"
#include "Ball.h"
+#include "Pause.h"
+#include "SDFileSystem.h"
enum Option{
BRIGHTNESS,
@@ -16,26 +18,29 @@
int output;
Option next_state[3];
};
-
+
class OptionsEngine {
public:
OptionsEngine(); //constructor
~OptionsEngine(); //destructor
void init(); //initialiser
- void options_menu(Gamepad &gamepad, N5110 &lcd, Ball &ball);
+ void options_menu(Gamepad &gamepad, N5110 &lcd, Ball &ball, SDFileSystem &sd);
void change_brightness(Gamepad &gamepad, N5110 &lcd);
void change_ball_speed(Gamepad &gamepad, N5110 &lcd, Ball &ball);
+ void view_high_scores(Gamepad &gamepad, N5110 &lcd, SDFileSystem &sd);
private:
void display_options(N5110 &lcd);
Option option_selection(Gamepad &gamepad, N5110 &lcd);
void read_brightness_input(Gamepad &gamepad);
void read_ball_speed_input(Gamepad &gamepad);
+ void print_high_scores(N5110 &lcd, SDFileSystem &sd);
Option _state;
int _next_state;
float _brightness;
int _ball_speed;
+ Mode _leaderboard;
};
#endif
\ No newline at end of file