From 2b1e045b5c57f1bae61bd3ffbd05577062f6f34c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 23 Apr 2016 20:30:02 -0400 Subject: TITANIC: Implemented remainder of CPetSound methods --- engines/titanic/pet_control/pet_glyphs.h | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) (limited to 'engines/titanic/pet_control/pet_glyphs.h') 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 -- cgit v1.2.3