From e0602c4851ab42763cc66858fed8d05496040498 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 29 Mar 2016 21:57:09 -0400 Subject: TITANIC: More PET renaming, implemented setArea --- engines/titanic/pet_control/pet_section.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'engines/titanic/pet_control/pet_section.h') diff --git a/engines/titanic/pet_control/pet_section.h b/engines/titanic/pet_control/pet_section.h index d3006f5ad6..ceada29709 100644 --- a/engines/titanic/pet_control/pet_section.h +++ b/engines/titanic/pet_control/pet_section.h @@ -28,6 +28,11 @@ namespace Titanic { +enum PetArea { + PET_INVENTORY = 0, PET_CONVERSATION = 1, PET_REMOTE = 2, + PET_ROOMS = 3, PET_SAVE = 4, PET_5 = 5, PET_6 = 6 +}; + struct CPetSectionSubData { int _field0; int _field4; @@ -79,8 +84,16 @@ public: */ virtual void save(SimpleFile *file, int indent) const {} - virtual void proc21() {} - virtual void proc22() {} + /** + * 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 void proc23() {} /** -- cgit v1.2.3