bool CExitArboretum::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { if (_enabled) { CActMsg actMsg; if (_seasonNum == SEASON_WINTER) { switch (_exitDirection) { case 0: actMsg._action = "ExitLFrozen"; break; case 1: actMsg._action = "ExitRFrozen"; break; default: break; } } else { switch (_exitDirection) { case 0: actMsg._action = "ExitLNormal"; break; case 1: actMsg._action = "ExitRNormal"; break; default: break; } } actMsg.execute("ArbGate"); } return true; }
bool CWheelHotSpot::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { if (_fieldE0) { CActMsg actMsg; switch (_fieldE4) { case 1: actMsg._action = "Stop"; actMsg.execute("CaptainsWheel"); break; case 2: actMsg._action = "Cruise"; actMsg.execute("CaptainsWheel"); break; case 3: actMsg._action = "Go"; actMsg.execute("CaptainsWheel"); break; default: break; } } else if (_fieldE4 == 3) { petDisplayMessage(GO_WHERE); } return true; }
bool CTitaniaSpeech::ActMsg(CActMsg *msg) { CSetFrameMsg frameMsg; CVisibleMsg visibleMsg; CActMsg actMsg; if (msg->_action == "TitaniaSpeech") { switch (_paraNum) { case 0: movieSetAudioTiming(true); loadSound("a#12.wav"); sleep(1000); playMovie(0, 187, MOVIE_GAMESTATE || MOVIE_NOTIFY_OBJECT); movieEvent(0); break; case 1: loadSound("a#11.wav"); addTimer(0); startAnimTimer("Para2", 300); addTimer(6000); addTimer(12000); addTimer(18000); addTimer(24000); startAnimTimer("NextPara", 30000); break; case 2: visibleMsg._visible = false; visibleMsg.execute("TitaniaStillControl"); loadSound("a#10.wav"); playMovie(585, 706, MOVIE_GAMESTATE || MOVIE_NOTIFY_OBJECT); playSound("a#10.wav"); break; case 3: visibleMsg._visible = false; visibleMsg.execute("TitaniaStillControl"); loadSound("a#9.wav"); playMovie(707, 905, MOVIE_GAMESTATE || MOVIE_NOTIFY_OBJECT); playSound("a#9.wav"); break; case 4: visibleMsg._visible = false; visibleMsg.execute("TitaniaStillControl"); loadSound("a#8.wav"); playMovie(906, 938, MOVIE_GAMESTATE || MOVIE_NOTIFY_OBJECT); playSound("a#8.wav"); break; default: sleep(3000); actMsg._action = "SleepTitania"; actMsg.execute(this); } } return true; }
bool CBarbot::ActMsg(CActMsg *msg) { if (msg->_action == "Vodka") { if (!_addedVodka) { playRange(_frames[47], MOVIE_NOTIFY_OBJECT); playRange(_frames[46], MOVIE_NOTIFY_OBJECT); playRange(_frames[40]); playRange(_frames[7]); playRange(_frames[13]); playRange(_frames[8]); playRange(_frames[40]); playRange(_frames[7]); playRange(_frames[13]); playRange(_frames[8]); playRange(_frames[7]); playRange(_frames[40]); playRange(_frames[13]); playRange(_frames[40]); playRange(_frames[7]); playRange(_frames[8]); playRange(_frames[13]); playRange(_frames[40], MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); _frameNum = _frames[40]._endFrame; } } else if (msg->_action == "GiveBackVisCentre") { if (_field134) { playRange(_frames[27]); _frameNum = _frames[27]._endFrame; } } else if (msg->_action == "Bird") { CStatusChangeMsg statusMsg; statusMsg._newStatus = 2; statusMsg.execute("PickUpGlass"); _glassContent = GG_BIRD; playRange(_frames[32], MOVIE_NOTIFY_OBJECT); movieEvent(); playRange(_frames[30], MOVIE_NOTIFY_OBJECT); _frameNum = _frames[30]._endFrame; if (areIngredientsMissing()) { playRange(_frames[42], MOVIE_NOTIFY_OBJECT); _frameNum = _frames[42]._endFrame; } CActMsg actMsg("InTitilator"); actMsg.execute("BeerGlass"); } else if (msg->_action == "None") { CStatusChangeMsg statusMsg; statusMsg._newStatus = 2; statusMsg.execute("PickUpGlass"); _glassContent = GG_EMPTY; playRange(_frames[55], MOVIE_NOTIFY_OBJECT); movieEvent(); playRange(_frames[54], MOVIE_NOTIFY_OBJECT); _frameNum = _frames[54]._endFrame; } else if (msg->_action == "Mustard" || msg->_action == "Tomato") { CStatusChangeMsg statusMsg; statusMsg._newStatus = 2; statusMsg.execute("PickUpGlass"); _glassContent = GG_CONDIMENT; playRange(_frames[55], MOVIE_NOTIFY_OBJECT); movieEvent(); playRange(_frames[54], MOVIE_NOTIFY_OBJECT); _frameNum = _frames[54]._endFrame; CActMsg actMsg("InTitilator"); actMsg.execute("BeerGlass"); } else if (msg->_action == "Fruit") { if (!_addedLemon) { CActMsg visibleMsg; visibleMsg.execute("LemonOnBar"); startTalking(this, 250576); _addedLemon = true; playRange(_frames[36], MOVIE_NOTIFY_OBJECT); movieEvent(); _frameNum = _frames[36]._endFrame; if (areIngredientsMissing()) { playRange(_frames[43], MOVIE_NOTIFY_OBJECT); _frameNum = _frames[43]._endFrame; } CRemoveFromGameMsg removeMsg; removeMsg.execute("Lemon"); } } else if (msg->_action == "CrushedTV") { if (!_addedTV) { CVisibleMsg visibleMsg; visibleMsg.execute("TVOnBar"); startTalking(this, 250584); _field160 = 1; _addedTV = true; playSound("c#5.wav", _volume); playRange(_frames[35], MOVIE_NOTIFY_OBJECT); movieEvent(); playRange(_frames[34]); playRange(_frames[33], MOVIE_NOTIFY_OBJECT); _frameNum = _frames[33]._endFrame; if (areIngredientsMissing()) { playRange(_frames[41], MOVIE_NOTIFY_OBJECT); _frameNum = _frames[41]._endFrame; } CRemoveFromGameMsg removeMsg; removeMsg.execute("CrushedTV"); } } else if (msg->_action == "PlayerTakesGlass") { playRange(_frames[53]); _field124 = 0; CStatusChangeMsg statusMsg; statusMsg._newStatus = 0; statusMsg.execute("PickUpGlass"); } else if (msg->_action == "PlayerTakesVisCentre") { _visCenterOnCounter = false; loadFrame(0); CStatusChangeMsg statusMsg; statusMsg._newStatus = 0; statusMsg.execute("PickUpVisCentre"); } else if (msg->_action == "BellRing1") { startTalking(this, 251105); } else if (msg->_action == "BellRing2") { startTalking(this, 251107); } else if (msg->_action == "BellRing3") { startTalking(this, 250285); } else if (msg->_action == "GoRingBell") { startTalking(this, 250285); } else if (msg->_action == "ClickOnVision") { startTalking(this, 251858); } return true; }