aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_control.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-06 23:28:42 -0400
committerPaul Gilbert2016-04-06 23:28:42 -0400
commit51dc36a9a52f95815b4b1109b080d070247bf247 (patch)
treed53d8c288a593fd897536f943debbd2d7b46275e /engines/titanic/pet_control/pet_control.h
parent51df4d98d3a066e092f34cf7968c436a3e430df2 (diff)
downloadscummvm-rg350-51dc36a9a52f95815b4b1109b080d070247bf247.tar.gz
scummvm-rg350-51dc36a9a52f95815b4b1109b080d070247bf247.tar.bz2
scummvm-rg350-51dc36a9a52f95815b4b1109b080d070247bf247.zip
TITANIC: Furhter in-progress message handling conversion
Diffstat (limited to 'engines/titanic/pet_control/pet_control.h')
-rw-r--r--engines/titanic/pet_control/pet_control.h30
1 files changed, 11 insertions, 19 deletions
diff --git a/engines/titanic/pet_control/pet_control.h b/engines/titanic/pet_control/pet_control.h
index 6f5b7948e3..172cec9bf7 100644
--- a/engines/titanic/pet_control/pet_control.h
+++ b/engines/titanic/pet_control/pet_control.h
@@ -39,16 +39,8 @@
namespace Titanic {
-class CPetControl : public CGameObject,
- public CMouseButtonDownMsgTarget,
- public CMouseDragStartMsgTarget,
- public CMouseDragMoveMsgTarget,
- public CMouseDragEndMsgTarget,
- public CMouseButtonUpMsgTarget,
- public CMouseDoubleClickMsgTarget,
- public CKeyCharMsgTarget,
- public CVirtualKeyCharMsgTarget,
- public CTimerMsgTarget {
+class CPetControl : public CGameObject {
+ DECLARE_MESSAGE_MAP
private:
int _fieldC0;
int _locked;
@@ -102,15 +94,15 @@ private:
bool getC0() const;
protected:
- bool handleMessage(CMouseButtonDownMsg &msg);
- bool handleMessage(CMouseDragStartMsg &msg);
- bool handleMessage(CMouseDragMoveMsg &msg);
- bool handleMessage(CMouseDragEndMsg &msg);
- bool handleMessage(CMouseButtonUpMsg &msg);
- bool handleMessage(CMouseDoubleClickMsg &msg);
- bool handleMessage(CKeyCharMsg &msg);
- bool handleMessage(CVirtualKeyCharMsg &msg);
- bool handleMessage(CTimerMsg &msg);
+ bool MouseButtonDownMsg(CMouseButtonDownMsg *msg);
+ bool MouseDragStartMsg(CMouseDragStartMsg *msg);
+ bool MouseDragMoveMsg(CMouseDragMoveMsg *msg);
+ bool MouseDragEndMsg(CMouseDragEndMsg *msg);
+ bool MouseButtonUpMsg(CMouseButtonUpMsg *msg);
+ bool MouseDoubleClickMsg(CMouseDoubleClickMsg *msg);
+ bool KeyCharMsg(CKeyCharMsg *msg);
+ bool VirtualKeyCharMsg(CVirtualKeyCharMsg *msg);
+ bool TimerMsg(CTimerMsg *msg);
public:
PetArea _currentArea;
public: