Permalink
Browse files

STARTREK: SINS1

  • Loading branch information...
Drenn1 authored and sev- committed Jul 27, 2018
1 parent ae6c86b commit b2213cac9b2766b62e29368394837fbe261233d3
@@ -520,12 +520,18 @@ struct AwayMission {
} trial;

struct {
byte field31; // 0x31
byte field32; // 0x32
bool field33; // 0x33
bool doorLaserFiredOnce; // 0x34
byte field39; // 0x39
bool field3d; // 0x3d
bool openedDoor; // 0x3d
bool field3e; // 0x3e
bool enteredRoom0FirstTime; // 0x42
bool field43; // 0x43
bool scottyInformedKirkAboutVirus; // 0x43
bool field44; // 0x44
bool gotPointsForScanningStatue; // 0x48
bool enteredRoom1FirstTime; // 0x50
int16 missionScore; // 0x52
} sins;
};
@@ -475,6 +475,11 @@ void Room::showGameOverMenu() { // TODO: takes an optional parameter?
// TODO: finish. Shouldn't do this within a room due to deletion of current room?
}

int Room::showKeypad(const Common::String &code) {
// TODO
return 3;
}

void Room::playVoc(Common::String filename) {
_vm->_sound->playVoc(filename);
}
@@ -235,6 +235,10 @@ class Room {
* Cmd 0x12
*/
void showGameOverMenu();
/**
* Cmd 0x13: Keypad used in "Than Old Devil Moon" (SINS mission)
*/
int showKeypad(const Common::String &code);
/**
* Cmd 0x15
*/
@@ -2176,6 +2180,43 @@ class Room {

// SINS1
void sins1Tick1();
void sins1LookAnywhere();
void sins1LookAtLock();
void sins1LookAtDoor();
void sins1LookAtPanel();
void sins1LookAtKeypad();
void sins1UseSTricorderOnPanel();
void sins1UseSTricorderOnKeypad();
void sins1UseSTricorderOnLock();
void sins1UseSTricorderOnDoor();
void sins1UseSTricorderAnywhere();
void sins1UseSTricorderOnLens();
void sins1UseRockOnDoor();
void sins1UseRedshirtOnKeypad();
void sins1UseMccoyOnKeypad();
void sins1UseKirkOnKeypad();
void sins1UseSpockOnKeypad();
void sins1SpockReachedKeypad();
void sins1EnteredCorrectCode();
void sins1DoorDoneOpening();
void sins1EnteredIncorrectCode();
void sins1EnteredSacredSofNumber();
void sins1UsePhaserOnDoor();
void sins1DoorUsedLaser();
void sins1Tick40();
void sins1TalkToKirk();
void sins1TalkToSpock();
void sins1TalkToMccoy();
void sins1TalkToRedshirt();
void sins1LookAtKirk();
void sins1LookAtSpock();
void sins1LookAtMccoy();
void sins1LookAtRedshirt();
void sins1LookAtLens();
void sins1UseCommunicator();
void sins1UseMedkitOnCrewman();
void sins1UseMTricorderOnCrewman();
void sins1WalkToDoor();

// SINS2
void sins2Tick1();
@@ -86,7 +86,7 @@ void Room::sins0Tick1() {

if (_vm->_awayMission.sins.field3e)
loadActorAnim2(OBJECT_DOOR, "s0dr2", 0, 0);
if (_vm->_awayMission.sins.field3d)
if (_vm->_awayMission.sins.openedDoor)
loadActorAnim2(OBJECT_DOOR, "s0dr1", 0, 0);

playMidiMusicTracks(MIDITRACK_27, -3);
@@ -231,7 +231,7 @@ void Room::sins0UseMTricorderOnCrewman() {
}

void Room::sins0UseCommunicator() {
if (!_vm->_awayMission.sins.field43) {
if (!_vm->_awayMission.sins.scottyInformedKirkAboutVirus) {
showText(TX_SPEAKER_KIRK, TX_SIN0_004);
showText(TX_SPEAKER_SCOTT, TX_SIN0_S01);
showText(TX_SPEAKER_KIRK, TX_SIN0_002);
Oops, something went wrong.

0 comments on commit b2213ca

Please sign in to comment.