aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-28 23:30:43 -0400
committerPaul Gilbert2016-07-15 19:16:51 -0400
commit703bb288c17e207f083e75facc750f5c8c30a09e (patch)
tree5948855f96c2358a62cf73b3036f4823d784953b /engines/titanic/pet_control
parent063fd5c26a10a665e1cf1acb78696807d18dea8c (diff)
downloadscummvm-rg350-703bb288c17e207f083e75facc750f5c8c30a09e.tar.gz
scummvm-rg350-703bb288c17e207f083e75facc750f5c8c30a09e.tar.bz2
scummvm-rg350-703bb288c17e207f083e75facc750f5c8c30a09e.zip
TITANIC: Finished Deskbot message handlers
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r--engines/titanic/pet_control/pet_control.cpp8
-rw-r--r--engines/titanic/pet_control/pet_control.h6
-rw-r--r--engines/titanic/pet_control/pet_rooms.cpp9
-rw-r--r--engines/titanic/pet_control/pet_rooms.h7
4 files changed, 30 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp
index 1fd6549f9b..92ec3d6b03 100644
--- a/engines/titanic/pet_control/pet_control.cpp
+++ b/engines/titanic/pet_control/pet_control.cpp
@@ -516,4 +516,12 @@ CString CPetControl::getFullViewName() {
return gameManager ? gameManager->getFullViewName() : CString();
}
+void CPetControl::addRoom(int roomNum) {
+ _rooms.addRoom(roomNum);
+}
+
+int CPetControl::roomFn2(int val) {
+ return _rooms.fn2(val);
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/pet_control/pet_control.h b/engines/titanic/pet_control/pet_control.h
index 23b4f61721..1eedc0382f 100644
--- a/engines/titanic/pet_control/pet_control.h
+++ b/engines/titanic/pet_control/pet_control.h
@@ -293,6 +293,12 @@ public:
* room.node.view tuplet form
*/
CString getFullViewName();
+
+ /**
+ * Adds a room to the room list
+ */
+ void addRoom(int roomNum);
+ int roomFn2(int val);
};
} // End of namespace Titanic
diff --git a/engines/titanic/pet_control/pet_rooms.cpp b/engines/titanic/pet_control/pet_rooms.cpp
index acf9acfe24..a14258ebbf 100644
--- a/engines/titanic/pet_control/pet_rooms.cpp
+++ b/engines/titanic/pet_control/pet_rooms.cpp
@@ -202,6 +202,11 @@ int CPetRooms::fn1() {
return 0;
}
+int CPetRooms::fn2(int val) {
+ warning("TODO: CPetRooms::fn2");
+ return 0;
+}
+
void CPetRooms::areaChanged(PetArea area) {
if (_petControl && _petControl->_currentArea == area)
_petControl->makeDirty();
@@ -221,4 +226,8 @@ CPetRoomsGlyph *CPetRooms::addGlyph(int val, bool highlight) {
}
}
+void CPetRooms::addRoom(int roomNum) {
+ warning("TODO: CPetRooms::addRoom");
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/pet_control/pet_rooms.h b/engines/titanic/pet_control/pet_rooms.h
index 522a1e2399..515c9fb10d 100644
--- a/engines/titanic/pet_control/pet_rooms.h
+++ b/engines/titanic/pet_control/pet_rooms.h
@@ -147,6 +147,13 @@ public:
virtual CPetText *getText();
virtual CGameObject *getBackground(int index);
+
+ /**
+ * Adds a room to the room list
+ */
+ void addRoom(int roomNum);
+
+ int fn2(int val);
};
} // End of namespace Titanic