diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 10:27:38 -0700 | 
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 10:27:38 -0700 | 
| commit | bae6192c54533e8da95d8ae1ed4d4eccee28c39a (patch) | |
| tree | f27b03b518894420992ad1a3ed3ee1a07935ca4b /src/gamebuilder.h | |
| parent | 550d4f13ace49e3d442e43d46cd066f174709400 (diff) | |
| download | stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.gz stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.bz2 stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.xz stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.zip | |
Getting close to realy running.
Diffstat (limited to 'src/gamebuilder.h')
| -rw-r--r-- | src/gamebuilder.h | 17 | 
1 files changed, 14 insertions, 3 deletions
| diff --git a/src/gamebuilder.h b/src/gamebuilder.h index 2637c37..bc32f55 100644 --- a/src/gamebuilder.h +++ b/src/gamebuilder.h | |||
| @@ -16,23 +16,34 @@ public: | |||
| 16 | void setGameParam( const Bu::String &sName ); | 16 | void setGameParam( const Bu::String &sName ); | 
| 17 | 17 | ||
| 18 | void beginFunction( const Bu::String &sName ); | 18 | void beginFunction( const Bu::String &sName ); | 
| 19 | void addFunctionParam( const Bu::String &sName ); | ||
| 19 | void endFunction(); | 20 | void endFunction(); | 
| 20 | 21 | ||
| 21 | void beginSituation( const Bu::String &sName ); | 22 | void beginSituation( const Bu::String &sName ); | 
| 22 | void endSituation(); | 23 | void endSituation(); | 
| 23 | 24 | ||
| 24 | void addParam( const Bu::String &sName ); | ||
| 25 | void addNode( AstNode::Type iType ); | 25 | void addNode( AstNode::Type iType ); | 
| 26 | void closeNode(); | 26 | void closeNode(); | 
| 27 | void addLiteral( const Variable &v ); | 27 | void addLiteral( const Variable &v ); | 
| 28 | void addVarRef( const Bu::String &sName ); | 28 | void addVarRef( const Bu::String &sName ); | 
| 29 | void addFuncCall( const Bu::String &sName ); | ||
| 30 | |||
| 31 | void beginGlobal(); | ||
| 32 | void closeGlobal(); | ||
| 33 | |||
| 34 | void beginCommand( const Bu::String &sValue ); | ||
| 35 | void addCommandLiteral( const Bu::String &sValue ); | ||
| 36 | void addCommandParam( const Bu::String &sValue ); | ||
| 37 | void closeCommand(); | ||
| 29 | 38 | ||
| 30 | private: | 39 | private: | 
| 40 | class Game *pGame; | ||
| 41 | bool bGlobal; | ||
| 31 | Variable vLiteral; | 42 | Variable vLiteral; | 
| 32 | class AstBranch *pCurNode; | 43 | class AstBranch *pCurNode; | 
| 33 | class AstBranch *pCurRoot; | 44 | class AstBranch *pCurRoot; | 
| 34 | 45 | class Command *pCurCmd; | |
| 35 | VariableHash hGameParams; | 46 | class AstFunction *pCurFnc; | 
| 36 | }; | 47 | }; | 
| 37 | 48 | ||
| 38 | #endif | 49 | #endif | 
