From 09eb0733854da12146570060e84f5f7b4203e1bc Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 19 Jan 2012 11:31:18 -0700 Subject: Added gats, verified in linux and win32. --- src/gamestate.cpp | 9 +++++++++ src/gamestate.h | 7 +++++++ 2 files changed, 16 insertions(+) (limited to 'src') diff --git a/src/gamestate.cpp b/src/gamestate.cpp index 0b721d4..b87f658 100644 --- a/src/gamestate.cpp +++ b/src/gamestate.cpp @@ -5,6 +5,8 @@ #include "astleaf.h" #include "astleafliteral.h" +#include + #include using namespace Bu; @@ -20,6 +22,13 @@ GameState::~GameState() { } +Gats::Object *GameState::toGats() const +{ + Gats::Dictionary *pRoot = new Gats::Dictionary; + + Gats::Dictionary *pSit = pRoot->insertDict("situations"); +} + void GameState::parse( class AstBranch *pAst ) { if( pAst->getType() != AstNode::tScope ) diff --git a/src/gamestate.h b/src/gamestate.h index e139dfe..1d6d491 100644 --- a/src/gamestate.h +++ b/src/gamestate.h @@ -9,12 +9,19 @@ class Game; class Interface; +namespace Gats +{ + class Object; +} + class GameState { public: GameState( Game *pGame, Interface *pIface ); virtual ~GameState(); + Gats::Object *toGats() const; + Interface *getInterface() { return pIface; } void parse( class AstBranch *pAst ); -- cgit v1.2.3