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: State.h
- Revision:
- 5:100d960fc6d5
- Parent:
- 4:d6661b976359
- Child:
- 7:678873947b29
--- a/State.h Fri May 01 00:38:59 2015 +0000 +++ b/State.h Fri May 01 09:10:23 2015 +0000 @@ -11,14 +11,15 @@ enum MainState {MAIN_MENU, GAME, SUBMIT_HIGHSCORE, GAME_OVER}; // Each main state is a derived from the State class. + class State -{ +{ public: State(StateManager* fsm, N5110 *lcd, InputManager* input) - : fsm(fsm), lcd(lcd), input(input){} + :lcd(lcd), input(input){} - virtual void update() = 0; + virtual void update(time_t dt) = 0; virtual void render() = 0; private: @@ -33,4 +34,6 @@ }; + + #endif \ No newline at end of file