ScummVM API documentation
phantom_scenes3.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 MADS_PHANTOM_SCENES3_H
23 #define MADS_PHANTOM_SCENES3_H
24 
25 #include "common/serializer.h"
26 #include "mads/phantom/phantom_scenes.h"
27 
28 namespace MADS {
29 namespace Phantom {
30 
31 class Scene3xx : public PhantomScene {
32 protected:
36  void sceneEntrySound();
37 
41  void setAAName();
42 
47 public:
48  Scene3xx(MADSEngine *vm) : PhantomScene(vm) {}
49 };
50 
51 class Scene301 : public Scene3xx {
52 private:
53  bool _anim0ActvFl;
54  bool _skip1Fl;
55  bool _skip2Fl;
56 
57  int _lightingHotspotId;
58  int _sandbagHotspotId;
59 
60 public:
61  Scene301(MADSEngine *vm);
62  void synchronize(Common::Serializer &s) override;
63 
64  void setup() override;
65  void enter() override;
66  void step() override;
67  void preActions() override;
68  void actions() override;
69 };
70 
71 class Scene302 : public Scene3xx {
72 public:
73  Scene302(MADSEngine *vm);
74  void synchronize(Common::Serializer &s) override;
75 
76  void setup() override;
77  void enter() override;
78  void step() override;
79  void preActions() override;
80  void actions() override;
81 };
82 
83 class Scene303 : public Scene3xx {
84 private:
85  bool _anim0ActvFl;
86  int _hempHotspotId;
87  int _skipFrameCheckFl;
88 public:
89  Scene303(MADSEngine *vm);
90  void synchronize(Common::Serializer &s) override;
91 
92  void setup() override;
93  void enter() override;
94  void step() override;
95  void preActions() override;
96  void actions() override;
97 };
98 
99 class Scene304 : public Scene3xx {
100 private:
101  bool _anim0ActvFl;
102  bool _anim1ActvFl;
103  bool _anim2ActvFl;
104 
105  int _raoulFrame;
106  int _raoulStatus;
107  int _fightFrame;
108  int _fightStatus;
109  int _fightCount;
110  int _phantomFrame;
111  int _phantomStatus;
112 
113  void handleConversation23();
114  void handleRaoulAnimation();
115  void handlePhantomAnimation();
116  void handleFightAnimation();
117 
118 public:
119  Scene304(MADSEngine *vm);
120  void synchronize(Common::Serializer &s) override;
121 
122  void setup() override;
123  void enter() override;
124  void step() override;
125  void preActions() override;
126  void actions() override;
127 };
128 
129 class Scene305 : public Scene3xx {
130 private:
131  bool _anim0ActvFl;
132  bool _anim1ActvFl;
133  bool _skipFl;
134  bool _unmaskFl;
135 
136  int _unmaskFrame;
137 
138  void handle_animation_unmask();
139 
140 public:
141  Scene305(MADSEngine *vm);
142  void synchronize(Common::Serializer &s) override;
143 
144  void setup() override;
145  void enter() override;
146  void step() override;
147  void preActions() override;
148  void actions() override;
149 };
150 
151 class Scene306 : public Scene3xx {
152 private:
153  bool _speechDoneFl;
154 
155 public:
156  Scene306(MADSEngine *vm);
157  void synchronize(Common::Serializer &s) override;
158 
159  void setup() override;
160  void enter() override;
161  void step() override;
162  void preActions() override;
163  void actions() override;
164 };
165 
166 class Scene307 : public Scene3xx {
167 public:
168  Scene307(MADSEngine *vm);
169  void synchronize(Common::Serializer &s) override;
170 
171  void setup() override;
172  void enter() override;
173  void step() override;
174  void preActions() override;
175  void actions() override;
176 };
177 
178 class Scene308 : public Scene3xx {
179 private:
180  bool _anim0ActvFl;
181  bool _anim1ActvFl;
182  bool _anim2ActvFl;
183  bool _anim3ActvFl;
184  bool _skip1Fl;
185  bool _skip2Fl;
186  int _currentFloor;
187 
188 public:
189  Scene308(MADSEngine *vm);
190  void synchronize(Common::Serializer &s) override;
191 
192  void setup() override;
193  void enter() override;
194  void step() override;
195  void preActions() override;
196  void actions() override;
197 };
198 
199 class Scene309 : public Scene3xx {
200 private:
201  bool _anim0ActvFl;
202 
203  int _boatStatus;
204  int _boatFrame;
205  int _talkCount;
206 
207  void handleBoatAnimation();
208 
209 public:
210  Scene309(MADSEngine *vm);
211  void synchronize(Common::Serializer &s) override;
212 
213  void setup() override;
214  void enter() override;
215  void step() override;
216  void preActions() override;
217  void actions() override;
218 };
219 
220 class Scene310 : public Scene3xx {
221 private:
222  int _raoulMessageColor;
223  int _chrisMessageColor;
224  int _multiplanePosX[4];
225  int _lakeFrame;
226 
227  void setMultiplanePos(int x_new);
228  void handleLakeAnimation();
229 
230 public:
231  Scene310(MADSEngine *vm);
232  void synchronize(Common::Serializer &s) override;
233 
234  void setup() override;
235  void enter() override;
236  void step() override;
237  void preActions() override;
238  void actions() override;
239 };
240 
241 } // End of namespace Phantom
242 } // End of namespace MADS
243 
244 #endif
Definition: phantom_scenes3.h:83
Definition: phantom_scenes3.h:220
virtual void synchronize(Common::Serializer &s)
Definition: scene_data.h:126
virtual void actions()=0
Definition: phantom_scenes3.h:166
Definition: phantom_scenes3.h:71
virtual void preActions()
Definition: scene_data.h:106
Definition: phantom_scenes.h:445
PhantomScene(MADSEngine *vm)
virtual void enter()=0
Definition: serializer.h:79
Definition: phantom_scenes3.h:151
virtual void setup()=0
Definition: phantom_scenes3.h:31
Definition: phantom_scenes3.h:51
Definition: phantom_scenes3.h:129
Definition: mads.h:79
Definition: phantom_scenes3.h:199
Definition: action.h:28
Definition: phantom_scenes3.h:99
Definition: phantom_scenes3.h:178
virtual void step()
Definition: scene_data.h:101