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 N5110 ShiftReg PinDetect
Diff: SubmitHighscore.h
- Revision:
- 18:709ea375b0df
- Parent:
- 17:d6a3b29cab31
--- a/SubmitHighscore.h Mon May 11 03:52:18 2015 +0000
+++ b/SubmitHighscore.h Mon May 11 04:40:23 2015 +0000
@@ -18,8 +18,10 @@
: State(fsm, lcd, input, sound) {init();}
void init();
- virtual void update(float dt); /// Update logic
- virtual void render(); /// Draw to screen
+ /// Update logic
+ virtual void update(float dt);
+ /// Draw to screen
+ virtual void render();
private:
static void btnAPress(); /// Interrupt callback function when button A is pressed
@@ -29,12 +31,14 @@
private:
enum SubmitHighscoreState{LETTER1, LETTER2, LETTER3, SEL_SUBMIT, WRITE_TO_FILE, LOAD_GAME_OVER};
+
static int currentState;
/** Changes the current selected letter.
* @param index The index of the letter to be changed (0, 1 or 2)
* @param next Goes to the next letter in the alphabet if true. Goes to the previous letter if false.
*/
static void changeLetter(int index, bool next);
+
static int letters[3];
};