diff options
Diffstat (limited to 'engines/titanic/moves')
-rw-r--r-- | engines/titanic/moves/enter_bridge.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/moves/enter_bridge.h | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/engines/titanic/moves/enter_bridge.cpp b/engines/titanic/moves/enter_bridge.cpp index a1e0b7e489..6f8ba4cd41 100644 --- a/engines/titanic/moves/enter_bridge.cpp +++ b/engines/titanic/moves/enter_bridge.cpp @@ -36,4 +36,9 @@ void CEnterBridge::load(SimpleFile *file) { CGameObject::load(file); } +bool CEnterBridge::handleEvent(const CEnterRoomMsg &msg) { + warning("CEnterBridge::handlEvent"); + return true; +} + } // End of namespace Titanic diff --git a/engines/titanic/moves/enter_bridge.h b/engines/titanic/moves/enter_bridge.h index 6a6e7161dd..3685bed8a1 100644 --- a/engines/titanic/moves/enter_bridge.h +++ b/engines/titanic/moves/enter_bridge.h @@ -24,12 +24,15 @@ #define TITANIC_ENTER_BRIDGE_H #include "titanic/core/game_object.h" +#include "titanic/messages/messages.h" namespace Titanic { -class CEnterBridge : public CGameObject { -public: +class CEnterBridge : public CGameObject, CEnterRoomMsgTarget { +private: int _value; +protected: + virtual bool handleEvent(const CEnterRoomMsg &msg); public: CLASSDEF CEnterBridge() : CGameObject(), _value(1) {} |