diff options
author | Paul Gilbert | 2016-04-14 22:31:33 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:09 -0400 |
commit | 2dcda26eb1253d884d6a921a3f2ead76021b9bc4 (patch) | |
tree | 304f4bf8bf69b3325cc7e06a099a9a6de884448d /engines/titanic/core/game_object.cpp | |
parent | 7ddd5d1a8b97bda75e4eece9c91ff3286e3c3eca (diff) | |
download | scummvm-rg350-2dcda26eb1253d884d6a921a3f2ead76021b9bc4.tar.gz scummvm-rg350-2dcda26eb1253d884d6a921a3f2ead76021b9bc4.tar.bz2 scummvm-rg350-2dcda26eb1253d884d6a921a3f2ead76021b9bc4.zip |
TITANIC: Implement CBridgePiece message handlers
Diffstat (limited to 'engines/titanic/core/game_object.cpp')
-rw-r--r-- | engines/titanic/core/game_object.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index ba8ab42c68..e0ca5ff6b9 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -626,4 +626,22 @@ Found CGameObject::find(const CString &name, CGameObject **item, int findAreas) return FOUND_NONE; } +void CGameObject::moveToHiddenRoom() { + CPetControl *pet = getPetControl(); + if (pet) { + makeDirty(); + pet->moveToHiddenRoom(this); + } +} + +void CGameObject::moveToView() { + CViewItem *view = getGameManager()->getView(); + detach(); + view->addUnder(this); +} + +void CGameObject::incState38() { + getGameManager()->_gameState.inc38(); +} + } // End of namespace Titanic |