Permalink
Browse files

STARTREK: SINS5

  • Loading branch information...
Drenn1 authored and sev- committed Jul 29, 2018
1 parent 06d7656 commit 1c89c065082d47a56cd972984887d238ea6d03e8
Showing with 668 additions and 3 deletions.
  1. +16 −0 engines/startrek/awaymission.h
  2. +62 −0 engines/startrek/room.h
  3. +464 −3 engines/startrek/rooms/sins5.cpp
  4. +63 −0 engines/startrek/text.cpp
  5. +63 −0 engines/startrek/text.h
@@ -540,6 +540,14 @@ struct AwayMission {
// the keycard
byte gatheredClues; // 0x39

// bit 0: scanned left computer
// bit 1: scanned right computer
// bit 2: accessed left computer
// bit 3: accessed right computer
byte scannedAndUsedComputers; // 0x3a

bool wireConnected1; // 0x3b
bool wireConnected2; // 0x3c
bool openedOuterDoor; // 0x3d
bool openedInnerDoor; // 0x3e
bool unlockedIDCardDoor; // 0x3f
@@ -560,9 +568,17 @@ struct AwayMission {
bool enteredRoom2FirstTime; // 0x44
bool enteredRoom3FirstTime; // 0x45
bool enteredRoom4FirstTime; // 0x46
bool enteredRoom5FirstTime; // 0x47
bool gotPointsForScanningStatue; // 0x48
bool gotPointsForScanningRoom4; // 0x49
bool gotPointsForScanningRoom5; // 0x4a
bool gotPointsForScanningRightComputer; // 0x4b
bool gotPointsForScanningLeftComputer; // 0x4c
bool gotPointsForUsingRightComputer; // 0x4d
bool gotPointsForUsingLeftComputer; // 0x4e
bool discoveredComputersOutOfSync; // 0x4f
bool enteredRoom1FirstTime; // 0x50
bool gotPointsForEnteringRoom5; // 0x51
int16 missionScore; // 0x52
} sins;
};
@@ -2373,6 +2373,63 @@ class Room {

// SINS5
void sins5Tick1();
void sins5UseSTricorderAnywhere();
void sins5UseSTricorderOnRightComputer();
void sins5UseSTricorderOnLeftComputer();
void sins5UseSTricorderOnMiddleComputer();
void sins5UseKirkOnRightComputer();
void sins5UseKirkOnLeftComputer();
void sins5UseKirkOnMiddleComputer();
void sins5UseMccoyOnComputer();
void sins5UseRedshirtOnComputer();
void sins5UseSpockOnMiddleComputer();
void sins5UseSpockOnRightComputer();
void sins5SpockReachedRightComputer();
void sins5SpockUsedRightComputer();
void sins5UseSpockOnLeftComputer();
void sins5SpockReachedLeftComputer();
void sins5SpockUsedLeftComputer();
void sins5CrewmanReadyToBeamOut();
void sins5Tick20();
void sins5CheckGatheredAllClues();
void sins5UseWireOnComputer();
void sins5KirkOrSpockInPositionToUseWire();
void sins5WireConnected();
void sins5UseStunPhaserOnComputer();
void sins5UseKillPhaserOnLeftComputer();
void sins5ReachedPositionToShootLeftComputer();
void sins5DrewPhaserToShootLeftComputer();
void sins5Timer0Expired();
void sins5UseKillPhaserOnMiddleComputer();
void sins5ReachedPositionToShootMiddleComputer();
void sins5DrewPhaserToShootMiddleComputer();
void sins5Timer1Expired();
void sins5UseKillPhaserOnRightComputer();
void sins5ReachedPositionToShootRightComputer();
void sins5DrewPhaserToShootRightComputer();
void sins5Timer2Expired();
void sins5ComputerLaunchesMissiles();
void sins5Timer3Expired();
void sins5LookAnywhere();
void sins5LookAtKirk();
void sins5LookAtSpock();
void sins5LookAtMccoy();
void sins5LookAtRedshirt();
void sins5LookAtLight();
void sins5LookAtLeftComputer();
void sins5LookAtMiddleComputer();
void sins5LookAtRightComputer();
void sins5LookAtMissile();
void sins5LookAtNorthDoor();
void sins5UseMedkitOnCrewman();
void sins5UseMTricorderAnywhere();
void sins5TalkToKirk();
void sins5TalkToSpock();
void sins5TalkToMccoy();
void sins5TalkToRedshirt();
void sins5UseSTricorderOnMissile();
void sins5UseSTricorderOnNorthDoor();
void sins5UseMTricorderOnCrewman();

public:
// Room-specific variables. This is memset'ed to 0 when the room is initialized.
@@ -2676,6 +2733,11 @@ class Room {
}
} trial;

struct {
byte numCrewmenInPositionForWire; // 0xca
byte numCrewmenReadyToBeamOut; // 0xcb
} sins;

} _roomVar;
};

Oops, something went wrong.

0 comments on commit 1c89c06

Please sign in to comment.