A complex 2D-dungeon game on LPC1768 in SWJTU-Leeds Joint School XJEL2645 project. Referenced from the framework contributed by https://os.mbed.com/users/Siriagus/code/SimplePlatformGame/
Dependencies: mbed N5110 ShiftReg PinDetect
Diff: MainMenu.h
- Revision:
- 6:edb48de563a9
- Parent:
- 5:100d960fc6d5
- Child:
- 7:678873947b29
--- a/MainMenu.h Fri May 01 09:10:23 2015 +0000 +++ b/MainMenu.h Fri May 01 09:44:38 2015 +0000 @@ -14,7 +14,15 @@ private: void init(); + static void btnAPress(); // Need to be static to be used for callback + static void btnBPress(); + static void btnCPress(); + + // Variables + private: + enum MenuState {SELECT_PLAY, SELECT_HIGHSCORES, SELECT_CONTROLS, LOAD_GAME, HIGHSCORES, CONTROLS}; // Internal states for internal finite state machine + static int currentState; // Current internal state + static const int MENU_FSM[6][3]; // Internal finite state machine - works on a different principle than the one that controls the main states }; - #endif \ No newline at end of file