ScummVM API documentation
room504.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_SECTION5_ROOM504_H
23 #define M4_RIDDLE_ROOMS_SECTION5_ROOM504_H
24 
25 #include "m4/riddle/rooms/room.h"
26 
27 namespace M4 {
28 namespace Riddle {
29 namespace Rooms {
30 
31 class Room504 : public Room {
32 private:
33  machine *_ripley = nullptr;
34  machine *_waterfall = nullptr;
35  int _upSteps = 0;
36  int _downSteps = 0;
37  int _volume = 0;
38  int _volume2 = 0;
39  int _convState1 = 0;
40  int _convState2 = 0;
41  int _convState3 = 0;
42  int _ripSketching = 0;
43  int _ripLowReach = 0;
44  int _ripMedReach = 0;
45  int _ripWipe = 0;
46  int _ripStepUpLeft = 0;
47  int _ripThrowFromLeft = 0;
48  int _ripHiReach2Handed = 0;
49  int _ripLeansBack = 0;
50  int _ripStepUpRight = 0;
51  int _ripThrowFromRight = 0;
52  int _ripKneels = 0;
53  int _ripShrunkenHead = 0;
54  int _ripGivesMoneyEmerald = 0;
55  int _ripGetsUp = 0;
56  int _ripYells = 0;
57  int _mzDigs = 0;
58  int _mzStandsTalks = 0;
59  int _mzTakesEmerald = 0;
60  int _mzMenancesClimbs = 0;
61  int _mzTakesMoney = 0;
62  int _mzGivesHead = 0;
63  int _vineTie = 0;
64  int _vineUnrolling = 0;
65  int _rightVineTie = 0;
66  int _leftVineTie = 0;
67  int _ropeLSlurpsUp = 0;
68  int _ropeRSlurpsUp = 0;
69 
70  machine *_vines1 = nullptr;
71  machine *_vines2 = nullptr;
72  machine *_vines3 = nullptr;
73  machine *_vines4 = nullptr;
74  machine *_rope = nullptr;
75  machine *_ladder = nullptr;
76  machine *_toy = nullptr;
77  machine *_shovel = nullptr;
78  machine *_driftwood = nullptr;
79  machine *_pole = nullptr;
80  machine *_mzMachine = nullptr;
81  machine *_menendez = nullptr;
82  machine *_vineMachine1 = nullptr;
83  machine *_vineMachine2 = nullptr;
84  machine *_ripStep = nullptr;
85  machine *_vine = nullptr;
86  bool _flag1 = false;
87  bool _flag2 = false;
88  bool _flag3 = false;
89  bool _flag4 = false;
90 
91  int _trigger1 = 0;
92  int _trigger2 = 0;
93  int _trigger3 = 0;
94  int _trigger4 = 0;
95  int _val1 = 0;
96  int _val2 = 0;
97  int32 _val3 = 0;
98 
99  void setVines();
100  void freeVines();
101  void setVinesRope();
102  void setMiscItems();
103  void disableVinesRope();
104  void deleteHotspot(const char *hotspotName);
105  void addRope();
106  void addGreenVine();
107  void addBrownVine();
108  void addHotspot(int x1, int y1, int x2, int y2,
109  const char *verb, const char *vocab);
110  void addShovel();
111  bool checkVinesDistance();
112  bool parser1();
113  void conv504a();
114  bool lookVines();
115 
116 public:
117  Room504() : Room() {}
118  ~Room504() override {}
119 
120  void init() override;
121  void daemon() override;
122  void pre_parser() override;
123  void parser() override;
124 };
125 
126 } // namespace Rooms
127 } // namespace Riddle
128 } // namespace M4
129 
130 #endif
Definition: ws_machine.h:153
Definition: database.h:28
Definition: room504.h:31
Definition: room.h:39