|
Wing Commander
Reconstructed Win32 source (1996)
|
Shared game state, mission and manoeuvre tables, and the information display. More...
#include "wc1.h"Go to the source code of this file.
Functions | |
| void | show_info_disp (void) |
Shared game state, mission and manoeuvre tables, and the information display.
Address range 433910-433abf. The data ownership follows the declarations-before-literals layout. The original source name is unknown.
Definition in file game.c.
Definition at line 564 of file game.c.
References achieved(), cMissionObjectiveCountValue, CampaignState::currentMission, CampaignState::currentSeries, DrawFormattedText(), DrawTextAt(), Viewport::left, CampaignState::missionScore, nMissionMedalScoreValue, nPlayerKillTotal, nWingmanKillCount, pGameVersion, CampaignState::promotionScore, CampaignState::seriesScore, set_new_vdu(), show_info_disp(), sighted(), stCampaignState, stLeftVdu, stLeftVduTextContext, Viewport::top, and visited().
Referenced by PlaySfxWaveFileByNumber(), show_info_disp(), and update_VDUs().
| signed char abHazardObjects[0x14] |
Definition at line 43 of file game.c.
Referenced by remove_all_hazards(), remove_object(), start_hazard_field(), and update_hazards().
| signed char acPilotAggression[24] |
Definition at line 536 of file game.c.
Referenced by handle_stress(), and reset_stress().
| signed char acPilotRecovery[20] |
Definition at line 542 of file game.c.
Referenced by handle_stress().
| signed char acShipCommunicatorArray[16] |
Definition at line 560 of file game.c.
Referenced by FF_missile_intelligence(), internal_damage(), Set_up_ship_info(), and your_internal_damage().
| signed char acShipDmg[10] |
Definition at line 553 of file game.c.
Referenced by calculate_damage_level(), evaluate_damage(), explode(), internal_damage(), repair_internal_damage(), RunTrainSim(), set_objects_data(), Set_up_ship_info(), and your_internal_damage().
|
static |
|
static |
|
static |
|
static |
|
static |
| enum ShipMissionType aeShipMissionType[12] |
Definition at line 550 of file game.c.
Referenced by capital_ship_intelligence(), change_mission_type(), changetrack(), check_futurion(), coming_home(), escorting_a_ship(), formation_burst(), i_wanna_rout(), inherit_leader_mission(), init_intelligence_data(), new_space_music_changes(), report_kilrathi_rout(), reset_mission_type(), run_away(), set_up_action_sphere(), ship_intelligence(), someone_coming(), too_busy(), and triumph().
| enum SpecialManeuver aeSpecialManeuvers[12] |
Definition at line 549 of file game.c.
Referenced by accelerate_and_move_object(), advance_canned_sequence(), any_enemy(), any_enemy_tail(), attacker_in_range(), auto_pilot_sequence(), build_target_list(), build_your_target_list(), call_enemy(), check_for_lost_control(), check_target(), detect_enemy_tail(), DrawTargetRangeReadout(), explode(), find_ship_index(), FindEnemyAimingWithinRange(), fire_afterburner(), fire_weapon(), house_keep_objects(), imperial_formation(), in_danger(), inflict_damage(), init_intelligence_data(), intelligence_events(), Mburnout(), Mbuzz_debris(), Mkickit(), Mline_up_drop(), Mturn_n_kick(), nearest_enemy_range(), normal_speed(), place_exhaust_on_ships(), player_input(), players_flight_dynamics(), regulate_turn(), report_kilrathi_rout(), request(), rotate_object_to_goal(), scan_for_enemy(), send_appropriate_message(), set_special(), show_target_disp(), try2rout(), update_objects_in_space(), vid_transmit(), and your_afterburner().
| int aiIntelligenceEvent[10] = {0} |
Definition at line 293 of file game.c.
Referenced by intelligence_events(), and pick_regular_maneuver().
| ManeuverChoice aKilrathiManeuverChoices[5][9][3] |
Definition at line 477 of file game.c.
Referenced by pick_kilrathi_maneuver().
| MissionNavPoint aMissionNavPoints[MISSION_NAV_POINT_COUNT] |
Definition at line 199 of file game.c.
Referenced by auto_pilot_sequence(), Build_objective_list(), BuildMap(), cleanup_objectives(), find_ships_sphere(), FindNearestNavPoint(), get_follow_point(), hostile_sphere(), init_intelligence_data(), init_ship(), LoadMissionData(), locate_ship(), orbit_sphere(), set_sphere_point(), set_up_action_sphere(), set_up_next_wave(), and update_objective_location().
| MissionShipRecord aMissionShips[MISSION_SHIP_STORAGE_COUNT] |
Definition at line 230 of file game.c.
Referenced by Build_objective_list(), BuildMap(), check_stranded(), cleanup_objectives(), dead_ship(), DrawNavLocationReadout(), Explosion(), flag_reached(), GameFlow(), gone_ship(), hidden_objective(), hostile_sphere(), house_keep_objects(), init_personalities(), init_ship(), LoadMissionData(), locate_ship(), objective_lost(), prepare_mission(), RunSpaceFlight(), set_formation_position(), set_up_action_sphere(), Set_up_ship_info(), and Title_Sequence().
| signed char* apDefenseManeuvers[5] |
| ManeuverChoice aRatedManeuverChoices[13][9][3] |
Definition at line 330 of file game.c.
Referenced by process_maneuver_node().
| short asCampaignVictoryViewScript[24] |
Definition at line 140 of file game.c.
Referenced by ShowCampaignVictorySequence().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| FixedVector aShipPositionsArray[SPACE_OBJECT_COUNT] |
Definition at line 556 of file game.c.
Referenced by accelerate_and_move_object(), animate_object(), approach(), approve_xyz(), auto_pilot_sequence(), auto_position(), BuildMap(), check_for_collision(), check_hazards(), child_object(), ComputeObjectToObjectDelta(), ComputeObjectToPointDelta(), Create_explosion_debris(), Create_ship_hit_debris(), CreateCannedSceneObject(), distance_from_object(), distance_from_point(), draw_nav_pointer(), DrawNavLocationReadout(), DrawNavPlayerMarker(), ejection_sequence(), explosion_shock_wave(), facing_to_object(), find_squad_center(), fire(), fire_turrets(), fire_weapon(), generate_stars(), get_facing_range_from_object(), get_follow_point(), get_front_spot(), get_rear_spot(), GetShipDistanceToNavPoint(), goto_formation(), imperial_formation(), init_formation_burst(), init_hazard(), initialize_object(), InitializeConstellationObject(), IsPointWithinEyeViewCone(), kilrathi_near(), locate_ship(), look_at(), make_shard(), match_ship_to_eye(), Mline_up_drop(), MoveObjectAlongDirection(), Msit_n_spin(), new_view(), object_collision(), offset_location(), ok_hazard_spot(), onboard_explosion(), parse_view_script(), 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(), pop_flack(), position_child(), position_relative_ijk(), prevent_collision(), real_crash_time(), RenderSpaceViewFrame(), scan_for_enemy(), send_at_point(), servicetrack(), set_eye_direction_and_position(), set_formation_position(), set_objective_range(), Set_up_ship_info(), SetFleetOverviewView(), SetScale(), ShipExplosion(), ships_within_range(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), ShowTigerClawEscapeScene(), start_dust(), steer_away_from_object(), steer_away_from_predicted_object(), transform_objects_to_your_view(), try_far_spot(), unwarp(), update_objective_location(), update_star_field(), and warp().
| short asIntroCameraSequence[20] |
Definition at line 110 of file game.c.
Referenced by Title_Sequence().
| short asObjectCounterArray[SPACE_OBJECT_COUNT] |
Definition at line 547 of file game.c.
Referenced by check_for_lost_control(), check_futurion(), count_down(), Create_explosion_debris(), Create_ship_hit_debris(), drop_mine(), ejection_sequence(), Explosion(), fire(), fire_flack(), fire_players_lasers(), fire_weapon(), futurion_intelligence(), house_keep_objects(), init_hazard(), make_shard(), mine_intelligence(), Mstrafe_n_roll(), object_collision(), onboard_explosion(), parse_view_script(), pilot_hit(), players_flight_dynamics(), pop_flack(), rotate_object_to_goal(), transform_objects_to_your_view(), unwarp(), update_scripted_view(), vid_transmit(), and warp().
| short asShipAfterburnerTimer[16] |
Definition at line 558 of file game.c.
Referenced by accelerate_and_move_object(), fire_afterburner(), fire_super_brake(), start_collision_alert(), and your_afterburner().
| short asShipMaximumSpeedArray[16] |
Definition at line 552 of file game.c.
Referenced by approach_full_speed(), arrive_from_warp(), auto_pilot_sequence(), celerate(), normal_speed(), and recalc_max_velocity().
| short asShipTotal[16] |
Definition at line 551 of file game.c.
Referenced by accelerate_and_jump(), formation_burst(), general_zig(), Mcorkscrew(), Mfull_ahead(), Mgloat(), Mhard_break(), Msit_n_spin(), Mthink(), Mturn_n_spin(), Mwabble(), prepare_for_jump(), reset_maneuver(), and ShipAiState35().
| short asTigerClawEscapeViewScript[12] |
Definition at line 173 of file game.c.
Referenced by ShowTigerClawEscapeScene().
| short asViableTgtDistList[16] |
Definition at line 555 of file game.c.
Referenced by build_your_target_list(), FF_missile_intelligence(), heat_seeking_missile_intelligence(), and sort_viable_target_list().
| unsigned short awObjMassArray[SPACE_OBJECT_COUNT] |
Definition at line 557 of file game.c.
Referenced by apply_force_to_object(), apply_force_to_objects_center(), object_collision(), and set_objects_data().
| signed char bCurrentKey = (signed char)0x80 |
Definition at line 28 of file game.c.
Referenced by HandleFleetOverviewInput(), HandleSpaceFlightControls(), player_input(), process_player_input(), and SelectCockpitVduMode().
| int bEngageAllowed = 0 |
Definition at line 101 of file game.c.
Referenced by allow_engage(), disallow_engage(), imperial_formation(), and request().
| int bIntroSecondaryScene = 0 |
Definition at line 40 of file game.c.
Referenced by check_hazards(), init_hazard(), Title_Sequence(), and update_hazards().
| int bMissileCameraEnabled = 0 |
Definition at line 98 of file game.c.
Referenced by HandleSpaceFlightControls(), and init_3Space_objects().
| int bTargetLockAcquired = 0 |
Definition at line 92 of file game.c.
Referenced by decrement_lock_time(), and DrawTargetRangeReadout().
| short bTargetLockReadoutDirty = 0 |
Definition at line 76 of file game.c.
Referenced by DrawTargetRangeReadout(), lock_off(), and start_lock().
| signed char cCurrentObjective = -1 |
Definition at line 37 of file game.c.
Referenced by arrive_from_warp(), auto_pilot_sequence(), auto_pilot_valid(), Build_objective_list(), BuildMap(), changetrack(), check_objectives(), cycle_next_objective(), draw_nav_pointer(), DrawNavLocationReadout(), flag_reached(), SceneDirector(), set_new_objective(), set_objective_range(), show_navigation_disp(), and update_objective_location().
| signed char cMissionObjectiveCountValue |
Definition at line 554 of file game.c.
Referenced by auto_pilot_valid(), BriefingMap_LoadShapes(), Build_objective_list(), BuildMap(), can_land(), DrawNavMapLegend(), find_objective(), hidden_objective(), InflightComputer(), no_objectives_achieved(), objective_name(), set_new_objective(), set_next_destination(), set_up_action_sphere(), SetScale(), show_info_disp(), and update_cockpit().
| volatile signed char cPreviousKey = (signed char)0x80 |
Definition at line 31 of file game.c.
Referenced by HandleSpaceFlightControls(), player_input(), and process_player_input().
| signed char cTargetDisplayObject = -1 |
Definition at line 85 of file game.c.
Referenced by DrawTargetRangeReadout(), and show_target_disp().
| signed char cViableTargetCount = 0 |
Definition at line 107 of file game.c.
Referenced by build_your_target_list(), check_target(), cycle_onscreen_targets(), FF_missile_intelligence(), heat_seeking_missile_intelligence(), and sort_viable_target_list().
| signed char cViewObject = -1 |
Definition at line 13 of file game.c.
Referenced by HandleFleetOverviewInput(), HandleSpaceFlightControls(), new_view(), SelectNextExternalViewObject(), SelectPreviousExternalViewObject(), set_eye_direction_and_position(), and ShowGameOverScreen().
| short DAT_0046c05c = 0 |
Definition at line 73 of file game.c.
Referenced by overlay_head_up_display().
| enum ObjectType eSelectedGunType = (enum ObjectType)-1 |
Definition at line 67 of file game.c.
Referenced by select_new_gun(), set_objects_data(), and show_weapon_disp().
| short nAutoEngageTimer = -1 |
Definition at line 104 of file game.c.
Referenced by allow_engage(), BuildCommunicationCommandMenu(), clean_up_cockpit(), imperial_formation(), request(), and try2allow_engage().
| int nCameraViewMode = -1 |
Definition at line 49 of file game.c.
Referenced by Draw_3Space_Frame(), draw_nav_pointer(), DrawHudMessageSlot(), fire_computer_graphic_missile(), force_view(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), house_keep(), imperial_formation(), new_view(), object_collision(), place_damage_on_cockpit(), RenderSpaceViewFrame(), SelectCockpitVduMode(), set_eye_direction_and_position(), ShowGameOverScreen(), TriggerPlayerHitPaletteFlash(), try_far_spot(), update_cockpit(), vdu_malf(), and vid_equiv().
| short nClosestVisibleObject = -1 |
Definition at line 58 of file game.c.
Referenced by init_3Space_objects(), and transform_objects_to_your_view().
| short nCurrentWave = -1 |
Definition at line 34 of file game.c.
Referenced by check_next_wave(), imperial_formation(), RenderSpaceViewFrame(), report_kilrathi_rout(), RunTrainSim(), set_up_action_sphere(), set_up_next_wave(), and UpdateArcadeScoreDisplay().
| short nEjectedPilotObject = 0 |
Definition at line 55 of file game.c.
Referenced by ejection_sequence().
| short nExternalViewShip = -1 |
Definition at line 52 of file game.c.
Referenced by explode(), HandleSpaceFlightControls(), init_3Space_objects(), new_view(), object_intelligence(), and set_eye_direction_and_position().
| short nEyePitchRate = 1 |
Definition at line 16 of file game.c.
Referenced by new_view(), parse_view_script(), and rotate_eye_to_goal().
| short nEyeRollRate = 1 |
Definition at line 22 of file game.c.
Referenced by new_view(), parse_view_script(), rotate_eye_to_goal(), and set_eye_direction_and_position().
| short nEyeYawRate = 1 |
Definition at line 19 of file game.c.
Referenced by new_view(), parse_view_script(), and rotate_eye_to_goal().
| short nFreeShipSlot = -1 |
Definition at line 25 of file game.c.
Referenced by get_ship_slot(), and prepare_mission().
| short nPlayerCollisionObject = -1 |
Definition at line 64 of file game.c.
Referenced by GameFlow(), house_keep_objects(), and init_3Space_objects().
| int nSelectedReleaseWeaponIndex = -1 |
Definition at line 70 of file game.c.
Referenced by HandleSpaceFlightControls(), remove_weapon(), RemovePlayerReleaseWeapon(), select_new_release_weapon(), set_objects_data(), show_weapon_disp(), and target_locking().
| short nShipMissionIndices[10] |
Definition at line 559 of file game.c.
Referenced by auto_pilot_sequence(), Explosion(), find_ship_index(), house_keep_objects(), new_space_music_changes(), parse_view_script(), send_message(), set_up_action_sphere(), and Set_up_ship_info().
| short nTargetLockCountdown = 0 |
Definition at line 79 of file game.c.
Referenced by check_target(), CheckTargetLockMalfunction(), cycle_onscreen_targets(), decrement_lock_time(), draw_target_box(), DrawTargetRangeReadout(), fire_missile(), lock_off(), overlay_head_up_display(), start_lock(), starting_lock(), and target_locking().
| short nTargetLockMarkerAngle = 0 |
Definition at line 82 of file game.c.
Referenced by draw_target_box(), and start_lock().
| short nTargetLockMode = 0 |
Definition at line 95 of file game.c.
Referenced by check_target(), clean_up_cockpit(), HandleSpaceFlightControls(), overlay_head_up_display(), prepare_mission(), RestoreTransientCockpitGraphics(), and show_target_disp().
| short nTargetShip |
Definition at line 548 of file game.c.
Referenced by any_enemy(), any_enemy_tail(), attacker_in_range(), capital_ship_intelligence(), defend_mission(), escort_mission(), FindEnemyAimingWithinRange(), imperial_formation(), in_danger(), Mkill_missile(), nearest_enemy_range(), rendezvous_mission(), scan_for_enemy(), select_safe_target(), and tanker_intelligence().
| short nYourWingman = -1 |
Definition at line 61 of file game.c.
Referenced by analyze_kill(), auto_pilot_sequence(), auto_position(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), Chosen_communicate_option(), clean_up_cockpit(), cruise_home(), Explosion(), fire_when_ready(), HandleSpaceFlightControls(), house_keep_objects(), imperial_formation(), inflict_damage(), intelligence_events(), new_space_music_changes(), new_view(), PostMission(), prepare_mission(), remove_object(), send_appropriate_message(), send_message(), try2rout(), and wingman_dead().
| FixedVector vStarFieldMotion |
Definition at line 561 of file game.c.
Referenced by update_star_field().