aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/start_action.cpp
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/start_action.cpp
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/start_action.cpp')
-rw-r--r--engines/titanic/game/start_action.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/titanic/game/start_action.cpp b/engines/titanic/game/start_action.cpp
index 05ceb9d0b0..e41b7df4bf 100644
--- a/engines/titanic/game/start_action.cpp
+++ b/engines/titanic/game/start_action.cpp
@@ -25,6 +25,11 @@
namespace Titanic {
+BEGIN_MESSAGE_MAP(CStartAction, CBackground)
+ ON_MESSAGE(MouseButtonDownMsg)
+ ON_MESSAGE(MouseButtonUpMsg)
+END_MESSAGE_MAP()
+
CStartAction::CStartAction() : CBackground() {
}
@@ -44,7 +49,7 @@ void CStartAction::load(SimpleFile *file) {
CBackground::load(file);
}
-bool CStartAction::handleMessage(CMouseButtonDownMsg &msg) {
+bool CStartAction::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
// Dispatch the desired action to the desired target
CActMsg actMsg(_msgAction);
actMsg.execute(_msgTarget);
@@ -52,7 +57,7 @@ bool CStartAction::handleMessage(CMouseButtonDownMsg &msg) {
return true;
}
-bool CStartAction::handleMessage(CMouseButtonUpMsg &msg) {
+bool CStartAction::MouseButtonUpMsg(CMouseButtonUpMsg *msg) {
return true;
}