diff options
author | Paul Gilbert | 2016-03-31 23:25:19 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-31 23:25:19 -0400 |
commit | 18fabbb2d40ce9456d4673c0b7c602f50458b583 (patch) | |
tree | f8b3c54d774b89a7abe5c2c24c2a88375f3a7847 /engines/titanic/pet_control/pet_control.h | |
parent | 5923ee5001af91d1ca9294b1fead56ec04ece7df (diff) | |
download | scummvm-rg350-18fabbb2d40ce9456d4673c0b7c602f50458b583.tar.gz scummvm-rg350-18fabbb2d40ce9456d4673c0b7c602f50458b583.tar.bz2 scummvm-rg350-18fabbb2d40ce9456d4673c0b7c602f50458b583.zip |
TITANIC: Beginnings of PET event handling code
Diffstat (limited to 'engines/titanic/pet_control/pet_control.h')
-rw-r--r-- | engines/titanic/pet_control/pet_control.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_control.h b/engines/titanic/pet_control/pet_control.h index 24ab78a963..be3b4a6118 100644 --- a/engines/titanic/pet_control/pet_control.h +++ b/engines/titanic/pet_control/pet_control.h @@ -26,6 +26,8 @@ #include "titanic/core/game_object.h" #include "titanic/core/node_item.h" #include "titanic/core/room_item.h" +#include "titanic/messages/messages.h" +#include "titanic/messages/mouse_messages.h" #include "titanic/pet_control/pet_conversation_section.h" #include "titanic/pet_control/pet_frame.h" #include "titanic/pet_control/pet_inventory_section.h" @@ -37,7 +39,16 @@ namespace Titanic { -class CPetControl : public CGameObject { +class CPetControl : public CGameObject, + public CMouseButtonDownMsgTarget, + public CMouseDragStartMsgTarget, + public CMouseDragMoveMsgTarget, + public CMouseDragEndMsgTarget, + public CMouseButtonUpMsgTarget, + public CMouseDoubleClickMsgTarget, + public CKeyCharMsgTarget, + public CVirtualKeyCharMsgTarget, + public CTimerMsgTarget { private: int _fieldC0; int _locked; @@ -86,6 +97,18 @@ private: * Returns true if the draw bounds contains the specified point */ bool containsPt(const Common::Point &pt) const; + + 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); public: PetArea _currentArea; public: |