diff options
author | Paul Gilbert | 2016-04-18 11:36:39 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:29 -0400 |
commit | 47024115941c125452bb787758091686c91fc4fb (patch) | |
tree | 338d53d05c22902cdbf5ed9249e119e261f96d21 /engines/titanic/pet_control/pet_glyphs.h | |
parent | 5316951ba6e4403a388e49a1e23fc7858d1c3980 (diff) | |
download | scummvm-rg350-47024115941c125452bb787758091686c91fc4fb.tar.gz scummvm-rg350-47024115941c125452bb787758091686c91fc4fb.tar.bz2 scummvm-rg350-47024115941c125452bb787758091686c91fc4fb.zip |
TITANIC: Further cleanup of pet element setups
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.h')
-rw-r--r-- | engines/titanic/pet_control/pet_glyphs.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/titanic/pet_control/pet_glyphs.h b/engines/titanic/pet_control/pet_glyphs.h index 54abe9d72e..c9962bdb2a 100644 --- a/engines/titanic/pet_control/pet_glyphs.h +++ b/engines/titanic/pet_control/pet_glyphs.h @@ -47,6 +47,11 @@ public: }; class CPetGlyph : public ListItem { +protected: + /** + * Get the overall pet section owner + */ + CPetSection *getPetSection() const; public: CPetGfxElement _element; CPetGlyphs *_owner; @@ -64,11 +69,14 @@ public: void translateBack(const Point &pt) { _element.translate(-pt.x, -pt.y); } /** - * Set the glyph + * Setup the glyph */ - virtual void setOwner(CPetControl *petControl, CPetGlyphs *owner); + virtual void setup(CPetControl *petControl, CPetGlyphs *owner); - virtual int proc9() { return 0; } + /** + * Reset the glyph + */ + virtual bool reset() { return false; } virtual void proc10() {} virtual void proc11() {} @@ -202,6 +210,11 @@ public: * Highlight a specific glyph */ void highlight(int index); + + /** + * Get the owning section for the glyphs + */ + CPetSection *getOwner() const { return _owner; } }; } // End of namespace Titanic |