Hugo Hu / Mbed 2 deprecated BRAVEHEART

Dependencies:   mbed N5110 ShiftReg PinDetect

Revision:
19:89c3eeb3761b
Parent:
17:d6a3b29cab31
--- a/StateManager.h	Mon May 11 04:40:23 2015 +0000
+++ b/StateManager.h	Thu Mar 25 03:43:10 2021 +0000
@@ -4,9 +4,9 @@
 #include "State.h"
 #include "MainMenu.h"
 #include "Game.h"
-#include "TitleScreen.h"
+#include "CoverPage.h"
 #include "GameOver.h"
-#include "SubmitHighscore.h"
+#include "Achievement.h"
 
 /** @file StateManager.h
 * @author Andreas Garmannslund
@@ -22,8 +22,8 @@
         * @param input Pointer to the InputManager which is controlling user input.
         * @param firstState The initial state of the finite state machine.
         */
-        StateManager(N5110 *lcd, InputManager* input, Sound *sound, MainState firstState)
-                    : lcd(lcd),  input(input), sound(sound) {currentState = 0; nextState = NO_STATE; changeState(firstState);}
+        StateManager(N5110 *lcd, InputManager* input, Sound *sound, ShiftReg *shiftreg, MainState firstState)
+                    : lcd(lcd),  input(input), sound(sound), shiftreg(shiftreg) {currentState = 0; nextState = NO_STATE; changeState(firstState);}
                     
         /// Frees allocated memory
         ~StateManager() {if (currentState != 0) delete currentState;}
@@ -53,6 +53,7 @@
         N5110 *lcd;
         InputManager *input;
         Sound *sound;
+        ShiftReg *shiftreg;
         State* currentState; // Current state object
         MainState nextState; // requested state, NONE if no state is requested
 };