diff options
Diffstat (limited to 'engines/titanic/game/pet')
-rw-r--r-- | engines/titanic/game/pet/pet_monitor.cpp | 6 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_monitor.h | 4 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_position.cpp | 6 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_position.h | 4 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_transport.cpp | 6 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_transport.h | 4 |
6 files changed, 21 insertions, 9 deletions
diff --git a/engines/titanic/game/pet/pet_monitor.cpp b/engines/titanic/game/pet/pet_monitor.cpp index afe0836e65..ebbddd8587 100644 --- a/engines/titanic/game/pet/pet_monitor.cpp +++ b/engines/titanic/game/pet/pet_monitor.cpp @@ -24,6 +24,10 @@ namespace Titanic { +BEGIN_MESSAGE_MAP(CPETMonitor, CGameObject) + ON_MESSAGE(EnterRoomMsg) +END_MESSAGE_MAP() + void CPETMonitor::save(SimpleFile *file, int indent) const { file->writeNumberLine(1, indent); CGameObject::save(file, indent); @@ -34,7 +38,7 @@ void CPETMonitor::load(SimpleFile *file) { CGameObject::load(file); } -bool CPETMonitor::handleMessage(CEnterRoomMsg &msg) { +bool CPETMonitor::EnterRoomMsg(CEnterRoomMsg *msg) { warning("CPETMonitor::handleEvent"); return true; } diff --git a/engines/titanic/game/pet/pet_monitor.h b/engines/titanic/game/pet/pet_monitor.h index 56116d8313..a53f360ed1 100644 --- a/engines/titanic/game/pet/pet_monitor.h +++ b/engines/titanic/game/pet/pet_monitor.h @@ -29,8 +29,8 @@ namespace Titanic { class CPETMonitor : public CGameObject { -protected: - virtual bool handleMessage(CEnterRoomMsg &msg); + DECLARE_MESSAGE_MAP + bool EnterRoomMsg(CEnterRoomMsg *msg); public: CLASSDEF diff --git a/engines/titanic/game/pet/pet_position.cpp b/engines/titanic/game/pet/pet_position.cpp index e1dab2218f..66e8e36231 100644 --- a/engines/titanic/game/pet/pet_position.cpp +++ b/engines/titanic/game/pet/pet_position.cpp @@ -24,6 +24,10 @@ namespace Titanic { +BEGIN_MESSAGE_MAP(CPETPosition, CGameObject) + ON_MESSAGE(EnterRoomMsg) +END_MESSAGE_MAP() + void CPETPosition::save(SimpleFile *file, int indent) const { file->writeNumberLine(1, indent); CGameObject::save(file, indent); @@ -34,7 +38,7 @@ void CPETPosition::load(SimpleFile *file) { CGameObject::load(file); } -bool CPETPosition::handleMessage(CEnterRoomMsg &msg) { +bool CPETPosition::EnterRoomMsg(CEnterRoomMsg *msg) { warning("CPETPosition::handleEvent"); return true; } diff --git a/engines/titanic/game/pet/pet_position.h b/engines/titanic/game/pet/pet_position.h index 589f2b60b1..f4f0fd5299 100644 --- a/engines/titanic/game/pet/pet_position.h +++ b/engines/titanic/game/pet/pet_position.h @@ -29,8 +29,8 @@ namespace Titanic { class CPETPosition : public CGameObject { -protected: - virtual bool handleMessage(CEnterRoomMsg &msg); + DECLARE_MESSAGE_MAP + bool EnterRoomMsg(CEnterRoomMsg *msg); public: CLASSDEF diff --git a/engines/titanic/game/pet/pet_transport.cpp b/engines/titanic/game/pet/pet_transport.cpp index 36685676ac..bcbf319fd0 100644 --- a/engines/titanic/game/pet/pet_transport.cpp +++ b/engines/titanic/game/pet/pet_transport.cpp @@ -24,6 +24,10 @@ namespace Titanic { +BEGIN_MESSAGE_MAP(CPETTransport, CGameObject) + ON_MESSAGE(EnterRoomMsg) +END_MESSAGE_MAP() + void CPETTransport::save(SimpleFile *file, int indent) const { file->writeNumberLine(1, indent); CGameObject::save(file, indent); @@ -34,7 +38,7 @@ void CPETTransport::load(SimpleFile *file) { CGameObject::load(file); } -bool CPETTransport::handleMessage(CEnterRoomMsg &msg) { +bool CPETTransport::EnterRoomMsg(CEnterRoomMsg *msg) { warning("CPETTransport::handleEvent"); return true; } diff --git a/engines/titanic/game/pet/pet_transport.h b/engines/titanic/game/pet/pet_transport.h index 2c94bb6fe7..052fd7bda0 100644 --- a/engines/titanic/game/pet/pet_transport.h +++ b/engines/titanic/game/pet/pet_transport.h @@ -29,8 +29,8 @@ namespace Titanic { class CPETTransport : public CGameObject { -protected: - virtual bool handleMessage(CEnterRoomMsg &msg); + DECLARE_MESSAGE_MAP + virtual bool EnterRoomMsg(CEnterRoomMsg *msg); public: CLASSDEF |