diff options
author | Paul Gilbert | 2016-06-23 21:22:59 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:24:22 -0400 |
commit | 5b98885f8797d5c36336a22a9399611b11a3715f (patch) | |
tree | 48c087f9fa697bb5375c3d6ff0441f8d5343e8cc /engines/titanic/pet_control/pet_control.h | |
parent | f7d6db05e849855cbd17a60c3bbc3b1e96d1453a (diff) | |
download | scummvm-rg350-5b98885f8797d5c36336a22a9399611b11a3715f.tar.gz scummvm-rg350-5b98885f8797d5c36336a22a9399611b11a3715f.tar.bz2 scummvm-rg350-5b98885f8797d5c36336a22a9399611b11a3715f.zip |
TITANIC: Figured out PET Room Glyph modes
Diffstat (limited to 'engines/titanic/pet_control/pet_control.h')
-rw-r--r-- | engines/titanic/pet_control/pet_control.h | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/engines/titanic/pet_control/pet_control.h b/engines/titanic/pet_control/pet_control.h index 3881bda78f..8093152089 100644 --- a/engines/titanic/pet_control/pet_control.h +++ b/engines/titanic/pet_control/pet_control.h @@ -251,12 +251,12 @@ public: /** * Adds an item to the PET inventory */ - void addToInventory(CCarry *item); + void addToInventory(CGameObject *item); /** * Remove an item from the inventory */ - void removeFromInventory(CCarry *item, CTreeItem *newParent, + void removeFromInventory(CGameObject *item, CTreeItem *newParent, bool refreshUI = true, bool sendMsg = true); /** @@ -324,10 +324,10 @@ public: /* CPetRooms methods */ /** - * Adds a random room to the room list + * Gives the player a new assigned room in the specified passenger class */ - void addRandomRoom(int passClassNum) { - _rooms.addRandomRoom(passClassNum); + void reassignRoom(int passClassNum) { + _rooms.reassignRoom(passClassNum); } /** @@ -410,8 +410,8 @@ public: _rooms.resetHighlight(); } - int getRoomsMode1Flags() const { - return _rooms.mode1Flags(); + int getAssignedRoomFlags() const { + return _rooms.getAssignedRoomFlags(); } uint getSpecialRoomFlags(const CString &name) { @@ -427,14 +427,25 @@ public: return CRoomFlags(roomFlags).not5(); } - int getRoomsRoomNum1() const { - return _rooms.getMode1RoomNum(); + /** + * Returns the room number for the player's currently assigned room + */ + int getAssignedRoomNum() const { + return _rooms.getAssignedRoomNum(); } - int getRoomsFloorNum1() const { - return _rooms.getMode1FloorNum(); + + /** + * Returns the floor number for the player's currently assigned room + */ + int getAssignedFloorNum() const { + return _rooms.getAssignedFloorNum(); } + + /** + * Returns the elevator number for the player's currently assigned room + */ int getRoomsElevatorNum1() const { - return _rooms.getMode1ElevatorNum(); + return _rooms.getAssignedElevatorNum(); } void setRooms1D4(int val) { |