Andreas Garmannslund / Mbed 2 deprecated SimplePlatformGame

Dependencies:   N5110 PinDetect PowerControl mbed

Revision:
17:d6a3b29cab31
Parent:
13:7ab71c7c311b
--- 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;