diff options
author | Matthew Stewart | 2018-06-10 22:01:39 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | 487c3fda3252536fdd57e9db4020d23f20069aae (patch) | |
tree | f840cbd96bf99ada9d89e3bcea40bd0a37ddbbe2 /engines/startrek/rooms/function_map.h | |
parent | 41997ebc20a9d1de7225e589bad5472de5c9c132 (diff) | |
download | scummvm-rg350-487c3fda3252536fdd57e9db4020d23f20069aae.tar.gz scummvm-rg350-487c3fda3252536fdd57e9db4020d23f20069aae.tar.bz2 scummvm-rg350-487c3fda3252536fdd57e9db4020d23f20069aae.zip |
STARTREK: TUG2
Diffstat (limited to 'engines/startrek/rooms/function_map.h')
-rw-r--r-- | engines/startrek/rooms/function_map.h | 95 |
1 files changed, 94 insertions, 1 deletions
diff --git a/engines/startrek/rooms/function_map.h b/engines/startrek/rooms/function_map.h index 7ea01393c8..a88214cdfa 100644 --- a/engines/startrek/rooms/function_map.h +++ b/engines/startrek/rooms/function_map.h @@ -590,7 +590,6 @@ RoomAction tug0ActionList[] = { }; -// TUG1 RoomAction tug1ActionList[] = { { Action(ACTION_TICK, 1, 0, 0), &Room::tug1Tick1 }, { Action(ACTION_USE, OBJECT_ISTRICOR, -1, 0), &Room::tug1UseSTricorderOnAnything }, @@ -607,11 +606,13 @@ RoomAction tug1ActionList[] = { { Action(ACTION_GET, 8, 0, 0), &Room::tug1GetJunkPile }, { Action(ACTION_FINISHED_WALKING, 1, 0, 0), &Room::tug1KirkReachedJunkPile }, { Action(ACTION_FINISHED_ANIMATION, 2, 0, 0), &Room::tug1KirkFinishedTakingJunkPile }, + { Action(ACTION_USE, OBJECT_IPHASERS, OBJECT_IPWE, 0), &Room::tug1UsePhaserOnWelder }, { Action(ACTION_USE, OBJECT_IPHASERK, OBJECT_IPWE, 0), &Room::tug1UsePhaserOnWelder }, { Action(ACTION_USE, OBJECT_IPWF, OBJECT_IWIRSCRP, 0), &Room::tug1UseWelderOnWireScraps }, { Action(ACTION_USE, OBJECT_IPWF, OBJECT_IJNKMETL, 0), &Room::tug1UseWelderOnMetalScraps }, { Action(ACTION_USE, OBJECT_ICOMBBIT, OBJECT_IRT, 0), &Room::tug1UseCombBitOnTransmogrifier }, + { Action(ACTION_USE, OBJECT_IPWF, 0x22, 0), &Room::tug1UsePhaserWelderOnBridgeDoor }, { Action(ACTION_USE, OBJECT_IPWF, 0x21, 0), &Room::tug1UsePhaserWelderOnBridgeDoor }, { Action(ACTION_USE, OBJECT_IPWF, 0x20, 0), &Room::tug1UsePhaserWelderOnBridgeDoorInLeftSpot }, @@ -652,6 +653,98 @@ RoomAction tug1ActionList[] = { }; + +RoomAction tug2ActionList[] = { + { Action(ACTION_TICK, 1, 0, 0), &Room::tug2Tick1 }, + { Action(ACTION_TICK, 60, 0, 0), &Room::tug2Tick60 }, + { Action(ACTION_LOOK, 0x20, 0, 0), &Room::tug2LookAtButton }, + { Action(ACTION_LOOK, OBJECT_MCCOY, 0, 0), &Room::tug2LookAtMccoy }, + { Action(ACTION_LOOK, OBJECT_SPOCK, 0, 0), &Room::tug2LookAtSpock }, + { Action(ACTION_LOOK, OBJECT_REDSHIRT, 0, 0), &Room::tug2LookAtRedshirt }, + { Action(ACTION_GET, 11, 0, 0), &Room::tug2GetBomb }, + { Action(ACTION_FINISHED_WALKING, 12, 0, 0), &Room::tug2KirkReachedBomb }, + { Action(ACTION_FINISHED_ANIMATION, 13, 0, 0), &Room::tug2KirkGotBomb }, + { Action(ACTION_LOOK, 11, 0, 0), &Room::tug2LookAtBomb }, + { Action(ACTION_LOOK, 8, 0, 0), &Room::tug2LookAtGuard1 }, + { Action(ACTION_LOOK, 9, 0, 0), &Room::tug2LookAtGuard2 }, + { Action(ACTION_LOOK, 12, 0, 0), &Room::tug2LookAtWires }, + { Action(ACTION_USE, OBJECT_ISTRICOR, 12, 0), &Room::tug2UseSTricorderOnButton }, + { Action(ACTION_USE, OBJECT_ISTRICOR, 0x20, 0), &Room::tug2UseSTricorderOnButton }, + { Action(ACTION_USE, OBJECT_MCCOY, 12, 0), &Room::tug2UseMccoyOnWires }, + { Action(ACTION_USE, OBJECT_MCCOY, 11, 0), &Room::tug2UseMccoyOnBomb }, + { Action(ACTION_USE, OBJECT_REDSHIRT, 12, 0), &Room::tug2UseRedshirtOnWires }, + { Action(ACTION_FINISHED_WALKING, 6, 0, 0), &Room::tug2RedshirtReachedWires }, + { Action(ACTION_FINISHED_ANIMATION, 7, 0, 0), &Room::tug2RedshirtDefusedBomb }, + { Action(ACTION_FINISHED_WALKING, 8, 0, 0), &Room::tug2RedshirtReturnedToPosition }, + { Action(ACTION_USE, OBJECT_KIRK, 12, 0), &Room::tug2UseKirkOnWires }, + { Action(ACTION_FINISHED_WALKING, 5, 0, 0), &Room::tug2KirkReachedWires }, + { Action(ACTION_USE, OBJECT_SPOCK, 12, 0), &Room::tug2UseSpockOnWires }, + { Action(ACTION_FINISHED_WALKING, 9, 0, 0), &Room::tug2SpockReachedWires }, + { Action(ACTION_FINISHED_WALKING, 11, 0, 0), &Room::tug2SpockReturnedToPosition }, + { Action(ACTION_GET, 12, 0, 0), &Room::tug2GetWires }, + { Action(ACTION_FINISHED_WALKING, 28, 0, 0), &Room::tug2KirkReachedWiresToGet }, + { Action(ACTION_FINISHED_ANIMATION, 29, 0, 0), &Room::tug2KirkGotWires }, + { Action(ACTION_USE, OBJECT_KIRK, 0x20, 0), &Room::tug2UseKirkOnButton }, + { Action(ACTION_FINISHED_WALKING, 14, 0, 0), &Room::tug2KirkReachedButton }, + { Action(ACTION_USE, OBJECT_SPOCK, 0x20, 0), &Room::tug2UseSpockOnButton }, + { Action(ACTION_FINISHED_WALKING, 16, 0, 0), &Room::tug2SpockReachedButton }, + { Action(ACTION_USE, OBJECT_MCCOY, 0x20, 0), &Room::tug2UseMccoyOnButton }, + { Action(ACTION_FINISHED_WALKING, 18, 0, 0), &Room::tug2MccoyReachedButton }, + { Action(ACTION_USE, OBJECT_REDSHIRT, 0x20, 0), &Room::tug2UseRedshirtOnButton }, + { Action(ACTION_FINISHED_WALKING, 20, 0, 0), &Room::tug2RedshirtReachedButton }, + { Action(ACTION_FINISHED_ANIMATION, 15, 0, 0), &Room::tug2TurnedOffForceField }, + { Action(ACTION_FINISHED_ANIMATION, 17, 0, 0), &Room::tug2TurnedOffForceField }, + { Action(ACTION_FINISHED_ANIMATION, 19, 0, 0), &Room::tug2TurnedOffForceField }, + { Action(ACTION_FINISHED_ANIMATION, 21, 0, 0), &Room::tug2TurnedOffForceField }, + { Action(ACTION_FINISHED_ANIMATION, 1, 0, 0), &Room::tug2PrisonersDead }, + { Action(ACTION_FINISHED_ANIMATION, 2, 0, 0), &Room::tug2PrisonersReleased }, + { Action(ACTION_USE, OBJECT_IPHASERS, 10, 0), &Room::tug2UsePhaserOnBrig }, + { Action(ACTION_USE, OBJECT_IPHASERK, 10, 0), &Room::tug2UsePhaserOnBrig }, + { Action(ACTION_USE, OBJECT_IPHASERS, 8, 0), &Room::tug2UseStunPhaserOnGuard1 }, + { Action(ACTION_FINISHED_ANIMATION, 22, 0, 0), &Room::tug2KirkShootGuard1 }, + { Action(ACTION_USE, OBJECT_IPHASERS, 9, 0), &Room::tug2UseStunPhaserOnGuard2 }, + { Action(ACTION_FINISHED_ANIMATION, 23, 0, 0), &Room::tug2KirkShootGuard2 }, + { Action(ACTION_USE, OBJECT_IPHASERK, 8, 0), &Room::tug2UseKillPhaserOnGuard1 }, + { Action(ACTION_FINISHED_ANIMATION, 24, 0, 0), &Room::tug2KirkKillGuard1 }, + { Action(ACTION_USE, OBJECT_IPHASERK, 9, 0), &Room::tug2UseKillPhaserOnGuard2 }, + { Action(ACTION_FINISHED_ANIMATION, 25, 0, 0), &Room::tug2KirkKillGuard2 }, + + { Action(ACTION_USE, OBJECT_IPHASERS, OBJECT_IPWE, 0), &Room::tug2UsePhaserOnWelder }, + { Action(ACTION_USE, OBJECT_IPHASERK, OBJECT_IPWE, 0), &Room::tug2UsePhaserOnWelder }, + { Action(ACTION_USE, OBJECT_IPWF, OBJECT_IWIRSCRP, 0), &Room::tug2UseWelderOnWireScraps }, + { Action(ACTION_USE, OBJECT_IPWF, OBJECT_IJNKMETL, 0), &Room::tug2UseWelderOnMetalScraps }, + { Action(ACTION_USE, OBJECT_ICOMBBIT, OBJECT_IRT, 0), &Room::tug2UseCombBitOnTransmogrifier }, + + { Action(ACTION_FINISHED_ANIMATION, 26, 0, 0), &Room::tug2ShotByElasi }, + { Action(ACTION_FINISHED_ANIMATION, 27, 0, 0), &Room::tug2ShotByElasi }, + { Action(ACTION_WALK, 0x21, 0, 0), &Room::tug2WalkToDoor }, + { Action(ACTION_LOOK, 0x21, 0, 0), &Room::tug2LookAtDoor }, + { Action(ACTION_LOOK, OBJECT_KIRK, 0, 0), &Room::tug2LookAtKirk }, + { Action(ACTION_TALK, OBJECT_KIRK, 0, 0), &Room::tug2TalkToKirk }, + { Action(ACTION_TALK, OBJECT_MCCOY, 0, 0), &Room::tug2TalkToMccoy }, + { Action(ACTION_TALK, OBJECT_REDSHIRT, 0, 0), &Room::tug2TalkToRedshirt }, + { Action(ACTION_TALK, OBJECT_SPOCK, 0, 0), &Room::tug2TalkToSpock }, + { Action(ACTION_USE, OBJECT_ICOMM, 0, 0), &Room::tug2UseCommunicator }, + { Action(ACTION_TIMER_EXPIRED, 0, 0, 0), &Room::tug2Timer0Expired }, + { Action(ACTION_TIMER_EXPIRED, 2, 0, 0), &Room::tug2Timer2Expired }, + { Action(ACTION_USE, OBJECT_ISTRICOR, 11, 0), &Room::tug2UseSTricorderOnBomb }, + { Action(ACTION_USE, OBJECT_IMTRICOR, 8, 0), &Room::tug2UseMTricorderOnGuard1 }, + { Action(ACTION_USE, OBJECT_IMTRICOR, 9, 0), &Room::tug2UseMTricorderOnGuard2 }, + { Action(ACTION_TALK, 8, 0, 0), &Room::tug2TalkToGuard1 }, + { Action(ACTION_TALK, 9, 0, 0), &Room::tug2TalkToGuard2 }, + { Action(ACTION_USE, OBJECT_IMEDKIT, 11, 0), &Room::tug2UseMedkitOnBomb }, + { Action(ACTION_USE, OBJECT_IMEDKIT, 8, 0), &Room::tug2UseMedkitOnGuard1 }, + { Action(ACTION_USE, OBJECT_IMEDKIT, 9, 0), &Room::tug2UseMedkitOnGuard2 }, + { Action(ACTION_LOOK, 10, 0, 0), &Room::tug2LookAnywhere }, + { Action(ACTION_LOOK, 0x22, 0, 0), &Room::tug2LookAnywhere }, + { Action(ACTION_LOOK, -1, 0, 0), &Room::tug2LookAnywhere }, + { Action(ACTION_TALK, 10, 0, 0), &Room::tug2TalkToBrig }, + { Action(ACTION_USE, OBJECT_IMTRICOR, 10, 0), &Room::tug2UseMTricorderOnBrig }, + { Action(ACTION_USE, OBJECT_IMTRICOR, 0x22, 0), &Room::tug2UseMTricorderOnOpenBrig }, + { Action(ACTION_USE, OBJECT_IPHASERS, -1, 0), &Room::tug2UsePhaserAnywhere }, + { Action(ACTION_USE, OBJECT_IPHASERK, -1, 0), &Room::tug2UsePhaserAnywhere }, +}; + } #endif |