diff options
Diffstat (limited to 'src/gamebuilder.cpp')
-rw-r--r-- | src/gamebuilder.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/gamebuilder.cpp b/src/gamebuilder.cpp new file mode 100644 index 0000000..912a595 --- /dev/null +++ b/src/gamebuilder.cpp | |||
@@ -0,0 +1,44 @@ | |||
1 | #include "gamebuilder.h" | ||
2 | #include <bu/sio.h> | ||
3 | |||
4 | using namespace Bu; | ||
5 | |||
6 | GameBuilder::GameBuilder() | ||
7 | { | ||
8 | } | ||
9 | |||
10 | GameBuilder::~GameBuilder() | ||
11 | { | ||
12 | } | ||
13 | |||
14 | void GameBuilder::setLiteral( const Variable &v ) | ||
15 | { | ||
16 | vLiteral = v; | ||
17 | } | ||
18 | |||
19 | void GameBuilder::setGameParam( const Bu::String &sName ) | ||
20 | { | ||
21 | sio << "Set game param '" << sName << "' to " << vLiteral << sio.nl; | ||
22 | hGameParams.insert( sName, vLiteral ); | ||
23 | } | ||
24 | |||
25 | void GameBuilder::beginFunction( const Bu::String &sName ) | ||
26 | { | ||
27 | sio << "New function: " << sName << sio.nl; | ||
28 | } | ||
29 | |||
30 | void GameBuilder::endFunction() | ||
31 | { | ||
32 | sio << "Function ended." << sio.nl; | ||
33 | } | ||
34 | |||
35 | void GameBuilder::beginSituation( const Bu::String &sName ) | ||
36 | { | ||
37 | sio << "New situation: " << sName << sio.nl; | ||
38 | } | ||
39 | |||
40 | void GameBuilder::endSituation() | ||
41 | { | ||
42 | sio << "Situation ended." << sio.nl; | ||
43 | } | ||
44 | |||