diff options
Diffstat (limited to 'src/gamestate.h')
-rw-r--r-- | src/gamestate.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gamestate.h b/src/gamestate.h index 115892a..089273b 100644 --- a/src/gamestate.h +++ b/src/gamestate.h | |||
@@ -27,8 +27,9 @@ public: | |||
27 | 27 | ||
28 | Interface *getInterface() { return pIface; } | 28 | Interface *getInterface() { return pIface; } |
29 | 29 | ||
30 | void run( class AstBranch *pAst ); | 30 | void run( const class AstBranch *pAst, bool bNewScope ); |
31 | void pushScope( class AstBranch *pAst ); | 31 | void run( const AstBranch::NodeList &lNode, bool bNewScope ); |
32 | //void pushScope( class AstBranch *pAst ); | ||
32 | 33 | ||
33 | void init(); | 34 | void init(); |
34 | 35 | ||
@@ -57,8 +58,6 @@ public: | |||
57 | class Situation *getCurSituation(); | 58 | class Situation *getCurSituation(); |
58 | 59 | ||
59 | private: | 60 | private: |
60 | void run(); | ||
61 | |||
62 | Gats::Object *scopeToGats( const Scope *pSrc ) const; | 61 | Gats::Object *scopeToGats( const Scope *pSrc ) const; |
63 | Gats::Object *variableToGats( const Variable &rVar ) const; | 62 | Gats::Object *variableToGats( const Variable &rVar ) const; |
64 | void gatsToScope( Gats::Dictionary *pRoot, Scope *pSrc ) const; | 63 | void gatsToScope( Gats::Dictionary *pRoot, Scope *pSrc ) const; |
@@ -84,7 +83,8 @@ private: | |||
84 | 83 | ||
85 | typedef AstBranch::NodeList::const_iterator ProgramCounter; | 84 | typedef AstBranch::NodeList::const_iterator ProgramCounter; |
86 | typedef Bu::List<ProgramCounter> ProgramStack; | 85 | typedef Bu::List<ProgramCounter> ProgramStack; |
87 | ProgramStack sProg; | 86 | |
87 | Bu::String sGoto; | ||
88 | }; | 88 | }; |
89 | 89 | ||
90 | #endif | 90 | #endif |