diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-23 00:52:32 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-23 00:52:32 -0700 |
commit | 7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0 (patch) | |
tree | 7b8a69448e3399786a71b0bd8295ccdfa0b6f68c /src/gamebuilder.cpp | |
parent | 58a71e57e3824a3a0c5385af91421674395990dc (diff) | |
download | stage-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.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 | |||