From d94b1dc7bb68ee1641edcbbd31fd40ef7e5dc442 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 31 Mar 2016 19:55:45 -0400 Subject: TITANIC: Implemented CPetGfxElement setup method --- engines/titanic/core/tree_item.cpp | 10 ++++++++++ engines/titanic/core/tree_item.h | 3 +++ 2 files changed, 13 insertions(+) (limited to 'engines/titanic/core') diff --git a/engines/titanic/core/tree_item.cpp b/engines/titanic/core/tree_item.cpp index 61fcf97183..55deee07df 100644 --- a/engines/titanic/core/tree_item.cpp +++ b/engines/titanic/core/tree_item.cpp @@ -289,4 +289,14 @@ CRoomItem *CTreeItem::getRoom() const { return gameManager ? gameManager->getRoom() : nullptr; } +int CTreeItem::getState8() const { + CGameManager *gameManager = getGameManager(); + return gameManager ? gameManager->_gameState._field8 : 3; +} + +int CTreeItem::getStateC() const { + CGameManager *gameManager = getGameManager(); + return gameManager ? gameManager->_gameState._fieldC : 3; +} + } // End of namespace Titanic diff --git a/engines/titanic/core/tree_item.h b/engines/titanic/core/tree_item.h index f5e28f1056..d710fcf0b8 100644 --- a/engines/titanic/core/tree_item.h +++ b/engines/titanic/core/tree_item.h @@ -247,6 +247,9 @@ public: * Return the current room */ CRoomItem *getRoom() const; + + int getState8() const; + int getStateC() const; }; } // End of namespace Titanic -- cgit v1.2.3