aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/core')
-rw-r--r--engines/titanic/core/game_object.cpp5
-rw-r--r--engines/titanic/core/game_object.h14
2 files changed, 9 insertions, 10 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp
index f0fd08ae94..735caad288 100644
--- a/engines/titanic/core/game_object.cpp
+++ b/engines/titanic/core/game_object.cpp
@@ -1062,11 +1062,10 @@ int CGameObject::petGetRooms1D0() const {
return petControl ? petControl->getRooms1D0() : 0;
}
-void CGameObject::petAddRandomRoom(int passClassNum) {
+void CGameObject::reassignRoom(int passClassNum) {
CPetControl *petControl = getPetControl();
if (petControl)
- petControl->addRandomRoom(passClassNum);
+ petControl->reassignRoom(passClassNum);
}
-
} // End of namespace Titanic
diff --git a/engines/titanic/core/game_object.h b/engines/titanic/core/game_object.h
index 0a6070463f..059b705700 100644
--- a/engines/titanic/core/game_object.h
+++ b/engines/titanic/core/game_object.h
@@ -271,11 +271,6 @@ protected:
void endTalking(CTrueTalkNPC *npc, uint id, CViewItem *view = nullptr);
/**
- * Load the surface
- */
- void loadSurface();
-
- /**
* Change the view
*/
bool changeView(const CString &viewName, const CString &clipName);
@@ -529,6 +524,11 @@ public:
void loadFrame(int frameNumber);
/**
+ * Load the surface
+ */
+ void loadSurface();
+
+ /**
* Marks the area occupied by the object as dirty, requiring re-rendering
*/
void makeDirty();
@@ -570,9 +570,9 @@ public:
int petGetRooms1D0() const;
/**
- * Adds a random room to the pET
+ * Gives the player a new assigned room in the specified passenger class
*/
- void petAddRandomRoom(int passClassNum);
+ void reassignRoom(int passClassNum);
};
} // End of namespace Titanic