nsnake
Classic snake game for the terminal
Loading...
Searching...
No Matches
GameStateGame.hpp
1#ifndef GAMESTATEGAME_H_DEFINED
2#define GAMESTATEGAME_H_DEFINED
3
4#include <Flow/GameState.hpp>
5#include <Game/Game.hpp>
6
30{
31public:
33 virtual ~GameStateGame();
34
36 void load(int stack=0);
37
39 int unload();
40
47
49 void draw();
50
51private:
53 Game* game;
54
56 bool willQuit;
57};
58
59#endif //GAMESTATEGAME_H_DEFINED
60
This represents the actual game taking place.
int unload()
Destroys anything builded during the game.
GameState::StateCode update()
Updates all possible things on the game.
void draw()
Shows everything onscreen;.
void load(int stack=0)
Constructs everything necessary for the game.
Abstract definition of a game state.
Definition GameState.hpp:32
StateCode
All possible transitions between states.
Definition GameState.hpp:40
Definition Game.hpp:17