diff options
author | Paul Gilbert | 2016-03-07 08:11:06 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-03-07 08:11:06 -0500 |
commit | 3103c9aaa9d14a5f6ad360eab2637c0be3141428 (patch) | |
tree | db2e989a7c8e28687a663ebd2c02670bb3508ec6 /engines/titanic/game | |
parent | fbcd4de457cfa18d121158e6be45ade57a3428f1 (diff) | |
download | scummvm-rg350-3103c9aaa9d14a5f6ad360eab2637c0be3141428.tar.gz scummvm-rg350-3103c9aaa9d14a5f6ad360eab2637c0be3141428.tar.bz2 scummvm-rg350-3103c9aaa9d14a5f6ad360eab2637c0be3141428.zip |
TITANIC: Implemented message target classes
Diffstat (limited to 'engines/titanic/game')
-rw-r--r-- | engines/titanic/game/arboretum_gate.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/titanic/game/arboretum_gate.h b/engines/titanic/game/arboretum_gate.h index eb82333f8f..2c2b81feab 100644 --- a/engines/titanic/game/arboretum_gate.h +++ b/engines/titanic/game/arboretum_gate.h @@ -24,15 +24,20 @@ #define TITANIC_ARBORETUM_GATE_H #include "titanic/core/background.h" +#include "titanic/messages/messages.h" +#include "titanic/messages/mouse_messages.h" namespace Titanic { -class CArboretumGate : public CBackground { -public: +class CArboretumGate : public CBackground, public CActMsgTarget, + public CLeaveViewMsgTarget, public CTurnOffTarget, + public CMouseButtonDownMsgTarget, public CEnterViewMsgTarget, + public CTurnOnTarget, public CMovieEndMsgTarget { +private: static int _v1; static int _v2; static int _v3; -public: +private: int _fieldE0; CString _string1; int _fieldE8; @@ -63,6 +68,14 @@ public: int _field14C; int _field150; CString _string2; +protected: + virtual bool handleEvent(const CActMsg &msg) { return false; } + virtual bool handleEvent(const CLeaveViewMsg &msg) { return false; } + virtual bool handleEvent(const CTurnOff &msg) { return false; } + virtual bool handleEvent(const CMouseButtonDownMsg &msg) { return false; } + virtual bool handleEvent(const CEnterViewMsg &msg) { return false; } + virtual bool handleEvent(const CTurnOn &msg) { return false; } + virtual bool handleEvent(const CMovieEndMsg &msg) { return false; } public: CLASSDEF CArboretumGate(); |