aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_control.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-24 08:15:51 -0400
committerPaul Gilbert2016-07-10 16:11:58 -0400
commitaf06188baedf10247893c6f964462c74eac5f446 (patch)
treec4d2ef57fce6e3bd13db1d584c7f6df24f8db4cc /engines/titanic/pet_control/pet_control.cpp
parent4180e85bc0da500c347a3c5076ec7e6921e8daff (diff)
downloadscummvm-rg350-af06188baedf10247893c6f964462c74eac5f446.tar.gz
scummvm-rg350-af06188baedf10247893c6f964462c74eac5f446.tar.bz2
scummvm-rg350-af06188baedf10247893c6f964462c74eac5f446.zip
TITANIC: Implementing CPetRooms methods
Diffstat (limited to 'engines/titanic/pet_control/pet_control.cpp')
-rw-r--r--engines/titanic/pet_control/pet_control.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp
index 145543fb07..98887f60d2 100644
--- a/engines/titanic/pet_control/pet_control.cpp
+++ b/engines/titanic/pet_control/pet_control.cpp
@@ -431,4 +431,9 @@ void CPetControl::playSound(int soundNum) {
}
}
+CString CPetControl::getRoomName() const {
+ CRoomItem *room = getRoom();
+ return room ? room->getName() : CString();
+}
+
} // End of namespace Titanic