From a8d94d448ea977bdd5b1171e177de6dd714792a2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 17 Mar 2016 19:58:59 -0400 Subject: TITANIC: Fixes to make message handling const, adding CEnterRoomMsg handlers --- engines/titanic/npcs/barbot.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/titanic/npcs/barbot.h') diff --git a/engines/titanic/npcs/barbot.h b/engines/titanic/npcs/barbot.h index 7e2d323d46..160edd63d9 100644 --- a/engines/titanic/npcs/barbot.h +++ b/engines/titanic/npcs/barbot.h @@ -24,10 +24,11 @@ #define TITANIC_BARBOT_H #include "titanic/npcs/true_talk_npc.h" +#include "titanic/messages/messages.h" namespace Titanic { -class CBarbot : public CTrueTalkNPC { +class CBarbot : public CTrueTalkNPC, CEnterRoomMsgTarget { private: static int _v0; private: @@ -172,6 +173,8 @@ private: int _field338; int _field33C; int _field340; +protected: + virtual bool handleEvent(const CEnterRoomMsg &msg); public: CLASSDEF CBarbot(); -- cgit v1.2.3