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: GameOver.h
- Revision:
- 18:709ea375b0df
- Parent:
- 17:d6a3b29cab31
- Child:
- 19:89c3eeb3761b
diff -r d6a3b29cab31 -r 709ea375b0df GameOver.h --- a/GameOver.h Mon May 11 03:52:18 2015 +0000 +++ b/GameOver.h Mon May 11 04:40:23 2015 +0000 @@ -13,21 +13,32 @@ class GameOver : public State { public: - + /// Create a new GameOver object. GameOver(StateManager* fsm, N5110 *lcd, InputManager* input, Sound* sound) : State(fsm, lcd, input, sound) {init();} - virtual void update(float dt); /// Update logic - virtual void render(); /// Draw to lcd + /// Update logic + virtual void update(float dt); + + /// Draw to lcd + virtual void render(); private: + /// Setup initial configuration. void init(); - static void btnAPress(); /// Interrupt callback function when button A is pressed - static void btnCPress(); /// Interrupt callback function when button C is pressed + + /// Interrupt callback function when button A is pressed. + static void btnAPress(); + + /// Interrupt callback function when button C is pressed. + static void btnCPress(); private: - enum GameOverState {SELECT_PLAY, SELECT_MAIN_MENU, LOAD_GAME, LOAD_MAIN_MENU}; // Internal states - static int currentState; /// Current internal state + /// Internal states + enum GameOverState {SELECT_PLAY, SELECT_MAIN_MENU, LOAD_GAME, LOAD_MAIN_MENU}; + + /// Current internal state + static int currentState; }; #endif \ No newline at end of file