diff options
author | Paul Gilbert | 2016-04-23 10:26:15 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:46 -0400 |
commit | 990f7b87c1b328b0cb2b663d37f4a1de50edf56c (patch) | |
tree | fa62e3661a60e64671a9156fc531bf85cfdd8c76 /engines/titanic/pet_control/pet_inventory.h | |
parent | f79ebfa3e26cc748ef495a96da8acb9e005b3324 (diff) | |
download | scummvm-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.h | 16 |
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; } |