diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-30 22:40:21 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-30 22:40:21 -0700 |
commit | 8bcb83035607371a2326374665e9cc56c662a783 (patch) | |
tree | b46c73e24edff0693f3e4c678bafad874ee9f21e /src/gamestate.h | |
parent | ba7897ebadbc03d99200fda03a574a57b650e429 (diff) | |
download | stage-8bcb83035607371a2326374665e9cc56c662a783.tar.gz stage-8bcb83035607371a2326374665e9cc56c662a783.tar.bz2 stage-8bcb83035607371a2326374665e9cc56c662a783.tar.xz stage-8bcb83035607371a2326374665e9cc56c662a783.zip |
Wow, dictionaries, nested dictionaries, for loops
They all work. I still think I should change the lists to arrays in the
backend so they can be indexed as well as iterated over and appended to.
Diffstat (limited to 'src/gamestate.h')
-rw-r--r-- | src/gamestate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gamestate.h b/src/gamestate.h index e32eeaa..5c47ce0 100644 --- a/src/gamestate.h +++ b/src/gamestate.h | |||
@@ -29,10 +29,10 @@ public: | |||
29 | 29 | ||
30 | bool hasVariable( const Bu::String &sName, ScopeId id ); | 30 | bool hasVariable( const Bu::String &sName, ScopeId id ); |
31 | void delVariable( const Bu::String &sName, ScopeId id ); | 31 | void delVariable( const Bu::String &sName, ScopeId id ); |
32 | Variable getVariable( const Bu::String &sName, ScopeId id=sidLocal ); | 32 | Variable &getVariable( const Bu::String &sName, ScopeId id=sidLocal ); |
33 | void setVariable( const Bu::String &sName, const Variable &v, ScopeId id=sidLocal ); | 33 | void setVariable( const Bu::String &sName, const Variable &v, ScopeId id=sidLocal ); |
34 | 34 | ||
35 | Variable deref( const Variable &src ); | 35 | Variable &deref( Variable &src, bool bCreate=false ); |
36 | Bu::StringList tokenize( const Bu::String &sSrc ); | 36 | Bu::StringList tokenize( const Bu::String &sSrc ); |
37 | 37 | ||
38 | void exit(); | 38 | void exit(); |