diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 14:13:21 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 14:13:21 -0700 |
commit | 533310f646f1b1a00250a361f627967c420f1eef (patch) | |
tree | 0ade5ffb70259af7f4e2be56497e4e4707bc079a /src/situation.h | |
parent | 1bc10d1408eb29b0675a030e029155dd046b1dd8 (diff) | |
download | stage-533310f646f1b1a00250a361f627967c420f1eef.tar.gz stage-533310f646f1b1a00250a361f627967c420f1eef.tar.bz2 stage-533310f646f1b1a00250a361f627967c420f1eef.tar.xz stage-533310f646f1b1a00250a361f627967c420f1eef.zip |
Situations & their modes are built.
Diffstat (limited to 'src/situation.h')
-rw-r--r-- | src/situation.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/situation.h b/src/situation.h index aed6397..4d06fe6 100644 --- a/src/situation.h +++ b/src/situation.h | |||
@@ -1,13 +1,32 @@ | |||
1 | #ifndef SITUATION_H | 1 | #ifndef SITUATION_H |
2 | #define SITUATION_H | 2 | #define SITUATION_H |
3 | 3 | ||
4 | #include <bu/string.h> | ||
5 | |||
4 | class Situation | 6 | class Situation |
5 | { | 7 | { |
6 | public: | 8 | public: |
7 | Situation(); | 9 | Situation( const Bu::String &sName ); |
8 | virtual ~Situation(); | 10 | virtual ~Situation(); |
9 | 11 | ||
12 | Bu::String getName() const { return sName; } | ||
13 | |||
14 | enum Mode | ||
15 | { | ||
16 | modeSetup, | ||
17 | modeEnter, | ||
18 | }; | ||
19 | |||
20 | void setAst( class AstBranch *pAst, Mode m ); | ||
21 | |||
22 | void exec( class GameState &gState, Mode m ); | ||
23 | |||
10 | private: | 24 | private: |
25 | Bu::String sName; | ||
26 | class AstBranch *pAstSetup; | ||
27 | class AstBranch *pAstEnter; | ||
11 | }; | 28 | }; |
12 | 29 | ||
30 | Bu::Formatter &operator<<( Bu::Formatter &f, Situation::Mode m ); | ||
31 | |||
13 | #endif | 32 | #endif |