From 447eb31a6c6abebcd72ff07bd5539aa17db86057 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 28 Mar 2016 18:46:41 -0400 Subject: TITANIC: Fleshed out CDeadArea class --- engines/titanic/game/dead_area.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/engines/titanic/game/dead_area.h b/engines/titanic/game/dead_area.h index 4abcd58dd9..c696c841c2 100644 --- a/engines/titanic/game/dead_area.h +++ b/engines/titanic/game/dead_area.h @@ -24,10 +24,19 @@ #define TITANIC_DEAD_AREA_H #include "titanic/core/game_object.h" +#include "titanic/messages/mouse_messages.h" namespace Titanic { -class CDeadArea : public CGameObject { +/** + * Implements a non-responsive screen area + */ +class CDeadArea : public CGameObject, + public CMouseButtonDownMsgTarget, + public CMouseButtonUpMsgTarget { +protected: + virtual bool handleMessage(CMouseButtonDownMsg &msg) { return true; } + virtual bool handleMessage(CMouseButtonUpMsg &msg) { return true; } public: CLASSDEF CDeadArea(); -- cgit v1.2.3