aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_section.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-29 21:57:09 -0400
committerPaul Gilbert2016-03-29 21:57:09 -0400
commite0602c4851ab42763cc66858fed8d05496040498 (patch)
tree30f19c267243e163c2c4cc8e9c8478507e2211da /engines/titanic/pet_control/pet_section.h
parent8a45f47c2e1e483b5a17b2d4abe22473eaf1e143 (diff)
downloadscummvm-rg350-e0602c4851ab42763cc66858fed8d05496040498.tar.gz
scummvm-rg350-e0602c4851ab42763cc66858fed8d05496040498.tar.bz2
scummvm-rg350-e0602c4851ab42763cc66858fed8d05496040498.zip
TITANIC: More PET renaming, implemented setArea
Diffstat (limited to 'engines/titanic/pet_control/pet_section.h')
-rw-r--r--engines/titanic/pet_control/pet_section.h17
1 files changed, 15 insertions, 2 deletions
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() {}
/**