From 4ed93ca8f175d7a43c6a0de72ad02b42827938b7 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 25 Jun 2016 16:41:31 -0400 Subject: TITANIC: Cleanup of PET section classes methods to match original --- engines/titanic/pet_control/pet_section.h | 32 ++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 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 cf729b70a4..5ae86b785c 100644 --- a/engines/titanic/pet_control/pet_section.h +++ b/engines/titanic/pet_control/pet_section.h @@ -52,6 +52,21 @@ struct CPetSectionSubData { class CPetSection { public: CPetControl *_petControl; +protected: + /** + * Called when the current area is changed + */ + void areaChanged(PetArea area); + + /** + * Returns the name of the currently active NPC, if any + */ + CString getActiveNPCName() const; + + /** + * Create a color table + */ + void copyColors(uint tableNum, uint colors[5]); public: CPetSection() : _petControl(nullptr) {} virtual ~CPetSection() {} @@ -153,9 +168,20 @@ public: */ virtual CPetText *getText() { return nullptr; } - virtual void proc27(int duration); - virtual void proc28(); - virtual void proc29(); + /** + * Removes text after a given duration + */ + virtual void removeText(int duration); + + /** + * Removes text after a given duration + */ + virtual void removeText(); + + /** + * Stops the text removal timer + */ + virtual void stopTextTimer(); /** * Get an element from the section by a designated Id -- cgit v1.2.3