ScummVM API documentation
room203.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_SECTION2_ROOM203_H
23 #define M4_RIDDLE_ROOMS_SECTION2_ROOM203_H
24 
25 #include "m4/riddle/rooms/section2/section2_room.h"
26 
27 namespace M4 {
28 namespace Riddle {
29 namespace Rooms {
30 
31 class Room203 : public Section2Room {
32 private:
33  int _val1 = 0;
34  int _val4 = 0;
35  int _val5 = 0;
36  int _val6 = 0;
37  int _val8 = 0;
38  bool _showWalker = false;
39  bool _ripley80000 = false;
40  //int _val11 = 0;
41  const char *_digiName1 = nullptr;
42  int _digiTrigger1 = 0;
43  Common::String _digiName2;
44  const char *_digiName3 = nullptr;
45  int _digiTrigger3 = -1;
46  int _trigger1 = -1;
47  int _trigger2 = -1;
48  int _trigger3 = -1;
49  int _trigger4 = -1;
50  int _trigger5 = -1;
51  int _shadow3 = 0;
52  machine *_ripley = nullptr;
53  machine *_ripsh1 = nullptr;
54  machine *_stream1 = nullptr;
55  int _ripHeadTurn = 0;
56  int _ripLooksAtHeads = 0;
57  int _ripYouSeeToIt = 0;
58  int _ripLookAtHeadsTalkMei = 0;
59  int _ripKneeling = 0;
60  int _ripKneelingTalk = 0;
61  int _ripGivesPhoto = 0;
62  int _ripClimbsAndBacksDown = 0;
63  int _ripPointsAtHelmet = 0;
64  int _ripHandsBehBack = 0;
65  int _ripHandTalk = 0;
66  int _ripTalker = 0;
67  int _ripArmsX = 0;
68  int _ripHeadDownTalkOff = 0;
69  int _ripLookDown = 0;
70  int _ripTugsAtCollar = 0;
71  int _ripLooksThroughHole = 0;
72  int _ripTossesHelmet = 0;
73  int _ripTossesBucket = 0;
74  int _ripleyMode = 0;
75  int _ripleyShould = 0;
76  machine *_mei = nullptr;
77  int _meiTalkToRip = 0;
78  int _meiTurnAndTalk = 0;
79  int _meiRightHandOut = 0;
80  int _meiCheekLine = 0;
81  int _meiHallOfClassics = 0;
82  machine *_gk = nullptr;
83  int _gkFrame = 0;
84  int _gkManyDoNeedPass = 0;
85  int _gkMayNotPass = 0;
86  int _gkMode = 0, _gkShould = 0;
87  machine *_oldLady = nullptr;
88  int _oldLadyFrame = 0;
89  int _oldLadyNoHelmet = 0;
90  int _oldLadyFeedingBirds = 0;
91  int _oldLadyMode = 0, _oldLadyShould = 0;
92  int _oldLady1 = 0;
93  int _oldLadyPointsToPhoto = 0;
94  int _oldLadyPhotoPopup = 0;
95  int _oldLadyProtectsHelmet = 0;
96  int _oldLadyShowsPhoto = 0;
97  machine *_pigeons1 = nullptr;
98  machine *_pigeons3 = nullptr;
99  int _pigeonsSeries1 = 0;
100  int _pigeonsSeries3 = 0;
101  machine *_official = nullptr;
102  machine *_officialShadow = nullptr;
103  int _officialStander = 0;
104  int _officialMode = 0, _officialShould = 0;
105  int _officialTurn9_11 = 0;
106  int _officialTurn9_11_pointGun = 0;
107  int _officialTurn11_3 = 0;
108  int _officialTurn3_7 = 0;
109  int _officialMoveAlong = 0;
110  int _officialThroughThere = 0;
111  int _officialHalt = 0;
112  machine *_peasant = nullptr;
113  machine *_peasantShadow = nullptr;
114  int _peasantSeries = 0;
115  int _peasantSeriesShadow = 0;
116  int _peasantRocks = 0;
117  int _peasantRocksShadow = 0;
118  int _peskyYellsThief = 0;
119  int _peskyBegLoop = 0;
120  int _peskyAction = 0;
121  int _peasantMode = 0, _peasantShould = 0;
122  int _peasantMode2 = 0;
123  int _peasantX = 0;
124  int _peasantY = 0;
125  int _peasantScale = 0;
126  int _peasantLayer = 0;
127  int _peasantSquat9 = 0;
128  int _peasantSquat3 = 0;
129  int _peasantSquatTo9 = 0;
130  int _peasantFromSquat3 = 0;
131  bool _yellThiefFlag = false;
132  bool _flag2 = false;
133  machine *_sg = nullptr;
134  int _203sg01 = 0;
135  machine *_g1 = nullptr;
136  machine *_g2 = nullptr;
137  int _unkShould = 0;
138  int _oneFrameBucket = 0;
139 
140  int _ctr1 = 0;
141 
142  void setupHelmetHotspot();
143  void setupPeasantHotspot(int mode);
144  void setupGk();
145  void setupOldLady();
146  void setupPigeons();
147  void setupOfficial();
148  void setupPeasant();
149  void peasantWalk();
150  void peasantAnim1();
151  void peasantAnim2();
152  void conv203c();
153  void conv203d();
154  void conv203e();
155  void playSound(const char *digiName, int trigger);
156  void lookThroughHole(const char *digiName, int trigger);
157  void lookAtHeads(const char *digiName, int trigger);
158 
159 public:
160  Room203() : Section2Room() {}
161  ~Room203() override {}
162 
163  void init() override;
164  void daemon() override;
165  void pre_parser() override;
166  void parser() override;
167  void syncGame(Common::Serializer &s) override;
168 };
169 
170 } // namespace Rooms
171 } // namespace Riddle
172 } // namespace M4
173 
174 #endif
Definition: ws_machine.h:153
Definition: str.h:59
Definition: serializer.h:79
Definition: database.h:28
Definition: section2_room.h:31
Definition: room203.h:31