summaryrefslogtreecommitdiff
path: root/src/gamestate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamestate.h')
-rw-r--r--src/gamestate.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gamestate.h b/src/gamestate.h
index 4209ebf..115892a 100644
--- a/src/gamestate.h
+++ b/src/gamestate.h
@@ -27,7 +27,8 @@ public:
27 27
28 Interface *getInterface() { return pIface; } 28 Interface *getInterface() { return pIface; }
29 29
30 void parse( class AstBranch *pAst ); 30 void run( class AstBranch *pAst );
31 void pushScope( class AstBranch *pAst );
31 32
32 void init(); 33 void init();
33 34
@@ -56,7 +57,7 @@ public:
56 class Situation *getCurSituation(); 57 class Situation *getCurSituation();
57 58
58private: 59private:
59 void parse( const AstBranch::NodeList &lCode ); 60 void run();
60 61
61 Gats::Object *scopeToGats( const Scope *pSrc ) const; 62 Gats::Object *scopeToGats( const Scope *pSrc ) const;
62 Gats::Object *variableToGats( const Variable &rVar ) const; 63 Gats::Object *variableToGats( const Variable &rVar ) const;
@@ -80,6 +81,10 @@ private:
80 Bu::String sPrompt; 81 Bu::String sPrompt;
81 82
82 VariableList lStack; 83 VariableList lStack;
84
85 typedef AstBranch::NodeList::const_iterator ProgramCounter;
86 typedef Bu::List<ProgramCounter> ProgramStack;
87 ProgramStack sProg;
83}; 88};
84 89
85#endif 90#endif