aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/sgt
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/sgt
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/sgt')
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.cpp6
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/engines/titanic/game/sgt/sgt_state_room.cpp b/engines/titanic/game/sgt/sgt_state_room.cpp
index 9baae69afb..1a68131589 100644
--- a/engines/titanic/game/sgt/sgt_state_room.cpp
+++ b/engines/titanic/game/sgt/sgt_state_room.cpp
@@ -24,6 +24,10 @@
namespace Titanic {
+BEGIN_MESSAGE_MAP(CSGTStateRoom, CBackground)
+ ON_MESSAGE(EnterRoomMsg)
+END_MESSAGE_MAP()
+
CSGTStateRoomStatics *CSGTStateRoom::_statics;
void CSGTStateRoom::init() {
@@ -90,7 +94,7 @@ void CSGTStateRoom::load(SimpleFile *file) {
CBackground::load(file);
}
-bool CSGTStateRoom::handleMessage(CEnterRoomMsg &msg) {
+bool CSGTStateRoom::EnterRoomMsg(CEnterRoomMsg *msg) {
warning("CSGTStateRoom::handleEvent");
return true;
}
diff --git a/engines/titanic/game/sgt/sgt_state_room.h b/engines/titanic/game/sgt/sgt_state_room.h
index 7ae961145f..7b2b5a81f0 100644
--- a/engines/titanic/game/sgt/sgt_state_room.h
+++ b/engines/titanic/game/sgt/sgt_state_room.h
@@ -46,6 +46,8 @@ struct CSGTStateRoomStatics {
};
class CSGTStateRoom : public CBackground {
+ DECLARE_MESSAGE_MAP
+ bool EnterRoomMsg(CEnterRoomMsg *msg);
private:
static CSGTStateRoomStatics *_statics;
private:
@@ -54,8 +56,6 @@ private:
int _fieldE8;
int _fieldEC;
int _fieldF0;
-protected:
- virtual bool handleMessage(CEnterRoomMsg &msg);
public:
CLASSDEF
CSGTStateRoom();