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  bool _showWalker = false;
34  bool _drawerOpen = false;
35  bool _hideCartoon = false;
36  bool _unused = false;
37  int _ripleyMode = 0;
38  int _ripleyShould = 0;
39  int _fengMode = 0;
40  int _fengShould = 0;
41  int _trigger1 = -1;
42  KernelTriggerType _triggerMode1 = KT_DAEMON;
43  KernelTriggerType _triggerMode2 = KT_DAEMON;
44  int _ripMedHigh = 0;
45  int _ripLooksDown = 0;
46  machine *_turtle = nullptr;
47  int _shrunkenHead1 = 0;
48  int _incenseHolder1 = 0;
49  int _crystalSkull1 = 0;
50  int _whaleboneHorn1 = 0;
51  int _wheeledToy1 = 0;
52  int _butterfly1 = 0;
53  int _amulet1 = 0;
54  int _knife1 = 0;
55  int _banknote1 = 0;
56  int _stamp1 = 0;
57  int _map1 = 0;
58  int _emerald1 = 0;
59  machine *_shrunkenHead2 = nullptr;
60  machine *_incenseHolder2 = nullptr;
61  machine *_crystalSkull2 = nullptr;
62  machine *_whaleboneHorn2 = nullptr;
63  machine *_wheeledToy2 = nullptr;
64  machine *_butterfly2 = nullptr;
65  machine *_amulet2 = nullptr;
66  machine *_knife2 = nullptr;
67  machine *_banknote2 = nullptr;
68  machine *_stamp2 = nullptr;
69  machine *_map2 = nullptr;
70  machine *_emerald2 = nullptr;
71 
72  int _easterIslandCartoon = 0;
73  int _chinshiCartoon = 0;
74  int _tabletsCartoon = 0;
75  int _epitaphCartoon = 0;
76  int _graveyardCartoon = 0;
77  int _castleCartoon = 0;
78  int _mocaMocheCartoon = 0;
79  int _templeCartoon = 0;
80  int _emeraldCartoon = 0;
81  int _jellyBeans = 0;
82  int _feng1 = 0;
83  int _feng2 = 0;
84  int _feng3 = 0;
85  int _rip1 = 0;
86  int _rip2 = 0;
87  int _rip3 = 0;
88  int _rip4 = 0;
89  int _suit1 = 0;
90  int _suit2 = 0;
91  int _suit3 = 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  void openDrawer();
114  void closeDrawer();
115  void takeTurtleTreats();
116 
117 public:
118  Room305() : Room() {}
119  ~Room305() override {}
120 
121  void preload() override;
122  void init() override;
123  void daemon() override;
124  void pre_parser() override;
125  void parser() override;
126  void syncGame(Common::Serializer &s) override;
127 };
128 
129 } // namespace Rooms
130 } // namespace Riddle
131 } // namespace M4
132 
133 #endif
Definition: ws_machine.h:153
Definition: str.h:59
Definition: serializer.h:79
Definition: room305.h:31
Definition: database.h:28
Definition: room.h:39