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 
28 namespace M4 {
29 namespace Burger {
30 namespace Rooms {
31 
32 class 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[];
48 private:
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  //int _val4 = 0;
65 
66  void checkAction();
67  void faceTruck();
68  void preloadAssets();
69  void preloadAssets2();
70  void triggerParser();
71  void play015();
72 
78  int getRoadEdgeX(int y) const {
79  return (int)((double)(-y + 126) * -1.428571428571429);
80  }
81 
82 public:
83  Room142();
84  ~Room142() override {}
85 
86  void init() override;
87  void daemon() override;
88  void pre_parser() override;
89  void parser() override;
90 };
91 
92 } // namespace Rooms
93 } // namespace Burger
94 } // namespace M4
95 
96 #endif
Definition: ws_machine.h:130
Definition: walker.h:34
Definition: room142.h:32
Definition: room.h:38
Definition: database.h:28
Definition: play_break.h:32
Definition: adv.h:68