nsnake
Classic snake game for the terminal
StateManager.hpp
1 #ifndef STATEMANAGER_H_DEFINED
2 #define STATEMANAGER_H_DEFINED
3 
4 #include <Flow/GameState.hpp>
5 
23 {
24 public:
26  StateManager();
27 
28  virtual ~StateManager();
29 
38  void run();
39 
40 private:
41 
43  GameState* currentState;
44 
51  int sharedInfo;
52 };
53 
54 #endif /* STATEMANAGER_H_DEFINED */
55 
void run()
Main entry point and game loop.
Giga-class that switches from game states.
StateManager()
Initializes pretty much everything.
Definition: StateManager.cpp:8
Abstract definition of a game state.
Definition: GameState.hpp:31