summaryrefslogtreecommitdiff
path: root/src/gamestate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamestate.h')
-rw-r--r--src/gamestate.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gamestate.h b/src/gamestate.h
index 9e7a060..e139dfe 100644
--- a/src/gamestate.h
+++ b/src/gamestate.h
@@ -7,13 +7,16 @@
7#include "enums.h" 7#include "enums.h"
8 8
9class Game; 9class Game;
10class Interface;
10 11
11class GameState 12class GameState
12{ 13{
13public: 14public:
14 GameState( Game *pGame ); 15 GameState( Game *pGame, Interface *pIface );
15 virtual ~GameState(); 16 virtual ~GameState();
16 17
18 Interface *getInterface() { return pIface; }
19
17 void parse( class AstBranch *pAst ); 20 void parse( class AstBranch *pAst );
18 21
19 void init(); 22 void init();
@@ -46,6 +49,7 @@ private:
46 typedef Bu::List<Scope *> ScopeList; 49 typedef Bu::List<Scope *> ScopeList;
47 typedef Bu::Hash<Bu::String, Scope *> ScopeHash; 50 typedef Bu::Hash<Bu::String, Scope *> ScopeHash;
48 Game *pGame; 51 Game *pGame;
52 Interface *pIface;
49 Scope sGlobal; 53 Scope sGlobal;
50 Scope sPlayer; 54 Scope sPlayer;
51 ScopeList lsLocal; 55 ScopeList lsLocal;