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