From 7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 23 Dec 2011 00:52:32 -0700 Subject: The game is actually being built now. --- src/gamebuilder.cpp | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/gamebuilder.cpp (limited to 'src/gamebuilder.cpp') 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 @@ +#include "gamebuilder.h" +#include + +using namespace Bu; + +GameBuilder::GameBuilder() +{ +} + +GameBuilder::~GameBuilder() +{ +} + +void GameBuilder::setLiteral( const Variable &v ) +{ + vLiteral = v; +} + +void GameBuilder::setGameParam( const Bu::String &sName ) +{ + sio << "Set game param '" << sName << "' to " << vLiteral << sio.nl; + hGameParams.insert( sName, vLiteral ); +} + +void GameBuilder::beginFunction( const Bu::String &sName ) +{ + sio << "New function: " << sName << sio.nl; +} + +void GameBuilder::endFunction() +{ + sio << "Function ended." << sio.nl; +} + +void GameBuilder::beginSituation( const Bu::String &sName ) +{ + sio << "New situation: " << sName << sio.nl; +} + +void GameBuilder::endSituation() +{ + sio << "Situation ended." << sio.nl; +} + -- cgit v1.2.3