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