diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-01-19 11:31:18 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-01-19 11:31:18 -0700 |
commit | 09eb0733854da12146570060e84f5f7b4203e1bc (patch) | |
tree | 217986bff60af512c87688aa3309cf81ac3b4a1f /src | |
parent | 3232d0069421a1585e7e42f503c1ed7b1910891c (diff) | |
download | stage-09eb0733854da12146570060e84f5f7b4203e1bc.tar.gz stage-09eb0733854da12146570060e84f5f7b4203e1bc.tar.bz2 stage-09eb0733854da12146570060e84f5f7b4203e1bc.tar.xz stage-09eb0733854da12146570060e84f5f7b4203e1bc.zip |
Added gats, verified in linux and win32.
Diffstat (limited to 'src')
-rw-r--r-- | src/gamestate.cpp | 9 | ||||
-rw-r--r-- | src/gamestate.h | 7 |
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> |
9 | using namespace Bu; | 11 | using namespace Bu; |
10 | 12 | ||
@@ -20,6 +22,13 @@ GameState::~GameState() | |||
20 | { | 22 | { |
21 | } | 23 | } |
22 | 24 | ||
25 | Gats::Object *GameState::toGats() const | ||
26 | { | ||
27 | Gats::Dictionary *pRoot = new Gats::Dictionary; | ||
28 | |||
29 | Gats::Dictionary *pSit = pRoot->insertDict("situations"); | ||
30 | } | ||
31 | |||
23 | void GameState::parse( class AstBranch *pAst ) | 32 | void 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 @@ | |||
9 | class Game; | 9 | class Game; |
10 | class Interface; | 10 | class Interface; |
11 | 11 | ||
12 | namespace Gats | ||
13 | { | ||
14 | class Object; | ||
15 | } | ||
16 | |||
12 | class GameState | 17 | class GameState |
13 | { | 18 | { |
14 | public: | 19 | public: |
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 ); |