diff options
Diffstat (limited to 'src/gamestate.h')
-rw-r--r-- | src/gamestate.h | 6 |
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 | ||
9 | class Game; | 9 | class Game; |
10 | class Interface; | ||
10 | 11 | ||
11 | class GameState | 12 | class GameState |
12 | { | 13 | { |
13 | public: | 14 | public: |
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; |