ScummVM API documentation
room305.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_SECTION3_ROOM305_H
23 #define M4_RIDDLE_ROOMS_SECTION3_ROOM305_H
24 
25 #include "m4/riddle/rooms/room.h"
26 
27 namespace M4 {
28 namespace Riddle {
29 namespace Rooms {
30 
31 class Room305 : public Room {
32 private:
33  int _val1 = 0;
34  int _val2 = 0;
35  int _val3 = 0;
36  int _val4 = 0;
37  int _val5 = 0;
38  int _val6 = 0;
39  int _val7 = 0;
40  int _val8 = 0;
41  KernelTriggerType _triggerMode1 = KT_DAEMON;
42  KernelTriggerType _triggerMode2 = KT_DAEMON;
43  int _ripMedHigh = 0;
44  int _ripLooksDown = 0;
45  machine *_turtle = nullptr;
46  int _shrunkenHead1 = 0;
47  int _incenseHolder1 = 0;
48  int _crystalSkull1 = 0;
49  int _whaleboneHorn1 = 0;
50  int _wheeledToy1 = 0;
51  int _butterfly1 = 0;
52  int _amulet1 = 0;
53  int _knife1 = 0;
54  int _banknote1 = 0;
55  int _stamp1 = 0;
56  int _map1 = 0;
57  int _emerald1 = 0;
58  machine *_shrunkenHead2 = nullptr;
59  machine *_incenseHolder2 = nullptr;
60  machine *_crystalSkull2 = nullptr;
61  machine *_whaleboneHorn2 = nullptr;
62  machine *_wheeledToy2 = nullptr;
63  machine *_butterfly2 = nullptr;
64  machine *_amulet2 = nullptr;
65  machine *_knife2 = nullptr;
66  machine *_banknote2 = nullptr;
67  machine *_stamp2 = nullptr;
68  machine *_map2 = nullptr;
69  machine *_emerald2 = nullptr;
70 
71  int _easterIslandCartoon = 0;
72  int _chinshiCartoon = 0;
73  int _tabletsCartoon = 0;
74  int _epitaphCartoon = 0;
75  int _graveyardCartoon = 0;
76  int _castleCartoon = 0;
77  int _mocaMocheCartoon = 0;
78  int _templeCartoon = 0;
79  int _emeraldCartoon = 0;
80  int _jellyBeans = 0;
81  int _feng1 = 0;
82  int _feng2 = 0;
83  int _feng3 = 0;
84  int _rip1 = 0;
85  int _rip2 = 0;
86  int _rip3 = 0;
87  int _rip4 = 0;
88  int _suit1 = 0;
89  int _suit2 = 0;
90  int _suit3 = 0;
91  int _conv1 = 0;
92  machine *_stander = nullptr;
93  machine *_shadow5 = nullptr;
94  machine *_rip5 = nullptr;
95  machine *_rip6 = nullptr;
96  machine *_openDrawer = nullptr;
97  machine *_openDrawerTreats = nullptr;
98  machine *_cartoonMach = nullptr;
99  int _cartoon = 0;
100  int _lookUp = 0;
101 
102  void setupSign();
103  void setShadow5(bool active);
104  void conv305a();
105  bool walkToObject();
106  int getXAreaNum() const;
107  const char *getXAreaCartoon() const;
108  const char *getXAreaSeries() const;
109  Common::String getXAreaDigi() const;
110  Common::String getXAreaDigi2() const;
111  int getItemX(int seriesHash) const;
112  int getItemY(int seriesHash) const;
113 
114 public:
115  Room305() : Room() {}
116  ~Room305() override {}
117 
118  void preload() override;
119  void init() override;
120  void daemon() override;
121  void pre_parser() override;
122  void parser() override;
123 };
124 
125 } // namespace Rooms
126 } // namespace Riddle
127 } // namespace M4
128 
129 #endif
Definition: ws_machine.h:130
Definition: str.h:59
Definition: room305.h:31
Definition: database.h:28
Definition: room.h:35