ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
room709.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_RIDDLE_ROOMS_SECTION7_ROOM709_H
23 #define M4_RIDDLE_ROOMS_SECTION7_ROOM709_H
24 
25 #include "m4/riddle/rooms/room.h"
26 
27 namespace M4 {
28 namespace Riddle {
29 namespace Rooms {
30 
31 struct Maze709Room {
32  byte _left;
33  byte _right;
34  byte _up;
35  byte _down;
36 };
37 
38 class Room709 : public Room {
39 public:
40  Room709();
41  ~Room709() override {}
42 
43  void preload() override;
44  void init() override;
45  void pre_parser() override;
46  void parser() override;
47  void daemon() override;
48  void syncGame(Common::Serializer &s) override;
49 
50 private:
51  bool _chiselActiveFl = false;
52  bool _incenseBurnerActiveFl = false;
53  bool _pullCenterFl = false;
54  bool _pullLeftFl = false;
55  bool _pullNearFl = false;
56  bool _pullRightFl = false;
57 
58  int32 _mazeCurrentIndex = 0;
59 
60  int32 _709NearDoorLiteSeries = 0;
61  int32 _709rpro1Series = 0;
62  int32 _709rpro2Series = 0;
63  int32 _709rpro3Series = 0;
64  int32 _709rpro4Series = 0;
65  int32 _mazeCenterDoorLiteSeries = 0;
66  int32 _mazeLeftDoorLiteSeries = 0;
67  int32 _mazeRightDoorLiteSeries = 0;
68  int32 _ripTrekHeadTurnPos1Series = 0;
69  int32 _ripTrekLowReachPos2Series = 0;
70 
71  machine *_709ChiselMach = nullptr;
72  machine *_709IncenseHolderMach = nullptr;
73  machine *_709rpro5Mach = nullptr;
74  machine *_709rpro6Mach = nullptr;
75  machine *_709rpro7Mach = nullptr;
76  machine *_709rpro8Mach = nullptr;
77  machine *_ripPullMach = nullptr;
78  machine *_ripPullMach02 = nullptr;
79  machine *_ripPullMach03 = nullptr;
80  machine *_ripPullMach04 = nullptr;
81  machine *_ripPullMach05 = nullptr;
82  machine *_safariShadow1Mach = nullptr;
83 
84  void debugRoomChanged();
85 
86  static const Maze709Room _rooms[100];
87 
88  static void clearPressed(void *, void *);
89 };
90 
91 } // namespace Rooms
92 } // namespace Riddle
93 } // namespace M4
94 
95 #endif
Definition: ws_machine.h:155
Definition: serializer.h:79
Definition: database.h:28
Definition: room709.h:31
Definition: room709.h:38
Definition: room.h:39