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: Menu/Menu.h
- Revision:
- 2:81cfa8310f55
- Parent:
- 1:6179c2d67d19
- Child:
- 3:a8960004d261
--- a/Menu/Menu.h Mon Mar 18 11:02:06 2019 +0000
+++ b/Menu/Menu.h Wed Mar 20 18:23:22 2019 +0000
@@ -7,9 +7,9 @@
/** Enum for menu options */
enum MenuChoices {
- Start, /**< Begin Game */
- Highscores, /**< View Highscores */
- Settings, /**< View Settings */
+ START, /**< Begin Game */
+ HIGHSCORES, /**< View Highscores */
+ SETTINGS, /**< View Settings */
};
/** Menu Class
@@ -34,6 +34,22 @@
/** Prints menu screen */
void print_menu(N5110 &lcd);
+ /** Prints highscore screen */
+ void print_highscores(N5110 &lcd);
+
+ /** Prints settings screen */
+ void print_settings(N5110 &lcd);
+
+ /** Prints start screen */
+ void print_start(N5110 &lcd);
+
+
+ /** Updates and returns menu choice
+ * @returns an enum: START, HIGHSCORES, SETTINGS
+ */
+ MenuChoices menu_choice(MenuChoices menu, Gamepad &pad, N5110 &lcd);
+
+
private:
};