aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_glyphs.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-23 20:30:02 -0400
committerPaul Gilbert2016-07-10 16:11:53 -0400
commit2b1e045b5c57f1bae61bd3ffbd05577062f6f34c (patch)
tree4c5d5ad232a572dd7760dc6703b860e7fa98c19b /engines/titanic/pet_control/pet_glyphs.h
parentf6f68e547d39957fc4678859a95cbec839cc41e4 (diff)
downloadscummvm-rg350-2b1e045b5c57f1bae61bd3ffbd05577062f6f34c.tar.gz
scummvm-rg350-2b1e045b5c57f1bae61bd3ffbd05577062f6f34c.tar.bz2
scummvm-rg350-2b1e045b5c57f1bae61bd3ffbd05577062f6f34c.zip
TITANIC: Implemented remainder of CPetSound methods
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.h')
-rw-r--r--engines/titanic/pet_control/pet_glyphs.h30
1 files changed, 26 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_glyphs.h b/engines/titanic/pet_control/pet_glyphs.h
index c7966e5e6a..e4f4b1f59a 100644
--- a/engines/titanic/pet_control/pet_glyphs.h
+++ b/engines/titanic/pet_control/pet_glyphs.h
@@ -25,6 +25,7 @@
#include "common/keyboard.h"
#include "titanic/core/list.h"
+#include "titanic/messages/mouse_messages.h"
#include "titanic/pet_control/pet_gfx_element.h"
#include "titanic/support/rect.h"
@@ -125,9 +126,20 @@ public:
*/
virtual bool checkHighlight(const Point &pt) { return false; }
- virtual bool MouseDragStartMsg(const CMouseDragStartMsg *msg) { return false; }
- virtual int proc18() { return 0; }
- virtual int proc19() { return 0; }
+ /**
+ * Called when mouse drag starts
+ */
+ virtual bool MouseDragStartMsg(CMouseDragStartMsg *msg) { return false; }
+
+ /**
+ * Called during mouse drags
+ */
+ virtual bool MouseDragMoveMsg(CMouseDragMoveMsg *msg) { return false; }
+
+ /**
+ * Called when mouse drag ends
+ */
+ virtual bool MouseDragEndMsg(CMouseDragEndMsg *msg) { return false; }
/**
* Handles mouse button up messages
@@ -245,7 +257,7 @@ protected:
int _highlightIndex;
int _field1C;
int _flags;
- void *_field94;
+ CPetGlyph *_dragGlyph;
CPetSection *_owner;
CPetGfxElement _selection;
CPetGfxElement _scrollLeft;
@@ -357,6 +369,16 @@ public:
* glyph, if any
*/
bool leaveHighlighted();
+
+ /**
+ * Called when a dragging operation starts
+ */
+ void startDragging(CPetGlyph *glyph, CMouseDragStartMsg *msg);
+
+ /**
+ * Called when a dragging operation ends
+ */
+ void endDragging();
};
} // End of namespace Titanic