diff options
Diffstat (limited to 'src/situation.h')
-rw-r--r-- | src/situation.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/situation.h b/src/situation.h index 365533a..794b308 100644 --- a/src/situation.h +++ b/src/situation.h | |||
@@ -9,10 +9,17 @@ class Situation | |||
9 | { | 9 | { |
10 | friend class GameBuilder; | 10 | friend class GameBuilder; |
11 | public: | 11 | public: |
12 | Situation( const Bu::String &sName ); | 12 | enum InputType |
13 | { | ||
14 | inputCommand, | ||
15 | inputOption, | ||
16 | }; | ||
17 | |||
18 | Situation( const Bu::String &sName, InputType tInput ); | ||
13 | virtual ~Situation(); | 19 | virtual ~Situation(); |
14 | 20 | ||
15 | Bu::String getName() const { return sName; } | 21 | Bu::String getName() const { return sName; } |
22 | InputType getInputType() const { return tInput; } | ||
16 | 23 | ||
17 | enum Mode | 24 | enum Mode |
18 | { | 25 | { |
@@ -25,9 +32,12 @@ public: | |||
25 | 32 | ||
26 | void addCommand( Command *pCmd ); | 33 | void addCommand( Command *pCmd ); |
27 | bool execCommand( class GameState &gState, const Bu::StringList &lCmd ); | 34 | bool execCommand( class GameState &gState, const Bu::StringList &lCmd ); |
35 | void execOption( class GameState &gState, int idx ); | ||
36 | const CommandSet &getCommandSet() const { return csLocal; } | ||
28 | 37 | ||
29 | private: | 38 | private: |
30 | Bu::String sName; | 39 | Bu::String sName; |
40 | InputType tInput; | ||
31 | CommandSet csLocal; | 41 | CommandSet csLocal; |
32 | class AstBranch *pAstSetup; | 42 | class AstBranch *pAstSetup; |
33 | class AstBranch *pAstEnter; | 43 | class AstBranch *pAstEnter; |