diff options
| author | Paul Gilbert | 2016-04-07 19:55:27 -0400 | 
|---|---|---|
| committer | Paul Gilbert | 2016-04-07 19:55:27 -0400 | 
| commit | 41c08d186adc91111e9beccfeef80efb3fcc0fd6 (patch) | |
| tree | f922577ae900700e7e392db3f3d95e63c19f7b37 | |
| parent | 6fd32e6dc10e8b3332b0438c069a61f009185441 (diff) | |
| download | scummvm-rg350-41c08d186adc91111e9beccfeef80efb3fcc0fd6.tar.gz scummvm-rg350-41c08d186adc91111e9beccfeef80efb3fcc0fd6.tar.bz2 scummvm-rg350-41c08d186adc91111e9beccfeef80efb3fcc0fd6.zip | |
TITANIC: Implement CDeadArea messages
| -rw-r--r-- | engines/titanic/game/dead_area.cpp | 5 | ||||
| -rw-r--r-- | engines/titanic/game/dead_area.h | 5 | 
2 files changed, 8 insertions, 2 deletions
| diff --git a/engines/titanic/game/dead_area.cpp b/engines/titanic/game/dead_area.cpp index 1692d6b8d1..5d5b2d06aa 100644 --- a/engines/titanic/game/dead_area.cpp +++ b/engines/titanic/game/dead_area.cpp @@ -24,6 +24,11 @@  namespace Titanic { +BEGIN_MESSAGE_MAP(CDeadArea, CGameObject) +	ON_MESSAGE(MouseButtonDownMsg) +	ON_MESSAGE(MouseButtonUpMsg) +END_MESSAGE_MAP() +  CDeadArea::CDeadArea() : CGameObject() {  } diff --git a/engines/titanic/game/dead_area.h b/engines/titanic/game/dead_area.h index 6390475d4e..9a9de3ad92 100644 --- a/engines/titanic/game/dead_area.h +++ b/engines/titanic/game/dead_area.h @@ -32,9 +32,10 @@ namespace Titanic {   * Implements a non-responsive screen area   */  class CDeadArea : public CGameObject { +	DECLARE_MESSAGE_MAP  protected: -	virtual bool handleMessage(CMouseButtonDownMsg &msg) { return true; } -	virtual bool handleMessage(CMouseButtonUpMsg &msg) { return true; } +	virtual bool MouseButtonDownMsg(CMouseButtonDownMsg *msg) { return true; } +	virtual bool MouseButtonUpMsg(CMouseButtonUpMsg *msg) { return true; }  public:  	CLASSDEF  	CDeadArea(); | 
