|
Wing Commander II
Reconstructed Win32 source (1996)
|
Objectives, warp arrival and star-system jumps. More...
#include "game.h"Go to the source code of this file.
Functions | |
| short | find_objective (short type, short index) |
| void | arrive_from_warp (short obj) |
| void | unwarp (short obj) |
| void | warp (short obj) |
| void | MarkPilotDead (short pilot) |
| void | clean_up_cockpit (void) |
| void | TryBeginStarSystemJump (void) |
| void | CompleteStarSystemJump (void) |
Variables | |
| short | g_nEscapedEnemyCount = 0 |
| short | g_bStarSystemJumpTransition = 0 |
| short | g_bJumpSequenceActive = 0 |
| short | g_nStarSystemJumpDelay = 0 |
| int | g_nSavedWingmanObjectCounterValue |
| int | g_1_nSavedPlayerObjectCounter |
| signed char | g_acJumpDriveUsedBySystem [5] |
Objectives, warp arrival and star-system jumps.
Definition in file jump.c.
| void arrive_from_warp | ( | short | obj | ) |
Definition at line 30 of file jump.c.
References arrive_from_warp(), find_objective(), fix_velocity(), flag_objective(), g_abFlightPath, g_aMissionObjectives, g_anShipSpeed, g_asShipMaximumVelocity, g_asShipMissionType, g_asShipSide, g_asShipTactic, g_cCurrentObjective, g_nCurrentNavPoint, MISSION_TYPE_COME_HOME, MISSION_TYPE_NONE, MISSION_TYPE_PATROL, place_ship_near_player_until_valid(), reset_mission_type(), set_next_destination(), SIDE_IMPERIAL, TACTIC_NONE, and unwarp().
Referenced by arrive_from_warp(), UpdateShipTurretGuns(), and warp_arrival().
Definition at line 121 of file jump.c.
References clean_up_cockpit(), ClearHudGunReadouts(), g_acShipTarget, g_bTargetLockMode, g_nAutoEngageTimer, g_nYourWingman, OBJECTIVE_HOLD_FORMATION, and reset_objective().
Referenced by auto_pilot_sequence(), clean_up_cockpit(), set_up_action_sphere(), and UpdateShipTurretGuns().
Definition at line 216 of file jump.c.
References ClearViewport(), CompleteStarSystemJump(), FadeViewportPaletteToColour(), g_101_stScrViewInfo, g_1_nSavedPlayerObjectCounter, g_27_stViewScratchInfo, g_78_bHighMemoryBuffersSetState, g_acObjectType, g_aeObjectClass, g_aeShipObjective, g_aMissionNavPoints, g_anShipFuel, g_anShipSpeed, g_aObjectTypeData, g_aShipPosition, g_asObjectCounter, g_asObjectScale, g_asShipManeuver, g_asShipMissionType, g_bAutopilotSequenceActive, g_bJumpSequenceActive, g_bPrimaryViewBufferColour, g_bStarSystemJumpTransition, g_bViewportDirty, g_cSecondaryViewBufferColour, g_nCurStellarSystem, g_nSavedWingmanObjectCounterValue, g_nStarSystemJumpDelay, g_nYourWingman, MANEUVER_NONE, MISSION_TYPE_WINGMAN, new_view(), OBJECT_CLASS_SHIP, OBJECTIVE_HOLD_FORMATION, MissionNavPoint::position, MissionNavPoint::proximityRadius, ResetCannedSceneRecording(), RestoreGamePalette(), ObjectTypeData::scale, set_up_action_sphere(), and FixedVector::x.
Referenced by CompleteStarSystemJump(), and house_keep_objects().
| short find_objective | ( | short | type, |
| short | index ) |
Definition at line 14 of file jump.c.
References find_objective(), g_aMissionObjectives, and g_cMissionObjectiveCount.
Referenced by arrive_from_warp(), coming_home(), find_objective(), RunSpaceFlight(), and UpdateShipTurretGuns().
| void MarkPilotDead | ( | short | pilot | ) |
Definition at line 115 of file jump.c.
References g_pPilotStatus, and MarkPilotDead().
Referenced by MarkPilotDead().
Definition at line 135 of file jump.c.
References ejection_sequence(), equ_vector(), force_view(), g_1_nSavedPlayerObjectCounter, g_acJumpDriveUsedBySystem, g_aeObjectClass, g_aMissionNavPoints, g_aMissionObjectives, g_apShipMissionRecord, g_aShipDestination, g_asObjectCounter, g_asObjectType, g_asShipCount, g_asShipMissionParameter, g_asShipMissionType, g_asShipSide, g_asShipTactic, g_bJumpSequenceActive, g_bStarSystemJumpTransition, g_cCurrentObjective, g_cYellowColour, g_nCurrentNavPoint, g_nCurStellarSystem, g_nEjectionSequenceState, g_nPendingEjectionSequenceCount, g_nSavedWingmanObjectCounterValue, g_nStarSystemJumpDelay, g_nYourWingman, g_pszAutopilotWaitReason, g_ucPendingEjectionTransition, MISSION_TYPE_GOTO_WARP, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, set_global_message(), SIDE_KILRATHI, spacetrack(), TACTIC_SIT_STILL, and TryBeginStarSystemJump().
Referenced by HandleSpaceFlightControls(), and TryBeginStarSystemJump().
| void unwarp | ( | short | obj | ) |
Definition at line 58 of file jump.c.
References ClearViewport(), find_vacant_3d_object(), g_27_stViewScratchInfo, g_abShipNavPointIndex, g_acObjectType, g_aObjectTypeData, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asShipManeuver, g_bPrimaryViewBufferColour, g_bViewportDirty, MANEUVER_NONE, MANEUVER_WARPING_IN, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, PlaySfxWaveFileByNumber(), RecordCannedSceneObjectEvent(), set_objects_data(), and unwarp().
Referenced by arrive_from_warp(), unwarp(), and UpdateShipTurretGuns().
| void warp | ( | short | obj | ) |
Definition at line 88 of file jump.c.
References ClearViewport(), find_vacant_3d_object(), g_27_stViewScratchInfo, g_acObjectOwner, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asShipManeuver, g_asShipSide, g_bPrimaryViewBufferColour, g_bViewportDirty, g_nEscapedEnemyCount, MANEUVER_WARPING_OUT, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, PlaySfxWaveFileByNumber(), RecordCannedSceneObjectEvent(), set_objects_data(), SIDE_KILRATHI, and warp().
Referenced by accelerate_and_jump(), UpdateShipTurretGuns(), and warp().
| int g_1_nSavedPlayerObjectCounter |
Definition at line 294 of file jump.c.
Referenced by CompleteStarSystemJump(), and TryBeginStarSystemJump().
| signed char g_acJumpDriveUsedBySystem[5] |
Definition at line 295 of file jump.c.
Referenced by init_mission(), and TryBeginStarSystemJump().
| short g_bJumpSequenceActive = 0 |
Definition at line 10 of file jump.c.
Referenced by CompleteStarSystemJump(), DrawSpaceSceneFrame(), gametrack(), object_intelligence(), place_exhaust_on_ships(), RunSpaceFlight(), servicetrack(), set_up_action_sphere(), TryBeginStarSystemJump(), and update_objects_in_space().
| short g_bStarSystemJumpTransition = 0 |
Definition at line 9 of file jump.c.
Referenced by CompleteStarSystemJump(), set_eye_direction_and_position(), and TryBeginStarSystemJump().
| short g_nEscapedEnemyCount = 0 |
Definition at line 8 of file jump.c.
Referenced by check_next_wave(), set_up_action_sphere(), and warp().
| int g_nSavedWingmanObjectCounterValue |
Definition at line 293 of file jump.c.
Referenced by CompleteStarSystemJump(), and TryBeginStarSystemJump().
| short g_nStarSystemJumpDelay = 0 |
Definition at line 11 of file jump.c.
Referenced by CompleteStarSystemJump(), and TryBeginStarSystemJump().