diff options
author | Paul Gilbert | 2016-03-17 20:55:32 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-17 20:55:32 -0400 |
commit | 12ae5e10f3a20b1b909a6ec40257e39e063b78c5 (patch) | |
tree | 936eff629cd96723faedf54b076006ec19b8c145 /engines/titanic/game/transport | |
parent | a8d94d448ea977bdd5b1171e177de6dd714792a2 (diff) | |
download | scummvm-rg350-12ae5e10f3a20b1b909a6ec40257e39e063b78c5.tar.gz scummvm-rg350-12ae5e10f3a20b1b909a6ec40257e39e063b78c5.tar.bz2 scummvm-rg350-12ae5e10f3a20b1b909a6ec40257e39e063b78c5.zip |
TITANIC: Added stubbed CEnterRoomMsg event handlers as needed
Diffstat (limited to 'engines/titanic/game/transport')
-rw-r--r-- | engines/titanic/game/transport/lift.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/transport/lift.h | 5 | ||||
-rw-r--r-- | engines/titanic/game/transport/lift_indicator.h | 5 | ||||
-rw-r--r-- | engines/titanic/game/transport/pellerator.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/transport/pellerator.h | 5 |
5 files changed, 22 insertions, 3 deletions
diff --git a/engines/titanic/game/transport/lift.cpp b/engines/titanic/game/transport/lift.cpp index 1e21b9f582..22201291aa 100644 --- a/engines/titanic/game/transport/lift.cpp +++ b/engines/titanic/game/transport/lift.cpp @@ -57,4 +57,9 @@ void CLift::load(SimpleFile *file) { CTransport::load(file); } +bool CLift::handleEvent(const CEnterRoomMsg &msg) { + warning("CLift::handleEvent"); + return true; +} + } // End of namespace Titanic diff --git a/engines/titanic/game/transport/lift.h b/engines/titanic/game/transport/lift.h index b1cd48960e..42a340c61f 100644 --- a/engines/titanic/game/transport/lift.h +++ b/engines/titanic/game/transport/lift.h @@ -24,10 +24,11 @@ #define TITANIC_LIFT_H #include "titanic/game/transport/transport.h" +#include "titanic/messages/messages.h" namespace Titanic { -class CLift : public CTransport { +class CLift : public CTransport, CEnterRoomMsgTarget { private: static int _v1; static int _v2; @@ -37,6 +38,8 @@ private: static int _v6; int _fieldF8; +protected: + virtual bool handleEvent(const CEnterRoomMsg &msg); public: CLASSDEF CLift() : CTransport(), _fieldF8(1) {} diff --git a/engines/titanic/game/transport/lift_indicator.h b/engines/titanic/game/transport/lift_indicator.h index 2fe6e1a61e..de913c56a5 100644 --- a/engines/titanic/game/transport/lift_indicator.h +++ b/engines/titanic/game/transport/lift_indicator.h @@ -24,15 +24,18 @@ #define TITANIC_LIFT_INDICATOR_H #include "titanic/game/transport/lift.h" +#include "titanic/messages/messages.h" namespace Titanic { -class CLiftindicator : public CLift { +class CLiftindicator : public CLift, CEnterRoomMsgTarget { private: int _fieldFC; Common::Point _pos2; int _field108; int _field10C; +protected: + virtual bool handleEvent(const CEnterRoomMsg &msg) { return true; } public: CLASSDEF CLiftindicator(); diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp index 400214a140..99c4db3160 100644 --- a/engines/titanic/game/transport/pellerator.cpp +++ b/engines/titanic/game/transport/pellerator.cpp @@ -43,4 +43,9 @@ void CPellerator::load(SimpleFile *file) { CTransport::load(file); } +bool CPellerator::handleEvent(const CEnterRoomMsg &msg) { + warning("CPellerator::handleEvent"); + return true; +} + } // End of namespace Titanic diff --git a/engines/titanic/game/transport/pellerator.h b/engines/titanic/game/transport/pellerator.h index e72cbb4b9d..502af2430a 100644 --- a/engines/titanic/game/transport/pellerator.h +++ b/engines/titanic/game/transport/pellerator.h @@ -24,13 +24,16 @@ #define TITANIC_PELLERATOR_H #include "titanic/game/transport/transport.h" +#include "titanic/messages/messages.h" namespace Titanic { -class CPellerator : public CTransport { +class CPellerator : public CTransport, CEnterRoomMsgTarget { private: static int _v1; static int _v2; +protected: + virtual bool handleEvent(const CEnterRoomMsg &msg); public: CLASSDEF |