diff options
Diffstat (limited to 'engines/titanic/game/pet')
-rw-r--r-- | engines/titanic/game/pet/pet_monitor.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_monitor.h | 5 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_position.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_position.h | 5 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_transport.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_transport.h | 5 |
6 files changed, 27 insertions, 3 deletions
diff --git a/engines/titanic/game/pet/pet_monitor.cpp b/engines/titanic/game/pet/pet_monitor.cpp index 534fb3fb03..649ac978e9 100644 --- a/engines/titanic/game/pet/pet_monitor.cpp +++ b/engines/titanic/game/pet/pet_monitor.cpp @@ -34,4 +34,9 @@ void CPETMonitor::load(SimpleFile *file) { CGameObject::load(file); } +bool CPETMonitor::handleEvent(const CEnterRoomMsg &msg) { + warning("CPETMonitor::handleEvent"); + return true; +} + } // End of namespace Titanic diff --git a/engines/titanic/game/pet/pet_monitor.h b/engines/titanic/game/pet/pet_monitor.h index ff2209802d..97961ee929 100644 --- a/engines/titanic/game/pet/pet_monitor.h +++ b/engines/titanic/game/pet/pet_monitor.h @@ -24,10 +24,13 @@ #define TITANIC_PET_MONITOR_H #include "titanic/core/game_object.h" +#include "titanic/messages/messages.h" namespace Titanic { -class CPETMonitor : public CGameObject { +class CPETMonitor : public CGameObject, CEnterRoomMsgTarget { +protected: + virtual bool handleEvent(const CEnterRoomMsg &msg); public: CLASSDEF diff --git a/engines/titanic/game/pet/pet_position.cpp b/engines/titanic/game/pet/pet_position.cpp index 80ccec74cd..aafc21beb2 100644 --- a/engines/titanic/game/pet/pet_position.cpp +++ b/engines/titanic/game/pet/pet_position.cpp @@ -34,4 +34,9 @@ void CPETPosition::load(SimpleFile *file) { CGameObject::load(file); } +bool CPETPosition::handleEvent(const CEnterRoomMsg &msg) { + warning("CPETPosition::handleEvent"); + return true; +} + } // End of namespace Titanic diff --git a/engines/titanic/game/pet/pet_position.h b/engines/titanic/game/pet/pet_position.h index 407a42f0ae..d72f42ca3a 100644 --- a/engines/titanic/game/pet/pet_position.h +++ b/engines/titanic/game/pet/pet_position.h @@ -24,10 +24,13 @@ #define TITANIC_PET_POSITION_H #include "titanic/core/game_object.h" +#include "titanic/messages/messages.h" namespace Titanic { -class CPETPosition : public CGameObject { +class CPETPosition : public CGameObject, CEnterRoomMsgTarget { +protected: + virtual bool handleEvent(const CEnterRoomMsg &msg); public: CLASSDEF diff --git a/engines/titanic/game/pet/pet_transport.cpp b/engines/titanic/game/pet/pet_transport.cpp index 037e0b3278..40cc155c5b 100644 --- a/engines/titanic/game/pet/pet_transport.cpp +++ b/engines/titanic/game/pet/pet_transport.cpp @@ -34,4 +34,9 @@ void CPETTransport::load(SimpleFile *file) { CGameObject::load(file); } +bool CPETTransport::handleEvent(const CEnterRoomMsg &msg) { + warning("CPETTransport::handleEvent"); + return true; +} + } // End of namespace Titanic diff --git a/engines/titanic/game/pet/pet_transport.h b/engines/titanic/game/pet/pet_transport.h index 1aa6df8ced..1eb48322e2 100644 --- a/engines/titanic/game/pet/pet_transport.h +++ b/engines/titanic/game/pet/pet_transport.h @@ -24,10 +24,13 @@ #define TITANIC_PET_TRANSPORT_H #include "titanic/core/game_object.h" +#include "titanic/messages/messages.h" namespace Titanic { -class CPETTransport : public CGameObject { +class CPETTransport : public CGameObject, CEnterRoomMsgTarget { +protected: + virtual bool handleEvent(const CEnterRoomMsg &msg); public: CLASSDEF |