aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_inventory.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-23 10:26:15 -0400
committerPaul Gilbert2016-07-10 16:11:46 -0400
commit990f7b87c1b328b0cb2b663d37f4a1de50edf56c (patch)
treefa62e3661a60e64671a9156fc531bf85cfdd8c76 /engines/titanic/pet_control/pet_inventory.h
parentf79ebfa3e26cc748ef495a96da8acb9e005b3324 (diff)
downloadscummvm-rg350-990f7b87c1b328b0cb2b663d37f4a1de50edf56c.tar.gz
scummvm-rg350-990f7b87c1b328b0cb2b663d37f4a1de50edf56c.tar.bz2
scummvm-rg350-990f7b87c1b328b0cb2b663d37f4a1de50edf56c.zip
TITANIC: Sort out PET enter and leave methods
Diffstat (limited to 'engines/titanic/pet_control/pet_inventory.h')
-rw-r--r--engines/titanic/pet_control/pet_inventory.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_inventory.h b/engines/titanic/pet_control/pet_inventory.h
index 32cb47edf5..ed1b679c63 100644
--- a/engines/titanic/pet_control/pet_inventory.h
+++ b/engines/titanic/pet_control/pet_inventory.h
@@ -91,11 +91,27 @@ public:
*/
virtual CGameObject *dragEnd(const Point &pt) const;
+
/**
* Returns true if the object is in a valid state
*/
virtual bool isValid(CPetControl *petControl);
+ /**
+ * Called after a game has been loaded
+ */
+ virtual void postLoad();
+
+ /**
+ * Called when a section is switched to
+ */
+ virtual void enter(PetArea oldArea);
+
+ /**
+ * Called when a section is being left, to switch to another area
+ */
+ virtual void leave();
+
virtual CGameObject *getBackground(int index) const {
return (index >= 0 && index < 46) ? _itemBackgrounds[index] : nullptr;
}