diff options
author | Paul Gilbert | 2016-06-25 08:30:50 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:24:49 -0400 |
commit | bb567c6e1160615b647c27040743353df9311699 (patch) | |
tree | d6f75c5168572b566573e9aa5651e51cc84e497e /engines/titanic/pet_control/pet_glyphs.h | |
parent | 6f5f59af17290930ea75261c604471057e3b45e3 (diff) | |
download | scummvm-rg350-bb567c6e1160615b647c27040743353df9311699.tar.gz scummvm-rg350-bb567c6e1160615b647c27040743353df9311699.tar.bz2 scummvm-rg350-bb567c6e1160615b647c27040743353df9311699.zip |
TITANIC: Adding PET Inventory Glyph methods
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.h')
-rw-r--r-- | engines/titanic/pet_control/pet_glyphs.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/engines/titanic/pet_control/pet_glyphs.h b/engines/titanic/pet_control/pet_glyphs.h index 9dfe5ad3fa..e240cd1b86 100644 --- a/engines/titanic/pet_control/pet_glyphs.h +++ b/engines/titanic/pet_control/pet_glyphs.h @@ -76,12 +76,12 @@ public: /** * Called when the PET area is entered */ - virtual bool enter() { return false; } + virtual void enter() {} /** * Called when the PET area is left */ - virtual bool leave() { return false; } + virtual void leave() {} /** * Draw the glyph at a specified position @@ -151,7 +151,7 @@ public: /** * Glyph has been shifted to be first visible one */ - virtual void glyphFocused(const Point &pt, bool flag) {} + virtual void glyphFocused(const Point &topLeft, bool flag) {} /** * Selects a glyph @@ -180,7 +180,11 @@ public: virtual void saveGlyph(SimpleFile *file, int indent) {} virtual bool proc33(CPetGlyph *glyph) { return true; } - virtual int proc34() { return 1; } + + /** + * Return whether the glyph has an associated image + */ + virtual bool hasImage() const { return true; } /** * Called on a highlighted item when PET area is entered @@ -328,12 +332,12 @@ public: /** * Called when PET area is entered */ - virtual bool enter(); + virtual void enter(); /** * Called when PET area is left */ - virtual bool leave(); + virtual void leave(); void setFlags(int flags) { _flags = flags; } |