diff options
author | Paul Gilbert | 2016-08-12 23:53:18 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-12 23:53:18 -0400 |
commit | 6a9923ec07d019cbbf8c35e36030391dac256e79 (patch) | |
tree | 0779d0d2489a9f6fda7f9c3e17484213d53d752e /engines/titanic/messages/auto_sound_event.cpp | |
parent | 4f8c31ecf7c8ac71e1be65771ce508fb11c62749 (diff) | |
download | scummvm-rg350-6a9923ec07d019cbbf8c35e36030391dac256e79.tar.gz scummvm-rg350-6a9923ec07d019cbbf8c35e36030391dac256e79.tar.bz2 scummvm-rg350-6a9923ec07d019cbbf8c35e36030391dac256e79.zip |
TITANIC: Implemented some game object classes
Diffstat (limited to 'engines/titanic/messages/auto_sound_event.cpp')
-rw-r--r-- | engines/titanic/messages/auto_sound_event.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/titanic/messages/auto_sound_event.cpp b/engines/titanic/messages/auto_sound_event.cpp index baa11c7d41..bc2cd7d074 100644 --- a/engines/titanic/messages/auto_sound_event.cpp +++ b/engines/titanic/messages/auto_sound_event.cpp @@ -24,7 +24,11 @@ namespace Titanic { -CAutoSoundEvent::CAutoSoundEvent() : CGameObject(), _value1(0), _value2(70) { +BEGIN_MESSAGE_MAP(CAutoSoundEvent, CGameObject) + ON_MESSAGE(FrameMsg) +END_MESSAGE_MAP() + +CAutoSoundEvent::CAutoSoundEvent() : CGameObject(), _value1(0), _value2(0xFFFFFF) { } void CAutoSoundEvent::save(SimpleFile *file, int indent) { @@ -43,4 +47,11 @@ void CAutoSoundEvent::load(SimpleFile *file) { CGameObject::load(file); } +bool CAutoSoundEvent::FrameMsg(CFrameMsg *msg) { + if (_value1 >= 0) + _value1 = (_value1 + 1) & _value2; + + return true; +} + } // End of namespace Titanic |