summaryrefslogtreecommitdiff
path: root/src/situation.h
blob: 4d06fe65de24d76fa6c8451dc34fef72e82f8570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef SITUATION_H
#define SITUATION_H

#include <bu/string.h>

class Situation
{
public:
	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