diff options
author | Paul Gilbert | 2016-04-10 10:20:06 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-04-10 10:20:06 -0400 |
commit | 62b087adce4a0fdd0ff6a99ed5a9843ec0b722be (patch) | |
tree | f6356a56a1eefbb3dd4160adf69e9d00c17881d4 /engines/titanic/game/television.cpp | |
parent | 78d03f9784d17f65b29e5b6836d23d8f494d3c7c (diff) | |
download | scummvm-rg350-62b087adce4a0fdd0ff6a99ed5a9843ec0b722be.tar.gz scummvm-rg350-62b087adce4a0fdd0ff6a99ed5a9843ec0b722be.tar.bz2 scummvm-rg350-62b087adce4a0fdd0ff6a99ed5a9843ec0b722be.zip |
TITANIC: Fleshing out CTelevision::MovieEndMsg
Diffstat (limited to 'engines/titanic/game/television.cpp')
-rw-r--r-- | engines/titanic/game/television.cpp | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/engines/titanic/game/television.cpp b/engines/titanic/game/television.cpp index 5585cfc429..2ad84d3ff9 100644 --- a/engines/titanic/game/television.cpp +++ b/engines/titanic/game/television.cpp @@ -20,8 +20,10 @@ * */ +#include "titanic/titanic.h" #include "titanic/game/television.h" #include "titanic/pet_control/pet_control.h" +#include "titanic/game/get_lift_eye2.h" namespace Titanic { @@ -227,7 +229,34 @@ bool CTelevision::PETActivateMsg(CPETActivateMsg *msg) { } bool CTelevision::MovieEndMsg(CMovieEndMsg *msg) { - warning("TODO: CMovieEndMsg"); + if (g_vm->getRandomNumber(6) == 0) { + CParrotSpeakMsg parrotMsg("Television", ""); + parrotMsg.execute("PerchedParrot"); + } + + if (_fieldE0 == 3 && compareRoomNameTo("SGTState") && !getState8()) { + playSound("z#47.wav", 100, 0, 0); + _fieldF0 = playSound("b#20.wav", 100, 0, 0); + CTreeItem *magazine = getRoot()->findByName("Magazine"); + + if (magazine) { + warning("TODO: CTelevision::MovieEndMsg"); + } + + loadFrame(561); + } else if (_fieldE0 == 2) { + loadFrame(_v1); + } else if (_fieldE0 == 4 && _v5) { + if (_turnOn) + loadFrame(502); + else + warning("There is currently nothing available for your viewing pleasure on this channel."); + } else if (_fieldE0 == 5 && *CGetLiftEye2::_v1 != "NULL") { + loadFrame(393 + _v4); + } else { + warning("There is currently nothing available for your viewing pleasure on this channel."); + } + return true; } |