diff options
author | Paul Gilbert | 2016-03-17 19:58:59 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-17 19:58:59 -0400 |
commit | a8d94d448ea977bdd5b1171e177de6dd714792a2 (patch) | |
tree | a9756367b569bcbba8f929c036ef943b48e483e0 /engines/titanic/npcs | |
parent | e80a15170640a495b5c7861abeea71d0325684cd (diff) | |
download | scummvm-rg350-a8d94d448ea977bdd5b1171e177de6dd714792a2.tar.gz scummvm-rg350-a8d94d448ea977bdd5b1171e177de6dd714792a2.tar.bz2 scummvm-rg350-a8d94d448ea977bdd5b1171e177de6dd714792a2.zip |
TITANIC: Fixes to make message handling const, adding CEnterRoomMsg handlers
Diffstat (limited to 'engines/titanic/npcs')
-rw-r--r-- | engines/titanic/npcs/barbot.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/npcs/barbot.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/engines/titanic/npcs/barbot.cpp b/engines/titanic/npcs/barbot.cpp index a460bdb672..c9a96b989b 100644 --- a/engines/titanic/npcs/barbot.cpp +++ b/engines/titanic/npcs/barbot.cpp @@ -233,4 +233,9 @@ void CBarbot::load(SimpleFile *file) { CTrueTalkNPC::load(file); } +bool CBarbot::handleEvent(const CEnterRoomMsg &msg) { + warning("TODO: Barbot::CEnterRoomMsg"); + return true; +} + } // End of namespace Titanic 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(); |