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/pet_control | |
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/pet_control')
-rw-r--r-- | engines/titanic/pet_control/pet_control.cpp | 8 | ||||
-rw-r--r-- | engines/titanic/pet_control/pet_control.h | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp index 2f119be5d3..a955b085cc 100644 --- a/engines/titanic/pet_control/pet_control.cpp +++ b/engines/titanic/pet_control/pet_control.cpp @@ -369,4 +369,12 @@ void CPetControl::addToInventory(CCarry *item) { _inventory.addItem(item); } +void CPetControl::moveToHiddenRoom(CTreeItem *item) { + CRoomItem *room = getHiddenRoom(); + if (room) { + item->detach(); + room->addUnder(item); + } +} + } // End of namespace Titanic diff --git a/engines/titanic/pet_control/pet_control.h b/engines/titanic/pet_control/pet_control.h index 73dc69b0ab..88a738f2d8 100644 --- a/engines/titanic/pet_control/pet_control.h +++ b/engines/titanic/pet_control/pet_control.h @@ -217,6 +217,11 @@ public: * Adds an item to the PET inventory */ void addToInventory(CCarry *item); + + /** + * Moves a tree item from it's original position to be under the hidden room + */ + void moveToHiddenRoom(CTreeItem *item); }; } // End of namespace Titanic |