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

Autopilot travel and interstitial flight sequences. More...

#include "game.h"

Go to the source code of this file.

Macros

#define g_nAutopilotDebugEnabled   (*(const short *)&g_bAutopilotDebugEnabled)

Functions

void visit_the_cinema (int view, int obj, short frames)
short player_wingman (short obj)
void set_speed (short obj, short speed)
void auto_position (short obj, short *formationSlot)
void auto_pilot_sequence (void)

Variables

short g_nAutopilotFormationShipCount = 0
short g_bAutopilotSequenceActive = 0

Detailed Description

Autopilot travel and interstitial flight sequences.

Definition in file auto.c.

Macro Definition Documentation

◆ g_nAutopilotDebugEnabled

#define g_nAutopilotDebugEnabled   (*(const short *)&g_bAutopilotDebugEnabled)

Definition at line 16 of file auto.c.

Referenced by auto_pilot_sequence().

Function Documentation

◆ auto_pilot_sequence()

void auto_pilot_sequence ( void )

Definition at line 100 of file auto.c.

References AddFixedVectors(), advance(), auto_pilot_sequence(), auto_pilot_valid(), auto_position(), check_hazards(), clean_up_cockpit(), ComputeVectorDelta(), copy_frame(), ObjectTypeData::cruiseVelocity, distance_between_points(), distance_from_object(), distance_from_point(), ejection_sequence(), equ_vector(), force_view(), free_view_buffer(), g_27_stViewScratchInfo, g_78_bHighMemoryBuffersSetState, g_abFlightPath, g_acObjectType, g_aeObjectClass, g_aeSpecialManeuver, g_aMissionNavPoints, g_aMissionObjectives, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_anPitchGoal, g_anRollGoal, g_anShipSpeed, g_anYawGoal, g_aObjectTypeData, g_aShipDestination, g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_asShipMaximumVelocity, g_asShipMissionIndex, g_asShipSide, g_bAutopilotSequenceActive, g_cCurrentNavPointIndex, g_cCurrentObjective, g_nArcadeState, g_nAutopilotDebugEnabled, g_nAutopilotFormationShipCount, g_nCockpitDisplayMode, g_nCurrentNavPoint, g_nEjectionSequenceState, g_nPendingEjectionSequenceCount, g_nScreenHeight, g_nScreenWidth, g_nTrainSimActive, g_nYourWingman, g_pActiveHazardField, g_ucPendingEjectionTransition, initialize_view_buffer(), is_team_member(), kilrathi_near(), LogMemoryStateToFile(), MinShort(), NormalizeFixedVector(), OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, player_wingman(), point_at(), MissionObjective::position, ReleaseStaleNavTarget(), remove_object(), report_kilrathi_rout(), ResetCannedSceneRecording(), ResetSoundState(), ScaleFixedVector(), set_speed(), SetViewportRect(), SIDE_IMPERIAL, SPECIAL_MANEUVER_NONE, SPECIAL_MANEUVER_UNKNOWN_9, SubtractFixedVectors(), Update_3Space(), visit_the_cinema(), and zero_vector().

Referenced by ApplyCannedSceneObjectEventRecord(), auto_pilot_sequence(), and HandleSpaceFlightControls().

◆ auto_position()

◆ player_wingman()

short player_wingman ( short obj)

Definition at line 48 of file auto.c.

References g_asShipWingLeader, and player_wingman().

Referenced by auto_pilot_sequence(), auto_position(), and player_wingman().

◆ set_speed()

void set_speed ( short obj,
short speed )

Definition at line 54 of file auto.c.

References fix_velocity(), g_anShipSpeed, and set_speed().

Referenced by auto_pilot_sequence(), and set_speed().

◆ visit_the_cinema()

void visit_the_cinema ( int view,
int obj,
short frames )

Variable Documentation

◆ g_bAutopilotSequenceActive

short g_bAutopilotSequenceActive = 0

Definition at line 9 of file auto.c.

Referenced by auto_pilot_sequence(), CompleteStarSystemJump(), and set_up_action_sphere().

◆ g_nAutopilotFormationShipCount

short g_nAutopilotFormationShipCount = 0

Definition at line 8 of file auto.c.

Referenced by auto_pilot_sequence(), and auto_position().