aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core/game_object.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-14 22:31:33 -0400
committerPaul Gilbert2016-07-10 16:11:09 -0400
commit2dcda26eb1253d884d6a921a3f2ead76021b9bc4 (patch)
tree304f4bf8bf69b3325cc7e06a099a9a6de884448d /engines/titanic/core/game_object.cpp
parent7ddd5d1a8b97bda75e4eece9c91ff3286e3c3eca (diff)
downloadscummvm-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.cpp18
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