1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
|
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef TSAGE_RINGWORLD2_SCENES0_H
#define TSAGE_RINGWORLD2_SCENES0_H
#include "common/scummsys.h"
#include "tsage/converse.h"
#include "tsage/events.h"
#include "tsage/core.h"
#include "tsage/scenes.h"
#include "tsage/globals.h"
#include "tsage/sound.h"
#include "tsage/ringworld2/ringworld2_logic.h"
#include "tsage/ringworld2/ringworld2_speakers.h"
namespace TsAGE {
namespace Ringworld2 {
using namespace TsAGE;
class Scene50: public SceneExt {
class Action1: public Action {
public:
void signal();
};
public:
Action1 _action1;
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void process(Event &event);
};
class Scene100: public SceneExt {
/* Objects */
class Door: public SceneActorExt {
public:
bool startAction(CursorType action, Event &event);
};
class Table: public SceneActor {
public:
bool startAction(CursorType action, Event &event);
};
class StasisNegator: public SceneActor {
public:
bool startAction(CursorType action, Event &event);
};
class Object10: public SceneActorExt {
public:
bool startAction(CursorType action, Event &event);
};
class SteppingDisks: public SceneActor {
public:
bool startAction(CursorType action, Event &event);
};
/* Items */
class Terminal: public NamedHotspot{
public:
bool startAction(CursorType action, Event &event);
};
public:
NamedHotspot _background, _duct, _bed, _desk;
Terminal _terminal;
SceneActor _object1, _object2, _object3, _object4, _object5;
SceneActor _object6;
Door _door;
Table _table;
StasisNegator _stasisNegator;
Object10 _object10;
SteppingDisks _steppingDisks;
SequenceManager _sequenceManager1, _sequenceManager2;
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void remove();
virtual void signal();
virtual void dispatch();
};
class Scene125: public SceneExt {
/* Objects */
class Object5: public SceneActor {
public:
virtual bool startAction(CursorType action, Event &event);
};
class Icon: public SceneActor {
public:
int _lookLineNum, _field98;
bool _pressed;
SceneObject _object1, _object2;
SceneText _sceneText1, _sceneText2;
Icon();
virtual Common::String getClassName() { return "Scene125_Icon"; }
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void synchronize(Serializer &s);
virtual void process(Event &event);
void setIcon(int id);
void showIcon();
void hideIcon();
};
/* Items */
class Item4: public NamedHotspot {
public:
virtual bool startAction(CursorType action, Event &event);
};
public:
ScenePalette _palette;
ASoundExt _sound1;
NamedHotspot _background, _item2, _item3;
Item4 _item4;
SceneActor _object1, _object2, _object3, _object4, _object5, _object6, _object7;
Icon _icon1, _icon2, _icon3, _icon4, _icon5, _icon6;
SequenceManager _sequenceManager;
SceneText _sceneText;
int _consoleMode, _iconFontNumber, _logIndex, _databaseIndex, _infodiskIndex;
int _soundCount, _soundIndex;
int _soundIndexes[10];
Scene125();
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void synchronize(Serializer &s);
virtual void signal();
virtual void process(Event &event);
virtual void dispatch();
void consoleAction(int id);
void setDetails(int resNum, int lineNum);
void stop();
Common::String parseMessage(const Common::String &msg);
};
class Scene200: public SceneExt {
/* Objects */
class NorthDoor: public SceneActor {
public:
virtual bool startAction(CursorType action, Event &event);
};
class EastDoor: public SceneActor {
public:
virtual bool startAction(CursorType action, Event &event);
};
class WestDoor: public SceneActor {
public:
virtual bool startAction(CursorType action, Event &event);
};
/* Scene Exits */
class EastExit: public SceneExit {
public:
virtual void changeScene();
};
class WestExit: public SceneExit {
public:
virtual void changeScene();
};
public:
NamedHotspot _background, _compartment, _westDoorDisplay, _eastDoorDisplay;
NorthDoor _northDoor;
EastDoor _eastDoor;
WestDoor _westDoor;
EastExit _eastExit;
WestExit _westExit;
SequenceManager _sequenceManager;
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void signal();
};
class Scene300: public SceneExt {
/* Actions */
class Action1: public Action {
public:
virtual void signal();
};
class Action2: public Action {
public:
virtual void signal();
};
class Action3: public Action {
public:
virtual void signal();
};
class Action4: public Action {
public:
virtual void signal();
};
/* Items */
class QuinnWorkstation: public NamedHotspot {
public:
virtual bool startAction(CursorType action, Event &event);
};
class MirandaWorkstation: public NamedHotspot {
public:
virtual bool startAction(CursorType action, Event &event);
};
class SeekerWorkstation: public NamedHotspot {
public:
virtual bool startAction(CursorType action, Event &event);
};
/* Objects */
class Miranda: public SceneActor {
public:
virtual bool startAction(CursorType action, Event &event);
};
class Seeker: public SceneActor {
public:
virtual bool startAction(CursorType action, Event &event);
};
class Quinn: public SceneActor {
public:
virtual bool startAction(CursorType action, Event &event);
};
public:
SequenceManager _sequenceManager1, _sequenceManager2, _sequenceManager3, _sequenceManager4;
ASoundExt _sound1;
SpeakerMiranda300 _mirandaSpeaker;
SpeakerSeeker300 _seekerSpeaker;
SpeakerSeekerL _seekerLSpeaker;
SpeakerQuinn300 _quinnSpeaker;
SpeakerQuinnL _quinnLSpeaker;
SpeakerTeal300 _tealSpeaker;
SpeakerSoldier300 _soldierSpeaker;
NamedHotspot _background, _hull, _statusDisplays, _damageControl, _manualOverrides;
NamedHotspot _scanners1, _scanners2, _indirectLighting1, _indirectLighting2, _lighting;
QuinnWorkstation _quinnWorkstation1, _quinnWorkstation2;
SeekerWorkstation _seekerWorkstation;
MirandaWorkstation _mirandaWorkstation1, _mirandaWorkstation2;
SceneActor _object1, _object2, _object3, _object4, _protocolDisplay;
SceneActor _object6, _object7, _object8, _object9;
SceneActor _teal, _soldier, _object12, _doorway;
Miranda _miranda;
Seeker _seeker;
Quinn _quinn;
Action1 _action1;
Action2 _action2;
Action3 _action3;
Action4 _action4;
PaletteRotation *_rotation;
int _field412;
Scene300();
void signal309();
virtual void synchronize(Serializer &s);
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void remove();
virtual void signal();
};
} // End of namespace Ringworld2
} // End of namespace TsAGE
#endif
|