Initial commit
This commit is contained in:
93
engines/m4/burger/rooms/section6/room601.cpp
Normal file
93
engines/m4/burger/rooms/section6/room601.cpp
Normal file
@@ -0,0 +1,93 @@
|
||||
/* 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 <http://www.gnu.org/licenses/ },.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/room601.h"
|
||||
#include "m4/burger/rooms/section6/section6.h"
|
||||
#include "m4/burger/vars.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
static const seriesStreamBreak SERIES1[] = {
|
||||
{ 3, "601Z001", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 58, "601Z003", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 109, "601_002", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 142, "601_003", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 154, "601_004", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 155, "601F001", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 208, "601W001", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 224, "601Z004", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 264, "601F003", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 304, "601Z005", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 432, "601W002", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 462, "601Z006", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 492, "601Z007", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 528, "601_009a", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 543, "601_009b", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 556, "601_009c", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 566, "601_005", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 580, "601_006", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 679, "601_010", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 689, "601_007", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 695, "601_011", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 706, "601_010", 2, 255, -1, 0, nullptr, 0 },
|
||||
STREAM_BREAK_END
|
||||
};
|
||||
|
||||
|
||||
void Room601::preload() {
|
||||
_G(player).walker_in_this_scene = false;
|
||||
}
|
||||
|
||||
void Room601::init() {
|
||||
_G(flags).reset2();
|
||||
digi_preload("601_001");
|
||||
digi_play_loop("601_001", 3, 40);
|
||||
digi_preload_stream_breaks(SERIES1);
|
||||
kernel_trigger_dispatch_now(1);
|
||||
|
||||
_G(kernel).suppress_fadeup = true;
|
||||
pal_fade_set_start(0);
|
||||
pal_fade_init(_G(kernel).first_fade, 255, 100, 30, -1);
|
||||
pal_cycle_init(118, 127, 6, -1, -1);
|
||||
}
|
||||
|
||||
void Room601::daemon() {
|
||||
switch (_G(kernel).trigger) {
|
||||
case 1:
|
||||
series_stream_with_breaks(SERIES1, "601lab", 6, 1, 6004);
|
||||
_G(kernel).suppress_fadeup = false;
|
||||
break;
|
||||
|
||||
case 6004:
|
||||
_G(game).setRoom(604);
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
45
engines/m4/burger/rooms/section6/room601.h
Normal file
45
engines/m4/burger/rooms/section6/room601.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM601_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM601_H
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Room601 : public Section6Room {
|
||||
public:
|
||||
Room601() : Section6Room() {}
|
||||
~Room601() override {}
|
||||
|
||||
void preload() override;
|
||||
void init() override;
|
||||
void daemon() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
1470
engines/m4/burger/rooms/section6/room602.cpp
Normal file
1470
engines/m4/burger/rooms/section6/room602.cpp
Normal file
File diff suppressed because it is too large
Load Diff
89
engines/m4/burger/rooms/section6/room602.h
Normal file
89
engines/m4/burger/rooms/section6/room602.h
Normal file
@@ -0,0 +1,89 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM602_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM602_H
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Room602 : public Section6Room {
|
||||
static const GerbilPoint GERBIL[];
|
||||
static const seriesPlayBreak PLAY1[];
|
||||
static const seriesPlayBreak PLAY2[];
|
||||
static const seriesPlayBreak PLAY3[];
|
||||
static const seriesPlayBreak PLAY4[];
|
||||
static const seriesPlayBreak PLAY5[];
|
||||
static const seriesPlayBreak PLAY6[];
|
||||
static const seriesPlayBreak PLAY7[];
|
||||
static const seriesPlayBreak PLAY8[];
|
||||
static const seriesPlayBreak PLAY9[];
|
||||
static const seriesPlayBreak PLAY10[];
|
||||
static const seriesPlayBreak PLAY11[];
|
||||
static const seriesPlayBreak PLAY12[];
|
||||
static const seriesPlayBreak PLAY13[];
|
||||
static const seriesPlayBreak PLAY14[];
|
||||
static const seriesPlayBreak PLAY15[];
|
||||
static const seriesPlayBreak PLAY16[];
|
||||
static const seriesPlayBreak PLAY17[];
|
||||
static const seriesPlayBreak PLAY18[];
|
||||
static const seriesPlayBreak PLAY19[];
|
||||
static const seriesPlayBreak PLAY20[];
|
||||
static const seriesPlayBreak PLAY21[];
|
||||
static const seriesPlayBreak PLAY22[];
|
||||
|
||||
private:
|
||||
static int32 _test1;
|
||||
static int32 _test2;
|
||||
noWalkRect *_walk1 = nullptr;
|
||||
int _series1 = 0;
|
||||
machine *_mouseWheel = nullptr;
|
||||
machine *_series3 = nullptr;
|
||||
int _series4 = 0;
|
||||
int _series5 = 0;
|
||||
int _series6 = 0;
|
||||
int _series7 = 0;
|
||||
machine *_series8 = nullptr;
|
||||
machine *_series9 = nullptr;
|
||||
machine *_series10 = nullptr;
|
||||
int _motorShould = 0;
|
||||
int _kibbleOffset = 0;
|
||||
int _doorShould = 0;
|
||||
int _magnetState = 0;
|
||||
|
||||
public:
|
||||
Room602();
|
||||
~Room602() override {}
|
||||
|
||||
void init() override;
|
||||
void daemon() override;
|
||||
void pre_parser() override;
|
||||
void parser() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
684
engines/m4/burger/rooms/section6/room603.cpp
Normal file
684
engines/m4/burger/rooms/section6/room603.cpp
Normal file
@@ -0,0 +1,684 @@
|
||||
/* 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 <http://www.gnu.org/licenses/ },.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/room603.h"
|
||||
#include "m4/burger/rooms/section6/section6.h"
|
||||
#include "m4/burger/vars.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
const Section6Room::GerbilPoint Room603::GERBIL[] = {
|
||||
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 429, 183 },
|
||||
{ 429, 185 }, { 429, 185 }, { 436, 200 }, { 436, 200 },
|
||||
{ 436, 200 }, { 422, 188 }, { 422, 188 }, { 422, 188 },
|
||||
{ 417, 192 }, { 417, 192 }, { 417, 192 }, { 411, 190 },
|
||||
{ 411, 190 }, { 411, 190 }, { 411, 190 }, { 411, 190 },
|
||||
{ 411, 190 }, { 403, 182 }, { 403, 182 }, { 403, 182 },
|
||||
{ 339, 177 }, { 339, 177 }, { 339, 177 }, { 301, 195 },
|
||||
{ 301, 195 }, { 301, 195 }, { 295, 199 }, { 439, 189 },
|
||||
{ 439, 189 }, { 295, 199 }, { 431, 190 }, { 431, 190 },
|
||||
{ 295, 199 }, { 413, 193 }, { 413, 193 }, { 290, 196 },
|
||||
{ 403, 202 }, { 403, 202 }, { 293, 195 }, { 392, 203 },
|
||||
{ 392, 203 }, { 293, 195 }, { 389, 222 }, { 389, 222 },
|
||||
{ 295, 193 }, { 415, 230 }, { 423, 185 }, { 293, 196 },
|
||||
{ 428, 235 }, { 415, 185 }, { 293, 196 }, { 430, 233 },
|
||||
{ 420, 204 }, { 293, 196 }, { 430, 233 }, { 420, 204 },
|
||||
{ 293, 196 }, { 430, 232 }, { 420, 204 }, { 293, 196 },
|
||||
{ 438, 233 }, { 411, 199 }, { 293, 196 }, { 441, 235 },
|
||||
{ 408, 198 }, { 293, 196 }, { 444, 235 }, { 403, 197 },
|
||||
{ 293, 196 }, { 447, 237 }, { 402, 195 }, { 293, 196 },
|
||||
{ 450, 238 }, { 399, 194 }, { 293, 196 }, { 452, 237 },
|
||||
{ 397, 194 }, { 293, 196 }, { 455, 235 }, { 395, 194 },
|
||||
{ 293, 196 }, { 458, 233 }, { 393, 195 }, { 293, 196 },
|
||||
{ 461, 233 }, { 392, 195 }, { 293, 196 }, { 461, 233 },
|
||||
{ 392, 195 }, { 293, 196 }, { 461, 233 }, { 392, 195 }
|
||||
};
|
||||
|
||||
static const char *SAID[][4] = {
|
||||
{ "WATER DISH", nullptr, "603w004", "603w005" },
|
||||
{ "WATER", "603w006", nullptr, nullptr },
|
||||
{ "CARROT", "603w008", "603w009", "603w010" },
|
||||
{ "TUBE", "603w011", "603w005", nullptr },
|
||||
{ "TUBE ", "603w011", "603w005", nullptr },
|
||||
{ "TUBE ", "603w012", "603w005", nullptr },
|
||||
{ "TUBE ", "603w012", "603w005", nullptr },
|
||||
{ "BARS", "603w013", "603w005", "603w005" },
|
||||
{ "FLOOR", "603w014", "603w005", "603w005" },
|
||||
{ nullptr, nullptr, nullptr, nullptr }
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY1[] = {
|
||||
{ 0, 0, "603_001", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
{ 1, -1, "603w001", 1, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY2[] = {
|
||||
{ 0, 22, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 23, 24, "600_015", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
{ 25, -1, nullptr, 1, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY3[] = {
|
||||
{ 0, 3, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 4, 5, "600w016", 2, 100, -1, 0, 0, nullptr, 0 },
|
||||
{ 6, -1, nullptr, 1, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY4[] = {
|
||||
{ 0, -1, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY5[] = {
|
||||
{ 0, 2, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 3, 4, "600w015", 2, 100, -1, 0, 0, nullptr, 0 },
|
||||
{ 5, -1, nullptr, 1, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY6[] = {
|
||||
{ 0, 2, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 3, 4, "600w015", 2, 100, -1, 0, 0, nullptr, 0 },
|
||||
{ 5, -1, nullptr, 1, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY7[] = {
|
||||
{ 0, 17, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 18, -1, "603_004", 1, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY8[] = {
|
||||
{ 0, 17, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 18, -1, "603_006", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY9[] = {
|
||||
{ 0, 17, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 18, -1, "600_014", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
|
||||
const seriesPlayBreak Room603::PLAY10[] = {
|
||||
{ 0, 6, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 7, -1, nullptr, 1, 0, 0, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY11[] = {
|
||||
{ 0, 6, nullptr, 1, 0, -1, 2048, 0, &_state1, 0 },
|
||||
{ 0, 6, nullptr, 1, 0, -1, 2048, 0, &_state1, 1 },
|
||||
{ 0, 6, nullptr, 1, 0, -1, 2048, 0, &_state1, 2 },
|
||||
{ 7, -1, "600w011a", 1, 255, -1, 0, 0, &_state1, 0 },
|
||||
{ 7, -1, "600w011b", 1, 255, -1, 0, 0, &_state1, 1 },
|
||||
{ 7, -1, "600w011c", 1, 255, -1, 0, 0, &_state1, 2 },
|
||||
{ 0, -1, "600w011d", 1, 255, -1, 0, 0, &_state1, 3 },
|
||||
{ 0, -1, "600w011e", 1, 255, -1, 0, 0, &_state1, 4 },
|
||||
{ 0, -1, "600w011f", 1, 255, -1, 0, 0, &_state1, 5 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY12[] = {
|
||||
{ 0, 13, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 14, -1, "600_012", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY13[] = {
|
||||
{ 0, 5, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 6, 6, "603w007", 1, 255, -1, 0, 10, nullptr, 0 },
|
||||
{ 5, -1, nullptr, 1, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY14[] = {
|
||||
{ 0, 24, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 25, -1, nullptr, 1, 255, 0, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room603::PLAY15[] = {
|
||||
{ 0, -1, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
int32 Room603::_state1;
|
||||
|
||||
Room603::Room603() : Section6Room() {
|
||||
_gerbilTable = GERBIL;
|
||||
_state1 = 0;
|
||||
}
|
||||
|
||||
void Room603::init() {
|
||||
player_set_commands_allowed(false);
|
||||
_G(flags)[V246] = 0;
|
||||
_G(flags)[kStandingOnKibble] = 0;
|
||||
|
||||
if (_G(flags)[V269] == 1)
|
||||
series_show("602spill", 0x900, 0, -1, -1, 0, 100, 80, 0);
|
||||
_G(kernel).call_daemon_every_loop = _G(flags)[V269] == 1;
|
||||
|
||||
if (_G(flags)[V270] == 6000) {
|
||||
hotspot_set_active("WATER", true);
|
||||
_val1 = 22;
|
||||
_series1 = series_show("603hole", 0xfff);
|
||||
} else {
|
||||
hotspot_set_active("WATER", false);
|
||||
_val1 = 27;
|
||||
kernel_trigger_dispatch_now(0);
|
||||
}
|
||||
|
||||
if (_G(flags)[V245] == 10029) {
|
||||
Section6::_state1 = 6002;
|
||||
kernel_trigger_dispatch_now(6013);
|
||||
}
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6000) {
|
||||
Section6::_state4 = 1;
|
||||
kernel_trigger_dispatch_now(6014);
|
||||
}
|
||||
if (_G(flags)[kHampsterState] == 6006) {
|
||||
_series2 = series_load("603mg01");
|
||||
Section6::_gerbilState = 6001;
|
||||
kernel_timing_trigger(60, 6011);
|
||||
}
|
||||
|
||||
switch (_G(game).previous_room) {
|
||||
case KERNEL_RESTORING_GAME:
|
||||
player_set_commands_allowed(true);
|
||||
break;
|
||||
|
||||
case 602:
|
||||
case 612:
|
||||
_G(wilbur_should) = 3;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
break;
|
||||
|
||||
case 604:
|
||||
_G(wilbur_should) = 2;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
break;
|
||||
|
||||
default:
|
||||
player_set_commands_allowed(true);
|
||||
ws_demand_location(203, 333);
|
||||
break;
|
||||
}
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6006)
|
||||
Section6::_state4 = 5;
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6007)
|
||||
Section6::_state4 = 8;
|
||||
else if (_G(flags)[kHampsterState] == 6000)
|
||||
Section6::_state4 = 1;
|
||||
|
||||
kernel_trigger_dispatch_now(6014);
|
||||
}
|
||||
|
||||
void Room603::daemon() {
|
||||
switch (_G(kernel).trigger) {
|
||||
case 0:
|
||||
switch (_val1) {
|
||||
case 22:
|
||||
_series1 = series_show("603hole", 0xfff);
|
||||
break;
|
||||
|
||||
case 23:
|
||||
hotspot_set_active("WATER", false);
|
||||
terminateMachineAndNull(_series1);
|
||||
_G(flags)[V270] = 6001;
|
||||
|
||||
if (_G(flags)[V277] == 6001) {
|
||||
_G(wilbur_should) = 20;
|
||||
_val1 = 24;
|
||||
series_play_with_breaks(PLAY14, "603hole", 0xfff, -1, 6);
|
||||
} else {
|
||||
_G(wilbur_should) = 20;
|
||||
_val1 = 27;
|
||||
series_play_with_breaks(PLAY15, "603hole", 0xfff, kCHANGE_WILBUR_ANIMATION, 2);
|
||||
}
|
||||
|
||||
_roomSeries1.play("603wi20", 0x400, 2, kCHANGE_WILBUR_ANIMATION, 0, 0, 100, 0, 0, 0, 17);
|
||||
digi_play("603_005", 2, 255, -1, 603);
|
||||
break;
|
||||
|
||||
case 24:
|
||||
_val1 = 27;
|
||||
digi_play("603_007", 2);
|
||||
series_play("603motor", 0xbff, 0, kCHANGE_WILBUR_ANIMATION);
|
||||
series_show("603hole", 0xfff, 0, -1, -1, 41);
|
||||
_G(flags)[V277] = 6002;
|
||||
break;
|
||||
|
||||
case 25:
|
||||
inv_put_thing_in("KIBBLE", 602);
|
||||
|
||||
if (_G(flags)[V270] == 6001) {
|
||||
digi_play("603_009", 2, 255, -1, 603);
|
||||
} else {
|
||||
digi_play("603_008", 2, 255, -1, 603);
|
||||
series_play("603full", 0xc00, 0, -1);
|
||||
}
|
||||
break;
|
||||
|
||||
case 27:
|
||||
_series1 = series_show("603hole", 0xfff, 0, -1, -1, 41);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
_G(wilbur_should) = 10001;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
kernel_trigger_dispatch_now(2);
|
||||
|
||||
term_message("Kibble is now being removed.");
|
||||
inv_move_object("KIBBLE", NOWHERE);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
_G(kernel).call_daemon_every_loop = true;
|
||||
series_show("602spill", 0x900, 0, -1, -1, 0, 100, 80, 0);
|
||||
kernel_trigger_dispatch_now(3);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
term_message("Kibble is now being removed.");
|
||||
inv_move_object("KIBBLE", NOWHERE);
|
||||
break;
|
||||
|
||||
case 6002:
|
||||
_G(game).setRoom(602);
|
||||
break;
|
||||
|
||||
case 6004:
|
||||
_G(game).setRoom(604);
|
||||
break;
|
||||
|
||||
case 6005:
|
||||
_G(game).setRoom(605);
|
||||
break;
|
||||
|
||||
case 6010:
|
||||
_G(game).setRoom(612);
|
||||
break;
|
||||
|
||||
case 6011:
|
||||
switch (Section6::_gerbilState) {
|
||||
case 6001:
|
||||
Section6::_gerbilState = 6002;
|
||||
_sectionMachine1 = series_play("603mg01", 0xdff, 0, 6011, 8, 0, 100, 0, 0, 0, 84);
|
||||
_sectionMachine2 = series_play("603mg01s", 0xe00, 0, -1, 8, 0, 100, 0, 0, 0, 84);
|
||||
break;
|
||||
|
||||
case 6002:
|
||||
Section6::_state4 = 4;
|
||||
kernel_trigger_dispatch_now(6014);
|
||||
Section6::_gerbilState = 6003;
|
||||
|
||||
_sectionMachine1 = series_play("603mg01", 0xdff, 0, 6011, 8, 0, 100, 0, 0, 85, -1);
|
||||
_sectionMachine2 = series_play("603mg01s", 0xe00, 0, -1, 8, 0, 100, 0, 0, 85, -1);
|
||||
break;
|
||||
|
||||
case 6003:
|
||||
Section6::_gerbilState = (_G(flags)[V245] == 10029) ? 6005 : 6004;
|
||||
series_play("603mg01", 0xdff, 0, -1, -1, 95);
|
||||
_sectionMachine2 = series_play("603mg01s", 0xe00, 0, -1, -1, 95);
|
||||
kernel_trigger_dispatch_now(6011);
|
||||
break;
|
||||
|
||||
case 6004:
|
||||
player_set_commands_allowed(false);
|
||||
|
||||
if (_G(flags)[V246] == 0)
|
||||
kernel_trigger_dispatch_now(6005);
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case kCHANGE_WILBUR_ANIMATION:
|
||||
switch (_G(wilbur_should)) {
|
||||
case 2:
|
||||
_G(wilbur_should) = 10001;
|
||||
player_set_commands_allowed(false);
|
||||
ws_demand_location(215, 311, 3);
|
||||
ws_hide_walker();
|
||||
series_play_with_breaks(PLAY1, "603wi02", 0x7ff, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
_G(wilbur_should) = 10001;
|
||||
player_set_commands_allowed(false);
|
||||
ws_demand_location(400, 280, 7);
|
||||
ws_hide_walker();
|
||||
series_play_with_breaks(PLAY2, "603wi06", 0xdff, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
term_message("Climbing up to 604...");
|
||||
ws_demand_facing(10);
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
Section6::_state2 = 0;
|
||||
|
||||
series_play_with_breaks(PLAY3, "603wi03", 0xdff, 6004, 3);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
term_message("Climbing down to 602...");
|
||||
player_set_commands_allowed(false);
|
||||
ws_demand_facing(8);
|
||||
ws_hide_walker();
|
||||
Section6::_state2 = 1;
|
||||
_G(roomVal7) = 1;
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6007) {
|
||||
series_play_with_breaks(PLAY4, "603wi01", 0xdff, 6010, 3);
|
||||
} else {
|
||||
series_play_with_breaks(PLAY4, "603wi01", 0xdff, 6002, 3);
|
||||
}
|
||||
break;
|
||||
|
||||
case 6:
|
||||
term_message("Climbing up to 604...");
|
||||
ws_demand_facing(1);
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
Section6::_state2 = 2;
|
||||
|
||||
series_play_with_breaks(PLAY5, "603wi04", 0xdff, 6004, 3);
|
||||
break;
|
||||
|
||||
case 7:
|
||||
ws_demand_facing(1);
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
Section6::_state2 = 2;
|
||||
if (_G(flags)[kHampsterState] == 6007) {
|
||||
series_play_with_breaks(PLAY6, "603wi05", 0xdff, 6010, 3);
|
||||
} else {
|
||||
series_play_with_breaks(PLAY6, "603wi05", 0xdff, 6002, 3);
|
||||
}
|
||||
break;
|
||||
|
||||
case 8:
|
||||
_G(flags)[V247] = 1;
|
||||
player_set_commands_allowed(false);
|
||||
|
||||
if (_G(flags)[V270] == 6000) {
|
||||
_val1 = 23;
|
||||
ws_hide_walker();
|
||||
series_play_with_breaks(PLAY7, "603wi20", 0x400, 0, 3);
|
||||
} else {
|
||||
wilbur_speech("603w017");
|
||||
_G(wilbur_should) = 10001;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
break;
|
||||
|
||||
case 9:
|
||||
_G(flags)[V247] = 1;
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
_G(wilbur_should) = 17;
|
||||
series_play_with_breaks(PLAY8, "603wi10", 0x900, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 10:
|
||||
_G(flags)[V247] = 1;
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
_G(wilbur_should) = 10001;
|
||||
series_play_with_breaks(PLAY9, "603wi40", 0x700, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 11:
|
||||
player_set_commands_allowed(false);
|
||||
ws_demand_facing(2);
|
||||
ws_hide_walker();
|
||||
_G(wilbur_should) = 19;
|
||||
_val1 = 25;
|
||||
series_play_with_breaks(PLAY10, "603wi08", 0xbff, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 12:
|
||||
term_message("Skip on kibble!");
|
||||
player_set_commands_allowed(false);
|
||||
player_update_info();
|
||||
_G(wilbur_should) = 13;
|
||||
|
||||
ws_walk(_G(player_info).x + 1, 305, nullptr, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 13:
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
_G(wilbur_should) = 18;
|
||||
Section6::_savedX = _G(player_info).x - 425;
|
||||
_state1 = imath_ranged_rand(0, 5);
|
||||
|
||||
series_play_with_breaks(PLAY11, "602wi13", _G(player_info).depth,
|
||||
kCHANGE_WILBUR_ANIMATION, 3, 6, 100, Section6::_savedX + 80, 0);
|
||||
break;
|
||||
|
||||
case 14:
|
||||
ws_demand_location(502, 301, 9);
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
_G(flags)[V269] = 1;
|
||||
|
||||
series_play_with_breaks(PLAY12, "602wi20", 0x901, 1, 3, 6, 100, 80, 0);
|
||||
break;
|
||||
|
||||
case 15:
|
||||
if (_G(flags)[kHampsterState] != 6006) {
|
||||
_G(wilbur_should) = 10001;
|
||||
player_set_commands_allowed(false);
|
||||
ws_demand_facing(2);
|
||||
ws_hide_walker();
|
||||
|
||||
series_play_with_breaks(PLAY13, "603wi07", 0xbff, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
}
|
||||
break;
|
||||
|
||||
case 16:
|
||||
_G(wilbur_should) = 10001;
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6007) {
|
||||
wilbur_speech(_G(flags)[V279] ? "603w016" : "603w015");
|
||||
} else {
|
||||
kernel_trigger_dispatch_now(0);
|
||||
wilbur_speech("603w021");
|
||||
}
|
||||
break;
|
||||
|
||||
case 17:
|
||||
_G(wilbur_should) = 10002;
|
||||
player_set_commands_allowed(true);
|
||||
ws_unhide_walker();
|
||||
wilbur_speech("603w018");
|
||||
break;
|
||||
|
||||
case 18:
|
||||
_G(wilbur_should) = 10002;
|
||||
player_set_commands_allowed(true);
|
||||
ws_unhide_walker();
|
||||
wilbur_speech("600w012");
|
||||
break;
|
||||
|
||||
case 19:
|
||||
_G(wilbur_should) = 10002;
|
||||
player_set_commands_allowed(true);
|
||||
ws_unhide_walker();
|
||||
|
||||
if (_G(flags)[V270] == 6000)
|
||||
wilbur_speech("603w020");
|
||||
break;
|
||||
|
||||
case 20:
|
||||
ws_unhide_walker();
|
||||
_G(wilbur_should) = 16;
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case kCALLED_EACH_LOOP:
|
||||
player_update_info();
|
||||
|
||||
if (_G(player_info).x > 420 && _G(player_info).x < 490 &&
|
||||
_G(player_info).y > 284 && _G(player_info).y < 305 &&
|
||||
_G(player_info).facing > 2 && _G(player_info).facing < 7 &&
|
||||
_G(flags)[V269] == 1) {
|
||||
if (_G(flags)[kStandingOnKibble]) {
|
||||
_G(flags)[kStandingOnKibble] = 1;
|
||||
} else {
|
||||
_G(flags)[kStandingOnKibble] = 1;
|
||||
term_message("Wilbur now slips on kibble!");
|
||||
intr_cancel_sentence();
|
||||
_G(wilbur_should) = 12;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
} else {
|
||||
_G(flags)[kStandingOnKibble] = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Room603::pre_parser() {
|
||||
_G(kernel).trigger_mode = KT_DAEMON;
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6006 && (player_said("TUBE ") || player_said("TUBE "))) {
|
||||
term_message("Can't leave through back tube as gerbils are in the way.");
|
||||
wilbur_speech("600w003");
|
||||
intr_cancel_sentence();
|
||||
|
||||
} else if (player_said("GEAR", "WATER") || player_said("TAKE", "WATER")) {
|
||||
_G(wilbur_should) = 15;
|
||||
player_hotspot_walk_override(272, 271, 2, kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("KIBBLE", "FLOOR")) {
|
||||
if (_G(flags)[V269]) {
|
||||
_G(player).need_to_walk = false;
|
||||
_G(player).ready_to_walk = false;
|
||||
wilbur_speech("600w008z");
|
||||
} else {
|
||||
_sectionSeries1 = series_load("602wi20");
|
||||
Section6::_series603 = series_load("602wi20s");
|
||||
_G(wilbur_should) = 14;
|
||||
player_hotspot_walk_override(502, 301, 9, kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
} else if (player_said("RAY GUN", "GERBILS")) {
|
||||
_G(wilbur_should) = 10;
|
||||
player_hotspot_walk_override(226, 301, 2, kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("WATER DISH") || player_said("WATER")) {
|
||||
if (_G(flags)[kHampsterState] == 6006) {
|
||||
wilbur_speech("600w003");
|
||||
intr_cancel_sentence();
|
||||
} else if (player_said("KIBBLE")) {
|
||||
_G(wilbur_should) = 11;
|
||||
player_hotspot_walk_override(261, 274, 2, kCHANGE_WILBUR_ANIMATION);
|
||||
} else if (player_said("RAY GUN", "WATER DISH")) {
|
||||
if (_G(flags)[V277] == 6001 && _G(flags)[V270] == 6000)
|
||||
_series4 = series_load("603motor");
|
||||
|
||||
_G(wilbur_should) = 8;
|
||||
player_hotspot_walk_override(180, 329, 2, kCHANGE_WILBUR_ANIMATION);
|
||||
} else if (player_said("RAY GUN", "WATER") && _G(flags)[V270] == 6000) {
|
||||
_G(wilbur_should) = 9;
|
||||
player_hotspot_walk_override(350, 282, 10, kCHANGE_WILBUR_ANIMATION);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
_G(player).command_ready = false;
|
||||
}
|
||||
|
||||
void Room603::parser() {
|
||||
_G(kernel).trigger_mode = KT_DAEMON;
|
||||
|
||||
if (_G(walker).wilbur_said(SAID)) {
|
||||
// Already handled
|
||||
} else if ((player_said("WATER DISH") || player_said("WATER")) &&
|
||||
player_said("LOOK AT")) {
|
||||
wilbur_speech(_G(flags)[V270] == 6000 ? "603w002" : "603w003");
|
||||
|
||||
} else if (player_said("GEAR", "TUBE ") || player_said("CLIMB IN", "TUBE ")) {
|
||||
_G(flags)[V246] = 1;
|
||||
_G(wilbur_should) = 6;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("GEAR", "TUBE ") || player_said("CLIMB IN", "TUBE ")) {
|
||||
_G(flags)[V246] = 1;
|
||||
_G(wilbur_should) = 7;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("GEAR", "TUBE") || player_said("CLIMB IN", "TUBE")) {
|
||||
_G(flags)[V246] = 1;
|
||||
_G(wilbur_should) = 4;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("GEAR", "TUBE ") || player_said("CLIMB IN", "TUBE ")) {
|
||||
_G(flags)[V246] = 1;
|
||||
_G(wilbur_should) = 5;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("RAY GUN", "CARROT")) {
|
||||
wilbur_speech("603w019");
|
||||
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
_G(player).command_ready = false;
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
71
engines/m4/burger/rooms/section6/room603.h
Normal file
71
engines/m4/burger/rooms/section6/room603.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM603_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM603_H
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Room603 : public Section6Room {
|
||||
private:
|
||||
static const Section6Room::GerbilPoint GERBIL[];
|
||||
static const seriesPlayBreak PLAY1[];
|
||||
static const seriesPlayBreak PLAY2[];
|
||||
static const seriesPlayBreak PLAY3[];
|
||||
static const seriesPlayBreak PLAY4[];
|
||||
static const seriesPlayBreak PLAY5[];
|
||||
static const seriesPlayBreak PLAY6[];
|
||||
static const seriesPlayBreak PLAY7[];
|
||||
static const seriesPlayBreak PLAY8[];
|
||||
static const seriesPlayBreak PLAY9[];
|
||||
static const seriesPlayBreak PLAY10[];
|
||||
static const seriesPlayBreak PLAY11[];
|
||||
static const seriesPlayBreak PLAY12[];
|
||||
static const seriesPlayBreak PLAY13[];
|
||||
static const seriesPlayBreak PLAY14[];
|
||||
static const seriesPlayBreak PLAY15[];
|
||||
|
||||
static int32 _state1;
|
||||
private:
|
||||
machine *_series1 = nullptr;
|
||||
int _series2 = 0;
|
||||
int _series4 = 0;
|
||||
int _val1 = 0;
|
||||
|
||||
public:
|
||||
Room603();
|
||||
~Room603() override {}
|
||||
|
||||
void init() override;
|
||||
void daemon() override;
|
||||
void pre_parser() override;
|
||||
void parser() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
778
engines/m4/burger/rooms/section6/room604.cpp
Normal file
778
engines/m4/burger/rooms/section6/room604.cpp
Normal file
@@ -0,0 +1,778 @@
|
||||
/* 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 <http://www.gnu.org/licenses/ },.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/room604.h"
|
||||
#include "m4/burger/rooms/section6/section6.h"
|
||||
#include "m4/burger/vars.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
enum {
|
||||
kCHANGE_GERBILS_ANIMATION = 6011,
|
||||
kCHANGE_WOODCHIPS_ANIMATION = 6012
|
||||
};
|
||||
|
||||
static const char *SAID[][4] = {
|
||||
{ "WOOD SHAVINGS", nullptr, "604w010", nullptr },
|
||||
{ "ASHES", "604w015", "604w016", "604w016" },
|
||||
{ "APPLE CORE", "604w017", "604w018", "604w019" },
|
||||
{ "BOTTLE CAP", "604w020", "604w021", "604w010" },
|
||||
{ "TUBE", "604w022", "604w023", nullptr },
|
||||
{ "TUBE ", "604w024", "604w023", nullptr },
|
||||
{ "BARS", "604w025", "604w023", "604w023" },
|
||||
{ "FLOOR", "604w026", "604w023", "604w023" },
|
||||
{ nullptr, nullptr, nullptr, nullptr }
|
||||
};
|
||||
|
||||
static const seriesStreamBreak SERIES1[] = {
|
||||
{ 4, "604I001", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 29, "604Z001", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 36, "604I002", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 45, "604Z002", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 70, "604Z003", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 106, "604I003", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 132, "604Z004A", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 208, "604Z004B", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 245, "604Z004C", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 324, "604I004", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 344, "604Z005", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 374, "604Z006", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 409, "604I005", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 459, "604Z007", 1, 255, -1, 0, nullptr, 0 },
|
||||
STREAM_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY1[] = {
|
||||
{ 0, -1, "604_007", 1, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY2[] = {
|
||||
{ 0, 2, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 3, 4, "600w016", 1, 100, -1, 0, 0, nullptr, 0 },
|
||||
{ 5, -1, nullptr, 1, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY3[] = {
|
||||
{ 0, 2, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 3, 4, "600w015", 1, 100, -1, 0, 0, nullptr, 0 },
|
||||
{ 5, -1, nullptr, 1, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY4[] = {
|
||||
{ 0, 19, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 20, 21, "600_015", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
{ 22, -1, nullptr, 1, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY5[] = {
|
||||
{ 0, 22, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 23, -1, "600_015", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY6[] = {
|
||||
{ 0, 5, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 6, -1, "604_001", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY7[] = {
|
||||
{ 0, 5, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 6, -1, "604_001", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY8[] = {
|
||||
{ 0, 6, nullptr, 1, 0, -1, 2048, 0, &_state1, 0 },
|
||||
{ 0, 6, nullptr, 1, 0, -1, 2048, 0, &_state1, 1 },
|
||||
{ 0, 6, nullptr, 1, 0, -1, 2048, 0, &_state1, 2 },
|
||||
{ 7, -1, "600w011a", 1, 255, -1, 0, 0, &_state1, 0 },
|
||||
{ 7, -1, "600w011b", 1, 255, -1, 0, 0, &_state1, 1 },
|
||||
{ 7, -1, "600w011c", 1, 255, -1, 0, 0, &_state1, 2 },
|
||||
{ 0, -1, "600w011d", 1, 255, -1, 0, 0, &_state1, 3 },
|
||||
{ 0, -1, "600w011e", 1, 255, -1, 0, 0, &_state1, 4 },
|
||||
{ 0, -1, "600w011f", 1, 255, -1, 0, 0, &_state1, 5 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY9[] = {
|
||||
{ 0, 13, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 14, -1, "600_012", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY10Demo[] = {
|
||||
{ 0, 3, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 4, 14, nullptr, 0, 0, -1, 0, 0, nullptr, 0 },
|
||||
{ 15, 23, nullptr, 1, 255, -1, 0, 0, nullptr, 0 },
|
||||
{ 24, -1, nullptr, 0, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY10[] = {
|
||||
{ 0, 3, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 4, 14, nullptr, 0, 0, -1, 0, 0, nullptr, 0 },
|
||||
{ 15, 23, "604_008", 1, 255, -1, 0, 0, nullptr, 0 },
|
||||
{ 24, -1, nullptr, 0, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY11[] = {
|
||||
{ 0, 7, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 8, 17, nullptr, 1, 0, -1, 0, 0, nullptr, 0 },
|
||||
{ 18, -1, nullptr, 1, 0, 10016, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
const seriesPlayBreak Room604::PLAY12[] = {
|
||||
{ 0, 15, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 16, -1, "600_014", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
{ -1, -1, nullptr, 0, 0, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
int32 Room604::_state1;
|
||||
|
||||
Room604::Room604() : Section6Room() {
|
||||
_state1 = 0;
|
||||
}
|
||||
|
||||
void Room604::init() {
|
||||
player_set_commands_allowed(false);
|
||||
_G(flags)[V246] = 0;
|
||||
|
||||
if (_G(flags)[V274]) {
|
||||
hotspot_set_active("WOOD SHAVINGS", false);
|
||||
hotspot_set_active("ASHES", true);
|
||||
_woodchipsShould = 27;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WOODCHIPS_ANIMATION);
|
||||
|
||||
} else {
|
||||
hotspot_set_active("WOOD SHAVINGS", true);
|
||||
hotspot_set_active("ASHES", false);
|
||||
|
||||
if (_G(game).previous_room != 601) {
|
||||
_woodchipsShould = 25;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WOODCHIPS_ANIMATION);
|
||||
}
|
||||
}
|
||||
|
||||
_G(flags)[kStandingOnKibble] = 0;
|
||||
|
||||
if (_G(flags)[V273] == 1) {
|
||||
series_show("602spill", 0x900);
|
||||
_G(kernel).call_daemon_every_loop = true;
|
||||
}
|
||||
|
||||
if (_G(flags)[V245] == 10030) {
|
||||
Section6::_state1 = 6002;
|
||||
kernel_trigger_dispatch_now(6013);
|
||||
}
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6006) {
|
||||
_G(wilbur_should) = 18;
|
||||
Section6::_gerbilState = 6004;
|
||||
series_stream("604mg06", 4, 0xc00, kCHANGE_GERBILS_ANIMATION);
|
||||
series_play("604mg06s", 4, 0xc80);
|
||||
player_set_commands_allowed(false);
|
||||
}
|
||||
|
||||
switch (_G(flags)[kHampsterState]) {
|
||||
case 6000:
|
||||
Section6::_state4 = 0;
|
||||
break;
|
||||
case 6006:
|
||||
Section6::_state4 = 5;
|
||||
break;
|
||||
case 6007:
|
||||
Section6::_state4 = 7;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
kernel_trigger_dispatch_now(6014);
|
||||
|
||||
switch (_G(game).previous_room) {
|
||||
case KERNEL_RESTORING_GAME:
|
||||
player_set_commands_allowed(true);
|
||||
break;
|
||||
|
||||
case 601:
|
||||
_sectionSeries1 = series_load("604wi04");
|
||||
Section6::_series603 = series_load("604wi04s");
|
||||
_G(wilbur_should) = 1;
|
||||
|
||||
ws_demand_location(328, 317, 2);
|
||||
ws_hide_walker();
|
||||
player_set_commands_allowed(false);
|
||||
|
||||
if (_G(flags)[V242]) {
|
||||
_roomSeries1.show("604wi04", 1);
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
} else {
|
||||
kernel_trigger_dispatch_now(0);
|
||||
}
|
||||
break;
|
||||
|
||||
case 602:
|
||||
case 603:
|
||||
case 612:
|
||||
if (Section6::_state2) {
|
||||
_G(wilbur_should) = 7;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
} else {
|
||||
_G(wilbur_should) = 6;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
_sectionSeries1 = series_load("604wi04");
|
||||
Section6::_series603 = series_load("604wi04s");
|
||||
|
||||
ws_demand_location(328, 317, 2);
|
||||
ws_hide_walker();
|
||||
player_set_commands_allowed(false);
|
||||
_roomSeries1.show("604wi04", 1);
|
||||
_G(wilbur_should) = 1;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Room604::daemon() {
|
||||
switch (_G(kernel).trigger) {
|
||||
case 0:
|
||||
digi_preload_stream_breaks(SERIES1);
|
||||
series_stream_with_breaks(SERIES1, "604intro", 6, 1, 1);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
digi_unload_stream_breaks(SERIES1);
|
||||
_roomSeries1.show("604wi04", 1);
|
||||
_woodchipsShould = 25;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WOODCHIPS_ANIMATION);
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
term_message("Kibble is now being removed.");
|
||||
inv_move_object("KIBBLE", NOWHERE);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
_G(wilbur_should) = 10001;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
kernel_trigger_dispatch_now(4);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
series_show("602spill", 0x900);
|
||||
_G(kernel).call_daemon_every_loop = true;
|
||||
kernel_trigger_dispatch_now(2);
|
||||
break;
|
||||
|
||||
case 7:
|
||||
_G(game).setRoom(602);
|
||||
break;
|
||||
|
||||
case 8:
|
||||
_G(game).setRoom(603);
|
||||
break;
|
||||
|
||||
case 9:
|
||||
_G(game).setRoom(612);
|
||||
break;
|
||||
|
||||
case 6002:
|
||||
pal_fade_init(_G(kernel).first_fade, 255, 0, 30, 7);
|
||||
break;
|
||||
|
||||
case 6003:
|
||||
pal_fade_init(_G(kernel).first_fade, 255, 0, 30, 8);
|
||||
break;
|
||||
|
||||
case 6010:
|
||||
pal_fade_init(_G(kernel).first_fade, 255, 0, 30, 9);
|
||||
break;
|
||||
|
||||
case kCHANGE_GERBILS_ANIMATION:
|
||||
switch (Section6::_gerbilState) {
|
||||
case 22:
|
||||
break;
|
||||
|
||||
case 23:
|
||||
_G(flags)[kHampsterState] = 6006;
|
||||
_sectionMachine1 = series_play(_G(executing) == WHOLE_GAME ? "604mg04" : "604mg04a",
|
||||
0xcff, 0, kCHANGE_GERBILS_ANIMATION, 8, 0, 100, 0, 0, 0, 50);
|
||||
_sectionMachine2 = series_play("604mg04s", 0xd00, 0, -1, 8, 0, 100, 0, 0, 0, 50);
|
||||
Section6::_state4 = 3;
|
||||
kernel_trigger_dispatch_now(6014);
|
||||
Section6::_gerbilState = 24;
|
||||
break;
|
||||
|
||||
case 24:
|
||||
Section6::_gerbilState = 6003;
|
||||
Section6::_state4 = 4;
|
||||
kernel_trigger_dispatch_now(6014);
|
||||
_sectionMachine1 = series_play(_G(executing) == WHOLE_GAME ? "604mg04" : "604mg04a",
|
||||
0xcff, 0, kCHANGE_GERBILS_ANIMATION, 8, 0, 100, 0, 0, 51, -1);
|
||||
_sectionMachine2 = series_play("604mg04s", 0xd00, 0, -1, 8, 0, 100, 0, 0, 51, -1);
|
||||
break;
|
||||
|
||||
case 6003:
|
||||
Section6::_gerbilState = _G(flags)[V245] == 10030 ? 6005 : 6004;
|
||||
_sectionMachine1 = series_show("604mg04", 0xcff, 0, -1, -1, 83, 100, 0, 0);
|
||||
_sectionMachine2 = series_show("604mg04s", 0xd00, 0, -1, -1, 83, 100, 0, 0);
|
||||
kernel_trigger_dispatch_now(kCHANGE_GERBILS_ANIMATION);
|
||||
break;
|
||||
|
||||
case 6004:
|
||||
if (!_G(flags)[V246])
|
||||
_G(game).setRoom(605);
|
||||
break;
|
||||
|
||||
case 6005:
|
||||
kernel_trigger_dispatch_now(6006);
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case kCHANGE_WOODCHIPS_ANIMATION:
|
||||
switch (_woodchipsShould) {
|
||||
case 25:
|
||||
_woodchips = series_show("604chips", 0xcc0);
|
||||
break;
|
||||
|
||||
case 26:
|
||||
_woodchipsShould = 28;
|
||||
hotspot_set_active("WOOD SHAVINGS", false);
|
||||
hotspot_set_active("ASHES", true);
|
||||
|
||||
terminateMachineAndNull(_woodchips);
|
||||
digi_play("604_002", 2, 255, -1, 604);
|
||||
_woodchips = series_play("604chips", 0xb00, 0, kCHANGE_WOODCHIPS_ANIMATION);
|
||||
break;
|
||||
|
||||
case 27:
|
||||
_woodchips = series_show("604chips", 0xcc0, 0, -1, -1, 41, 100, 0, 0);
|
||||
break;
|
||||
|
||||
case 28:
|
||||
_woodchipsShould = 27;
|
||||
series_unload(_woodchipSeries);
|
||||
kernel_trigger_dispatch_now(kCHANGE_WOODCHIPS_ANIMATION);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 10008:
|
||||
if (_G(flags)[kHampsterState] == 6000) {
|
||||
_G(flags)[V002] = 1;
|
||||
_G(flags)[kHampsterState] = 6006;
|
||||
_G(flags)[V248] = 1;
|
||||
Section6::_gerbilState = 23;
|
||||
kernel_trigger_dispatch_now(kCHANGE_GERBILS_ANIMATION);
|
||||
_G(wilbur_should) = 10001;
|
||||
}
|
||||
break;
|
||||
|
||||
case kCHANGE_WILBUR_ANIMATION:
|
||||
switch (_G(wilbur_should)) {
|
||||
case 1:
|
||||
_G(wilbur_should) = 2;
|
||||
digi_play("604_006", 2, 155, kCHANGE_WILBUR_ANIMATION);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
_roomSeries1.terminate();
|
||||
inv_give_to_player("RAY GUN");
|
||||
series_play_with_breaks(PLAY1, "604wi04", 1, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
_G(wilbur_should) = 3;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
ws_unhide_walker();
|
||||
player_set_commands_allowed(true);
|
||||
switch (_G(flags)[V242]) {
|
||||
case 0:
|
||||
wilbur_speech("604w001");
|
||||
break;
|
||||
case 1:
|
||||
wilbur_speech("604w002");
|
||||
break;
|
||||
case 2:
|
||||
wilbur_speech("604w003");
|
||||
break;
|
||||
case 3:
|
||||
wilbur_speech("604w004");
|
||||
break;
|
||||
default:
|
||||
wilbur_speech("604w005");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 4:
|
||||
player_set_commands_allowed(false);
|
||||
ws_demand_facing(3);
|
||||
ws_hide_walker();
|
||||
series_play_with_breaks(PLAY2, "604wi06", 0x4ff, 6003, 3);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
player_set_commands_allowed(false);
|
||||
ws_demand_facing(7);
|
||||
ws_hide_walker();
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6007) {
|
||||
series_play_with_breaks(PLAY3, "604wi07", 0xc80, 6010, 3);
|
||||
} else {
|
||||
series_play_with_breaks(PLAY3, "604wi07", 0xc80, 6002, 3);
|
||||
}
|
||||
|
||||
_G(flags)[V246] = 1;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
ws_demand_location(171, 310, 3);
|
||||
ws_hide_walker();
|
||||
player_set_commands_allowed(false);
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6006) {
|
||||
Section6::_state4 = 5;
|
||||
kernel_trigger_dispatch_now(6014);
|
||||
_G(wilbur_should) = 18;
|
||||
Section6::_gerbilState = 6004;
|
||||
series_stream("604mg06", 4, 0xc80, kCHANGE_GERBILS_ANIMATION);
|
||||
series_play("604mg06s", 4, 0xc80, 0, -1);
|
||||
series_play_with_breaks(PLAY4, "604wi08", 0x4ff, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
} else {
|
||||
_G(wilbur_should) = 10001;
|
||||
series_play_with_breaks(PLAY4, "604wi08", 0x4ff, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
}
|
||||
break;
|
||||
|
||||
case 7:
|
||||
_G(wilbur_should) = 10001;
|
||||
ws_demand_location(337, 279, 7);
|
||||
ws_hide_walker();
|
||||
series_play_with_breaks(PLAY5, "604wi09", 0xc80, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 8:
|
||||
_G(flags)[V247] = 1;
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
_G(wilbur_should) = 10001;
|
||||
series_play_with_breaks(PLAY12, "604wi40", 0x800, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 9:
|
||||
ws_hide_walker();
|
||||
_G(wilbur_should) = 20;
|
||||
series_play_with_breaks(PLAY6, "604wi10", 0xcc0, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 10:
|
||||
ws_hide_walker();
|
||||
_G(wilbur_should) = 10001;
|
||||
player_set_commands_allowed(false);
|
||||
if (_G(executing) == INTERACTIVE_DEMO) {
|
||||
series_play_with_breaks(PLAY10Demo, "604wi11", 0xa00, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
} else {
|
||||
series_play_with_breaks(PLAY10, "604wi11", 0xa00, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
}
|
||||
// Remove Kibble from inventory
|
||||
kernel_trigger_dispatch_now(2);
|
||||
|
||||
if (_G(flags)[V274] == 0 && _G(flags)[kHampsterState] == 6000) {
|
||||
_G(flags)[kHampsterState] = 6006;
|
||||
_G(flags)[V248] = 1;
|
||||
term_message("The gerbils awaken");
|
||||
Section6::_gerbilState = 23;
|
||||
kernel_trigger_dispatch_now(kCHANGE_GERBILS_ANIMATION);
|
||||
}
|
||||
break;
|
||||
|
||||
case 11:
|
||||
ws_hide_walker();
|
||||
player_set_commands_allowed(false);
|
||||
_G(flags)[V247] = 1;
|
||||
_G(flags)[V274] = 1;
|
||||
_woodchipSeries = series_load("604chips");
|
||||
_G(wilbur_should) = 12;
|
||||
|
||||
series_play_with_breaks(PLAY11, "604wi12", 0x600, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 12:
|
||||
if (_G(flags)[kHampsterState] == 6000) {
|
||||
_G(flags)[kHampsterState] = 6006;
|
||||
Section6::_gerbilState = 23;
|
||||
kernel_trigger_dispatch_now(kCHANGE_GERBILS_ANIMATION);
|
||||
}
|
||||
|
||||
_G(wilbur_should) = 10001;
|
||||
_woodchipsShould = 26;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WOODCHIPS_ANIMATION);
|
||||
break;
|
||||
|
||||
case 13:
|
||||
ws_hide_walker();
|
||||
_G(wilbur_should) = 10001;
|
||||
series_play_with_breaks(PLAY7, "604wi10", 0xcc0, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 14:
|
||||
term_message("Slip on kibble!");
|
||||
player_set_commands_allowed(false);
|
||||
player_update_info();
|
||||
_G(wilbur_should) = 15;
|
||||
|
||||
ws_walk(_G(player_info).x + 1, 316, nullptr, kCHANGE_WILBUR_ANIMATION, 3);
|
||||
break;
|
||||
|
||||
case 15:
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
_G(wilbur_should) = 19;
|
||||
Section6::_savedX = _G(player_info).x - 358;
|
||||
Section6::_state1 = imath_ranged_rand(0, 5);
|
||||
|
||||
series_play_with_breaks(PLAY8, "604wi31", _G(player_info).depth, kCHANGE_WILBUR_ANIMATION,
|
||||
3, 6, 100, Section6::_savedX, 0);
|
||||
break;
|
||||
|
||||
case 16:
|
||||
ws_demand_location(425, 303, 9);
|
||||
player_set_commands_allowed(false);
|
||||
ws_hide_walker();
|
||||
_G(flags)[V273] = 1;
|
||||
_G(kernel).call_daemon_every_loop = true;
|
||||
|
||||
series_play_with_breaks(PLAY9, "604wi30", 0x901, 3, 3);
|
||||
break;
|
||||
|
||||
case 17:
|
||||
if (_G(flags)[kHampsterState] == 6000) {
|
||||
if (_G(flags)[V248]) {
|
||||
_G(wilbur_should) = 11;
|
||||
player_set_commands_allowed(false);
|
||||
wilbur_speech("604w028", kCHANGE_WILBUR_ANIMATION);
|
||||
} else {
|
||||
_G(wilbur_should) = 10001;
|
||||
wilbur_speech("604w027", kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
} else {
|
||||
_G(wilbur_should) = 11;
|
||||
player_set_commands_allowed(false);
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
break;
|
||||
|
||||
case 18:
|
||||
ws_unhide_walker();
|
||||
player_set_commands_allowed(false);
|
||||
_G(wilbur_should) = 21;
|
||||
wilbur_speech("604w006", kCHANGE_WILBUR_ANIMATION);
|
||||
break;
|
||||
|
||||
case 19:
|
||||
_G(wilbur_should) = 10002;
|
||||
player_set_commands_allowed(true);
|
||||
ws_unhide_walker();
|
||||
wilbur_speech("600w012");
|
||||
break;
|
||||
|
||||
case 20:
|
||||
Section6::_gerbilState = 23;
|
||||
kernel_trigger_dispatch_now(kCHANGE_GERBILS_ANIMATION);
|
||||
ws_unhide_walker();
|
||||
|
||||
if (_G(flags)[V248]) {
|
||||
digi_preload("604w014");
|
||||
player_set_commands_allowed(true);
|
||||
_G(wilbur_should) = 10002;
|
||||
wilbur_speech("604w014", kCHANGE_WILBUR_ANIMATION);
|
||||
} else {
|
||||
digi_preload("604w012");
|
||||
player_set_commands_allowed(false);
|
||||
_G(wilbur_should) = 10001;
|
||||
_G(flags)[V248] = 1;
|
||||
wilbur_speech("604w012", kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
break;
|
||||
|
||||
case 21:
|
||||
player_set_commands_allowed(false);
|
||||
ws_unhide_walker();
|
||||
break;
|
||||
|
||||
case 10003:
|
||||
if (_G(flags)[kHampsterState] == 6000) {
|
||||
series_load("604mg04");
|
||||
series_load("604mg04s");
|
||||
}
|
||||
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case kCALLED_EACH_LOOP:
|
||||
player_update_info();
|
||||
if (_G(player_info).x > 319 && _G(player_info).x < 413 &&
|
||||
_G(player_info).y > 280 && _G(player_info).y < 305 &&
|
||||
_G(player_info).facing > 2 && _G(player_info).facing < 7 &&
|
||||
_G(flags)[V273] == 1) {
|
||||
if (_G(flags)[kStandingOnKibble]) {
|
||||
_G(flags)[kStandingOnKibble] = 1;
|
||||
} else {
|
||||
_G(flags)[kStandingOnKibble] = 1;
|
||||
intr_cancel_sentence();
|
||||
_G(wilbur_should) = 14;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
} else {
|
||||
_G(flags)[kStandingOnKibble] = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Room604::pre_parser() {
|
||||
_G(kernel).trigger_mode = KT_DAEMON;
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6006 && player_said("TUBE ")) {
|
||||
intr_cancel_sentence();
|
||||
wilbur_speech("600w003");
|
||||
|
||||
} else if (player_said("RAY GUN", "WOOD SHAVINGS")) {
|
||||
_G(player).command_ready = false;
|
||||
|
||||
if (_G(flags)[V274] == 0) {
|
||||
_G(wilbur_should) = 17;
|
||||
player_hotspot_walk_override(353, 313, 10, kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
} else if (player_said("WOOD SHAVINGS", "KIBBLE")) {
|
||||
_G(wilbur_should) = 10;
|
||||
player_hotspot_walk_override(308, 301, 10, kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("RAY GUN", "GERBILS")) {
|
||||
_G(wilbur_should) = 8;
|
||||
player_hotspot_walk_override(286, 297, 10, kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("KIBBLE", "FLOOR")) {
|
||||
if (_G(flags)[V273]) {
|
||||
_G(player).need_to_walk = false;
|
||||
_G(player).need_to_walk = false;
|
||||
wilbur_speech("600w008z");
|
||||
} else {
|
||||
_G(wilbur_should) = 16;
|
||||
player_hotspot_walk_override(425, 303, 9, kCHANGE_WILBUR_ANIMATION);
|
||||
_G(player).command_ready = false;
|
||||
}
|
||||
|
||||
return;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
_G(player).command_ready = false;
|
||||
}
|
||||
|
||||
void Room604::parser() {
|
||||
_G(kernel).trigger_mode = KT_DAEMON;
|
||||
const bool rayGun = player_said("RAY GUN");
|
||||
|
||||
if (_G(walker).wilbur_said(SAID)) {
|
||||
// Already handled
|
||||
} else if (player_said("GEAR", "WOOD SHAVINGS")) {
|
||||
player_set_commands_allowed(false);
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6000) {
|
||||
_G(wilbur_should) = 9;
|
||||
wilbur_speech(_G(flags)[V248] ? "604w013" : "604w011",
|
||||
kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else {
|
||||
_G(wilbur_should) = 13;
|
||||
wilbur_speech("604w005", kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
} else if (player_said("GEAR", "TUBE ") || player_said("CLIMB IN", "TUBE ")) {
|
||||
_G(flags)[V246] = 1;
|
||||
Section6::_state2 = 2;
|
||||
_G(wilbur_should) = 5;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("GEAR", "TUBE") || player_said("CLIMB IN", "TUBE")) {
|
||||
_G(flags)[V246] = 1;
|
||||
Section6::_state2 = 0;
|
||||
_G(wilbur_should) = 4;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (rayGun && player_said("APPLE CORE")) {
|
||||
wilbur_speech("604w029");
|
||||
} else if (rayGun && player_said("ASHES")) {
|
||||
wilbur_speech("600w004");
|
||||
} else if (rayGun && player_said("BOTTLE CAP")) {
|
||||
wilbur_speech("600w004");
|
||||
} else if (player_said("LOOK AT", "WOOD SHAVINGS")) {
|
||||
if (_G(flags)[V248] == 0) {
|
||||
wilbur_speech("604w007");
|
||||
} else if (_G(flags)[kHampsterState] == 6000) {
|
||||
wilbur_speech("604w008");
|
||||
} else {
|
||||
wilbur_speech("604w005");
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
_G(player).command_ready = false;
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
67
engines/m4/burger/rooms/section6/room604.h
Normal file
67
engines/m4/burger/rooms/section6/room604.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM604_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM604_H
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Room604 : public Section6Room {
|
||||
private:
|
||||
static const seriesPlayBreak PLAY1[];
|
||||
static const seriesPlayBreak PLAY2[];
|
||||
static const seriesPlayBreak PLAY3[];
|
||||
static const seriesPlayBreak PLAY4[];
|
||||
static const seriesPlayBreak PLAY5[];
|
||||
static const seriesPlayBreak PLAY6[];
|
||||
static const seriesPlayBreak PLAY7[];
|
||||
static const seriesPlayBreak PLAY8[];
|
||||
static const seriesPlayBreak PLAY9[];
|
||||
static const seriesPlayBreak PLAY10[];
|
||||
static const seriesPlayBreak PLAY10Demo[];
|
||||
static const seriesPlayBreak PLAY11[];
|
||||
static const seriesPlayBreak PLAY12[];
|
||||
static int32 _state1;
|
||||
|
||||
private:
|
||||
machine *_woodchips = nullptr;
|
||||
int32 _woodchipSeries = 0;
|
||||
int _woodchipsShould = 0;
|
||||
|
||||
public:
|
||||
Room604();
|
||||
~Room604() override {}
|
||||
|
||||
void init() override;
|
||||
void daemon() override;
|
||||
void pre_parser() override;
|
||||
void parser() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
78
engines/m4/burger/rooms/section6/room605.cpp
Normal file
78
engines/m4/burger/rooms/section6/room605.cpp
Normal file
@@ -0,0 +1,78 @@
|
||||
/* 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 <http://www.gnu.org/licenses/ },.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/room605.h"
|
||||
#include "m4/burger/rooms/section6/section6.h"
|
||||
#include "m4/burger/vars.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
static const seriesStreamBreak SERIES1[] = {
|
||||
{ 0, "605x001", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 1, "605_002", 3, 155, -1, 0, nullptr, 0 },
|
||||
{ 31, "605_001", 1, 255, -1, 0, nullptr, 0 },
|
||||
STREAM_BREAK_END
|
||||
};
|
||||
|
||||
static const seriesStreamBreak SERIES2[] = {
|
||||
{ 0, "605x001", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 1, "605_002", 3, 155, -1, 0, nullptr, 0 },
|
||||
{ 31, "605_001", 1, 255, -1, 0, nullptr, 0 },
|
||||
STREAM_BREAK_END
|
||||
};
|
||||
|
||||
|
||||
void Room605::preload() {
|
||||
_G(player).walker_in_this_scene = false;
|
||||
}
|
||||
|
||||
void Room605::init() {
|
||||
kernel_trigger_dispatch_now(1);
|
||||
}
|
||||
|
||||
void Room605::daemon() {
|
||||
switch (_G(kernel).trigger) {
|
||||
case 1:
|
||||
if (player_been_here(605)) {
|
||||
digi_preload_stream_breaks(SERIES2);
|
||||
_val1 = imath_ranged_rand(0, 4);
|
||||
series_stream_with_breaks(SERIES2, "605radar", 6, 1, 6007);
|
||||
} else {
|
||||
digi_preload_stream_breaks(SERIES1);
|
||||
series_stream_with_breaks(SERIES1, "605radar", 6, 1, 6007);
|
||||
}
|
||||
break;
|
||||
|
||||
case 6007:
|
||||
_G(game).setRoom(608);
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
48
engines/m4/burger/rooms/section6/room605.h
Normal file
48
engines/m4/burger/rooms/section6/room605.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM605_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM605_H
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Room605 : public Section6Room {
|
||||
private:
|
||||
int _val1 = 0;
|
||||
|
||||
public:
|
||||
Room605() : Section6Room() {}
|
||||
~Room605() override {}
|
||||
|
||||
void preload() override;
|
||||
void init() override;
|
||||
void daemon() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
77
engines/m4/burger/rooms/section6/room606.cpp
Normal file
77
engines/m4/burger/rooms/section6/room606.cpp
Normal file
@@ -0,0 +1,77 @@
|
||||
/* 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 <http://www.gnu.org/licenses/ },.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/room606.h"
|
||||
#include "m4/burger/rooms/section6/section6.h"
|
||||
#include "m4/burger/vars.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
const seriesStreamBreak Room606::SERIES1[] = {
|
||||
{ 0, "606x001", 2, 100, -1, 0, nullptr, 0 },
|
||||
{ 15, "606w003a", 1, 255, -1, 0, &_state1, 0 },
|
||||
{ 15, "606w003b", 1, 255, -1, 0, &_state1, 1 },
|
||||
{ 15, "606w003c", 1, 255, -1, 0, &_state1, 2 },
|
||||
{ 15, "606w003d", 1, 255, -1, 0, &_state1, 3 },
|
||||
STREAM_BREAK_END
|
||||
};
|
||||
|
||||
int32 Room606::_state1;
|
||||
|
||||
Room606::Room606() : Section6Room() {
|
||||
_state1 = 0;
|
||||
}
|
||||
|
||||
void Room606::preload() {
|
||||
_G(player).walker_in_this_scene = false;
|
||||
}
|
||||
|
||||
void Room606::init() {
|
||||
kernel_trigger_dispatch_now(1);
|
||||
}
|
||||
|
||||
void Room606::daemon() {
|
||||
switch (_G(kernel).trigger) {
|
||||
case 1:
|
||||
digi_preload("606x001", 606);
|
||||
digi_preload("606w003a", 606);
|
||||
digi_preload("606w003b", 606);
|
||||
digi_preload("606w003c", 606);
|
||||
digi_preload("606w003d", 606);
|
||||
_state1 = imath_ranged_rand(0, 3);
|
||||
series_stream_with_breaks(SERIES1, "606laser", 8, 1, 6007);
|
||||
break;
|
||||
|
||||
case 6007:
|
||||
_G(game).setRoom(608);
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
48
engines/m4/burger/rooms/section6/room606.h
Normal file
48
engines/m4/burger/rooms/section6/room606.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM606_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM606_H
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Room606 : public Section6Room {
|
||||
private:
|
||||
static const seriesStreamBreak SERIES1[];
|
||||
static int32 _state1;
|
||||
public:
|
||||
Room606();
|
||||
~Room606() override {}
|
||||
|
||||
void preload() override;
|
||||
void init() override;
|
||||
void daemon() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
110
engines/m4/burger/rooms/section6/room608.cpp
Normal file
110
engines/m4/burger/rooms/section6/room608.cpp
Normal file
@@ -0,0 +1,110 @@
|
||||
/* 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 <http://www.gnu.org/licenses/ },.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/room608.h"
|
||||
#include "m4/burger/rooms/section6/section6.h"
|
||||
#include "m4/burger/vars.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
const seriesStreamBreak Room608::SERIES1[] = {
|
||||
{ 0, "608_003", 3, 100, -1, 0, nullptr, 0 },
|
||||
{ 4, "608f004a", 1, 255, -1, 0, &_state1, 0 },
|
||||
{ 33, "608_001", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 48, "608_002", 2, 255, -1, 0, nullptr, 0 },
|
||||
STREAM_BREAK_END
|
||||
};
|
||||
|
||||
const seriesStreamBreak Room608::SERIES2[] = {
|
||||
{ 0, "608_003", 3, 100, -1, 0, nullptr, 0 },
|
||||
{ 4, "608f003a", 1, 255, -1, 0, &_state1, 0 },
|
||||
{ 4, "608f001", 1, 255, -1, 0, &_state1, 1 },
|
||||
{ 4, "608f002a", 1, 255, -1, 0, &_state1, 2 },
|
||||
{ 33, "608_001", 2, 255, -1, 0, nullptr, 0 },
|
||||
{ 48, "608_002", 2, 255, -1, 0, nullptr, 0 },
|
||||
STREAM_BREAK_END
|
||||
};
|
||||
|
||||
int32 Room608::_state1;
|
||||
|
||||
Room608::Room608() : Section6Room() {
|
||||
_state1 = 0;
|
||||
}
|
||||
|
||||
void Room608::preload() {
|
||||
_G(player).walker_in_this_scene = false;
|
||||
}
|
||||
|
||||
void Room608::init() {
|
||||
pal_cycle_init(101, 110, 6, -1, -1);
|
||||
_G(wilbur_should) = (_G(game).previous_room == 605 ||
|
||||
_G(game).previous_room == 606) ? 10016 : 10015;
|
||||
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
}
|
||||
|
||||
void Room608::daemon() {
|
||||
switch (_G(kernel).trigger) {
|
||||
case 1:
|
||||
pal_fade_init(_G(kernel).first_fade, 255, 0, 0, -1);
|
||||
release_trigger_on_digi_state(10027, 1);
|
||||
break;
|
||||
|
||||
case kCHANGE_WILBUR_ANIMATION:
|
||||
switch (_G(wilbur_should)) {
|
||||
case 10015:
|
||||
term_message("failed normally");
|
||||
_state1 = 0;
|
||||
digi_preload_stream_breaks(SERIES1);
|
||||
series_stream_with_breaks(SERIES1, "608fail", 6, 1, 1);
|
||||
break;
|
||||
|
||||
case 10016:
|
||||
if (_G(game).previous_room == 606) {
|
||||
_state1 = 0;
|
||||
} else if (player_been_here(608)) {
|
||||
_state1 = 1;
|
||||
} else {
|
||||
_state1 = 2;
|
||||
}
|
||||
|
||||
term_message("failed burnt");
|
||||
digi_preload_stream_breaks(SERIES2);
|
||||
series_stream_with_breaks(SERIES2, "608burnt", 6, 1, 1);
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
49
engines/m4/burger/rooms/section6/room608.h
Normal file
49
engines/m4/burger/rooms/section6/room608.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM608_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM608_H
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Room608 : public Section6Room {
|
||||
private:
|
||||
static const seriesStreamBreak SERIES1[];
|
||||
static const seriesStreamBreak SERIES2[];
|
||||
static int32 _state1;
|
||||
public:
|
||||
Room608();
|
||||
~Room608() override {}
|
||||
|
||||
void preload() override;
|
||||
void init() override;
|
||||
void daemon() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
75
engines/m4/burger/rooms/section6/room609.cpp
Normal file
75
engines/m4/burger/rooms/section6/room609.cpp
Normal file
@@ -0,0 +1,75 @@
|
||||
/* 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 <http://www.gnu.org/licenses/ },.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/room609.h"
|
||||
#include "m4/burger/rooms/section6/section6.h"
|
||||
#include "m4/burger/vars.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
const seriesStreamBreak Room609::SERIES1[] = {
|
||||
{ 0, "609_001", 3, 125, -1, 0, nullptr, 0 },
|
||||
{ 20, "609w001", 1, 255, -1, 0, &_state1, 1 },
|
||||
{ 30, "609w002a", 1, 255, -1, 0, &_state1, 2 },
|
||||
{ 30, "609w002b", 1, 255, -1, 0, &_state1, 3 },
|
||||
{ 70, "609_002", 1, 255, -1, 0, nullptr, 0 },
|
||||
STREAM_BREAK_END
|
||||
};
|
||||
|
||||
int32 Room609::_state1;
|
||||
|
||||
Room609::Room609() : Section6Room() {
|
||||
_state1 = 0;
|
||||
}
|
||||
|
||||
void Room609::preload() {
|
||||
_G(player).walker_in_this_scene = false;
|
||||
}
|
||||
|
||||
void Room609::init() {
|
||||
_G(flags)[V277] = 6001;
|
||||
_G(flags)[kHampsterState] = 6007;
|
||||
kernel_trigger_dispatch_now(1);
|
||||
}
|
||||
|
||||
void Room609::daemon() {
|
||||
switch (_G(kernel).trigger) {
|
||||
case 1:
|
||||
_state1 = _G(player).been_here_before ? 1 : imath_ranged_rand(2, 3);
|
||||
digi_preload_stream_breaks(SERIES1);
|
||||
series_stream_with_breaks(SERIES1, "609wi01", 6, 1, 6010);
|
||||
break;
|
||||
|
||||
case 6010:
|
||||
_G(game).setRoom(612);
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
48
engines/m4/burger/rooms/section6/room609.h
Normal file
48
engines/m4/burger/rooms/section6/room609.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM609_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM609_H
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Room609 : public Section6Room {
|
||||
private:
|
||||
static const seriesStreamBreak SERIES1[];
|
||||
static int32 _state1;
|
||||
public:
|
||||
Room609();
|
||||
~Room609() override {}
|
||||
|
||||
void preload() override;
|
||||
void init() override;
|
||||
void daemon() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
99
engines/m4/burger/rooms/section6/room610.cpp
Normal file
99
engines/m4/burger/rooms/section6/room610.cpp
Normal file
@@ -0,0 +1,99 @@
|
||||
/* 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 <http://www.gnu.org/licenses/ },.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/room610.h"
|
||||
#include "m4/burger/rooms/section6/section6.h"
|
||||
#include "m4/burger/vars.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
const seriesStreamBreak Room610::SERIES1[] = {
|
||||
{ 1, "610_001", 3, 40, -1, 1024, nullptr, 0 },
|
||||
{ 7, "610_002", 2, 175, -1, 0, nullptr, 0 },
|
||||
{ 9, "610Z001", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 10, nullptr, 2, 0, -1, 0, nullptr, 0 },
|
||||
{ 11, "610_003", 2, 175, -1, 0, nullptr, 0 },
|
||||
{ 14, nullptr, 2, 0, -1, 0, nullptr, 0 },
|
||||
{ 62, "610Z002", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 139, "610Z003", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 145, "610_002", 2, 175, -1, 0, nullptr, 0 },
|
||||
{ 148, nullptr, 2, 0, -1, 0, nullptr, 0 },
|
||||
{ 149, "610_004", 2, 175, -1, 0, nullptr, 0 },
|
||||
{ 152, nullptr, 2, 0, -1, 0, nullptr, 0 },
|
||||
{ 166, "610_005", 2, 125, -1, 0, nullptr, 0 },
|
||||
{ 174, "610_006", 2, 70, -1, 0, nullptr, 0 },
|
||||
{ 176, "610Z004", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 202, "610Z005", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 238, "610F001", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 277, "610Z006", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 285, "610F002", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 292, "610_006", 2, 70, -1, 0, nullptr, 0 },
|
||||
{ 336, "610Z007", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 387, "610F003", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 400, "610_006", 2, 70, -1, 0, nullptr, 0 },
|
||||
{ 414, "610Z008", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 447, "610F004", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 452, "610_007", 2, 75, -1, 0, nullptr, 0 },
|
||||
{ 458, "610Z009", 1, 255, -1, 0, nullptr, 0 },
|
||||
{ 562, nullptr, 0, 0, 2, 0, nullptr, 0 },
|
||||
STREAM_BREAK_END
|
||||
};
|
||||
|
||||
int32 Room610::_state1;
|
||||
|
||||
Room610::Room610() : Section6Room() {
|
||||
_state1 = 0;
|
||||
}
|
||||
|
||||
void Room610::preload() {
|
||||
_G(player).walker_in_this_scene = false;
|
||||
}
|
||||
|
||||
void Room610::init() {
|
||||
_G(flags)[kSecondTestPassed] = 1;
|
||||
_G(kernel).suppress_fadeup = true;
|
||||
kernel_trigger_dispatch_now(1);
|
||||
}
|
||||
|
||||
void Room610::daemon() {
|
||||
switch (_G(kernel).trigger) {
|
||||
case 1:
|
||||
digi_preload_stream_breaks(SERIES1);
|
||||
pal_fade_set_start(0);
|
||||
series_stream_with_breaks(SERIES1, "610A", 6, 1, 10027);
|
||||
pal_fade_init(_G(kernel).first_fade, 255, 100, 60, -1);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
pal_fade_init(0, 255, 0, 30, -1);
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
48
engines/m4/burger/rooms/section6/room610.h
Normal file
48
engines/m4/burger/rooms/section6/room610.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM610_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM610_H
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Room610 : public Section6Room {
|
||||
private:
|
||||
static const seriesStreamBreak SERIES1[];
|
||||
static int32 _state1;
|
||||
public:
|
||||
Room610();
|
||||
~Room610() override {}
|
||||
|
||||
void preload() override;
|
||||
void init() override;
|
||||
void daemon() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
483
engines/m4/burger/rooms/section6/section6.cpp
Normal file
483
engines/m4/burger/rooms/section6/section6.cpp
Normal file
@@ -0,0 +1,483 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/section6.h"
|
||||
#include "m4/burger/vars.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
static const seriesPlayBreak PLAY1[] = {
|
||||
{ 0, 10, nullptr, 1, 0, -1, 2048, 0, nullptr, 0 },
|
||||
{ 11, 30, "600_011", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
{ 31, 33, "600_001", 2, 255, -1, 0, 0, nullptr, 0 },
|
||||
{ 34, -1, "600_002", 1, 255, -1, 0, 0, nullptr, 0 },
|
||||
PLAY_BREAK_END
|
||||
};
|
||||
|
||||
int Section6::_state1;
|
||||
int Section6::_state2;
|
||||
int Section6::_gerbilState;
|
||||
int Section6::_state4;
|
||||
int Section6::_savedX;
|
||||
int Section6::_series603;
|
||||
|
||||
Section6::Section6() : Rooms::Section() {
|
||||
add(601, &_room601);
|
||||
add(602, &_room602);
|
||||
add(603, &_room603);
|
||||
add(604, &_room604);
|
||||
add(605, &_room605);
|
||||
add(606, &_room606);
|
||||
add(608, &_room608);
|
||||
add(609, &_room609);
|
||||
add(610, &_room610);
|
||||
add(612, &_room602);
|
||||
|
||||
_state1 = 6000;
|
||||
_state2 = 3;
|
||||
_gerbilState = 0;
|
||||
_state4 = 0;
|
||||
_savedX = 0;
|
||||
_series603 = 0;
|
||||
}
|
||||
|
||||
void Section6::daemon() {
|
||||
switch (_G(kernel).trigger) {
|
||||
case 6003:
|
||||
case 6004:
|
||||
case 6005:
|
||||
case 6006:
|
||||
_G(game).setRoom(_G(kernel).trigger - 6000 + 600);
|
||||
break;
|
||||
|
||||
case 6008:
|
||||
_G(game).setRoom(609);
|
||||
break;
|
||||
|
||||
case 6009:
|
||||
_G(game).setRoom(610);
|
||||
break;
|
||||
|
||||
case 6010:
|
||||
_G(game).setRoom(612);
|
||||
break;
|
||||
|
||||
case 6011:
|
||||
if (_gerbilState == 6005)
|
||||
kernel_trigger_dispatch_now(6006);
|
||||
break;
|
||||
|
||||
case 6013:
|
||||
switch (_state1) {
|
||||
case 6001:
|
||||
if (_G(flags)[kHampsterState] == 6000) {
|
||||
if (_G(game).room_id == 602)
|
||||
_state4 = 2;
|
||||
if (_G(game).room_id == 603)
|
||||
_state4 = 1;
|
||||
if (_G(game).room_id == 604)
|
||||
_state4 = 0;
|
||||
}
|
||||
|
||||
_G(flags)[V250] = 1;
|
||||
inv_move_object("BLOCK OF ICE", NOWHERE);
|
||||
_state1 = 6002;
|
||||
ws_unhide_walker();
|
||||
|
||||
if (_G(game).room_id == 602)
|
||||
_G(flags)[V245] = 10028;
|
||||
if (_G(game).room_id == 603)
|
||||
_G(flags)[V245] = 10029;
|
||||
if (_G(game).room_id == 604)
|
||||
_G(flags)[V245] = 10030;
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6000) {
|
||||
if (_G(game).room_id == 602)
|
||||
_state4 = 2;
|
||||
if (_G(game).room_id == 603)
|
||||
_state4 = 1;
|
||||
if (_G(game).room_id == 604)
|
||||
_state4 = 0;
|
||||
|
||||
kernel_trigger_dispatch_now(6014);
|
||||
}
|
||||
|
||||
kernel_trigger_dispatch_now(6013);
|
||||
_G(wilbur_should) = 10001;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
break;
|
||||
|
||||
case 6002:
|
||||
term_message("Ga-boingy boingy boingy boing!");
|
||||
_series1 = series_play("602hop_1", 0xa80, 0, -1, 0, -1);
|
||||
_series2 = series_play("602hop_2", 0x780, 0, -1, 0, -1);
|
||||
_series3 = series_play("602hop_3", 0x400, 0, -1, 0, -1);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 6014:
|
||||
if (_val1)
|
||||
freeDigi(_val1);
|
||||
|
||||
switch (_state4) {
|
||||
case 0:
|
||||
if (_G(flags)[V245] == 10030) {
|
||||
term_message("** Ambience: Gerbils snoring with grasshoppers! 100 **");
|
||||
_val1 = 6001;
|
||||
digi_preload("604_003", 604);
|
||||
digi_play_loop("604_003", 3, 125, -1, 604);
|
||||
} else {
|
||||
term_message("** Ambience: Gerbils snoring! 100 **");
|
||||
_val1 = 6000;
|
||||
digi_preload("600_003", 600);
|
||||
digi_play_loop("600_003", 3, 155, -1, 600);
|
||||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if (_G(flags)[V245] == 10029) {
|
||||
term_message("** Ambience: Gerbils snoring with grasshoppers! 60 **");
|
||||
_val1 = 6002;
|
||||
digi_preload("600_003", 603);
|
||||
digi_play_loop("600_003", 3, 125, -1, 603);
|
||||
} else {
|
||||
term_message("** Ambience: Gerbils snoring! 60 **");
|
||||
_val1 = 6000;
|
||||
digi_preload("600_003", 600);
|
||||
digi_play_loop("600_003", 3, 65, -1, 600);
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
if (_G(flags)[V245] == 10028) {
|
||||
term_message("** Ambience: Gerbils snoring with grasshoppers! 30 **");
|
||||
_val1 = 6003;
|
||||
digi_preload("602_003", 602);
|
||||
digi_play_loop("602_003", 3, 125, -1, 602);
|
||||
} else {
|
||||
term_message("** Ambience: Gerbils snoring! 30 **");
|
||||
_val1 = 6000;
|
||||
digi_preload("600_003", 600);
|
||||
digi_play_loop("600_003", 3, 20, -1, 600);
|
||||
}
|
||||
break;
|
||||
|
||||
case 3:
|
||||
if (_G(flags)[V245] == 10030) {
|
||||
term_message("** Ambience: Gerbils waking up with grasshoppers! 100 **");
|
||||
_val1 = 6005;
|
||||
digi_preload("604_005", 604);
|
||||
digi_play_loop("604_005", 3, 125, -1, 604);
|
||||
} else {
|
||||
term_message("** Ambience: Gerbils waking up! 100 **");
|
||||
_val1 = 6004;
|
||||
digi_preload("604_004", 604);
|
||||
digi_play_loop("604_004", 3, 155, -1, 604);
|
||||
}
|
||||
break;
|
||||
|
||||
case 4:
|
||||
if ((_G(flags)[V245] == 10030 && _G(game).room_id == 604) ||
|
||||
(_G(flags)[V245] == 10029 && _G(game).room_id == 603) ||
|
||||
(_G(flags)[V245] == 10028 && _G(game).room_id == 602)) {
|
||||
term_message("** Ambience: Gerbils arming weapons with grasshoppers! 100 **'");
|
||||
_val1 = 6007;
|
||||
digi_preload("600_005", 600);
|
||||
digi_play_loop("600_005", 3, 155, -1, 600);
|
||||
} else {
|
||||
term_message("** Ambience: Gerbils arming weapons! 100 **");
|
||||
_val1 = 6006;
|
||||
digi_preload("600_004", 600);
|
||||
digi_play_loop("600_004", 3, 155, -1, 600);
|
||||
}
|
||||
break;
|
||||
|
||||
case 5:
|
||||
if ((_G(flags)[V245] == 10030 && _G(game).room_id == 604) ||
|
||||
(_G(flags)[V245] == 10029 && _G(game).room_id == 603) ||
|
||||
(_G(flags)[V245] == 10028 && _G(game).room_id == 602)) {
|
||||
term_message("** Ambience: Gerbils entering with grasshoppers! 100 **");
|
||||
_val1 = 6009;
|
||||
digi_preload("600_007", 600);
|
||||
digi_play_loop("600_007", 3, 155, -1, 600);
|
||||
} else {
|
||||
term_message("** Ambience: Gerbils entering! 100 **");
|
||||
_val1 = 6008;
|
||||
digi_preload("600_006", 600);
|
||||
digi_play_loop("600_006", 3, 155, -1, 600);
|
||||
}
|
||||
break;
|
||||
|
||||
case 6:
|
||||
term_message("** Ambience: Gerbils are firing at grasshoppers! 100 **");
|
||||
_val1 = 0;
|
||||
break;
|
||||
|
||||
case 7:
|
||||
term_message("** Ambience: Gerbils are fried! 25 **");
|
||||
_val1 = 0;
|
||||
break;
|
||||
|
||||
case 8:
|
||||
term_message("** Ambience: Gerbils are fried! 50 **");
|
||||
_val1 = 0;
|
||||
break;
|
||||
|
||||
case 9:
|
||||
if (_G(flags)[V277] == 6003 && _G(flags)[V278] == 1) {
|
||||
term_message("** Ambience: Gerbils are fried and wheel running! 100 **");
|
||||
_val1 = 0;
|
||||
} else {
|
||||
term_message("** Ambience: Gerbils are fried! 100 **");
|
||||
_val1 = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case kCHANGE_WILBUR_ANIMATION:
|
||||
switch (_G(wilbur_should)) {
|
||||
case 6000:
|
||||
player_set_commands_allowed(false);
|
||||
series_load("602hop_1");
|
||||
series_load("602hop_2");
|
||||
series_load("602hop_3");
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6006)
|
||||
digi_preload("600_007");
|
||||
|
||||
if (_G(flags)[kHampsterState] == 6000) {
|
||||
if (_G(game).room_id == 602)
|
||||
digi_preload("602_003");
|
||||
if (_G(game).room_id == 603)
|
||||
digi_preload("603_003");
|
||||
if (_G(game).room_id == 604)
|
||||
digi_preload("604_003");
|
||||
}
|
||||
|
||||
_G(wilbur_should) = 6001;
|
||||
ws_walk(352, 276, nullptr, kCHANGE_WILBUR_ANIMATION, 9);
|
||||
break;
|
||||
|
||||
case 6001:
|
||||
switch (_G(game).room_id) {
|
||||
case 602:
|
||||
ws_hide_walker();
|
||||
_state1 = 6001;
|
||||
_G(wilbur_should) = 6002;
|
||||
_G(flags)[V244] = 10028;
|
||||
series_play_with_breaks(PLAY1, "602melt", 0x999, kCHANGE_WILBUR_ANIMATION,
|
||||
WITH_SHADOW | PRELOAD_SOUNDS);
|
||||
break;
|
||||
|
||||
case 603:
|
||||
ws_hide_walker();
|
||||
_state1 = 6001;
|
||||
_G(wilbur_should) = 6002;
|
||||
_G(flags)[V244] = 10029;
|
||||
series_play_with_breaks(PLAY1, "603melt", 0x999, kCHANGE_WILBUR_ANIMATION,
|
||||
_G(executing) == WHOLE_GAME ? WITH_SHADOW | PRELOAD_SOUNDS : PRELOAD_SOUNDS);
|
||||
break;
|
||||
|
||||
case 604:
|
||||
if (_G(flags)[kHampsterState] == 6006) {
|
||||
_G(wilbur_should) = 10002;
|
||||
player_set_commands_allowed(true);
|
||||
} else {
|
||||
_G(flags)[V244] = 10030;
|
||||
ws_hide_walker();
|
||||
_state1 = 6001;
|
||||
_G(wilbur_should) = 6002;
|
||||
series_play_with_breaks(PLAY1, "604melt", 0x999, kCHANGE_WILBUR_ANIMATION,
|
||||
_G(executing) == WHOLE_GAME ? WITH_SHADOW | PRELOAD_SOUNDS : PRELOAD_SOUNDS);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 6002:
|
||||
kernel_trigger_dispatch_now(6013);
|
||||
ws_unhide_walker();
|
||||
player_set_commands_allowed(true);
|
||||
_G(wilbur_should) = 10002;
|
||||
|
||||
if (_G(flags)[V251] == 0) {
|
||||
_G(flags)[V251] = 1;
|
||||
wilbur_speech("600w008");
|
||||
}
|
||||
break;
|
||||
|
||||
case 6003:
|
||||
_G(flags)[V266] = 0;
|
||||
kernel_trigger_dispatch_now(6006);
|
||||
break;
|
||||
|
||||
case 10015:
|
||||
if (_G(executing) == INTERACTIVE_DEMO) {
|
||||
// After having clicked the teleporter/"failed normally" button we end up here
|
||||
// In the DEMO this click leads to the main menu (it does not restart the test sequence)
|
||||
_G(game).setRoom(901);
|
||||
} else {
|
||||
_G(game).setRoom(608);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
_G(kernel).continue_handling_trigger = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Section6::parser() {
|
||||
_G(kernel).trigger_mode = KT_DAEMON;
|
||||
const bool kibble = player_said("KIBBLE");
|
||||
|
||||
if (player_said("RAY GUN", "BLOCK OF ICE")) {
|
||||
_G(flags)[V247] = 1;
|
||||
_G(wilbur_should) = 6000;
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("RAY GUN", "GERBILS") && _G(flags)[kHampsterState] == 6006) {
|
||||
_G(flags)[V247] = 1;
|
||||
term_message("Taking gun out to shoot gerbils...");
|
||||
kernel_trigger_dispatch_now(kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else if (player_said("RAY GUN", "KIBBLE ")) {
|
||||
if (inv_player_has("KIBBLE")) {
|
||||
_G(wilbur_should) = kSERIES_PLAY_BREAK_2;
|
||||
ws_turn_to_face(9, kCHANGE_WILBUR_ANIMATION);
|
||||
|
||||
} else {
|
||||
wilbur_speech("602w011");
|
||||
}
|
||||
} else if (kibble && player_said("LOOK AT")) {
|
||||
wilbur_speech("602w009");
|
||||
} else if (kibble && (player_said("KIBBLE TRAY") || player_said("KIBBLE "))) {
|
||||
wilbur_speech("602w048");
|
||||
} else if (kibble && (player_said("MOTOR") || player_said("MOTOR "))) {
|
||||
wilbur_speech("600w003");
|
||||
} else if (kibble && player_said("TAKE") && inv_player_has("KIBBLE")) {
|
||||
wilbur_speech("602w010");
|
||||
|
||||
} else if (player_said("RAY GUN")) {
|
||||
if (player_said("LOOK AT")) {
|
||||
wilbur_speech(_G(flags)[V247] ? "600w002" : "600w001");
|
||||
} else if (player_said("GERBIL HEAD") || player_said("GERBIL HEAD ") ||
|
||||
player_said("WILBUR")) {
|
||||
wilbur_speech("600w005");
|
||||
} else if (player_said("GERBIL PIECES")) {
|
||||
wilbur_speech("600w004");
|
||||
} else if (player_said("BARS")) {
|
||||
wilbur_speech("999w018");
|
||||
} else if (player_said("FLOOR") || player_said("FLOOR ") || player_said("ROOF")) {
|
||||
wilbur_speech("600w007");
|
||||
} else if (player_said("TUBE") || player_said("TUBE ") ||
|
||||
player_said("TUBE ") || player_said("TUBE ")) {
|
||||
wilbur_speech("600w003");
|
||||
} else if (player_said("TAKE")) {
|
||||
wilbur_speech("999w021");
|
||||
} else {
|
||||
wilbur_speech("600w003");
|
||||
}
|
||||
} else if (player_said("GERBILS")) {
|
||||
if (player_said("BLOCK OF ICE")) {
|
||||
wilbur_speech("600w013");
|
||||
} else if (player_said("BOTTLE")) {
|
||||
wilbur_speech("600w014");
|
||||
} else if (player_said("KIBBLE")) {
|
||||
wilbur_speech("600w009");
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
_G(player).command_ready = false;
|
||||
}
|
||||
|
||||
void Section6::freeDigi(int state) {
|
||||
switch (state) {
|
||||
case 6000:
|
||||
digi_unload("600_003");
|
||||
break;
|
||||
case 6001:
|
||||
digi_unload("604_003");
|
||||
break;
|
||||
case 6002:
|
||||
digi_unload("603_003");
|
||||
break;
|
||||
case 6003:
|
||||
digi_unload("602_003");
|
||||
break;
|
||||
case 6004:
|
||||
digi_unload("604_004");
|
||||
break;
|
||||
case 6005:
|
||||
digi_unload("604_005");
|
||||
break;
|
||||
case 6006:
|
||||
digi_unload("600_004");
|
||||
break;
|
||||
case 6007:
|
||||
digi_unload("600_005");
|
||||
break;
|
||||
case 6008:
|
||||
digi_unload("600_006");
|
||||
break;
|
||||
case 6009:
|
||||
digi_unload("600_007");
|
||||
break;
|
||||
case 6010:
|
||||
digi_unload("600xxxxx");
|
||||
break;
|
||||
case 6011:
|
||||
digi_unload("600_010");
|
||||
break;
|
||||
case 6012:
|
||||
digi_unload("600xxxxx");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
80
engines/m4/burger/rooms/section6/section6.h
Normal file
80
engines/m4/burger/rooms/section6/section6.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_H
|
||||
|
||||
#include "m4/burger/rooms/room.h"
|
||||
#include "m4/burger/rooms/section.h"
|
||||
#include "m4/burger/rooms/section6/room601.h"
|
||||
#include "m4/burger/rooms/section6/room602.h"
|
||||
#include "m4/burger/rooms/section6/room603.h"
|
||||
#include "m4/burger/rooms/section6/room604.h"
|
||||
#include "m4/burger/rooms/section6/room605.h"
|
||||
#include "m4/burger/rooms/section6/room606.h"
|
||||
#include "m4/burger/rooms/section6/room608.h"
|
||||
#include "m4/burger/rooms/section6/room609.h"
|
||||
#include "m4/burger/rooms/section6/room610.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Section6 : public Rooms::Section {
|
||||
private:
|
||||
Room601 _room601;
|
||||
Room602 _room602;
|
||||
Room603 _room603;
|
||||
Room604 _room604;
|
||||
Room605 _room605;
|
||||
Room606 _room606;
|
||||
Room608 _room608;
|
||||
Room609 _room609;
|
||||
Room610 _room610;
|
||||
|
||||
machine *_series1 = nullptr;
|
||||
machine *_series2 = nullptr;
|
||||
machine *_series3 = nullptr;
|
||||
int _val1 = 0;
|
||||
|
||||
void freeDigi(int state);
|
||||
|
||||
public:
|
||||
static int _state1;
|
||||
static int _state2;
|
||||
static int _gerbilState;
|
||||
static int _state4;
|
||||
static int _savedX;
|
||||
static int _series603;
|
||||
|
||||
public:
|
||||
Section6();
|
||||
virtual ~Section6() {}
|
||||
|
||||
void daemon() override;
|
||||
void parser() override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
95
engines/m4/burger/rooms/section6/section6_room.cpp
Normal file
95
engines/m4/burger/rooms/section6/section6_room.cpp
Normal file
@@ -0,0 +1,95 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "m4/burger/rooms/section6/section6_room.h"
|
||||
#include "m4/burger/vars.h"
|
||||
#include "m4/wscript/wst_regs.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
Section6Room::Section6Room() : Room() {
|
||||
Common::strcpy_s(_gerbilsName, "GERBILS");
|
||||
Common::strcpy_s(_gerbilsVerb, "LOOK AT");
|
||||
|
||||
_gerbilHotspot.clear();
|
||||
_gerbilHotspot.vocab = _gerbilsName;
|
||||
_gerbilHotspot.verb = _gerbilsVerb;
|
||||
_gerbilHotspot.feet_x = 0x7fff;
|
||||
_gerbilHotspot.feet_y = 0x7fff;
|
||||
_gerbilHotspot.cursor_number = kArrowCursor;
|
||||
}
|
||||
|
||||
HotSpotRec *Section6Room::custom_hotspot_which(int32 x, int32 y) {
|
||||
HotSpotRec *hotspot = Rooms::Room::custom_hotspot_which(x, y);
|
||||
if (hotspot)
|
||||
return &_wilburHotspot;
|
||||
|
||||
if (_G(flags)[kHampsterState] != 6006 || !_gerbilTable ||
|
||||
!verifyMachineExists(_sectionMachine1) ||
|
||||
(_G(game).room_id != 602 && _G(game).room_id != 603 &&
|
||||
_G(game).room_id != 604))
|
||||
return nullptr;
|
||||
|
||||
int x1, x2, x3, y1, y2, y3;
|
||||
|
||||
if (_G(flags)[V266]) {
|
||||
x1 = 189;
|
||||
y1 = 232;
|
||||
x2 = 318;
|
||||
y2 = 219;
|
||||
x3 = 439;
|
||||
y3 = 232;
|
||||
} else {
|
||||
const int index = _sectionMachine1->myAnim8->myRegs[IDX_CELS_INDEX];
|
||||
const GerbilPoint *points = _gerbilTable + index;
|
||||
|
||||
int diff = points[3]._x - points[0]._x;
|
||||
x1 = points[0]._x + (index % 3) * diff / 3;
|
||||
|
||||
diff = points[4]._x - points[1]._x;
|
||||
x2 = points[1]._x + (index % 3) * diff / 3;
|
||||
|
||||
diff = points[5]._x - points[2]._x;
|
||||
x3 = points[2]._x + (index % 3) * diff / 3;
|
||||
|
||||
diff = points[3]._y - points[0]._y;
|
||||
y1 = points[0]._y + (index % 3) * diff / 3;
|
||||
|
||||
diff = points[4]._y - points[1]._y;
|
||||
y2 = points[1]._y + (index % 3) * diff / 3;
|
||||
|
||||
diff = points[5]._y - points[2]._y;
|
||||
y3 = points[2]._y + (index % 3) * diff / 3;
|
||||
}
|
||||
|
||||
const int total1 = (x - x1) * (x - x1) + (y - y1) * (y - y1);
|
||||
const int total2 = (x - x2) * (x - x2) + (y - y2) * (y - y2);
|
||||
const int total3 = (x - x3) * (x - x3) + (y - y3) * (y - y3);
|
||||
|
||||
return (total1 < 1600) || (total2 < 1600) < (total3 < 1600) ?
|
||||
&_gerbilHotspot : nullptr;
|
||||
}
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
59
engines/m4/burger/rooms/section6/section6_room.h
Normal file
59
engines/m4/burger/rooms/section6/section6_room.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef M4_BURGER_ROOMS_SECTION6_ROOM_H
|
||||
#define M4_BURGER_ROOMS_SECTION6_ROOM_H
|
||||
|
||||
#include "m4/burger/rooms/room.h"
|
||||
|
||||
namespace M4 {
|
||||
namespace Burger {
|
||||
namespace Rooms {
|
||||
|
||||
class Section6Room : public Rooms::Room {
|
||||
private:
|
||||
char _gerbilsName[16];
|
||||
char _gerbilsVerb[16];
|
||||
protected:
|
||||
struct GerbilPoint {
|
||||
int16 _x;
|
||||
int16 _y;
|
||||
};
|
||||
const GerbilPoint *_gerbilTable = nullptr;
|
||||
HotSpotRec _gerbilHotspot;
|
||||
machine *_sectionMachine1 = nullptr;
|
||||
machine *_sectionMachine2 = nullptr;
|
||||
int32 _sectionSeries1 = 0;
|
||||
int32 _sectionSeries2 = 0;
|
||||
int32 _sectionSeries3 = 0;
|
||||
|
||||
public:
|
||||
Section6Room();
|
||||
~Section6Room() override {}
|
||||
|
||||
HotSpotRec *custom_hotspot_which(int32 x, int32 y) override;
|
||||
};
|
||||
|
||||
} // namespace Rooms
|
||||
} // namespace Burger
|
||||
} // namespace M4
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user