summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gamestate.cpp9
-rw-r--r--src/gamestate.h7
2 files changed, 16 insertions, 0 deletions
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 @@
5#include "astleaf.h" 5#include "astleaf.h"
6#include "astleafliteral.h" 6#include "astleafliteral.h"
7 7
8#include <gats/types.h>
9
8#include <bu/sio.h> 10#include <bu/sio.h>
9using namespace Bu; 11using namespace Bu;
10 12
@@ -20,6 +22,13 @@ GameState::~GameState()
20{ 22{
21} 23}
22 24
25Gats::Object *GameState::toGats() const
26{
27 Gats::Dictionary *pRoot = new Gats::Dictionary;
28
29 Gats::Dictionary *pSit = pRoot->insertDict("situations");
30}
31
23void GameState::parse( class AstBranch *pAst ) 32void GameState::parse( class AstBranch *pAst )
24{ 33{
25 if( pAst->getType() != AstNode::tScope ) 34 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 @@
9class Game; 9class Game;
10class Interface; 10class Interface;
11 11
12namespace Gats
13{
14 class Object;
15}
16
12class GameState 17class GameState
13{ 18{
14public: 19public:
15 GameState( Game *pGame, Interface *pIface ); 20 GameState( Game *pGame, Interface *pIface );
16 virtual ~GameState(); 21 virtual ~GameState();
17 22
23 Gats::Object *toGats() const;
24
18 Interface *getInterface() { return pIface; } 25 Interface *getInterface() { return pIface; }
19 26
20 void parse( class AstBranch *pAst ); 27 void parse( class AstBranch *pAst );