From 703bb288c17e207f083e75facc750f5c8c30a09e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 28 May 2016 23:30:43 -0400 Subject: TITANIC: Finished Deskbot message handlers --- engines/titanic/pet_control/pet_control.cpp | 8 ++++++++ engines/titanic/pet_control/pet_control.h | 6 ++++++ engines/titanic/pet_control/pet_rooms.cpp | 9 +++++++++ engines/titanic/pet_control/pet_rooms.h | 7 +++++++ 4 files changed, 30 insertions(+) (limited to 'engines/titanic/pet_control') 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 -- cgit v1.2.3