From 1f4eca3d061d85cdc11a8e20834c14de082baedc Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 28 May 2016 18:50:54 -0400 Subject: TITANIC: Message handler stubs for CDeskbot --- engines/titanic/npcs/deskbot.cpp | 69 ++++++++++++++++++++++++++++++++++++++++ engines/titanic/npcs/deskbot.h | 12 +++++++ 2 files changed, 81 insertions(+) diff --git a/engines/titanic/npcs/deskbot.cpp b/engines/titanic/npcs/deskbot.cpp index c4745ae8d6..e0e147fabf 100644 --- a/engines/titanic/npcs/deskbot.cpp +++ b/engines/titanic/npcs/deskbot.cpp @@ -24,6 +24,20 @@ namespace Titanic { +BEGIN_MESSAGE_MAP(CDeskbot, CTrueTalkNPC) + ON_MESSAGE(TurnOn) + ON_MESSAGE(EnterViewMsg) + ON_MESSAGE(ActMsg) + ON_MESSAGE(MovieEndMsg) + ON_MESSAGE(LeaveViewMsg) + ON_MESSAGE(TrueTalkTriggerActionMsg) + ON_MESSAGE(NPCPlayTalkingAnimationMsg) + ON_MESSAGE(NPCPlayIdleAnimationMsg) + ON_MESSAGE(TrueTalkNotifySpeechStartedMsg) + ON_MESSAGE(TrueTalkNotifySpeechEndedMsg) + ON_MESSAGE(TurnOff) +END_MESSAGE_MAP() + int CDeskbot::_v1; int CDeskbot::_v2; @@ -50,4 +64,59 @@ void CDeskbot::load(SimpleFile *file) { CTrueTalkNPC::load(file); } +bool CDeskbot::TurnOn(CTurnOn *msg) { + // TODO + return true; +} + +bool CDeskbot::EnterViewMsg(CEnterViewMsg *msg) { + // TODO + return true; +} + +bool CDeskbot::ActMsg(CActMsg *msg) { + // TODO + return true; +} + +bool CDeskbot::MovieEndMsg(CMovieEndMsg *msg) { + // TODO + return true; +} + +bool CDeskbot::LeaveViewMsg(CLeaveViewMsg *msg) { + // TODO + return true; +} + +bool CDeskbot::TrueTalkTriggerActionMsg(CTrueTalkTriggerActionMsg *msg) { + // TODO + return true; +} + +bool CDeskbot::NPCPlayTalkingAnimationMsg(CNPCPlayTalkingAnimationMsg *msg) { + // TODO + return true; +} + +bool CDeskbot::NPCPlayIdleAnimationMsg(CNPCPlayIdleAnimationMsg *msg) { + // TODO + return true; +} + +bool CDeskbot::TrueTalkNotifySpeechStartedMsg(CTrueTalkNotifySpeechStartedMsg *msg) { + // TODO + return true; +} + +bool CDeskbot::TrueTalkNotifySpeechEndedMsg(CTrueTalkNotifySpeechEndedMsg *msg) { + // TODO + return true; +} + +bool CDeskbot::TurnOff(CTurnOff *msg) { + // TODO + return true; +} + } // End of namespace Titanic diff --git a/engines/titanic/npcs/deskbot.h b/engines/titanic/npcs/deskbot.h index 50c3e3fb46..2711e9cc43 100644 --- a/engines/titanic/npcs/deskbot.h +++ b/engines/titanic/npcs/deskbot.h @@ -28,6 +28,18 @@ namespace Titanic { class CDeskbot : public CTrueTalkNPC { + DECLARE_MESSAGE_MAP + bool TurnOn(CTurnOn *msg); + bool EnterViewMsg(CEnterViewMsg *msg); + bool ActMsg(CActMsg *msg); + bool MovieEndMsg(CMovieEndMsg *msg); + bool LeaveViewMsg(CLeaveViewMsg *msg); + bool TrueTalkTriggerActionMsg(CTrueTalkTriggerActionMsg *msg); + bool NPCPlayTalkingAnimationMsg(CNPCPlayTalkingAnimationMsg *msg); + bool NPCPlayIdleAnimationMsg(CNPCPlayIdleAnimationMsg *msg); + bool TrueTalkNotifySpeechStartedMsg(CTrueTalkNotifySpeechStartedMsg *msg); + bool TrueTalkNotifySpeechEndedMsg(CTrueTalkNotifySpeechEndedMsg *msg); + bool TurnOff(CTurnOff *msg); private: static int _v1; static int _v2; -- cgit v1.2.3