From 533310f646f1b1a00250a361f627967c420f1eef Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Dec 2011 14:13:21 -0700 Subject: Situations & their modes are built. --- src/situation.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src/situation.h') 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 @@ #ifndef SITUATION_H #define SITUATION_H +#include + class Situation { public: - Situation(); + Situation( const Bu::String &sName ); virtual ~Situation(); + Bu::String getName() const { return sName; } + + enum Mode + { + modeSetup, + modeEnter, + }; + + void setAst( class AstBranch *pAst, Mode m ); + + void exec( class GameState &gState, Mode m ); + private: + Bu::String sName; + class AstBranch *pAstSetup; + class AstBranch *pAstEnter; }; +Bu::Formatter &operator<<( Bu::Formatter &f, Situation::Mode m ); + #endif -- cgit v1.2.3