summaryrefslogtreecommitdiff
path: root/src/gamebuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamebuilder.cpp')
-rw-r--r--src/gamebuilder.cpp44
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
4using namespace Bu;
5
6GameBuilder::GameBuilder()
7{
8}
9
10GameBuilder::~GameBuilder()
11{
12}
13
14void GameBuilder::setLiteral( const Variable &v )
15{
16 vLiteral = v;
17}
18
19void GameBuilder::setGameParam( const Bu::String &sName )
20{
21 sio << "Set game param '" << sName << "' to " << vLiteral << sio.nl;
22 hGameParams.insert( sName, vLiteral );
23}
24
25void GameBuilder::beginFunction( const Bu::String &sName )
26{
27 sio << "New function: " << sName << sio.nl;
28}
29
30void GameBuilder::endFunction()
31{
32 sio << "Function ended." << sio.nl;
33}
34
35void GameBuilder::beginSituation( const Bu::String &sName )
36{
37 sio << "New situation: " << sName << sio.nl;
38}
39
40void GameBuilder::endSituation()
41{
42 sio << "Situation ended." << sio.nl;
43}
44