aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-17 19:58:59 -0400
committerPaul Gilbert2016-03-17 19:58:59 -0400
commita8d94d448ea977bdd5b1171e177de6dd714792a2 (patch)
treea9756367b569bcbba8f929c036ef943b48e483e0 /engines/titanic/sound
parente80a15170640a495b5c7861abeea71d0325684cd (diff)
downloadscummvm-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/sound')
-rw-r--r--engines/titanic/sound/auto_music_player.cpp8
-rw-r--r--engines/titanic/sound/auto_music_player.h5
2 files changed, 12 insertions, 1 deletions
diff --git a/engines/titanic/sound/auto_music_player.cpp b/engines/titanic/sound/auto_music_player.cpp
index 2040bfc20a..97c59d075d 100644
--- a/engines/titanic/sound/auto_music_player.cpp
+++ b/engines/titanic/sound/auto_music_player.cpp
@@ -41,4 +41,12 @@ void CAutoMusicPlayer::load(SimpleFile *file) {
CAutoMusicPlayerBase::load(file);
}
+bool CAutoMusicPlayer::handleEvent(const CEnterRoomMsg &msg) {
+ if (!_fieldCC) {
+ warning("TODO");
+ }
+
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/sound/auto_music_player.h b/engines/titanic/sound/auto_music_player.h
index cec8117dd9..6fdf3766c6 100644
--- a/engines/titanic/sound/auto_music_player.h
+++ b/engines/titanic/sound/auto_music_player.h
@@ -24,12 +24,15 @@
#define TITANIC_AUTO_MUSIC_PLAYER_H
#include "titanic/sound/auto_music_player_base.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
-class CAutoMusicPlayer : public CAutoMusicPlayerBase {
+class CAutoMusicPlayer : public CAutoMusicPlayerBase, CEnterRoomMsgTarget {
private:
CString _string2;
+protected:
+ virtual bool handleEvent(const CEnterRoomMsg &msg);
public:
CLASSDEF
CAutoMusicPlayer();