diff options
Diffstat (limited to 'engines/titanic/core')
-rw-r--r-- | engines/titanic/core/game_object.cpp | 8 | ||||
-rw-r--r-- | engines/titanic/core/game_object.h | 12 |
2 files changed, 14 insertions, 6 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index 48cc5206fd..19cae3f330 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -1046,12 +1046,12 @@ Season CGameObject::stateGetSeason() const { return getGameManager()->_gameState._seasonNum; } -void CGameObject::stateSet24() { - getGameManager()->_gameState.set24(1); +void CGameObject::stateSetParrotMet() { + getGameManager()->_gameState.setParrotMet(true); } -int CGameObject::stateGet24() const { - return getGameManager()->_gameState.get24(); +bool CGameObject::stateGetParrotMet() const { + return getGameManager()->_gameState.getParrotMet(); } void CGameObject::stateInc38() { diff --git a/engines/titanic/core/game_object.h b/engines/titanic/core/game_object.h index 9417fd7aa3..744887a04b 100644 --- a/engines/titanic/core/game_object.h +++ b/engines/titanic/core/game_object.h @@ -991,8 +991,16 @@ public: */ Season stateGetSeason() const; - void stateSet24(); - int stateGet24() const; + /** + * Sets the flag for the parrot having been met + */ + void stateSetParrotMet(); + + /** + * Returns whether the parrot has been met + */ + bool stateGetParrotMet() const; + void stateInc38(); int stateGet38() const; |