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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
|
/* 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.
*
*/
#include "startrek/room.h"
#define OBJECT_CABLE_1 8
#define OBJECT_CABLE_2 9
#define OBJECT_JUNCTION_BOX 10
#define OBJECT_JOURNAL 11
#define OBJECT_DOOR 12
#define OBJECT_DEAD_GUY 13
#define OBJECT_IMPULSE_ENGINES 14
#define OBJECT_CABINET 15
#define HOTSPOT_LEFT_PORT 0x20
#define HOTSPOT_RIGHT_PORT 0x21
#define HOTSPOT_OIL_CANISTER 0x22
#define HOTSPOT_CABINET 0x23
#define HOTSPOT_RIGHT_CONSOLE 0x24 // Fusion mixture regulator
#define HOTSPOT_IMPULSE_ENGINES 0x25
#define HOTSPOT_LEFT_CONSOLE 0x26 // Impulse engine control
#define HOTSPOT_DOOR 0x27
namespace StarTrek {
extern const RoomAction veng6ActionList[] = {
{ {ACTION_TICK, 1, 0, 0}, &Room::veng6Tick1 },
{ {ACTION_WALK, OBJECT_DOOR, 0, 0}, &Room::veng6WalkToDoor },
{ {ACTION_WALK, HOTSPOT_DOOR, 0, 0}, &Room::veng6WalkToDoor },
{ {ACTION_DONE_WALK, 2, 0, 0}, &Room::veng6ReachedDoor },
{ {ACTION_DONE_ANIM, 1, 0, 0}, &Room::veng6DoorOpened },
{ {ACTION_LOOK, HOTSPOT_LEFT_PORT, 0, 0}, &Room::veng6LookAtLeftPort },
{ {ACTION_LOOK, HOTSPOT_RIGHT_PORT, 0, 0}, &Room::veng6LookAtRightPort },
{ {ACTION_LOOK, OBJECT_DOOR, 0, 0}, &Room::veng6LookAtDoor },
{ {ACTION_LOOK, HOTSPOT_DOOR, 0, 0}, &Room::veng6LookAtDoor },
{ {ACTION_LOOK, HOTSPOT_OIL_CANISTER, 0, 0}, &Room::veng6LookAtOilCanister },
{ {ACTION_LOOK, OBJECT_CABINET, 0, 0}, &Room::veng6LookAtCabinet },
{ {ACTION_LOOK, HOTSPOT_CABINET, 0, 0}, &Room::veng6LookAtCabinet },
{ {ACTION_LOOK, OBJECT_CABLE_2, 0, 0}, &Room::veng6LookAtCable },
{ {ACTION_LOOK, OBJECT_CABLE_1, 0, 0}, &Room::veng6LookAtCable },
{ {ACTION_LOOK, HOTSPOT_RIGHT_CONSOLE, 0, 0}, &Room::veng6LookAtRightConsole },
{ {ACTION_LOOK, OBJECT_IMPULSE_ENGINES, 0, 0}, &Room::veng6LookAtImpulseEngines },
{ {ACTION_LOOK, HOTSPOT_IMPULSE_ENGINES, 0, 0}, &Room::veng6LookAtImpulseEngines },
{ {ACTION_LOOK, HOTSPOT_LEFT_CONSOLE, 0, 0}, &Room::veng6LookAtLeftConsole },
{ {ACTION_LOOK, OBJECT_JUNCTION_BOX, 0, 0}, &Room::veng6LookAtJunctionBox },
{ {ACTION_LOOK, OBJECT_JOURNAL, 0, 0}, &Room::veng6LookAtJournal },
{ {ACTION_LOOK, OBJECT_KIRK, 0, 0}, &Room::veng6LookAtKirk },
{ {ACTION_LOOK, OBJECT_SPOCK, 0, 0}, &Room::veng6LookAtSpock },
{ {ACTION_LOOK, OBJECT_MCCOY, 0, 0}, &Room::veng6LookAtMccoy },
{ {ACTION_LOOK, OBJECT_REDSHIRT, 0, 0}, &Room::veng6LookAtRedshirt },
{ {ACTION_LOOK, OBJECT_DEAD_GUY, 0, 0}, &Room::veng6LookAtDeadGuy },
{ {ACTION_LOOK, 0xff, 0, 0}, &Room::veng6LookAnywhere },
{ {ACTION_TALK, OBJECT_KIRK, 0, 0}, &Room::veng6TalkToKirk },
{ {ACTION_TALK, OBJECT_SPOCK, 0, 0}, &Room::veng6TalkToSpock },
{ {ACTION_TALK, OBJECT_MCCOY, 0, 0}, &Room::veng6TalkToMccoy },
{ {ACTION_TALK, OBJECT_REDSHIRT, 0, 0}, &Room::veng6TalkToRedshirt },
{ {ACTION_USE, OBJECT_ICABLE1, HOTSPOT_LEFT_PORT, 0}, &Room::veng6UseCable1OnLeftPort },
{ {ACTION_USE, OBJECT_ICABLE1, HOTSPOT_LEFT_CONSOLE, 0}, &Room::veng6UseCable1OnLeftPort },
{ {ACTION_USE, OBJECT_ICABLE2, HOTSPOT_LEFT_PORT, 0}, &Room::veng6UseCable2OnLeftPort },
{ {ACTION_USE, OBJECT_ICABLE2, HOTSPOT_LEFT_CONSOLE, 0}, &Room::veng6UseCable2OnLeftPort },
{ {ACTION_DONE_WALK, 3, 0, 0}, &Room::veng6KirkOrSpockReachedLeftPort },
{ {ACTION_DONE_WALK, 4, 0, 0}, &Room::veng6KirkOrSpockReachedLeftPort },
{ {ACTION_DONE_ANIM, 5, 0, 0}, &Room::veng6AttachedLeftCable },
{ {ACTION_USE, OBJECT_ICABLE1, HOTSPOT_RIGHT_PORT, 0}, &Room::veng6UseCable1OnRightPort },
{ {ACTION_USE, OBJECT_ICABLE1, HOTSPOT_RIGHT_CONSOLE, 0}, &Room::veng6UseCable1OnRightPort },
{ {ACTION_USE, OBJECT_ICABLE2, HOTSPOT_RIGHT_PORT, 0}, &Room::veng6UseCable2OnRightPort },
{ {ACTION_USE, OBJECT_ICABLE2, HOTSPOT_RIGHT_CONSOLE, 0}, &Room::veng6UseCable2OnRightPort },
{ {ACTION_DONE_WALK, 6, 0, 0}, &Room::veng6KirkOrSpockReachedRightPort },
{ {ACTION_DONE_WALK, 7, 0, 0}, &Room::veng6KirkOrSpockReachedRightPort },
{ {ACTION_DONE_ANIM, 8, 0, 0}, &Room::veng6AttachedRightCable },
{ {ACTION_USE, OBJECT_SPOCK, OBJECT_JUNCTION_BOX, 0}, &Room::veng6UseCrewmanOnJunctionBox },
{ {ACTION_USE, OBJECT_MCCOY, OBJECT_JUNCTION_BOX, 0}, &Room::veng6UseCrewmanOnJunctionBox },
{ {ACTION_USE, OBJECT_REDSHIRT, OBJECT_JUNCTION_BOX, 0}, &Room::veng6UseCrewmanOnJunctionBox },
{ {ACTION_USE, OBJECT_KIRK, OBJECT_JUNCTION_BOX, 0}, &Room::veng6UseCrewmanOnJunctionBox },
{ {ACTION_DONE_WALK, 9, 0, 0}, &Room::veng6SpockReachedJunctionBox },
{ {ACTION_DONE_ANIM, 10, 0, 0}, &Room::veng6SpockAdjustedJunctionBox },
{ {ACTION_USE, OBJECT_IHYPO, HOTSPOT_OIL_CANISTER, 0}, &Room::veng6UseHypoOnOilCanister },
{ {ACTION_DONE_WALK, 13, 0, 0}, &Room::veng6ReachedOilCanister },
{ {ACTION_DONE_ANIM, 14, 0, 0}, &Room::veng6FilledHypoWithOil },
{ {ACTION_USE, OBJECT_KIRK, OBJECT_CABINET, 0}, &Room::veng6UseCabinet },
{ {ACTION_DONE_WALK, 15, 0, 0}, &Room::veng6ReachedCabinet },
{ {ACTION_DONE_ANIM, 16, 0, 0}, &Room::veng6OpenedOrClosedCabinet },
{ {ACTION_USE, OBJECT_ISTRICOR, HOTSPOT_IMPULSE_ENGINES, 0}, &Room::veng6UseSTricorderOnImpulseEngines },
{ {ACTION_USE, OBJECT_ISTRICOR, HOTSPOT_RIGHT_CONSOLE, 0}, &Room::veng6UseSTricorderOnRightConsole },
{ {ACTION_USE, OBJECT_ISTRICOR, OBJECT_JUNCTION_BOX, 0}, &Room::veng6UseSTricorderOnJunctionBox },
{ {ACTION_USE, OBJECT_IFUSION, HOTSPOT_LEFT_CONSOLE, 0}, &Room::veng6UsePowerPackOnLeftConsole },
{ {ACTION_GET, OBJECT_JUNCTION_BOX, 0, 0}, &Room::veng6GetJunctionBox },
{ {ACTION_GET, HOTSPOT_OIL_CANISTER, 0, 0}, &Room::veng6GetOilCanister },
{ {ACTION_GET, OBJECT_JOURNAL, 0, 0}, &Room::veng6GetEngineeringJournal },
{ {ACTION_DONE_WALK, 11, 0, 0}, &Room::veng6ReachedEngineeringJournal },
{ {ACTION_DONE_ANIM, 12, 0, 0}, &Room::veng6TookEngineeringJournal },
// Common code
{ {ACTION_USE, OBJECT_IMEDKIT, OBJECT_DEAD_GUY, 0}, &Room::vengaUseMccoyOnDeadGuy },
{ {ACTION_USE, OBJECT_IMTRICOR, OBJECT_DEAD_GUY, 0}, &Room::vengaUseMccoyOnDeadGuy },
{ {ACTION_USE, OBJECT_MCCOY, OBJECT_DEAD_GUY, 0}, &Room::vengaUseMccoyOnDeadGuy },
// ENHANCEMENT
{ {ACTION_USE, OBJECT_ISTRICOR, OBJECT_IMPULSE_ENGINES, 0}, &Room::veng6UseSTricorderOnImpulseEngines },
};
extern const int veng6NumActions = ARRAYSIZE(veng6ActionList);
#define DOOR_X 0x13e
#define DOOR_Y 0xa8
#define CABLE_1_X 0x5d
#define CABLE_1_Y 0x95
#define CABLE_2_X 0x107
#define CABLE_2_Y 0x94
#define IMPULSE_ENGINE_X 0x9e
#define IMPULSE_ENGINE_Y 0x59
#define CABINET_X 0x19
#define CABINET_Y 0x86
void Room::veng6Tick1() {
loadActorAnim(OBJECT_DOOR, "s7r6d1c", DOOR_X, DOOR_Y);
loadActorAnim(OBJECT_DEAD_GUY, "s7r6c1", 0x82, 0x5c);
loadActorAnim(OBJECT_JUNCTION_BOX, "s7r6j1", 0x9a, 0xaf);
if (_awayMission->veng.junctionCablesConnected & 1)
loadActorAnim(OBJECT_CABLE_1, "s7r6cl", CABLE_1_X, CABLE_1_Y);
if (_awayMission->veng.junctionCablesConnected & 2)
loadActorAnim(OBJECT_CABLE_2, "s7r6cr", CABLE_2_X, CABLE_2_Y);
if (_awayMission->veng.impulseEnginesOn) {
loadActorAnim(OBJECT_IMPULSE_ENGINES, "s7r6i1", IMPULSE_ENGINE_X, IMPULSE_ENGINE_Y);
// FIXME: doesn't loop
playVoc("VEN6LON");
} else
playVoc("VEN6LOFF");
if (!_awayMission->veng.tookEngineeringJournal)
loadActorAnim(OBJECT_JOURNAL, "s7r6ej", 0x24, 0x82);
loadActorAnim(OBJECT_CABINET, "s7r6p1c", CABINET_X, CABINET_Y);
if (_awayMission->veng.engineeringCabinetOpen)
loadActorAnim(OBJECT_CABINET, "s7r6p1o", CABINET_X, CABINET_Y);
}
void Room::veng6WalkToDoor() {
walkCrewmanC(OBJECT_KIRK, 0x120, 0xad, &Room::veng6ReachedDoor);
}
void Room::veng6ReachedDoor() {
_awayMission->disableInput = true;
playSoundEffectIndex(SND_DOOR1);
loadActorAnimC(OBJECT_DOOR, "s7r6d1", DOOR_X, DOOR_Y, &Room::veng6DoorOpened);
}
void Room::veng6DoorOpened() {
walkCrewman(OBJECT_KIRK, 0x136, 0xaa);
}
void Room::veng6LookAtLeftPort() {
showText(TX_VEN6N018);
}
void Room::veng6LookAtRightPort() {
showText(TX_VEN6N016);
}
void Room::veng6LookAtDoor() {
showText(TX_VEN5N007);
}
void Room::veng6LookAtOilCanister() {
showText(TX_VEN6N011);
}
void Room::veng6LookAtCabinet() {
showText(TX_VEN6N015);
}
void Room::veng6LookAtCable() {
showText(TX_VEN6N013);
}
void Room::veng6LookAtRightConsole() {
showText(TX_VEN6N017);
}
void Room::veng6LookAtImpulseEngines() {
showText(TX_VEN6N010);
}
void Room::veng6LookAtLeftConsole() {
showText(TX_VEN6N009);
}
void Room::veng6LookAtJunctionBox() {
showText(TX_VEN6N012);
}
void Room::veng6LookAtJournal() {
showText(TX_VEN6N025);
showText(TX_SPEAKER_SPOCK, TX_VEN6_021);
}
void Room::veng6LookAtKirk() {
showText(TX_VEN6N001);
}
void Room::veng6LookAtSpock() {
showText(TX_VEN6N003);
}
void Room::veng6LookAtMccoy() {
showText(TX_VEN6N002);
}
void Room::veng6LookAtRedshirt() {
showText(TX_VEN6N000);
}
void Room::veng6LookAtDeadGuy() {
showText(TX_VEN0N016);
}
void Room::veng6LookAnywhere() {
showText(TX_VEN6N019);
}
void Room::veng6TalkToKirk() {
showText(TX_SPEAKER_KIRK, TX_VEN6_005);
showText(TX_SPEAKER_MCCOY, TX_VEN6_009);
}
void Room::veng6TalkToSpock() {
showText(TX_SPEAKER_SPOCK, TX_VEN6_014);
}
void Room::veng6TalkToMccoy() {
showText(TX_SPEAKER_MCCOY, TX_VEN6_008);
showText(TX_SPEAKER_SPOCK, TX_VEN6_018);
}
void Room::veng6TalkToRedshirt() {
showText(TX_SPEAKER_KIJE, TX_VEN6_023);
}
void Room::veng6UseCable1OnLeftPort() {
veng6UseCableOnLeftPort(OBJECT_ICABLE1);
}
void Room::veng6UseCable2OnLeftPort() {
veng6UseCableOnLeftPort(OBJECT_ICABLE2);
}
void Room::veng6UseCableOnLeftPort(byte cable) {
_roomVar.veng.cableInUse = cable;
if (!(_awayMission->veng.junctionCablesConnected & 1)) {
_awayMission->disableInput = true;
walkCrewmanC(OBJECT_SPOCK, 0x91, 0xb4, &Room::veng6KirkOrSpockReachedLeftPort);
walkCrewmanC(OBJECT_KIRK, 0x5c, 0xa0, &Room::veng6KirkOrSpockReachedLeftPort);
}
}
void Room::veng6KirkOrSpockReachedLeftPort() {
if (++_roomVar.veng.kirkAndSpockReadyToAttachLeftCable == 2) {
loadActorAnimC(OBJECT_KIRK, "kuseln", -1, -1, &Room::veng6AttachedLeftCable);
loadActorAnim(OBJECT_SPOCK, "suseln");
playVoc("EFX4");
}
}
void Room::veng6AttachedLeftCable() {
loadActorAnim(OBJECT_CABLE_1, "s7r6cl", CABLE_1_X, CABLE_1_Y);
showText(TX_VEN6N020);
_awayMission->veng.junctionCablesConnected |= 1;
loseItem(_roomVar.veng.cableInUse);
_awayMission->disableInput = false;
}
void Room::veng6UseCable1OnRightPort() {
veng6UseCableOnRightPort(OBJECT_ICABLE1);
}
void Room::veng6UseCable2OnRightPort() {
veng6UseCableOnRightPort(OBJECT_ICABLE2);
}
void Room::veng6UseCableOnRightPort(byte cable) {
_roomVar.veng.cableInUse = cable;
if (!(_awayMission->veng.junctionCablesConnected & 2)) {
_awayMission->disableInput = true;
walkCrewmanC(OBJECT_SPOCK, 0xac, 0xb4, &Room::veng6KirkOrSpockReachedRightPort);
walkCrewmanC(OBJECT_KIRK, 0x107, 0xa0, &Room::veng6KirkOrSpockReachedRightPort);
}
}
void Room::veng6KirkOrSpockReachedRightPort() {
if (++_roomVar.veng.kirkAndSpockReadyToAttachRightCable == 2) {
loadActorAnimC(OBJECT_KIRK, "kuseln", -1, -1, &Room::veng6AttachedRightCable);
loadActorAnim(OBJECT_SPOCK, "suseln");
playVoc("EFX4");
}
}
void Room::veng6AttachedRightCable() {
loadActorAnim(OBJECT_CABLE_2, "s7r6cr", CABLE_2_X, CABLE_2_Y);
showText(TX_VEN6N022);
_awayMission->veng.junctionCablesConnected |= 2;
loseItem(_roomVar.veng.cableInUse);
_awayMission->disableInput = false;
}
void Room::veng6UseCrewmanOnJunctionBox() {
if (_awayMission->veng.impulseEnginesOn)
showText(TX_SPEAKER_SPOCK, TX_VEN6_012);
else if ((_awayMission->veng.junctionCablesConnected & 3) == 3) {
showText(TX_SPEAKER_COMPUTER, TX_COMPA185);
showText(TX_SPEAKER_KIRK, TX_VEN6_003);
if (!_awayMission->veng.readEngineeringJournal)
showText(TX_SPEAKER_SPOCK, TX_VEN6_017);
else {
showText(TX_SPEAKER_SPOCK, TX_VEN6_016);
showText(TX_SPEAKER_KIRK, TX_VEN6_002);
walkCrewmanC(OBJECT_SPOCK, 0x99, 0xb4, &Room::veng6SpockReachedJunctionBox);
}
} else
showText(TX_SPEAKER_SPOCK, TX_VEN6_011);
}
void Room::veng6SpockReachedJunctionBox() {
loadActorAnimC(OBJECT_SPOCK, "suseln", -1, -1, &Room::veng6SpockAdjustedJunctionBox);
}
void Room::veng6SpockAdjustedJunctionBox() {
showText(TX_SPEAKER_SPOCK, TX_VEN6_019);
loadActorAnim(OBJECT_IMPULSE_ENGINES, "s7r6i1", IMPULSE_ENGINE_X, IMPULSE_ENGINE_Y);
_awayMission->veng.impulseEnginesOn = true;
stopAllVocSounds();
playVoc("VEN6LON");
}
void Room::veng6UseHypoOnOilCanister() {
if (_awayMission->veng.oilInHypo)
showText(TX_VEN6N006);
else {
_awayMission->disableInput = true;
walkCrewmanC(OBJECT_KIRK, 0x3c, 0x9e, &Room::veng6ReachedOilCanister);
}
}
void Room::veng6ReachedOilCanister() {
loadActorAnimC(OBJECT_KIRK, "kusehw", -1, -1, &Room::veng6FilledHypoWithOil);
}
void Room::veng6FilledHypoWithOil() {
_awayMission->disableInput = false;
showText(TX_VEN6N007);
_awayMission->veng.oilInHypo = true;
}
void Room::veng6UseCabinet() {
_awayMission->disableInput = true;
walkCrewmanC(OBJECT_KIRK, 0x36, 0x9f, &Room::veng6ReachedCabinet);
}
void Room::veng6ReachedCabinet() {
loadActorAnimC(OBJECT_KIRK, "kusehw", -1, -1, &Room::veng6OpenedOrClosedCabinet);
}
void Room::veng6OpenedOrClosedCabinet() {
_awayMission->disableInput = false;
if (_awayMission->veng.engineeringCabinetOpen) {
loadActorAnim(OBJECT_CABINET, "s7r6p2", CABINET_X, CABINET_Y);
playSoundEffectIndex(SND_DOOR1);
_awayMission->veng.engineeringCabinetOpen = false;
} else {
loadActorAnim(OBJECT_CABINET, "s7r6p1", CABINET_X, CABINET_Y);
playSoundEffectIndex(SND_DOOR1);
_awayMission->veng.engineeringCabinetOpen = true;
if (!_awayMission->veng.tookEngineeringJournal)
showText(TX_VEN6N005);
}
}
void Room::veng6UseSTricorderOnImpulseEngines() {
if (_awayMission->veng.impulseEnginesOn)
spockScan(DIR_S, TX_VEN6_010);
else {
spockScan(DIR_S, TX_VEN6_020);
showText(TX_SPEAKER_KIRK, TX_VEN6_001);
showText(TX_SPEAKER_SPOCK, TX_VEN6_022);
}
}
void Room::veng6UseSTricorderOnRightConsole() {
if (_awayMission->veng.impulseEnginesOn)
spockScan(DIR_S, TX_VEN6_013);
else
spockScan(DIR_S, TX_VEN6_007);
}
void Room::veng6UseSTricorderOnJunctionBox() {
spockScan(DIR_S, TX_VEN6_015);
}
void Room::veng6UsePowerPackOnLeftConsole() {
showText(TX_SPEAKER_SPOCK, TX_VEN6_006);
}
void Room::veng6GetJunctionBox() {
showText(TX_MUD1N014);
}
void Room::veng6GetOilCanister() {
showText(TX_VEN6N008);
}
void Room::veng6GetEngineeringJournal() {
_awayMission->disableInput = true;
walkCrewmanC(OBJECT_KIRK, 0x36, 0x9f, &Room::veng6ReachedEngineeringJournal);
}
void Room::veng6ReachedEngineeringJournal() {
loadActorAnimC(OBJECT_KIRK, "kusemw", -1, -1, &Room::veng6TookEngineeringJournal);
}
void Room::veng6TookEngineeringJournal() {
loadActorStandAnim(OBJECT_JOURNAL);
_awayMission->disableInput = false;
showText(TX_VEN6N024);
_awayMission->veng.tookEngineeringJournal = true;
giveItem(OBJECT_ITECH);
}
}
|