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
Game.h@5:100d960fc6d5, 2015-05-01 (annotated)
- Committer:
- Siriagus
- Date:
- Fri May 01 09:10:23 2015 +0000
- Revision:
- 5:100d960fc6d5
- Child:
- 7:678873947b29
Mostly finished State and StateManager class. Some additional work must be done when adding new main states.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Siriagus | 5:100d960fc6d5 | 1 | #ifndef GAME_H |
| Siriagus | 5:100d960fc6d5 | 2 | #define GAME_H |
| Siriagus | 5:100d960fc6d5 | 3 | |
| Siriagus | 5:100d960fc6d5 | 4 | class Game : public State |
| Siriagus | 5:100d960fc6d5 | 5 | { |
| Siriagus | 5:100d960fc6d5 | 6 | public: |
| Siriagus | 5:100d960fc6d5 | 7 | Game(StateManager* fsm, N5110 *lcd, InputManager* input) |
| Siriagus | 5:100d960fc6d5 | 8 | : State(fsm, lcd, input) {init();} |
| Siriagus | 5:100d960fc6d5 | 9 | |
| Siriagus | 5:100d960fc6d5 | 10 | virtual void update(time_t dt) {} |
| Siriagus | 5:100d960fc6d5 | 11 | virtual void render() {} |
| Siriagus | 5:100d960fc6d5 | 12 | private: |
| Siriagus | 5:100d960fc6d5 | 13 | void init() {} |
| Siriagus | 5:100d960fc6d5 | 14 | |
| Siriagus | 5:100d960fc6d5 | 15 | }; |
| Siriagus | 5:100d960fc6d5 | 16 | |
| Siriagus | 5:100d960fc6d5 | 17 | #endif |