aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_section.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-25 16:41:31 -0400
committerPaul Gilbert2016-07-15 19:24:56 -0400
commit4ed93ca8f175d7a43c6a0de72ad02b42827938b7 (patch)
tree448c2cd5021192692041c967fc6571b29cd56f7f /engines/titanic/pet_control/pet_section.h
parent42c8ac1c880076c181071922aff3b923a185af98 (diff)
downloadscummvm-rg350-4ed93ca8f175d7a43c6a0de72ad02b42827938b7.tar.gz
scummvm-rg350-4ed93ca8f175d7a43c6a0de72ad02b42827938b7.tar.bz2
scummvm-rg350-4ed93ca8f175d7a43c6a0de72ad02b42827938b7.zip
TITANIC: Cleanup of PET section classes methods to match original
Diffstat (limited to 'engines/titanic/pet_control/pet_section.h')
-rw-r--r--engines/titanic/pet_control/pet_section.h32
1 files changed, 29 insertions, 3 deletions
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