ScummVM API documentation
section8_room.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_SECTION8_SECTION8ROOM_H
23 #define M4_RIDDLE_ROOMS_SECTION8_SECTION8ROOM_H
24 
25 #include "m4/riddle/rooms/room.h"
26 
27 namespace M4 {
28 namespace Riddle {
29 namespace Rooms {
30 
31 class Section8Room : public Room {
32 public:
33  Section8Room() : Room() {}
34  ~Section8Room() override {}
35 
36  void preload() override;
37  void init() override {}
38  void pre_parser() override;
39  void parser() override;
40  void daemon() override;
41 
42 protected:
43  int32 _byte1A19BC = 0;
44  int32 _field68 = 0;
45 
46  // _unkArrayIndex is the index of the position Mei Chen is standing at (or heading to).
47  // It selects the hotspot matching that position, see MEI_CHEN_HOTSPOTS in section8_room.cpp.
48  // The array itself seems to be set and never read.
49  int32 _unkArrayIndex = 0;
50  int32 _unkArray[8];
51 
52  int32 _824fire2Serie = 0;
53  int32 _case7RandVal = 0;
54  int32 _coordArrayId = 0;
55  int32 _counter1 = 0;
56  int32 _currentRoom = 0;
57  int32 _dynSerie1 = 0;
58  int32 _guessFacing = 0;
59  int32 _guessIndex = 0;
60  int32 _guessX = 0;
61  int32 _mctdSerie = 0;
62  int32 _meiHandsBehindBack = 0;
63  int32 _ripAttemptsPush = 0;
64  int32 _ripLooksAround = 0;
65  int32 _ripTakerPos5 = 0;
66  int32 _ripTrekLowReach = 0;
67  int32 _rptldSerie = 0;
68  int32 _savedNextRoom = 0;
69  int32 _savedPlayerInfoFacing = 0;
70  int32 _savedPlayerInfoX = 0;
71  int32 _savedPlayerInfoY = 0;
72  int32 _savedRandom = 0;
73 
74  int32 _var1 = 0;
75  int32 _var2 = 0;
76  int32 _var3 = 0;
77  int32 _var4 = 0;
78  int32 _var5 = 0;
79 
80  Common::String _currentSeriesName;
81  Common::String _guessHotspotName;
82 
83  machine *_824fire1Mach = nullptr;
84  machine *_824fire2Mach = nullptr;
85  machine *_844postMach = nullptr;
86  machine *_dynSerie1Mach = nullptr;
87  machine *_machArr[4] = {nullptr, nullptr, nullptr, nullptr};
88  machine *_mcTrekMach = nullptr;
89  machine *_ripPushMach = nullptr;
90 
91  int32 getStatueIndex(int32 val1);
92  int32 subCE52E(int32 val1);
93  void moveScreen(int32 dx, int32 dy);
94  void getSeriesName(int32 val1, bool true_or_False);
95  int32 daemonSub1(int32 dx, bool ascendingFl);
96 };
97 
98 } // namespace Rooms
99 } // namespace Riddle
100 } // namespace M4
101 
102 #endif
Definition: ws_machine.h:156
Definition: str.h:59
Definition: section8_room.h:31
Definition: database.h:28
Definition: room.h:39