From 533310f646f1b1a00250a361f627967c420f1eef Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Dec 2011 14:13:21 -0700 Subject: Situations & their modes are built. --- src/gamestate.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gamestate.h') diff --git a/src/gamestate.h b/src/gamestate.h index cb02322..7a8f81a 100644 --- a/src/gamestate.h +++ b/src/gamestate.h @@ -20,6 +20,17 @@ public: void callFunction( const Bu::String &sName ); + enum ScopeId + { + sidLocal, + sidGlobal, + sidPlayer, + sidSituation + }; + + Variable getVariable( const Bu::String &sName, ScopeId id=sidLocal ); + void setVariable( const Bu::String &sName, const Variable &v, ScopeId id=sidLocal ); + private: void parse( const AstBranch::NodeList &lCode ); @@ -28,8 +39,10 @@ private: typedef Bu::Hash ScopeHash; Game *pGame; Scope sGlobal; + Scope sPlayer; ScopeList lsLocal; ScopeHash hsSituation; + Bu::String sCurSituation; VariableList lStack; }; -- cgit v1.2.3