ScummVM API documentation
room142.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef M4_BURGER_ROOMS_SECTION1_ROOM142_H
23#define M4_BURGER_ROOMS_SECTION1_ROOM142_H
24
25#include "m4/burger/rooms/room.h"
26#include "m4/burger/walker.h"
27
28namespace M4 {
29namespace Burger {
30namespace Rooms {
31
32class Room142 : public Room {
33 static const WilburMatch MATCH[];
34 static const seriesPlayBreak PLAY1[];
35 static const seriesPlayBreak PLAY2[];
36 static const seriesPlayBreak PLAY3[];
37 static const seriesPlayBreak PLAY4[];
38 static const seriesPlayBreak PLAY5[];
39 static const seriesPlayBreak PLAY6[];
40 static const seriesPlayBreak PLAY7[];
41 static const seriesPlayBreak PLAY8[];
42 static const seriesPlayBreak PLAY9[];
43 static const seriesPlayBreak PLAY10[];
44 static const seriesPlayBreak PLAY11[];
45 static const seriesPlayBreak PLAY12[];
46 static const seriesPlayBreak PLAY13[];
47 static const seriesPlayBreak PLAY14[];
48private:
49 machine *_series1 = nullptr;
50 machine *_series2 = nullptr;
51 machine *_series3 = nullptr;
52 machine *_series4 = nullptr;
53 machine *_series5 = nullptr;
54 machine *_series6 = nullptr;
55 machine *_series7 = nullptr;
56 machine *_series8 = nullptr;
57
58 noWalkRect *_noWalk = nullptr;
59 int _actionType = 0;
60 int _volume = 0;
61 static int32 _val1;
62 static int32 _val2;
63 static int32 _val3;
64
65 void checkAction();
66 void faceTruck();
67 void preloadAssets();
68 void preloadAssets2();
69 void triggerParser();
70 void play015();
71
77 int getRoadEdgeX(int y) const {
78 return (int)((double)(-y + 126) * -1.428571428571429);
79 }
80
81public:
82 Room142();
83 ~Room142() override {}
84
85 void init() override;
86 void daemon() override;
87 void pre_parser() override;
88 void parser() override;
89};
90
91} // namespace Rooms
92} // namespace Burger
93} // namespace M4
94
95#endif
Definition: room142.h:32
Definition: room.h:36
Definition: database.h:28
Definition: walker.h:33
Definition: play_break.h:32
Definition: ws_machine.h:156
Definition: adv.h:68