summaryrefslogtreecommitdiff
path: root/src/situation.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-29 14:13:21 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-29 14:13:21 -0700
commit533310f646f1b1a00250a361f627967c420f1eef (patch)
tree0ade5ffb70259af7f4e2be56497e4e4707bc079a /src/situation.h
parent1bc10d1408eb29b0675a030e029155dd046b1dd8 (diff)
downloadstage-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.h21
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
4class Situation 6class Situation
5{ 7{
6public: 8public:
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
10private: 24private:
25 Bu::String sName;
26 class AstBranch *pAstSetup;
27 class AstBranch *pAstEnter;
11}; 28};
12 29
30Bu::Formatter &operator<<( Bu::Formatter &f, Situation::Mode m );
31
13#endif 32#endif