aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_section.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-30 23:55:15 -0400
committerPaul Gilbert2016-03-30 23:55:15 -0400
commitc33bdcc09ff9949dec9330fc245bb8f97546875a (patch)
treec896945a15834c4f68b635878f87ca8264d5fcce /engines/titanic/pet_control/pet_section.h
parent948fb5bcca3a8d8594fd9e1f5470dac0448f74a9 (diff)
downloadscummvm-rg350-c33bdcc09ff9949dec9330fc245bb8f97546875a.tar.gz
scummvm-rg350-c33bdcc09ff9949dec9330fc245bb8f97546875a.tar.bz2
scummvm-rg350-c33bdcc09ff9949dec9330fc245bb8f97546875a.zip
TITANIC: Fleshing out CPetFrame
Diffstat (limited to 'engines/titanic/pet_control/pet_section.h')
-rw-r--r--engines/titanic/pet_control/pet_section.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/engines/titanic/pet_control/pet_section.h b/engines/titanic/pet_control/pet_section.h
index 12e462640c..77535662a6 100644
--- a/engines/titanic/pet_control/pet_section.h
+++ b/engines/titanic/pet_control/pet_section.h
@@ -32,6 +32,7 @@ enum PetArea {
PET_ROOMS = 3, PET_SAVE = 4, PET_5 = 5, PET_6 = 6
};
+class CPetControl;
class CScreenManager;
class CRoomItem;
@@ -47,14 +48,26 @@ struct CPetSectionSubData {
class CPetSection {
protected:
- int _field4;
+ CPetControl *_petControl;
public:
- CPetSection() : _field4(0) {}
+ CPetSection() : _petControl(nullptr) {}
virtual ~CPetSection() {}
- virtual int proc1() { return 0; }
- virtual int proc2() { return 0; }
+ /**
+ * Sets up the section
+ */
+ virtual bool setup(CPetControl *petControl) { return false; }
+
+ /**
+ * Sets up the section
+ */
+ virtual bool setup() { return false; }
+
+ /**
+ * Draw the section
+ */
virtual void draw(CScreenManager *screenManager) {}
+
virtual void proc4();
virtual void proc5(int val) {}
virtual int proc6() { return 0; }
@@ -72,7 +85,7 @@ public:
/**
* Returns true if the object is in a valid state
*/
- virtual bool isValid() const { return false; }
+ virtual bool isValid(CPetControl *petControl) { return false; }
/**
* Load the data for the class from file