/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see 350) { disable_player_commands_and_fade_init(-1); } else { kernel_timing_trigger(6, 1); } break; case kCHANGE_WILBUR_ANIMATION: switch (_G(wilbur_should)) { case 1: _G(wilbur_should) = 2; disable_player(); series_play_with_breaks(PLAY1, "404wi01", 0x200, kCHANGE_WILBUR_ANIMATION, 1); break; case 2: _G(wilbur_should) = 10001; _quarter.terminate(); _G(flags)[V162] = 1; hotspot_set_active("QUARTER ", false); inv_give_to_player("QUARTER"); break; default: _G(kernel).continue_handling_trigger = true; break; } break; default: _G(kernel).continue_handling_trigger = true; break; } } void Room404::pre_parser() { _G(kernel).trigger_mode = KT_DAEMON; if (player_said("IMPOUND YARD")) { if (!player_said_any("EXIT", "LOOK AT", "GEAR")) { player_hotspot_walk_override(320, 346, 5); } else { player_set_commands_allowed(false); kernel_trigger_dispatch_now(1); } } } void Room404::parser() { _G(kernel).trigger_mode = KT_DAEMON; if (_G(walker).wilbur_said(SAID)) { // Already handled } else if (player_said("IMPOUND YARD")) { if (player_said_any("EXIT", "LOOK AT", "GEAR")) { kernel_trigger_dispatch_now(4005); } else { wilbur_speech("400w001"); } } else if (player_said("TAKE", "QUARTER ")) { _G(wilbur_should) = 1; kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION); } else if (player_said("TOILET")) { wilbur_speech("404w004"); } else if (player_said("BARS")) { wilbur_speech("404w013"); } else { return; } _G(player).command_ready = false; } } // namespace Rooms } // namespace Burger } // namespace M4