ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
room809.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_ROOM809_H
23 #define M4_RIDDLE_ROOMS_SECTION8_ROOM809_H
24 
25 #include "m4/riddle/rooms/section8/section8_room.h"
26 
27 namespace M4 {
28 namespace Riddle {
29 namespace Rooms {
30 
31 class Room809 : public Section8Room {
32 public:
33  Room809() : Section8Room() {}
34  ~Room809() override {}
35 
36  void preload() override;
37  void init() override;
38  void pre_parser() override;
39  void parser() override;
40  void daemon() override;
41  void syncGame(Common::Serializer &s) override;
42 
43 private:
44  bool checkSaid();
45  int32 getMcDestX(int32 xPos, bool facing);
46 
47  bool _field20Fl = false;
48 
49  // CHECKME: The array and its index don't seem to be used
50  byte _byte1A1990[4] = {0, 0, 0, 0};
51  int32 _field24_index = 0;
52 
53  const char *_enableHotspotName = nullptr;
54 
55  int32 _mcFacing = 0;
56  int32 _mcPosX = 0;
57  int32 _mcTrekDestX = 0;
58  int32 _playerDestX = 0;
59  int32 _playerDestY = 0;
60  int32 _playerFacing = 0;
61 
62  int32 _809hallSeries = 0;
63  int32 _809MusicFadingVol = 0;
64  int32 _mcHandsBehindBackSeries = 0;
65  int32 _ripTalkerPos5Series = 0;
66  int32 _ripTrekHeadTurnPos5Series = 0;
67 
68  machine *_809crossMach = nullptr;
69  machine *_809hallMach = nullptr;
70  machine *_809rp01Mach = nullptr;
71  machine *_mcTrekMach = nullptr;
72 
73 };
74 
75 } // namespace Rooms
76 } // namespace Riddle
77 } // namespace M4
78 
79 #endif
Definition: ws_machine.h:155
Definition: section8_room.h:31
Definition: serializer.h:79
Definition: database.h:28
Definition: room809.h:31