From 125c9867da9cc58f0a250c7316f06755b1cc18ac Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 15 Mar 2021 23:40:04 +0000 Subject: Create GameState, the single global for the root of everything --- game/gamestate.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 game/gamestate.h (limited to 'game/gamestate.h') diff --git a/game/gamestate.h b/game/gamestate.h new file mode 100644 index 0000000..b8dfa61 --- /dev/null +++ b/game/gamestate.h @@ -0,0 +1,20 @@ +#ifndef GAMESTATE_H +#define GAMESTATE_H + +#include +#include + +class WorldObject; + +class GameState { +public: + GameState(); + ~GameState(); + NO_MOVE(GameState); + NO_COPY(GameState); + + Collection world; +}; +extern GameState * gameState; + +#endif -- cgit v1.2.3