summaryrefslogtreecommitdiff
path: root/src/gamebuilder.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-23 00:52:32 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-23 00:52:32 -0700
commit7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0 (patch)
tree7b8a69448e3399786a71b0bd8295ccdfa0b6f68c /src/gamebuilder.cpp
parent58a71e57e3824a3a0c5385af91421674395990dc (diff)
downloadstage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.tar.gz
stage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.tar.bz2
stage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.tar.xz
stage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.zip
The game is actually being built now.
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