summaryrefslogtreecommitdiff
path: root/src/situation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/situation.h')
-rw-r--r--src/situation.h12
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{
10friend class GameBuilder; 10friend class GameBuilder;
11public: 11public:
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
29private: 38private:
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;