aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_glyphs.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-21 22:13:44 -0400
committerPaul Gilbert2016-07-10 16:11:38 -0400
commitb398a5001bb128c5e53d6ac5426b926de6b73893 (patch)
treeab3fd6f73bf07cf4e2f951ae788fba89f5361730 /engines/titanic/pet_control/pet_glyphs.h
parenta8f8e4b69eab768f38d5cd73ceecce03bd096a4d (diff)
downloadscummvm-rg350-b398a5001bb128c5e53d6ac5426b926de6b73893.tar.gz
scummvm-rg350-b398a5001bb128c5e53d6ac5426b926de6b73893.tar.bz2
scummvm-rg350-b398a5001bb128c5e53d6ac5426b926de6b73893.zip
TITANIC: Implementing CPetLoad and CPetSave
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.h')
-rw-r--r--engines/titanic/pet_control/pet_glyphs.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_glyphs.h b/engines/titanic/pet_control/pet_glyphs.h
index adc7ceb5e8..9d2f283af4 100644
--- a/engines/titanic/pet_control/pet_glyphs.h
+++ b/engines/titanic/pet_control/pet_glyphs.h
@@ -23,6 +23,7 @@
#ifndef TITANIC_PET_GLYPHS_H
#define TITANIC_PET_GLYPHS_H
+#include "common/keyboard.h"
#include "titanic/core/list.h"
#include "titanic/pet_control/pet_gfx_element.h"
#include "titanic/support/rect.h"
@@ -109,17 +110,41 @@ public:
*/
virtual Rect getBounds() { return Rect(); }
- virtual int proc16() { return 0; }
+ /**
+ * Checks and updates any highlight of the glyph or any contextual
+ * information it displays
+ */
+ virtual bool checkHighlight(const Point &pt) { return false; }
+
virtual int proc17() { return 0; }
virtual int proc18() { return 0; }
virtual int proc19() { return 0; }
+
+ /**
+ * Handles mouse button messages
+ */
virtual bool MouseButtonDownMsg(CMouseButtonDownMsg *msg) { return false; }
+
virtual int proc21() { return 0; }
virtual int proc22() { return 0; }
- virtual int proc23() { return 0; }
+
+ /**
+ * Handles keypresses when the glyph is focused
+ */
+ virtual bool KeyCharMsg(Common::KeyCode key) { return false; }
+
virtual int proc24() { return 0; }
- virtual void proc25() {}
- virtual void proc26() {}
+
+ /**
+ * Unhighlight any currently highlighted element
+ */
+ virtual void unhighlightCurrent() {}
+
+ /**
+ * Highlight any currently highlighted element
+ */
+ virtual void highlightCurrent() {}
+
virtual void proc27() {}
virtual void proc28() {}
virtual int proc29() { return 0; }