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
Diff: Menus/Menus.h
- Revision:
- 16:a2c945279b79
- Parent:
- 15:fa5282fcd134
- Child:
- 17:cb39d9fa08dc
--- a/Menus/Menus.h Fri Apr 19 15:58:51 2019 +0000
+++ b/Menus/Menus.h Wed Apr 24 13:44:12 2019 +0000
@@ -1,36 +1,39 @@
-#ifndef MENUS
-#define MENUS
+#ifndef MENUS_H
+#define MENUS_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Graphics.h"
+#include "Scores.h"
class Menus
{
+
public:
Menus();
~Menus();
+
void start_up_screen(Graphics &graphics, N5110 &lcd, Gamepad &pad);
- void main_menu(Graphics &graphics, N5110 &lcd, Gamepad &pad);
+ void main_menu(Graphics &graphics, N5110 &lcd, Gamepad &pad, Scores &scores);
bool get_mute();
- int get_lives();
+ int get_health();
private:
void _start_up_visuals(Graphics &graphics, N5110 &lcd, Gamepad &pad);
void _read_inputs(Gamepad &pad);
void _controls(N5110 &lcd, Gamepad &pad);
- void _scores(N5110 &lcd, Gamepad &pad);
void _settings(N5110 &lcd, Gamepad &pad);
- void _mute_contrast(N5110 &lcd, Gamepad &pad);
+ void _mute_brightness_lives(N5110 &lcd, Gamepad &pad);
+ void _scores(N5110 &lcd, Gamepad &pad, Scores &scores);
int _counter;
- int _lives;
+ int _health;
bool _mute;
+ float _brightness;
float _contrast;
- float _score;
};
-#endif // MENUS
\ No newline at end of file
+#endif // MENUS_H
\ No newline at end of file