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:
- 17:d6a3b29cab31
- Parent:
- 13:7ab71c7c311b
- Child:
- 19:89c3eeb3761b
--- a/State.h Sun May 10 13:14:33 2015 +0000 +++ b/State.h Mon May 11 03:52:18 2015 +0000 @@ -4,6 +4,7 @@ #include "N5110.h" #include "PinDetect.h" #include "InputManager.h" +#include "Sound.h" /** @file State.h * @author Andreas Garmannslund @@ -25,8 +26,8 @@ * @param lcd Pointer to the N5110 lcd object. * @param input Pointer to the InputManager object, used for controlling user input. */ - State(StateManager* fsm, N5110 *lcd, InputManager* input) - :lcd(lcd), input(input), fsm(fsm){} + State(StateManager* fsm, N5110 *lcd, InputManager* input, Sound* sound) + :lcd(lcd), input(input),sound(sound), fsm(fsm) {} /// Handle user input and update logic. virtual void update(float dt) = 0; @@ -61,6 +62,7 @@ protected: N5110 *lcd; InputManager *input; + Sound *sound; private: StateManager *fsm;