diff options
author | Paul Gilbert | 2016-05-05 12:55:52 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:38:27 -0400 |
commit | d463be89fac3af6f33ef3c5179594e86cd806f83 (patch) | |
tree | daaccf334c1e4ddb67f06c4b13579b2ca27323fb /engines/titanic/game/computer_screen.cpp | |
parent | d712875c02c6e82734f6ba9ea56f8206c51a22fe (diff) | |
download | scummvm-rg350-d463be89fac3af6f33ef3c5179594e86cd806f83.tar.gz scummvm-rg350-d463be89fac3af6f33ef3c5179594e86cd806f83.tar.bz2 scummvm-rg350-d463be89fac3af6f33ef3c5179594e86cd806f83.zip |
TITANIC: Finished CComputerScreen TimerMsg
Diffstat (limited to 'engines/titanic/game/computer_screen.cpp')
-rw-r--r-- | engines/titanic/game/computer_screen.cpp | 66 |
1 files changed, 64 insertions, 2 deletions
diff --git a/engines/titanic/game/computer_screen.cpp b/engines/titanic/game/computer_screen.cpp index f0fab26b61..8879136103 100644 --- a/engines/titanic/game/computer_screen.cpp +++ b/engines/titanic/game/computer_screen.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/computer_screen.h" +#include "titanic/messages/messages.h" namespace Titanic { @@ -70,8 +71,69 @@ bool CComputerScreen::EnterViewMsg(CEnterViewMsg *msg) { } bool CComputerScreen::TimerMsg(CTimerMsg *msg) { - // TODO - warning("TODO: CComputerScreen::TimerMsg"); + int handle; + + switch (msg->_val3) { + case 0: + loadSound("a#32.wav"); + loadSound("a#31.wav"); + loadSound("a#33.wav"); + loadSound("a#30.wav"); + loadSound("a#29.wav"); + playSound("a#25.wav"); + addTimer(1, 2000, 0); + break; + + case 1: + playSound("a#32.wav"); + playSound("a#31.wav"); + addTimer(2, 2000, 0); + break; + + case 2: { + CChangeMusicMsg musicMsg(CString(), 1); + musicMsg.execute("HomeMusicPlayer"); + playSound("a#33.wav"); + playSound("a#31.wav"); + changeView("Home.Node 4.E", ""); + playClip(51, 150); + playSound("a#31.wav"); + playClip(151, 200); + + handle = playSound("a#27.wav"); + playClip(200, 306); + playSound("a#30.wav"); + stopSound(handle, 0); + + playClip(306, 338); + handle = playSound("a#28.wav"); + playClip(338, 392); + playSound("a#29.wav"); + stopSound(handle); + + playSound("y#662.wav"); + soundFn3(handle, 10, 2); + playClip(392, 450); + trueTalkFn1("Doorbot", 0x3611A, 0); + sleep(8000); + + playClip(450, 492); + trueTalkFn1("DOorbot", 0x36121, 0); + playClip(492, 522); + soundFn3(handle, 30, 2); + + playClip(523, 540); + soundFn3(handle, 0, 1); + + playClip(541, 551); + stopSound(handle); + break; + } + + default: + break; + } + return true; } |