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@7:678873947b29, 2015-05-01 (annotated)
- Committer:
- Siriagus
- Date:
- Fri May 01 18:10:59 2015 +0000
- Revision:
- 7:678873947b29
- Parent:
- 5:100d960fc6d5
- Child:
- 8:9ac6a428fa26
Fixed bug in State.h: Not setting fsm variable. State classes can now request the state to be changed.
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 | 7:678873947b29 | 4 | #include "State.h" |
| Siriagus | 7:678873947b29 | 5 | |
| Siriagus | 5:100d960fc6d5 | 6 | class Game : public State |
| Siriagus | 5:100d960fc6d5 | 7 | { |
| Siriagus | 5:100d960fc6d5 | 8 | public: |
| Siriagus | 5:100d960fc6d5 | 9 | Game(StateManager* fsm, N5110 *lcd, InputManager* input) |
| Siriagus | 5:100d960fc6d5 | 10 | : State(fsm, lcd, input) {init();} |
| Siriagus | 5:100d960fc6d5 | 11 | |
| Siriagus | 7:678873947b29 | 12 | virtual void update(float dt); |
| Siriagus | 7:678873947b29 | 13 | virtual void render(); |
| Siriagus | 5:100d960fc6d5 | 14 | private: |
| Siriagus | 5:100d960fc6d5 | 15 | void init() {} |
| Siriagus | 5:100d960fc6d5 | 16 | |
| Siriagus | 5:100d960fc6d5 | 17 | }; |
| Siriagus | 5:100d960fc6d5 | 18 | |
| Siriagus | 5:100d960fc6d5 | 19 | #endif |