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:
- 23:61fa82f76808
- Parent:
- 22:4e305ff8a050
- Child:
- 24:c6415cc74b17
--- a/Options_Engine/OptionsEngine.h Thu Apr 18 11:50:53 2019 +0000
+++ b/Options_Engine/OptionsEngine.h Thu Apr 18 22:56:34 2019 +0000
@@ -23,18 +23,19 @@
OptionsEngine(); //constructor
~OptionsEngine(); //destructor
void init(); //initialiser
- void options_menu(Gamepad &gamepad, N5110 &lcd);
+ void options_menu(Gamepad &gamepad, N5110 &lcd, Ball &ball);
void change_brightness(Gamepad &gamepad, N5110 &lcd);
+ void change_ball_speed(Gamepad &gamepad, N5110 &lcd, Ball &ball);
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);
Option _state;
int _next_state;
float _brightness;
int _ball_speed;
- Ball _ball;
};
#endif
\ No newline at end of file