aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/pet
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-07 22:03:35 -0400
committerPaul Gilbert2016-04-07 22:03:35 -0400
commit9f1bab55972b8a6f88b83c2391c40a038ffb509d (patch)
treef56c6af8d5606cba208b1663662597ff3861a356 /engines/titanic/game/pet
parent41c08d186adc91111e9beccfeef80efb3fcc0fd6 (diff)
downloadscummvm-rg350-9f1bab55972b8a6f88b83c2391c40a038ffb509d.tar.gz
scummvm-rg350-9f1bab55972b8a6f88b83c2391c40a038ffb509d.tar.bz2
scummvm-rg350-9f1bab55972b8a6f88b83c2391c40a038ffb509d.zip
TITANIC: Converting other message stubs to new format
Diffstat (limited to 'engines/titanic/game/pet')
-rw-r--r--engines/titanic/game/pet/pet_monitor.cpp6
-rw-r--r--engines/titanic/game/pet/pet_monitor.h4
-rw-r--r--engines/titanic/game/pet/pet_position.cpp6
-rw-r--r--engines/titanic/game/pet/pet_position.h4
-rw-r--r--engines/titanic/game/pet/pet_transport.cpp6
-rw-r--r--engines/titanic/game/pet/pet_transport.h4
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