diff options
Diffstat (limited to 'src/situation.h')
| -rw-r--r-- | src/situation.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/situation.h b/src/situation.h index 4d06fe6..365533a 100644 --- a/src/situation.h +++ b/src/situation.h | |||
| @@ -3,8 +3,11 @@ | |||
| 3 | 3 | ||
| 4 | #include <bu/string.h> | 4 | #include <bu/string.h> |
| 5 | 5 | ||
| 6 | #include "commandset.h" | ||
| 7 | |||
| 6 | class Situation | 8 | class Situation |
| 7 | { | 9 | { |
| 10 | friend class GameBuilder; | ||
| 8 | public: | 11 | public: |
| 9 | Situation( const Bu::String &sName ); | 12 | Situation( const Bu::String &sName ); |
| 10 | virtual ~Situation(); | 13 | virtual ~Situation(); |
| @@ -18,11 +21,14 @@ public: | |||
| 18 | }; | 21 | }; |
| 19 | 22 | ||
| 20 | void setAst( class AstBranch *pAst, Mode m ); | 23 | void setAst( class AstBranch *pAst, Mode m ); |
| 21 | |||
| 22 | void exec( class GameState &gState, Mode m ); | 24 | void exec( class GameState &gState, Mode m ); |
| 23 | 25 | ||
| 26 | void addCommand( Command *pCmd ); | ||
| 27 | bool execCommand( class GameState &gState, const Bu::StringList &lCmd ); | ||
| 28 | |||
| 24 | private: | 29 | private: |
| 25 | Bu::String sName; | 30 | Bu::String sName; |
| 31 | CommandSet csLocal; | ||
| 26 | class AstBranch *pAstSetup; | 32 | class AstBranch *pAstSetup; |
| 27 | class AstBranch *pAstEnter; | 33 | class AstBranch *pAstEnter; |
| 28 | }; | 34 | }; |
