|
Wing Commander
Reconstructed Win32 source (1996)
|
Objective arrival, warp transitions, mines and cockpit cleanup. More...
Go to the source code of this file.
Functions | |
| short | find_objective (int type, short index) |
| void | arrive_from_warp (short obj) |
| unsigned int | unwarp (short obj) |
| unsigned int | warp (short obj) |
| int | drop_player_mine (short obj) |
| unsigned int | personality_killed (short personality) |
| void | clean_up_cockpit (void) |
Variables | |
| TextContext | stRightVduTxtContext |
| TextContext | stCurrentCockpitReadoutTextCtx |
| TextContext | stDefaultTxtContext |
| TextContext | stCurrentConvTxtCtx |
| short | asDamageFlashColour [3] |
| short | nCurrentDmgDispTicks |
| ShortPoint | stWpnDispOrigin |
| char | szDmgStateText [0x48] |
| ShortPoint | stDamageSpritePos |
| signed char | cDamageDisplayComponentValue |
| signed char | cDamageDisplayFrame |
| signed char | cDamagedComponentCount |
Objective arrival, warp transitions, mines and cockpit cleanup.
Address range 42a8f0-42acff, corroborated by the Mac targ symbols.
Definition in file targ.c.
| void arrive_from_warp | ( | short | obj | ) |
Definition at line 42 of file targ.c.
References abFlightPathList, aeShipSide, aMissionObjectivesArray, anShipSpeed, approve_xyz(), arrive_from_warp(), asShipMaximumSpeedArray, cCurrentObjective, find_objective(), fix_velocity(), flag_objective(), MISSION_TYPE_COME_HOME, MISSION_TYPE_PATROL, nCurrentNavigationPoint, reset_mission_type(), set_next_destination(), SIDE_IMPERIAL, and unwarp().
Referenced by arrive_from_warp(), init_3Space_objects(), and warp_arrival().
Definition at line 141 of file targ.c.
References acShipTargetTable, clean_up_cockpit(), ClearHudGunReadouts(), nAutoEngageTimer, nTargetLockMode, nYourWingman, OBJECTIVE_HOLD_FORMATION, and reset_objective().
Referenced by auto_pilot_sequence(), clean_up_cockpit(), init_3Space_objects(), and set_up_action_sphere().
| int drop_player_mine | ( | short | obj | ) |
Definition at line 109 of file targ.c.
References aObjectTypeData, aShipWeaponsTable, drop_mine(), drop_player_mine(), and OBJECT_CLASS_MINE.
Referenced by drop_player_mine(), HandleSpaceFlightControls(), and init_3Space_objects().
| short find_objective | ( | int | type, |
| short | index ) |
Definition at line 26 of file targ.c.
References aMissionObjectivesArray, cMissionObjectiveCountValue, and find_objective().
Referenced by arrive_from_warp(), coming_home(), find_objective(), init_3Space_objects(), and RunSpaceFlight().
| unsigned int personality_killed | ( | short | personality | ) |
Definition at line 124 of file targ.c.
References CampaignState::currentMission, CampaignState::currentSeries, kill_ace(), MaxShort(), CampaignState::missionScore, personality_killed(), CampaignState::personalityDeathMission, CampaignState::promotionScore, and stCampaignState.
Referenced by Explosion(), init_3Space_objects(), and personality_killed().
| unsigned int unwarp | ( | short | obj | ) |
Definition at line 65 of file targ.c.
References abShipNavPtIdx, aeObjectTypeList, aeShipManeuversTable, aShipPositionsArray, aShipVelocity, asObjectCounterArray, bViewportDirty, ClearViewport(), cViewportClearColour, find_vacant_3d_object(), MANEUVER_NONE, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, set_objects_data(), stSpaceBufferViewport, and unwarp().
Referenced by arrive_from_warp(), init_3Space_objects(), and unwarp().
| unsigned int warp | ( | short | obj | ) |
Definition at line 87 of file targ.c.
References acObjOwnersTable, aeShipManeuversTable, aShipPositionsArray, aShipVelocity, asObjectCounterArray, bViewportDirty, ClearViewport(), cViewportClearColour, find_vacant_3d_object(), MANEUVER_WARPING_OUT, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, set_objects_data(), stSpaceBufferViewport, and warp().
Referenced by accelerate_and_jump(), init_3Space_objects(), and warp().
| short asDamageFlashColour[3] |
Definition at line 16 of file targ.c.
Referenced by ResetCockpitPaletteEntries(), TriggerPlayerHitPaletteFlash(), and UpdateSpacePaletteFade().
| signed char cDamagedComponentCount |
Definition at line 23 of file targ.c.
Referenced by show_damage_disp(), and UpdateDamageDisplay().
| signed char cDamageDisplayComponentValue |
Definition at line 21 of file targ.c.
Referenced by UpdateDamageDisplay().
| signed char cDamageDisplayFrame |
Definition at line 22 of file targ.c.
Referenced by UpdateDamageDisplay().
| short nCurrentDmgDispTicks |
Definition at line 17 of file targ.c.
Referenced by SelectCockpitVduMode(), and UpdateDamageDisplay().
| TextContext stCurrentCockpitReadoutTextCtx |
Definition at line 13 of file targ.c.
Referenced by InitializeCockpitResources(), and update_digital_readouts().
| TextContext stCurrentConvTxtCtx |
Definition at line 15 of file targ.c.
Referenced by DeBriefing(), Dismissed(), InitializeConversationText(), LoadBriefingRoom(), ShowCampaignVictorySequence(), ShowMeanwhileTransition(), ShowTigerClawEscapeScene(), and UpdateMap().
| ShortPoint stDamageSpritePos |
Definition at line 20 of file targ.c.
Referenced by UpdateDamageDisplay().
| TextContext stDefaultTxtContext |
Definition at line 14 of file targ.c.
Referenced by CalibrateJoystickInteractive(), InflightComputer(), InitializeDiskPromptTextContext(), InitializeGameTextContexts(), InitializeModalTextPanel(), and ShowMemoryStatusDebug().
| TextContext stRightVduTxtContext |
Definition at line 12 of file targ.c.
Referenced by init_vdus(), set_global_message(), show_communications_disp(), show_navigation_disp(), show_target_disp(), and update_VDUs().
| ShortPoint stWpnDispOrigin |
Definition at line 18 of file targ.c.
Referenced by RemovePlayerReleaseWeapon(), show_damage_disp(), show_weapon_disp(), and UpdateDamageDisplay().
| char szDmgStateText[0x48] |
Definition at line 19 of file targ.c.
Referenced by UpdateDamageDisplay().