Wing Commander II
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
viewrect.c File Reference

Sets a viewport rectangle. More...

#include "game.h"

Go to the source code of this file.

Functions

void SetViewportRect (Viewport *viewport, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom)

Variables

short g_asDifficultyLevels [16][4]
signed char g_cCurrentKey = (signed char)0x80
signed char g_cPreviousKey = (signed char)0x80
unsigned int g_dwCannedSceneSnapshotStart = 0
short g_nSpaceFrame = 0
short g_nRenderedSpaceFrame = 0
signed char g_cViewObject = -1
short g_nEyePitchGoal = 0
short g_nEyeYawGoal = 0
short g_nEyeRollGoal = 0
short g_nEyePitchRate = 1
short g_nEyeYawRate = 1
short g_nEyeRollRate = 1
FixedVector g_vStarFieldMotion = { 0 }
FixedVector g_vPreviousStarFieldMotion = { 0 }
FixedVector g_vCollisionDelta = { 0 }
FixedVector g_vToTarget = { 0 }
short g_nFacingToTarget = 0
short g_nTargetFacing = 0
short g_nTargetRange = 0
short g_nTargetShip = 0
short g_bExpandedShipGraphicsEnabled = 0
short g_anFlightInput [3] = { 0 }
short g_anPreviousFlightInput [3] = { 0 }
short g_nNavPointerObject = -1
short g_nCurrentNavPoint = 0
short g_nCurrentWave = -1
short g_nLoadedCommPortraitPilot = -1
int g_nCurrentObjectiveRange = 0
signed char g_cCurrentObjective = -1
short g_nHazardFieldCount = 0
HazardField g_aHazardFields [8] = { { -1 } }
HazardField * g_pActiveHazardField = 0
short g_bUseEyePositionForHazards = 0
signed char g_abHazardObjects [0x14]
signed char g_cMissionObjectiveCount = -1
signed char g_cCurrentNavPointIndex = -1
signed char g_abFlightPath [MISSION_OBJECTIVE_COUNT] = { -1 }
MissionObjective g_aMissionObjectives [MISSION_OBJECTIVE_COUNT]
ObjectResourceSlot g_aObjectResourceSlots [5] = { { -1 } }
PilotProfile g_stCurrentPilotProfile = { 0 }
short g_nExternalViewShip = -1
short g_nYourWingman = -1
signed char g_acPlayerComponentDamage [9] = { -1 }
short g_bDisplayWingmanTargetData = 0
short g_nPlayerCollisionObject = -1
FixedVector g_vPlayerAcceleration = { 0 }
int g_aaiVduModeStack [3][4] = { 0 }
signed char g_acVduModeStackDepth [2] = { -1, 0 }
int g_anLastDrawnVduMode [3] = { 0 }
short g_nSelectedGunType = -1
short g_nSelectedReleaseWeaponIndex = -1
short g_nCockpitResetState = 0
short g_bTargetLockReadoutDirty = 0
short g_nTargetLockCountdown = 0
short g_nTargetLockMarkerAngle = 0
signed char g_cTargetDisplayObject = -1
int g_nUnusedTargetWord = 0
short g_bTargetLockAcquired = 0
short g_bTargetLockMode = 0
short g_bMissileCameraEnabled = 0
short g_asObjectViewFrame [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectScreenX [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectScreenY [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectScreenAngle [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectDrawX [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectDrawY [SPACE_OBJECT_COUNT] = { 0 }
unsigned char * g_apObjectShape [SPACE_OBJECT_COUNT] = { 0 }
signed char g_acObjectType [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectFlip [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectScreenScale [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectDistance [SPACE_OBJECT_COUNT] = { 0 }
FixedVector g_aShipRightVector [SPACE_OBJECT_COUNT] = { 0 }
FixedVector g_aShipUpVector [SPACE_OBJECT_COUNT] = { 0 }
FixedVector g_aShipForwardVector [SPACE_OBJECT_COUNT] = { 0 }
FixedVector g_aShipPosition [SPACE_OBJECT_COUNT] = { 0 }
FixedVector g_aShipVelocity [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectCounter [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectAnimationIndex [SPACE_OBJECT_COUNT] = { 0 }
signed char g_acObjectAnimationDelay [SPACE_OBJECT_COUNT] = { 0 }
signed char g_acObjectCollisionGraceTicks [SPACE_OBJECT_COUNT] = { 0 }
unsigned short g_asObjectScale [SPACE_OBJECT_COUNT] = { 0 }
int g_anShipSpeed [SPACE_OBJECT_COUNT] = { 0 }
short g_anObjectPitchRotation [SPACE_OBJECT_COUNT] = { 0 }
short g_anObjectYawRotation [SPACE_OBJECT_COUNT] = { 0 }
short g_anObjectRollRotation [SPACE_OBJECT_COUNT] = { 0 }
short g_asObjectCollisionRadius [70] = { 0 }
short g_asObjectDamage [SPACE_OBJECT_COUNT] = { 0 }
signed char g_acObjectOwner [SPACE_OBJECT_COUNT] = { -1 }
signed char g_acLastCollisionObject [SPACE_OBJECT_COUNT] = { -1 }
short g_asObjectType [SPACE_OBJECT_COUNT] = { 0 }
short g_aeObjectClass [SPACE_OBJECT_COUNT] = { 0 }
unsigned char * g_apObjectExhaustShape [10] = { 0 }
signed char g_acShipNavPoint [12] = { -1 }
FixedVector g_aShipDestination [10] = { 0 }
ShortVector g_aShipFormationOffset [10] = { 0 }
short g_anPitchGoal [12] = { 0 }
short g_anYawGoal [12] = { 0 }
short g_anRollGoal [12] = { 0 }
short g_aasShipMaximumShield [10][2] = { 0 }
short g_aasShipShield [10][2] = { 0 }
short g_aasShipArmor [10][4] = { 0 }
short g_asShipWeaponEnergy [10] = { 0 }
short g_asShipAfterburnerTimer [10] = { 0 }
signed char g_acShipLastAttacker [16] = { -1 }
short g_asShipSide [12] = { 2 }
short g_asActionCount [12] = { 0 }
short g_aeSpecialManeuver [12] = { 0 }
signed char g_acTurnRegulator [16] = { -1 }
signed char g_acTurnInterval [16] = { -1 }
int g_anShipFuel [10] = { 0 }
signed char g_acShipExhaustHeat [16] = { -1 }
signed char g_acShipComputerDamage [16] = { -1 }
signed char g_acShipCommunicator [16] = { -1 }
signed char g_acShipDamage [16] = { -1 }
signed char g_acShipIonDriveDamage [16] = { -1 }
unsigned char g_aShipWeapons [10][0xA1]
short g_asShipMissionIndex [12] = { 0 }
short g_asLoadedShipViewFrame [12] = { 0 }
short g_asShipIntelSlot [10] = { 0 }
short g_asShipIntelResourceKey [10] = { 0 }
short g_asPilotLevel [12] = { 0 }
signed char g_acPilotHitPoints [16] = { -1 }
signed char g_acShipPortrait [12] = { -1 }
signed char g_acShipPendingMessage [16] = { -1 }
MissionShipRecord * g_apShipMissionRecord [10] = { 0 }
short g_asShipWingLeader [12] = { 0 }
short g_asShipMissionType [12] = { 0 }
short g_asShipMissionParameter [12] = { 0 }
FixedVector g_aShipMissionSpot [20] = { 0 }
short g_aeShipObjective [12] = { 0 }
signed char g_acShipTarget [16] = { -1 }
short g_asShipTactic [12] = { 0 }
short g_asShipManeuver [12] = { 29 }
signed char g_abShipNavPointIndex [16] = { -1 }
short g_asShipMaximumVelocity [12] = { 0 }
unsigned int g_anShipAlertFlags [10] = { 0 }
signed char g_acShipAlertSource [12] = { -1 }
short g_asShipAlertCountdown [12] = { 0 }
signed char g_abShipTurn [16] = { -1 }
signed char g_acShipSequence [14] = { -1 }
short g_asShipCount [12] = { 0 }
signed char g_acShipCollisionCooldown [16] = { 0 }
int g_anShipCloakState [10] = { -1 }
short g_asShipCloakCooldown [10] = { 0 }
short g_asShipCloakElapsedFrames [10] = { 0 }
short g_asShipIdentified [12] = { 1 }
short g_asShipFriendlyFireCooldown [10] = { 0 }
signed char g_abProjectileCollisionBonus [SPACE_OBJECT_COUNT] = { 0 }
short g_asProjectileEvasionTicks [8] = { 0 }
signed char g_acShipStress [16] = { 0 }
signed char g_abPilotEjectionAttempted [16] = { 0 }
signed char g_abShipEjectionSequenceEnabled [12] = { 0 }
short g_bEngageAllowed = 0
short g_nAutoEngageTimer = -1
int g_nUnusedWingmanWord = 0
ShipIntelligenceMetadata g_stWingmanIntelligence = { 0 }
int g_nMissionMusicTrackOverride = 0
signed char g_acShipList [16] = { -1 }
short g_asShipListRange [16] = { 0 }
signed char g_cViableTargetCount = 0
signed char g_acViableTarget [16] = { -1 }
short g_asViableTargetDistance [10] = { 0 }
unsigned int g_dwCannedSceneSnapshotEnd = 0

Detailed Description

Sets a viewport rectangle.

Definition in file viewrect.c.

Function Documentation

◆ SetViewportRect()

void SetViewportRect ( Viewport * viewport,
unsigned short left,
unsigned short top,
unsigned short right,
unsigned short bottom )

Variable Documentation

◆ g_aaiVduModeStack

int g_aaiVduModeStack[3][4] = { 0 }

Definition at line 80 of file viewrect.c.

Referenced by get_mode(), push_mode(), and set_mode().

◆ g_aasShipArmor

◆ g_aasShipMaximumShield

short g_aasShipMaximumShield[10][2] = { 0 }

◆ g_aasShipShield

◆ g_abFlightPath

◆ g_abHazardObjects

signed char g_abHazardObjects[0x14]
Initial value:
= {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1
}

Definition at line 62 of file viewrect.c.

Referenced by remove_all_hazards(), remove_object(), start_hazard_field(), and update_hazards().

◆ g_abPilotEjectionAttempted

signed char g_abPilotEjectionAttempted[16] = { 0 }

Definition at line 188 of file viewrect.c.

Referenced by ResolveObjectDestruction(), and Set_up_ship_info().

◆ g_abProjectileCollisionBonus

signed char g_abProjectileCollisionBonus[ SPACE_OBJECT_COUNT] = { 0 }

Definition at line 184 of file viewrect.c.

Referenced by FireTargetCameraGuns(), object_collision(), and set_objects_data().

◆ g_abShipEjectionSequenceEnabled

signed char g_abShipEjectionSequenceEnabled[12] = { 0 }

◆ g_abShipNavPointIndex

signed char g_abShipNavPointIndex[16] = { -1 }

◆ g_abShipTurn

signed char g_abShipTurn[16] = { -1 }

◆ g_acLastCollisionObject

signed char g_acLastCollisionObject[SPACE_OBJECT_COUNT] = { -1 }

Definition at line 123 of file viewrect.c.

Referenced by ApplyAlternateShipType(), object_collision(), and set_objects_data().

◆ g_acObjectAnimationDelay

signed char g_acObjectAnimationDelay[SPACE_OBJECT_COUNT] = { 0 }

Definition at line 112 of file viewrect.c.

Referenced by animate_shape(), and set_objects_data().

◆ g_acObjectCollisionGraceTicks

signed char g_acObjectCollisionGraceTicks[ SPACE_OBJECT_COUNT] = { 0 }

Definition at line 113 of file viewrect.c.

Referenced by fire_weapon(), house_keep_objects(), init_hazard(), and object_collision().

◆ g_acObjectOwner

◆ g_acObjectType

◆ g_acPilotHitPoints

signed char g_acPilotHitPoints[16] = { -1 }

Definition at line 158 of file viewrect.c.

Referenced by ApplyAlternateShipType(), pilot_hit(), and set_objects_data().

◆ g_acPlayerComponentDamage

◆ g_acShipAlertSource

signed char g_acShipAlertSource[12] = { -1 }

Definition at line 173 of file viewrect.c.

Referenced by clear_alert(), prevent_collision(), and start_collision_alert().

◆ g_acShipCollisionCooldown

signed char g_acShipCollisionCooldown[16] = { 0 }

◆ g_acShipCommunicator

signed char g_acShipCommunicator[16] = { -1 }

◆ g_acShipComputerDamage

signed char g_acShipComputerDamage[16] = { -1 }

Definition at line 146 of file viewrect.c.

Referenced by internal_damage(), Set_up_ship_info(), and your_internal_damage().

◆ g_acShipDamage

◆ g_acShipExhaustHeat

signed char g_acShipExhaustHeat[16] = { -1 }

◆ g_acShipIonDriveDamage

signed char g_acShipIonDriveDamage[16] = { -1 }

◆ g_acShipLastAttacker

signed char g_acShipLastAttacker[16] = { -1 }

◆ g_acShipList

signed char g_acShipList[16] = { -1 }

◆ g_acShipNavPoint

signed char g_acShipNavPoint[12] = { -1 }

◆ g_acShipPendingMessage

signed char g_acShipPendingMessage[16] = { -1 }

◆ g_acShipPortrait

◆ g_acShipSequence

◆ g_acShipStress

signed char g_acShipStress[16] = { 0 }

◆ g_acShipTarget

signed char g_acShipTarget[16] = { -1 }

Definition at line 167 of file viewrect.c.

Referenced by ApplyAlternateShipType(), approach_and_engage(), attacker_in_range(), build_target_list(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), call_enemy(), capital_ship_intelligence(), capital_ship_strike_mission(), chaff_intelligence(), chase_speed(), check_destroy_target(), check_engage_target(), check_target(), Chosen_communicate_option(), clean_up_cockpit(), ClearTargetCameraView(), CountAlliesOnSameTarget(), cruise_to_destination(), cycle_onscreen_targets(), defend_mission(), destroyer_intelligence(), detect_enemy_tail(), draw_3d_scanner(), DrawTargetRangeReadout(), engage(), FF_missile_intelligence(), find_child_ship(), FindMissileTargetingObject(), FindNearestMissileTargetingObject(), fire_missile(), fire_players_lasers(), fire_turrets(), fire_weapon(), formation_break(), formation_burst(), get_color(), HandleSpaceFlightControls(), have_target(), heat_seeking_missile_intelligence(), house_keep_objects(), in_danger(), inflict_damage(), intelligence_events(), is_ship_tailing_player_target(), kilrathi_wingman(), launch_carrier_fighter(), maneuvering(), Mkill_missile(), Mturn_n_kick(), new_view(), object_intelligence(), overlay_head_up_display(), patrol_area(), perform_maneuver(), pick_regular_maneuver(), process_maneuver_node(), ProcessCannedSceneInput(), request(), reset_tactic(), RestoreTransientCockpitGraphics(), SaveTorpedoTargetLockForViewChange(), scan_and_lock(), select_target(), set_eye_direction_and_position(), set_objects_data(), show_target_disp(), SpawnCapitalFlakProjectile(), SpawnFlakBurst(), stationary_intelligence(), tanker_intelligence(), target_within_range(), ToggleTargetCameraOverlay(), ToggleTargetCameraTracking(), and UpdateTargetLeadIndicator().

◆ g_acTurnInterval

signed char g_acTurnInterval[16] = { -1 }

Definition at line 143 of file viewrect.c.

Referenced by find_next_ship_turn_slot(), and regulate_turn().

◆ g_acTurnRegulator

signed char g_acTurnRegulator[16] = { -1 }

Definition at line 142 of file viewrect.c.

Referenced by find_next_ship_turn_slot(), and regulate_turn().

◆ g_acVduModeStackDepth

signed char g_acVduModeStackDepth[2] = { -1, 0 }

Definition at line 81 of file viewrect.c.

Referenced by get_mode(), GetVduModeStackDepth(), pop_mode(), push_mode(), and set_mode().

◆ g_acViableTarget

◆ g_aeObjectClass

short g_aeObjectClass[SPACE_OBJECT_COUNT] = { 0 }

Definition at line 125 of file viewrect.c.

Referenced by accelerate_and_move_object(), animate_object(), any_enemy(), apply_force_to_object(), ApplyAlternateShipType(), approach_and_engage(), attacker_in_range(), auto_pilot_sequence(), auto_pilot_valid(), borrow_dust(), build_target_list(), build_your_target_list(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), call_enemy(), CanPlayerLand(), CanShipWeaponDamageTarget(), capital_ship_strike_mission(), chaff_intelligence(), check_destroy_target(), check_for_collision(), check_for_lost_control(), check_futurion(), check_next_wave(), ClearTransientObjectsForEjection(), coming_home(), CompleteStarSystemJump(), CountAlliesOnSameTarget(), CountEnemyFighters(), CountShipProjectiles(), crash_time(), Create_explosion_debris(), cruise_home(), detect_collisions(), detect_enemy_tail(), draw_3d_scanner(), draw_nav_pointer(), draw_sorted_objects_to_buffer(), DrawSpaceSceneFrame(), DrawTargetRangeReadout(), enemy_within_range(), evaluate_damage(), Explosion(), explosion_shock_wave(), extra_hazard(), FF_missile_intelligence(), find_child_object(), find_child_ship(), find_next_ship_turn_slot(), find_ship_index(), find_vacant_3d_object(), FindMissileTargetingObject(), FindNearestMissileTargetingObject(), fire(), fire_turrets(), fire_weapon(), free_ship(), futurion_intelligence(), generate_stars(), get_color(), get_right_shape(), get_ship_max_velocity(), get_ship_slot(), GetCannedSceneObjectMode(), GetShipAccelerationRate(), HandleSpaceFlightControls(), has_opposing_ship(), HasShipActiveMissile(), heat_seeking_missile_intelligence(), house_keep_objects(), in_danger(), inflict_damage(), inherit_leader(), inherit_leader_mission(), init_intelligence_data(), InitializeConstellationObject(), intelligence_events(), internal_damage(), intro_drawbackgroundships(), is_any_ship_returning_to_current_nav_point(), IsCapitalShipObject(), kilrathi_near(), launch_carrier_fighter(), load_ship(), mine_intelligence(), Mstrafe_enemy(), Mturn_n_kick(), npc_communication(), object_collision(), object_intelligence(), overlay_head_up_display(), pick_regular_maneuver(), place_exhaust_on_ships(), ProcessEnemyWaveCompletion(), regulate_turn(), release_all_capital_ship_shapes(), remove_object(), report_kilrathi_rout(), reposition_fixed_child_objects(), request(), ResolveObjectDestruction(), room_for_me(), rotate_object_to_goal(), rotational_acceleration(), scan_for_enemy(), score_for_kill(), SelectNextExternalViewObject(), send_appropriate_message(), send_message(), servicetrack(), set_eye_direction_and_position(), set_objects_data(), set_up_action_sphere(), SetFleetOverviewView(), ShipExplosion(), show_target_disp(), stationary_intelligence(), strike_mission(), transform_objects_to_your_view(), try2rout(), TryBeginStarSystemJump(), unactive(), update_objects_in_space(), update_star_field(), UpdateShipTurretGuns(), and your_internal_damage().

◆ g_aeShipObjective

◆ g_aeSpecialManeuver

◆ g_aHazardFields

HazardField g_aHazardFields[8] = { { -1 } }

Definition at line 59 of file viewrect.c.

Referenced by add_hazard_field(), check_hazards(), and start_hazard_field().

◆ g_aMissionObjectives

◆ g_anFlightInput

short g_anFlightInput[3] = { 0 }

◆ g_anLastDrawnVduMode

int g_anLastDrawnVduMode[3] = { 0 }

Definition at line 82 of file viewrect.c.

Referenced by init_vdus(), InvalidateVduMode(), set_new_vdu(), and update_vid_disp().

◆ g_anObjectPitchRotation

◆ g_anObjectRollRotation

◆ g_anObjectYawRotation

◆ g_anPitchGoal

◆ g_anPreviousFlightInput

short g_anPreviousFlightInput[3] = { 0 }

Definition at line 51 of file viewrect.c.

Referenced by player_input().

◆ g_anRollGoal

◆ g_anShipAlertFlags

unsigned int g_anShipAlertFlags[10] = { 0 }

Definition at line 172 of file viewrect.c.

Referenced by alert_flag(), clear_alert(), and set_alert().

◆ g_anShipCloakState

◆ g_anShipFuel

◆ g_anShipSpeed

◆ g_anYawGoal

◆ g_aObjectResourceSlots

◆ g_apObjectExhaustShape

unsigned char* g_apObjectExhaustShape[10] = { 0 }

◆ g_apObjectShape

◆ g_apShipMissionRecord

◆ g_asActionCount

short g_asActionCount[12] = { 0 }

Definition at line 140 of file viewrect.c.

Referenced by futurion_intelligence(), and Set_up_ship_info().

◆ g_asDifficultyLevels

short g_asDifficultyLevels[16][4]
Initial value:
= {
50, 200, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
127, 127, 127, 127, 127, 127, 127, 127, 127, 127
}

Definition at line 23 of file viewrect.c.

Referenced by GetAdaptiveTurnRate(), and init_mission().

◆ g_aShipDestination

◆ g_aShipFormationOffset

ShortVector g_aShipFormationOffset[10] = { 0 }

Definition at line 129 of file viewrect.c.

Referenced by auto_position(), maintain_formation(), and set_formation_position().

◆ g_aShipForwardVector

◆ g_aShipMissionSpot

◆ g_aShipPosition

FixedVector g_aShipPosition[SPACE_OBJECT_COUNT] = { 0 }

Definition at line 108 of file viewrect.c.

Referenced by accelerate_and_move_object(), animate_object(), ApplyCannedSceneObjectEventRecord(), approach(), auto_pilot_sequence(), auto_position(), BuildMap(), capital_ship_strike_mission(), check_for_collision(), check_hazards(), child_object(), CompleteStarSystemJump(), ComputePointAheadOfObject(), ComputePointBehindObject(), Create_explosion_debris(), Create_ship_hit_debris(), distance_from_object(), distance_from_point(), draw_3d_scanner(), draw_nav_pointer(), DrawNavLocationReadout(), DrawNavPlayerMarker(), explosion_shock_wave(), facing_to_object(), find_squad_center(), fire(), fire_turrets(), fire_weapon(), FireTargetCameraGuns(), generate_stars(), get_facing_range_from_object(), get_follow_point(), GetShipDistanceToNavPoint(), goto_formation(), HandleCannedSceneBufferBoundary(), imperial_formation(), init_formation_burst(), init_hazard(), init_ship(), initialize_object(), InitializeConstellationObject(), kilrathi_near(), launch_carrier_fighter(), locate_ship(), look_at(), make_shard(), match_ship_to_eye(), Mline_up_drop(), Msit_n_spin(), Mtry2tail(), new_view(), object_collision(), offset_location(), ok_hazard_spot(), onboard_explosion(), place_ship_near_player_until_valid(), PlaySfxWaveFileByNumber(), point_at(), point_capital_ship_at_object(), point_perpendicular(), point_ship_at_object(), point_ship_at_point(), point_ship_behind_object(), point_ship_below_object(), position_child(), position_relative_ijk(), prevent_collision(), real_crash_time(), RecordCannedSceneObjectEvent(), room_for_me(), scan_for_enemy(), send_at_point(), servicetrack(), set_eye_direction_and_position(), set_formation_position(), set_objective_range(), Set_up_ship_info(), SetFleetOverviewView(), SetScale(), SetTargetCameraEyePosition(), ShipExplosion(), ships_within_range(), sound_effect(), SpawnCapitalFlakProjectile(), SpawnFlakBurst(), start_dust(), steer_away_from_object(), steer_away_from_predicted_object(), ToggleTargetCameraTracking(), transform_objects_to_your_view(), try_far_spot(), unwarp(), update_objective_location(), update_objects_in_space(), update_star_field(), UpdateShipTurretGuns(), UpdateTargetCameraObject(), UpdateTargetLeadIndicator(), and warp().

◆ g_aShipRightVector

◆ g_aShipUpVector

◆ g_aShipVelocity

◆ g_aShipWeapons

◆ g_asLoadedShipViewFrame

◆ g_asObjectAnimationIndex

short g_asObjectAnimationIndex[SPACE_OBJECT_COUNT] = { 0 }

Definition at line 111 of file viewrect.c.

Referenced by animate_shape(), house_keep_objects(), and set_objects_data().

◆ g_asObjectCollisionRadius

◆ g_asObjectCounter

◆ g_asObjectDamage

◆ g_asObjectDistance

◆ g_asObjectDrawX

short g_asObjectDrawX[SPACE_OBJECT_COUNT] = { 0 }

Definition at line 98 of file viewrect.c.

Referenced by draw_sorted_objects_to_buffer(), and intro_drawbackgroundships().

◆ g_asObjectDrawY

short g_asObjectDrawY[SPACE_OBJECT_COUNT] = { 0 }

Definition at line 99 of file viewrect.c.

Referenced by draw_sorted_objects_to_buffer(), and intro_drawbackgroundships().

◆ g_asObjectFlip

◆ g_asObjectScale

◆ g_asObjectScreenAngle

◆ g_asObjectScreenScale

◆ g_asObjectScreenX

◆ g_asObjectScreenY

◆ g_asObjectType

◆ g_asObjectViewFrame

◆ g_asPilotLevel

◆ g_asProjectileEvasionTicks

short g_asProjectileEvasionTicks[8] = { 0 }

◆ g_asShipAfterburnerTimer

short g_asShipAfterburnerTimer[10] = { 0 }

◆ g_asShipAlertCountdown

short g_asShipAlertCountdown[12] = { 0 }

Definition at line 174 of file viewrect.c.

Referenced by clear_alert(), start_collision_alert(), and try2end_collision_alert().

◆ g_asShipCloakCooldown

short g_asShipCloakCooldown[10] = { 0 }

◆ g_asShipCloakElapsedFrames

◆ g_asShipCount

◆ g_asShipFriendlyFireCooldown

short g_asShipFriendlyFireCooldown[10] = { 0 }

Definition at line 183 of file viewrect.c.

Referenced by fire(), house_keep_objects(), inflict_damage(), and Set_up_ship_info().

◆ g_asShipIdentified

◆ g_asShipIntelResourceKey

short g_asShipIntelResourceKey[10] = { 0 }

Definition at line 156 of file viewrect.c.

Referenced by init_intelligence_data(), init_mission(), and remove_object().

◆ g_asShipIntelSlot

◆ g_asShipListRange

short g_asShipListRange[16] = { 0 }

Definition at line 196 of file viewrect.c.

Referenced by build_target_list(), and fire_turrets().

◆ g_asShipManeuver

◆ g_asShipMaximumVelocity

short g_asShipMaximumVelocity[12] = { 0 }

◆ g_asShipMissionIndex

◆ g_asShipMissionParameter

◆ g_asShipMissionType

◆ g_asShipSide

short g_asShipSide[12] = { 2 }

Definition at line 139 of file viewrect.c.

Referenced by abandoned(), analyze_kill(), any_enemy(), arrive_from_warp(), attacker_in_range(), auto_pilot_sequence(), auto_pilot_valid(), build_target_list(), build_your_target_list(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), call_enemy(), CanPlayerLand(), capital_ship_intelligence(), capital_ship_strike_mission(), check_destroy_target(), check_for_lost_control(), check_next_wave(), check_target(), coming_home(), CountAlliesOnSameTarget(), CountEnemyFighters(), cruise_home(), cruise_to_destination(), cycle_onscreen_targets(), detect_enemy_tail(), draw_target_box(), enemy_within_range(), engage(), Explosion(), FF_missile_intelligence(), fire(), fire_turrets(), flag_reached(), get_color(), get_first_follow_point(), get_follow_point(), get_ship_max_velocity(), GetShipAccelerationRate(), HandleSpaceFlightControls(), has_opposing_ship(), hostile_sphere(), house_keep_objects(), in_danger(), inflict_damage(), init_intelligence_data(), init_ship(), initialize_ship(), intelligence_events(), internal_damage(), IsEngagementTargetDisallowed(), kilrathi_near(), launch_carrier_fighter(), new_space_music_changes(), npc_communication(), object_collision(), prepare_for_jump(), process_maneuver_node(), ProcessEnemyWaveCompletion(), regulate_turn(), remove_object(), report_kilrathi_rout(), request(), reset_mission_type(), ResolveObjectDestruction(), rotate_object_to_goal(), run_away(), RunCampaignGameLoop(), scan_for_enemy(), score_for_kill(), select_target(), send_appropriate_message(), send_message(), set_objects_data(), Set_up_ship_info(), stationary_intelligence(), StoreMissionResultsInCampaignGlobals(), target_locking(), target_valid(), try2rout(), TryBeginStarSystemJump(), UpdateShipTurretGuns(), warp(), and wingman_mission().

◆ g_asShipTactic

◆ g_asShipWeaponEnergy

short g_asShipWeaponEnergy[10] = { 0 }

◆ g_asShipWingLeader

◆ g_asViableTargetDistance

short g_asViableTargetDistance[10] = { 0 }

◆ g_bDisplayWingmanTargetData

short g_bDisplayWingmanTargetData = 0

◆ g_bEngageAllowed

short g_bEngageAllowed = 0

Definition at line 190 of file viewrect.c.

Referenced by allow_engage(), disallow_engage(), imperial_formation(), and request().

◆ g_bExpandedShipGraphicsEnabled

◆ g_bMissileCameraEnabled

short g_bMissileCameraEnabled = 0

Definition at line 93 of file viewrect.c.

Referenced by HandleSpaceFlightControls(), and init_3Space_objects().

◆ g_bTargetLockAcquired

short g_bTargetLockAcquired = 0

Definition at line 91 of file viewrect.c.

Referenced by decrement_lock_time(), and DrawTargetRangeReadout().

◆ g_bTargetLockMode

◆ g_bTargetLockReadoutDirty

short g_bTargetLockReadoutDirty = 0

Definition at line 86 of file viewrect.c.

Referenced by DrawTargetRangeReadout(), lock_off(), and start_lock().

◆ g_bUseEyePositionForHazards

short g_bUseEyePositionForHazards = 0

Definition at line 61 of file viewrect.c.

Referenced by check_hazards(), init_hazard(), and update_hazards().

◆ g_cCurrentKey

◆ g_cCurrentNavPointIndex

◆ g_cCurrentObjective

◆ g_cMissionObjectiveCount

◆ g_cPreviousKey

signed char g_cPreviousKey = (signed char)0x80

◆ g_cTargetDisplayObject

signed char g_cTargetDisplayObject = -1

Definition at line 89 of file viewrect.c.

Referenced by DrawTargetRangeReadout(), and show_target_disp().

◆ g_cViableTargetCount

◆ g_cViewObject

signed char g_cViewObject = -1

◆ g_dwCannedSceneSnapshotEnd

unsigned int g_dwCannedSceneSnapshotEnd = 0

Definition at line 200 of file viewrect.c.

◆ g_dwCannedSceneSnapshotStart

unsigned int g_dwCannedSceneSnapshotStart = 0

◆ g_nAutoEngageTimer

short g_nAutoEngageTimer = -1

◆ g_nCockpitResetState

short g_nCockpitResetState = 0

Definition at line 85 of file viewrect.c.

Referenced by overlay_head_up_display().

◆ g_nCurrentNavPoint

◆ g_nCurrentObjectiveRange

int g_nCurrentObjectiveRange = 0

Definition at line 56 of file viewrect.c.

Referenced by check_objectives(), DrawCalculatingLabel(), and set_objective_range().

◆ g_nCurrentWave

short g_nCurrentWave = -1

◆ g_nExternalViewShip

◆ g_nEyePitchGoal

short g_nEyePitchGoal = 0

Definition at line 35 of file viewrect.c.

Referenced by new_view(), and rotate_eye_to_goal().

◆ g_nEyePitchRate

short g_nEyePitchRate = 1

Definition at line 38 of file viewrect.c.

Referenced by new_view(), and rotate_eye_to_goal().

◆ g_nEyeRollGoal

short g_nEyeRollGoal = 0

Definition at line 37 of file viewrect.c.

Referenced by new_view(), rotate_eye_to_goal(), and set_eye_direction_and_position().

◆ g_nEyeRollRate

short g_nEyeRollRate = 1

Definition at line 40 of file viewrect.c.

Referenced by new_view(), rotate_eye_to_goal(), and set_eye_direction_and_position().

◆ g_nEyeYawGoal

short g_nEyeYawGoal = 0

Definition at line 36 of file viewrect.c.

Referenced by new_view(), and rotate_eye_to_goal().

◆ g_nEyeYawRate

short g_nEyeYawRate = 1

Definition at line 39 of file viewrect.c.

Referenced by new_view(), and rotate_eye_to_goal().

◆ g_nFacingToTarget

◆ g_nHazardFieldCount

short g_nHazardFieldCount = 0

Definition at line 58 of file viewrect.c.

Referenced by add_hazard_field(), check_hazards(), house_keep(), and set_up_action_sphere().

◆ g_nLoadedCommPortraitPilot

short g_nLoadedCommPortraitPilot = -1

Definition at line 55 of file viewrect.c.

Referenced by free_cockpit(), init_intelligence_data(), and real_vid_transmit().

◆ g_nMissionMusicTrackOverride

int g_nMissionMusicTrackOverride = 0

Definition at line 194 of file viewrect.c.

Referenced by gametrack(), and init_intelligence_data().

◆ g_nNavPointerObject

◆ g_nPlayerCollisionObject

short g_nPlayerCollisionObject = -1

Definition at line 78 of file viewrect.c.

Referenced by house_keep_objects(), and init_3Space_objects().

◆ g_nRenderedSpaceFrame

◆ g_nSelectedGunType

short g_nSelectedGunType = -1

◆ g_nSelectedReleaseWeaponIndex

◆ g_nSpaceFrame

◆ g_nTargetFacing

◆ g_nTargetLockCountdown

◆ g_nTargetLockMarkerAngle

short g_nTargetLockMarkerAngle = 0

Definition at line 88 of file viewrect.c.

Referenced by draw_target_box(), and start_lock().

◆ g_nTargetRange

◆ g_nTargetShip

◆ g_nUnusedTargetWord

int g_nUnusedTargetWord = 0

Definition at line 90 of file viewrect.c.

◆ g_nUnusedWingmanWord

int g_nUnusedWingmanWord = 0

Definition at line 192 of file viewrect.c.

◆ g_nYourWingman

◆ g_pActiveHazardField

◆ g_stCurrentPilotProfile

◆ g_stWingmanIntelligence

◆ g_vCollisionDelta

FixedVector g_vCollisionDelta = { 0 }

Definition at line 43 of file viewrect.c.

Referenced by check_for_collision(), hit_asteroid(), object_collision(), and room_for_me().

◆ g_vPlayerAcceleration

FixedVector g_vPlayerAcceleration = { 0 }

Definition at line 79 of file viewrect.c.

Referenced by accelerate_and_move_object().

◆ g_vPreviousStarFieldMotion

FixedVector g_vPreviousStarFieldMotion = { 0 }

Definition at line 42 of file viewrect.c.

Referenced by update_star_field().

◆ g_vStarFieldMotion

FixedVector g_vStarFieldMotion = { 0 }

Definition at line 41 of file viewrect.c.

Referenced by update_star_field().

◆ g_vToTarget