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

Cockpit displays, HUD messages and VDUs. More...

#include "game.h"

Go to the source code of this file.

Macros

#define COCKPT_C
#define COMM_SPEAKER_SIDE(obj)

Functions

void FatalErrorAndExit (const char *format,...)
short IsCockpitExplosionActive (void)
void EraseCockpitReadoutRegion (Viewport *viewport, short left, short top, short right, short bottom, short colour)
void vdu_polygon (signed char bar, short percent)
unsigned int InitializeCockpitReadout (signed char slot, TextContext *context)
void DrawCockpitReadout (signed char slot, const char *text)
short DrawHudMessageSlot (HudMessageSlot *slot)
void ClearHudMessageSlot (HudMessageSlot *slot)
void ClearHudMessageIfMatching (HudMessageSlot *slot, const char *text)
void ClearHudGunReadouts (void)
void SetHudMessageSlot (HudMessageSlot *slot, TextContext *context, short x, short y, const char *text, unsigned short colour, signed char flashCount)
void UpdateMessage (HudMessageSlot *slot)
void set_global_message (const char *text, unsigned short colour, int flashCount)
void CockpitMessage (const char *text, unsigned short colour, int flashCount)
void ClearGlobalMessage (void)
void remove_message (const char *text)
short kilrathi_near (short obj, short range)
short IsMissionObjectiveOutOfSystem (short objectiveIndex)
short auto_pilot_valid (short showReason)
void reset_cockpit (void)
void SetCockpitLightBlink (signed char light, short interval)
void draw_cockpit_lights (void)
void update_lights (void)
void update_bars (void)
short get_mode (short i)
void set_mode (short i, int state)
unsigned short SetVduModeIfChanged (short i, int state)
short GetVduModeStackDepth (short i)
void push_mode (short i, int state)
void pop_mode (short i)
void set_new_vdu (short vdu)
short update_vid_disp (short vdu)
void InvalidateVduMode (short i)
void clear_message_time (void)
short message_showing (void)
void set_message_time (short duration)
void check_message (void)
void update_digital_readouts (void)
void malf_sound (void)
short malf (char component)
void vdu_malf (short vdu, short sound)
void ShowComponentHitHudMessage (const char *text, unsigned short colour, short flashCount)
signed char damage_your_component (char component, char amount, char maximum)
void RemovePlayerReleaseWeapon (signed char weapon)
void fire_computer_graphic_missile (void)
void show_weapon_disp (void)
void update_status_text (void)
short sighted (short objective)
short visited (short objective)
short achieved (short objective)
void flag_objective (short objective, unsigned char flags)
void DrawCalculatingLabel (void)
const char * objective_name (short objective)
void show_navigation_disp (void)
short hidden_objective (short objective)
short set_new_objective (short pathIndex)
short cycle_next_objective (void)
void set_next_destination (void)
short LocateMobileObjective (short objective)
short is_any_ship_returning_to_current_nav_point (void)
short escorting_a_ship (void)
void flag_reached (short objective, short reached)
void check_sighting (short objective, short range, short object)
void check_visit (short objective, short range)
void update_objective_location (short objective)
short objective_lost (short objective)
void check_objectives (void)
void rotational_pos_to_scanner_pos (signed char object, const SphericalVector *position, CockpitScannerGeometry geometry)
short mobile_objective (short objective)
void ResetScannerContacts (void)
void clear_head_up_display (void)
void set_objective_range (short showOnScanner)
void AdjustScannerContactColourForRange (int range, short *colour)
short get_color (short object, unsigned short *colour)
void draw_3d_scanner (void)
void start_lock (unsigned short v)
short starting_lock (unsigned short v)
void lock_off (void)
short CheckTargetLockMalfunction (void)
short decrement_lock_time (short screenX)
void target_locking (signed char target)
void SetRectBounds (Viewport *viewport, unsigned short a, unsigned short b, unsigned short c, unsigned short d)
short GetRectHeight (const Viewport *viewport)
void print_message_text (char *text, unsigned short colour)
void ShowHudTextLine (void)
void RestoreHudMessageBackground (void)
void SetHudTextColour (char *text, unsigned short colour)
void ClearHudMessageDisplay (short closeCommMenu)
void draw_target_box (unsigned short colour, signed char object, short solid, short drawLockMarker, short padding, ShortRect *savedBounds)
void remove_nav_pointer (void)
void draw_nav_pointer (void)
short HasInRangeGunForTargetLead (short targetRange)
void UpdateTargetLeadIndicator (void)
void RestoreTargetLeadIndicator (void)
void overlay_head_up_display (void)
void RestoreCockpitExplosionIfVisible (void)
void RestoreTransientCockpitGraphics (void)
void SetHudMessageText (char *text, unsigned short colour, unsigned short duration)
void DismissHudMessageIfShowing (void)
void malf_noise (short vdu, int effect, unsigned short colour, short sound, short refresh)
void build_your_target_list (short *hasEnemy)
short distance_from_object (short obj, short other)
short FindNearestMissileTargetingObject (short obj)
void cycle_onscreen_targets (void)
void check_target (void)
void update_missile_warning (void)
void determine_pilot_hand (void)
void DrawPilotHandFrame (void)
void animate_pilot (void)
void ResetPilotHandAnimation (void)
void vid_equiv (short obj, short message)
void real_vid_transmit (short obj, short message)
void send_message (short obj, signed char message)
void npc_communication (void)
void clear_cockpit_damage (void)
void explosion_draw (int useBackgroundViewport)
void DrawPendingCockpitDamage (void)
void RestoreCockpitExplosionBackground (void)
void cockpit_explosion (void)
void place_damage_on_cockpit (short damage)
void vid_transmit (void)
void update_dead_disp (short a)
void check_stranded (void)
void CopyTrainSimPilotViewToVdus (void)
void update_VDUs (void)
void update_cockpit (void)
short IsCockpitWeaponShapeLoaded (void)
void PlayCockpitSelectionSfx (short selectionSound)
void vdu_pop_all (short vdu)
void SelectCockpitVduMode (short vdu, int mode)

Variables

short g_bTargetLockActive = 0
short g_nCommDeathSequenceFrame = 0
short g_nCommMessageIndex = -1
ShortPoint g_stWeaponDisplayOffset = { 0, 0x10 }
ShortPoint g_stHudMessageOrigin = { 0 }
ShortPoint g_aCockpitDamagePositions [4] = { 0 }
short g_asCockpitLightX [7] = { 0 }
short g_asCockpitLightY [7] = { 0 }
signed char g_acCockpitLightOffFrame [7] = { 0 }
signed char g_acCockpitLightOnFrame [7] = { 0 }
CockpitBarDefinition g_aCockpitBarDefinitions [8] = { 0 }
ShortPoint g_aCockpitReadoutOrigins [4] = { 0 }
ShortRect g_stLeftVduBounds = { 0 }
ShortRect g_stRightVduBounds = { 0 }
CockpitScannerGeometry g_stCockpitScannerGeometry = { 0 }
ShortRect g_stPilotHandBounds = { 0 }
ShortPoint g_stPilotHandOrigin = { 0 }
signed char g_cHazardBaseTravelTime = 0
short g_nHazardPitchRange = 0
ShortPoint g_aDefaultWeaponDisplayPositions [16] = { 0 }
short g_bTargetLockDisplayEnabled = 0
short g_asVduSelectionSound [2] = { 0x7f, 0 }
short g_nTargetLeadIndicatorX = (short)0x8001
char * g_pszPendingHudMessage = 0
char * g_pszDisplayedHudMessage = 0
signed char g_cLastPilotHandFrame = (signed char)0xff
short g_asPilotHandOffsets [34]
unsigned char * g_pPendingCockpitDamageShape = 0
unsigned char * g_pCockpitExplosionBackground = 0
unsigned char * g_pCockpitHudBackground = 0
unsigned char *volatile g_pCockpitExplosionShape = 0
volatile short g_nCockpitExplosionFrame = 8
char * g_pszAutopilotWaitReason = g_szAutopilotWaitReason
short g_bFuelGaugeDamaged = 0
short g_bForceCriticalDamageWarning = 0
unsigned char * g_pReleaseWeaponDisplayBackground = 0
signed char g_cReleaseWeaponDisplayFrame = -1
signed char g_cReleaseWeaponDisplayTicks = 0
signed char g_cReleaseWeaponDisplayState = 0
static char g_szNoWeaponSelected [8] = "None"
int g_nDisplayedObjectiveRange = 40000
short g_nScannerTargetObject = -1
int g_aiForwardScannerGridRows [78]
int g_aiTargetCameraScannerGridRows [50]
const char * g_pszMissileLocked = "MISSILE LOCKED "
signed char g_bTargetBracketVisible = 1
unsigned char * g_pHudMessageFrameShape = 0
unsigned char * g_pHudMessageBackground = 0
short g_bCaptureHudMessageBackground = 1
short g_nHudMessageBackgroundDepth = 0
short g_nTargetLockMarkerX = -0x7fff
ShortRect g_stTargetBracketBounds = { -0x7fff, 0, 0, 0 }
ShortRect g_stCommTargetBracketBounds = { -0x7fff, 0, 0, 0 }
short g_bMissileLockAcquired = 0
short g_bCockpitDamageFrame0Shown = 0
short g_bCockpitDamageFrame2Shown = 0
int g_nCommPortraitFrame = -1
Viewport g_stTrainSimRightVduSource = { 0 }
Viewport g_stTrainSimLeftVduSource = { 0 }
int g_bForceDamageDisplayRedraw = 0
char g_szAutopilotWaitReason [28] = "Wait for ??????????????????"
ReleaseWeaponPosition g_3_stReleaseWeaponReadoutLocationBlock
short g_3_nReleaseWeaponShowKindWord
short g_1_nTargetLeadingIndicatorY
unsigned char * g_4_pScannerBlipUnderlayPointer
signed char g_14_cPilotHandFrameCode
short g_9_nScreenMessageTimeNumber
short g_36_nPendingDashDamageValue
char g_4_nSpareCockptSlot
signed char g_3_cOverlayMessageView
char g_16_szTextBufferBuffer [256]
HudMessageSlot g_12_aHudTextSlotsArray [2]
int g_28_nUnusedCockptWordWord [3]
short g_14_asScannerTargetUnderlay [5]
char g_12_nUnusedCockptWord1
short g_16_nUnusedCockptWord2
signed char g_2_cEarlierTargetObjectValue
int g_14_nUnusedCockptWord3
short g_19_nCommPortraitAnimationTickWord
char g_16_szComponentHitMsg [40]
signed char g_13_abShipArrivalMessageSent [16]
ShortPoint g_116_aWeaponDisplayPositions [16]
short g_36_nTargetLockonMarkerY
short g_6_nHomeOperationShipIndexValue
CockpitReadout g_9_aConsoleMetersTable [6]
short g_8_nScopePointerX
short g_9_nScannerCursorYValue
signed char g_4_abCockpitLightMode [7]
short g_nTargetLockMusicCooldown
short g_10_asScannerObjectYTable [11]
volatile ShortPoint g_8_stCockpitExplosionPosBlock
short g_15_asScannerObjectX [11]
signed char g_12_abCockpitLightGoalTable [7]
int g_4_nSevereDmgWarningSfxHandle
short g_47_asScannerBackgroundColourList [10]
short g_69_asCockpitDmgStateList [4]
unsigned short g_18_nHudMessageColour
char g_12_szSoundTraceScratch [0x200]
char * g_3_apszPersonnelImportCaptionsTable [8]
short g_128_nShotHotspotLeft
short g_27_nSceneHotspotTopValue
short g_8_nSceneRegionRightWord
short g_15_nSceneAreaLowestWord
char g_1_nUnusedCockptSlotWord
void * g_13_pStartupStellarPacket
char g_1_szLegacySaveFolder [0x30]
Viewport g_3_stDashViewport
Viewport g_2_stLeftwardVduPortBlock
Viewport g_101_stScrViewInfo
TextContext g_168_stFlightTextContext
Viewport g_9_stCockpitMeterPort
unsigned char * g_66_pCabinHudImage
unsigned char * g_36_apTextGlyphs [4]
FixedVector g_9_aDirectionLookRightVector [DIRECTION_VIEW_COUNT]
FixedVector g_137_aDirectionViewUpVectorArray [DIRECTION_VIEW_COUNT]
FixedVector g_2_aDirectionViewForwardAxisTable [DIRECTION_VIEW_COUNT]
short g_78_bHighMemoryBuffersSetState
TextContext g_5_stLeftVduStringContextRecord
Viewport g_27_stViewScratchInfo
Viewport g_4_stRightVduView
Viewport g_stPilotHandBackgroundViewportBlock
unsigned char * g_1_pDashWeaponPicture

Detailed Description

Cockpit displays, HUD messages and VDUs.

Definition in file cockpt.c.

Macro Definition Documentation

◆ COCKPT_C

#define COCKPT_C

Definition at line 6 of file cockpt.c.

◆ COMM_SPEAKER_SIDE

#define COMM_SPEAKER_SIDE ( obj)
Value:
short g_asShipSide[12]
Definition viewrect.c:139

Definition at line 118 of file cockpt.c.

Referenced by vid_transmit().

Function Documentation

◆ achieved()

short achieved ( short objective)

◆ AdjustScannerContactColourForRange()

void AdjustScannerContactColourForRange ( int range,
short * colour )

◆ animate_pilot()

◆ auto_pilot_valid()

◆ build_your_target_list()

◆ check_message()

◆ check_objectives()

◆ check_sighting()

void check_sighting ( short objective,
short range,
short object )

Definition at line 1436 of file cockpt.c.

References check_sighting(), flag_objective(), g_asObjectScreenX, and sighted().

Referenced by check_sighting(), and update_objective_location().

◆ check_stranded()

◆ check_target()

◆ check_visit()

void check_visit ( short objective,
short range )

◆ CheckTargetLockMalfunction()

◆ clear_cockpit_damage()

void clear_cockpit_damage ( void )

◆ clear_head_up_display()

◆ clear_message_time()

void clear_message_time ( void )

Definition at line 720 of file cockpt.c.

References clear_message_time(), and g_9_nScreenMessageTimeNumber.

Referenced by check_message(), clear_message_time(), and EndCommMenu().

◆ ClearGlobalMessage()

void ClearGlobalMessage ( void )

Definition at line 383 of file cockpt.c.

References ClearGlobalMessage(), ClearHudMessageSlot(), and g_12_aHudTextSlotsArray.

Referenced by ClearGlobalMessage().

◆ ClearHudGunReadouts()

◆ ClearHudMessageDisplay()

◆ ClearHudMessageIfMatching()

void ClearHudMessageIfMatching ( HudMessageSlot * slot,
const char * text )

◆ ClearHudMessageSlot()

◆ cockpit_explosion()

◆ CockpitMessage()

void CockpitMessage ( const char * text,
unsigned short colour,
int flashCount )

◆ CopyTrainSimPilotViewToVdus()

◆ cycle_next_objective()

◆ cycle_onscreen_targets()

◆ damage_your_component()

signed char damage_your_component ( char component,
char amount,
char maximum )

◆ decrement_lock_time()

◆ determine_pilot_hand()

void determine_pilot_hand ( void )

◆ DismissHudMessageIfShowing()

void DismissHudMessageIfShowing ( void )

◆ distance_from_object()

short distance_from_object ( short obj,
short other )

Definition at line 547 of file geom.c.

◆ draw_3d_scanner()

◆ draw_cockpit_lights()

◆ draw_nav_pointer()

◆ draw_target_box()

◆ DrawCalculatingLabel()

◆ DrawCockpitReadout()

◆ DrawHudMessageSlot()

◆ DrawPendingCockpitDamage()

◆ DrawPilotHandFrame()

◆ EraseCockpitReadoutRegion()

void EraseCockpitReadoutRegion ( Viewport * viewport,
short left,
short top,
short right,
short bottom,
short colour )

◆ escorting_a_ship()

short escorting_a_ship ( void )

◆ explosion_draw()

◆ FatalErrorAndExit()

void FatalErrorAndExit ( const char * format,
... )

◆ FindNearestMissileTargetingObject()

short FindNearestMissileTargetingObject ( short obj)

◆ fire_computer_graphic_missile()

◆ flag_objective()

◆ flag_reached()

◆ get_color()

◆ get_mode()

◆ GetRectHeight()

short GetRectHeight ( const Viewport * viewport)

Definition at line 2054 of file cockpt.c.

References GetRectHeight(), Viewport::left, and Viewport::right.

Referenced by GetRectHeight(), and print_message_text().

◆ GetVduModeStackDepth()

short GetVduModeStackDepth ( short i)

Definition at line 658 of file cockpt.c.

References g_acVduModeStackDepth, and GetVduModeStackDepth().

Referenced by GetVduModeStackDepth(), and vdu_pop_all().

◆ HasInRangeGunForTargetLead()

short HasInRangeGunForTargetLead ( short targetRange)

◆ hidden_objective()

◆ InitializeCockpitReadout()

unsigned int InitializeCockpitReadout ( signed char slot,
TextContext * context )

◆ InvalidateVduMode()

◆ is_any_ship_returning_to_current_nav_point()

◆ IsCockpitExplosionActive()

◆ IsCockpitWeaponShapeLoaded()

short IsCockpitWeaponShapeLoaded ( void )

◆ IsMissionObjectiveOutOfSystem()

◆ kilrathi_near()

short kilrathi_near ( short obj,
short range )

◆ LocateMobileObjective()

◆ lock_off()

◆ malf()

◆ malf_noise()

void malf_noise ( short vdu,
int effect,
unsigned short colour,
short sound,
short refresh )

◆ malf_sound()

◆ message_showing()

◆ mobile_objective()

short mobile_objective ( short objective)

◆ npc_communication()

◆ objective_lost()

short objective_lost ( short objective)

◆ objective_name()

const char * objective_name ( short objective)

◆ overlay_head_up_display()

◆ place_damage_on_cockpit()

◆ PlayCockpitSelectionSfx()

void PlayCockpitSelectionSfx ( short selectionSound)

◆ pop_mode()

◆ print_message_text()

◆ push_mode()

void push_mode ( short i,
int state )

◆ real_vid_transmit()

void real_vid_transmit ( short obj,
short message )

Definition at line 510 of file comm.c.

◆ remove_message()

void remove_message ( const char * text)

Definition at line 389 of file cockpt.c.

References ClearHudMessageIfMatching(), g_12_aHudTextSlotsArray, and remove_message().

Referenced by lock_off(), and remove_message().

◆ remove_nav_pointer()

◆ RemovePlayerReleaseWeapon()

◆ reset_cockpit()

◆ ResetPilotHandAnimation()

◆ ResetScannerContacts()

◆ RestoreCockpitExplosionBackground()

◆ RestoreCockpitExplosionIfVisible()

◆ RestoreHudMessageBackground()

◆ RestoreTargetLeadIndicator()

◆ RestoreTransientCockpitGraphics()

◆ rotational_pos_to_scanner_pos()

◆ SelectCockpitVduMode()

◆ send_message()

◆ set_global_message()

void set_global_message ( const char * text,
unsigned short colour,
int flashCount )

◆ set_message_time()

void set_message_time ( short duration)

◆ set_mode()

◆ set_new_objective()

◆ set_new_vdu()

◆ set_next_destination()

◆ set_objective_range()

◆ SetCockpitLightBlink()

void SetCockpitLightBlink ( signed char light,
short interval )

◆ SetHudMessageSlot()

void SetHudMessageSlot ( HudMessageSlot * slot,
TextContext * context,
short x,
short y,
const char * text,
unsigned short colour,
signed char flashCount )

◆ SetHudMessageText()

◆ SetHudTextColour()

void SetHudTextColour ( char * text,
unsigned short colour )

◆ SetRectBounds()

void SetRectBounds ( Viewport * viewport,
unsigned short a,
unsigned short b,
unsigned short c,
unsigned short d )

◆ SetVduModeIfChanged()

unsigned short SetVduModeIfChanged ( short i,
int state )

Definition at line 647 of file cockpt.c.

References get_mode(), set_mode(), and SetVduModeIfChanged().

Referenced by SetVduModeIfChanged().

◆ show_navigation_disp()

◆ show_weapon_disp()

◆ ShowComponentHitHudMessage()

◆ ShowHudTextLine()

◆ sighted()

short sighted ( short objective)

◆ start_lock()

◆ starting_lock()

short starting_lock ( unsigned short v)

Definition at line 1906 of file cockpt.c.

References g_nTargetLockCountdown, start_lock(), and starting_lock().

Referenced by starting_lock(), and target_locking().

◆ target_locking()

◆ update_bars()

◆ update_cockpit()

◆ update_dead_disp()

void update_dead_disp ( short a)

Definition at line 3454 of file cockpt.c.

References g_cDarkGreenColour, malf_noise(), and update_dead_disp().

Referenced by update_dead_disp(), and update_VDUs().

◆ update_digital_readouts()

◆ update_lights()

◆ update_missile_warning()

◆ update_objective_location()

◆ update_status_text()

◆ update_VDUs()

◆ update_vid_disp()

short update_vid_disp ( short vdu)

Definition at line 702 of file cockpt.c.

References g_anLastDrawnVduMode, get_mode(), set_new_vdu(), and update_vid_disp().

Referenced by update_VDUs(), and update_vid_disp().

◆ UpdateMessage()

◆ UpdateTargetLeadIndicator()

◆ vdu_malf()

◆ vdu_polygon()

◆ vdu_pop_all()

void vdu_pop_all ( short vdu)

Definition at line 3715 of file cockpt.c.

References EndCommMenu(), get_mode(), GetVduModeStackDepth(), pop_mode(), and vdu_pop_all().

Referenced by SelectCockpitVduMode(), and vdu_pop_all().

◆ vid_equiv()

void vid_equiv ( short obj,
short message )

◆ vid_transmit()

◆ visited()

Variable Documentation

◆ g_101_stScrViewInfo

Viewport g_101_stScrViewInfo

Definition at line 3831 of file cockpt.c.

Referenced by AppendFormattedText(), BriefingMap_DisplayMap(), CaptureMouseCursorBackground(), clear_head_up_display(), cockpit_explosion(), CompleteStarSystemJump(), CopyViewportRuns(), death_sequence(), DIBmakeDIB(), draw_3d_scanner(), draw_cockpit_lights(), DrawCockpitReadout(), DrawFormattedText(), DrawMouseCursor(), DrawNavLocationReadout(), DrawPendingCockpitDamage(), DrawSpriteTransformed(), DrawTargetCameraAttitudeIndicators(), DrawTitleOrchestra(), DrawViewportEllipse(), DrawViewportEllipseShadow(), dump_buffer_to_screen(), EMStartUp(), explosion_draw(), FillPolygon(), FillViewportEllipse(), fizzle_fade(), FormatTextBufferFromStart(), free_viewport(), InflightComputer(), init_vdus(), initialize_cockpit(), InitializeCampaignChalkboardScreen(), InitializeCockpitResources(), InitializeConversationViewport(), InitializeGameTextContexts(), KeyboardMousePump(), PollCampaignChalkboardMenu(), ReadPersonnelTextField(), RefreshMemoryStatusOverlay(), ResetScreenClipToFullHeight(), RestoreCockpitExplosionBackground(), RestoreHudMessageBackground(), RestoreMouseCursorBackground(), RestoreSpriteBackground(), RestoreTargetCameraAttitudeIndicators(), RestoreTransientCockpitGraphics(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), shaded_triangle(), shadow_draw(), ShowConfedNavScan(), ShowHudTextLine(), snow_viewport(), ToggleTargetCameraOverlay(), triangle(), update_VDUs(), and ValidateViewportBounds().

◆ g_10_asScannerObjectYTable

short g_10_asScannerObjectYTable[11]

◆ g_116_aWeaponDisplayPositions

ShortPoint g_116_aWeaponDisplayPositions[16]

◆ g_128_nShotHotspotLeft

short g_128_nShotHotspotLeft

◆ g_12_abCockpitLightGoalTable

signed char g_12_abCockpitLightGoalTable[7]

◆ g_12_aHudTextSlotsArray

◆ g_12_nUnusedCockptWord1

char g_12_nUnusedCockptWord1

Definition at line 3797 of file cockpt.c.

◆ g_12_szSoundTraceScratch

char g_12_szSoundTraceScratch[0x200]

Definition at line 3820 of file cockpt.c.

Referenced by SoundDebugPrintf().

◆ g_137_aDirectionViewUpVectorArray

FixedVector g_137_aDirectionViewUpVectorArray[DIRECTION_VIEW_COUNT]

Definition at line 3837 of file cockpt.c.

Referenced by get_right_shape(), and initialize_direction_view_frame().

◆ g_13_abShipArrivalMessageSent

signed char g_13_abShipArrivalMessageSent[16]

Definition at line 3803 of file cockpt.c.

Referenced by flag_reached(), and Set_up_ship_info().

◆ g_13_pStartupStellarPacket

void* g_13_pStartupStellarPacket

Definition at line 3827 of file cockpt.c.

Referenced by init_constellation(), and LoadOriginFxDrivers().

◆ g_14_asScannerTargetUnderlay

short g_14_asScannerTargetUnderlay[5]

Definition at line 3796 of file cockpt.c.

Referenced by clear_head_up_display(), and draw_3d_scanner().

◆ g_14_cPilotHandFrameCode

signed char g_14_cPilotHandFrameCode

◆ g_14_nUnusedCockptWord3

int g_14_nUnusedCockptWord3

Definition at line 3800 of file cockpt.c.

◆ g_15_asScannerObjectX

short g_15_asScannerObjectX[11]

◆ g_15_nSceneAreaLowestWord

short g_15_nSceneAreaLowestWord

◆ g_168_stFlightTextContext

TextContext g_168_stFlightTextContext

◆ g_16_nUnusedCockptWord2

short g_16_nUnusedCockptWord2

Definition at line 3798 of file cockpt.c.

◆ g_16_szComponentHitMsg

char g_16_szComponentHitMsg[40]

Definition at line 3802 of file cockpt.c.

Referenced by ShowComponentHitHudMessage().

◆ g_16_szTextBufferBuffer

◆ g_18_nHudMessageColour

unsigned short g_18_nHudMessageColour

Definition at line 3819 of file cockpt.c.

Referenced by RunSpaceFlight(), and SetHudMessageText().

◆ g_19_nCommPortraitAnimationTickWord

short g_19_nCommPortraitAnimationTickWord

Definition at line 3801 of file cockpt.c.

Referenced by real_vid_transmit(), and vid_transmit().

◆ g_1_nTargetLeadingIndicatorY

short g_1_nTargetLeadingIndicatorY

◆ g_1_nUnusedCockptSlotWord

char g_1_nUnusedCockptSlotWord

Definition at line 3826 of file cockpt.c.

◆ g_1_pDashWeaponPicture

◆ g_1_szLegacySaveFolder

char g_1_szLegacySaveFolder[0x30]

Definition at line 3828 of file cockpt.c.

Referenced by LocateLegacySaveGame(), and RunPilotDatabaseMenu().

◆ g_27_nSceneHotspotTopValue

short g_27_nSceneHotspotTopValue

◆ g_27_stViewScratchInfo

◆ g_28_nUnusedCockptWordWord

int g_28_nUnusedCockptWordWord[3]

Definition at line 3795 of file cockpt.c.

◆ g_2_aDirectionViewForwardAxisTable

FixedVector g_2_aDirectionViewForwardAxisTable[DIRECTION_VIEW_COUNT]

Definition at line 3838 of file cockpt.c.

Referenced by initialize_direction_view_frame().

◆ g_2_cEarlierTargetObjectValue

signed char g_2_cEarlierTargetObjectValue

Definition at line 3799 of file cockpt.c.

Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().

◆ g_2_stLeftwardVduPortBlock

◆ g_36_apTextGlyphs

◆ g_36_nPendingDashDamageValue

short g_36_nPendingDashDamageValue

Definition at line 3790 of file cockpt.c.

Referenced by DrawPendingCockpitDamage(), and place_damage_on_cockpit().

◆ g_36_nTargetLockonMarkerY

short g_36_nTargetLockonMarkerY

Definition at line 3805 of file cockpt.c.

Referenced by draw_target_box().

◆ g_3_apszPersonnelImportCaptionsTable

char* g_3_apszPersonnelImportCaptionsTable[8]

Definition at line 3821 of file cockpt.c.

Referenced by DrawTransferredPilotRow(), and RunPilotDatabaseMenu().

◆ g_3_cOverlayMessageView

signed char g_3_cOverlayMessageView

Definition at line 3792 of file cockpt.c.

Referenced by ClearHudMessageDisplay(), ejection_sequence(), and SetHudTextColour().

◆ g_3_nReleaseWeaponShowKindWord

short g_3_nReleaseWeaponShowKindWord

Definition at line 3785 of file cockpt.c.

Referenced by RemovePlayerReleaseWeapon().

◆ g_3_stDashViewport

◆ g_3_stReleaseWeaponReadoutLocationBlock

ReleaseWeaponPosition g_3_stReleaseWeaponReadoutLocationBlock

Definition at line 3784 of file cockpt.c.

Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().

◆ g_47_asScannerBackgroundColourList

short g_47_asScannerBackgroundColourList[10]

Definition at line 3817 of file cockpt.c.

Referenced by clear_head_up_display(), and draw_3d_scanner().

◆ g_4_abCockpitLightMode

signed char g_4_abCockpitLightMode[7]

Definition at line 3810 of file cockpt.c.

Referenced by draw_cockpit_lights(), and reset_cockpit().

◆ g_4_nSevereDmgWarningSfxHandle

int g_4_nSevereDmgWarningSfxHandle

Definition at line 3816 of file cockpt.c.

Referenced by house_keep(), ResetSoundState(), and update_lights().

◆ g_4_nSpareCockptSlot

char g_4_nSpareCockptSlot

Definition at line 3791 of file cockpt.c.

◆ g_4_pScannerBlipUnderlayPointer

unsigned char* g_4_pScannerBlipUnderlayPointer

◆ g_4_stRightVduView

◆ g_5_stLeftVduStringContextRecord

TextContext g_5_stLeftVduStringContextRecord

◆ g_66_pCabinHudImage

◆ g_69_asCockpitDmgStateList

short g_69_asCockpitDmgStateList[4]

◆ g_6_nHomeOperationShipIndexValue

◆ g_78_bHighMemoryBuffersSetState

◆ g_8_nSceneRegionRightWord

short g_8_nSceneRegionRightWord

◆ g_8_nScopePointerX

short g_8_nScopePointerX

Definition at line 3808 of file cockpt.c.

Referenced by draw_3d_scanner(), and rotational_pos_to_scanner_pos().

◆ g_8_stCockpitExplosionPosBlock

◆ g_9_aConsoleMetersTable

CockpitReadout g_9_aConsoleMetersTable[6]

Definition at line 3807 of file cockpt.c.

Referenced by DrawCockpitReadout(), and InitializeCockpitReadout().

◆ g_9_aDirectionLookRightVector

FixedVector g_9_aDirectionLookRightVector[DIRECTION_VIEW_COUNT]

Definition at line 3836 of file cockpt.c.

Referenced by get_right_shape(), and initialize_direction_view_frame().

◆ g_9_nScannerCursorYValue

short g_9_nScannerCursorYValue

Definition at line 3809 of file cockpt.c.

Referenced by draw_3d_scanner(), and rotational_pos_to_scanner_pos().

◆ g_9_nScreenMessageTimeNumber

short g_9_nScreenMessageTimeNumber

◆ g_9_stCockpitMeterPort

Viewport g_9_stCockpitMeterPort

Definition at line 3833 of file cockpt.c.

Referenced by InitializeCockpitResources(), and vdu_polygon().

◆ g_acCockpitLightOffFrame

signed char g_acCockpitLightOffFrame[7] = { 0 }

Definition at line 17 of file cockpt.c.

Referenced by draw_cockpit_lights(), and InitializeCockpitResources().

◆ g_acCockpitLightOnFrame

signed char g_acCockpitLightOnFrame[7] = { 0 }

Definition at line 18 of file cockpt.c.

Referenced by draw_cockpit_lights(), and InitializeCockpitResources().

◆ g_aCockpitBarDefinitions

CockpitBarDefinition g_aCockpitBarDefinitions[8] = { 0 }

Definition at line 19 of file cockpt.c.

Referenced by InitializeCockpitResources(), and vdu_polygon().

◆ g_aCockpitDamagePositions

ShortPoint g_aCockpitDamagePositions[4] = { 0 }

◆ g_aCockpitReadoutOrigins

ShortPoint g_aCockpitReadoutOrigins[4] = { 0 }

Definition at line 20 of file cockpt.c.

Referenced by InitializeCockpitResources().

◆ g_aDefaultWeaponDisplayPositions

ShortPoint g_aDefaultWeaponDisplayPositions[16] = { 0 }

Definition at line 28 of file cockpt.c.

Referenced by InitializeCockpitResources(), and ResetWeaponDisplayPositions().

◆ g_aiForwardScannerGridRows

int g_aiForwardScannerGridRows[78]
Initial value:
= {
5, 13, 16, -1,
5, 13, 16, -1,
5, 13, 16, -1,
4, 13, 16, -1,
4, 12, 16, -1,
2, 3, 4, 12, 15, -1,
0, 1, 5, 12, 15, -1,
6, 11, 15, -1,
7, 11, 14, -1,
8, 10, 14, -1,
9, 13, -1,
8, 13, -1,
6, 7, 12, -1,
4, 5, 11, -1,
0, 1, 2, 3, 10, -1,
9, -1,
7, 8, -1,
4, 5, 6, -1,
0, 1, 2, 3,
-2
}

Definition at line 55 of file cockpt.c.

Referenced by draw_3d_scanner().

◆ g_aiTargetCameraScannerGridRows

int g_aiTargetCameraScannerGridRows[50]
Initial value:
= {
5, 13, -1,
5, 13, -1,
5, 13, -1,
4, 13, -1,
4, 12, -1,
2, 3, 4, 12, -1,
0, 1, 5, 11, 12, -1,
6, 11, -1,
7, 11, -1,
8, 10, -1,
9, -1,
8, -1,
6, 7, -1,
4, 5, -1,
0, 1, 2, 3,
-2
}

Definition at line 77 of file cockpt.c.

Referenced by draw_3d_scanner().

◆ g_asCockpitLightX

short g_asCockpitLightX[7] = { 0 }

Definition at line 15 of file cockpt.c.

Referenced by draw_cockpit_lights(), and InitializeCockpitResources().

◆ g_asCockpitLightY

short g_asCockpitLightY[7] = { 0 }

Definition at line 16 of file cockpt.c.

Referenced by draw_cockpit_lights(), and InitializeCockpitResources().

◆ g_asPilotHandOffsets

short g_asPilotHandOffsets[34]
Initial value:
= {
6, -3, 7, 2, 7, 9, 7, 12, 8, 13, 0, -1, -1, -1,
-4, -1, -6, -1, 6, 0, 8, 0, 10, 0, 13, 3, 8, -7,
6, -9, 5, -11, 5, -14
}

Definition at line 35 of file cockpt.c.

Referenced by DrawPilotHandFrame(), and DrawUnreferencedPilotHandFrame().

◆ g_asVduSelectionSound

short g_asVduSelectionSound[2] = { 0x7f, 0 }

Definition at line 30 of file cockpt.c.

Referenced by SelectCockpitVduMode().

◆ g_bCaptureHudMessageBackground

short g_bCaptureHudMessageBackground = 1

Definition at line 99 of file cockpt.c.

Referenced by ClearHudMessageDisplay(), and SetHudTextColour().

◆ g_bCockpitDamageFrame0Shown

short g_bCockpitDamageFrame0Shown = 0

◆ g_bCockpitDamageFrame2Shown

short g_bCockpitDamageFrame2Shown = 0

Definition at line 106 of file cockpt.c.

Referenced by DrawPendingCockpitDamage(), explosion_draw(), init_mission(), and update_cockpit().

◆ g_bForceCriticalDamageWarning

short g_bForceCriticalDamageWarning = 0

Definition at line 47 of file cockpt.c.

Referenced by update_lights().

◆ g_bForceDamageDisplayRedraw

int g_bForceDamageDisplayRedraw = 0

Definition at line 110 of file cockpt.c.

Referenced by show_damage_disp(), and update_VDUs().

◆ g_bFuelGaugeDamaged

short g_bFuelGaugeDamaged = 0

Definition at line 46 of file cockpt.c.

Referenced by DrawPendingCockpitDamage(), explosion_draw(), init_mission(), and update_lights().

◆ g_bMissileLockAcquired

short g_bMissileLockAcquired = 0

Definition at line 104 of file cockpt.c.

Referenced by fire_weapon(), init_mission(), and overlay_head_up_display().

◆ g_bTargetBracketVisible

signed char g_bTargetBracketVisible = 1

Definition at line 96 of file cockpt.c.

Referenced by overlay_head_up_display().

◆ g_bTargetLockActive

◆ g_bTargetLockDisplayEnabled

short g_bTargetLockDisplayEnabled = 0

◆ g_cHazardBaseTravelTime

signed char g_cHazardBaseTravelTime = 0

Definition at line 26 of file cockpt.c.

Referenced by init_hazard(), and InitializeCockpitResources().

◆ g_cLastPilotHandFrame

signed char g_cLastPilotHandFrame = (signed char)0xff

◆ g_cReleaseWeaponDisplayFrame

signed char g_cReleaseWeaponDisplayFrame = -1

◆ g_cReleaseWeaponDisplayState

signed char g_cReleaseWeaponDisplayState = 0

Definition at line 51 of file cockpt.c.

Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().

◆ g_cReleaseWeaponDisplayTicks

signed char g_cReleaseWeaponDisplayTicks = 0

Definition at line 50 of file cockpt.c.

Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().

◆ g_nCockpitExplosionFrame

◆ g_nCommDeathSequenceFrame

short g_nCommDeathSequenceFrame = 0

◆ g_nCommMessageIndex

short g_nCommMessageIndex = -1

Definition at line 11 of file cockpt.c.

Referenced by real_vid_transmit().

◆ g_nCommPortraitFrame

int g_nCommPortraitFrame = -1

Definition at line 107 of file cockpt.c.

Referenced by vid_transmit().

◆ g_nDisplayedObjectiveRange

int g_nDisplayedObjectiveRange = 40000

Definition at line 53 of file cockpt.c.

Referenced by check_objectives(), and DrawCalculatingLabel().

◆ g_nHazardPitchRange

short g_nHazardPitchRange = 0

Definition at line 27 of file cockpt.c.

Referenced by InitializeCockpitResources().

◆ g_nHudMessageBackgroundDepth

short g_nHudMessageBackgroundDepth = 0

◆ g_nScannerTargetObject

short g_nScannerTargetObject = -1

Definition at line 54 of file cockpt.c.

Referenced by clear_head_up_display(), draw_3d_scanner(), and ResetScannerContacts().

◆ g_nTargetLeadIndicatorX

short g_nTargetLeadIndicatorX = (short)0x8001

◆ g_nTargetLockMarkerX

short g_nTargetLockMarkerX = -0x7fff

Definition at line 101 of file cockpt.c.

Referenced by draw_target_box().

◆ g_nTargetLockMusicCooldown

short g_nTargetLockMusicCooldown

◆ g_pCockpitExplosionBackground

◆ g_pCockpitExplosionShape

unsigned char* volatile g_pCockpitExplosionShape = 0

◆ g_pCockpitHudBackground

unsigned char* g_pCockpitHudBackground = 0

◆ g_pHudMessageBackground

unsigned char* g_pHudMessageBackground = 0

◆ g_pHudMessageFrameShape

unsigned char* g_pHudMessageFrameShape = 0

◆ g_pPendingCockpitDamageShape

unsigned char* g_pPendingCockpitDamageShape = 0

Definition at line 40 of file cockpt.c.

Referenced by DrawPendingCockpitDamage(), explosion_draw(), and free_cockpit().

◆ g_pReleaseWeaponDisplayBackground

unsigned char* g_pReleaseWeaponDisplayBackground = 0

◆ g_pszAutopilotWaitReason

char* g_pszAutopilotWaitReason = g_szAutopilotWaitReason

Definition at line 45 of file cockpt.c.

Referenced by auto_pilot_valid(), flag_reached(), and TryBeginStarSystemJump().

◆ g_pszDisplayedHudMessage

char* g_pszDisplayedHudMessage = 0

Definition at line 33 of file cockpt.c.

Referenced by ClearHudMessageDisplay(), print_message_text(), and RenderSpaceViewFrame().

◆ g_pszMissileLocked

const char* g_pszMissileLocked = "MISSILE LOCKED "

Definition at line 95 of file cockpt.c.

Referenced by decrement_lock_time(), and lock_off().

◆ g_pszPendingHudMessage

char* g_pszPendingHudMessage = 0

◆ g_stCockpitScannerGeometry

CockpitScannerGeometry g_stCockpitScannerGeometry = { 0 }

Definition at line 23 of file cockpt.c.

Referenced by draw_3d_scanner(), InitializeCockpitResources(), and set_objective_range().

◆ g_stCommTargetBracketBounds

ShortRect g_stCommTargetBracketBounds = { -0x7fff, 0, 0, 0 }

Definition at line 103 of file cockpt.c.

Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().

◆ g_stHudMessageOrigin

ShortPoint g_stHudMessageOrigin = { 0 }

◆ g_stLeftVduBounds

ShortRect g_stLeftVduBounds = { 0 }

Definition at line 21 of file cockpt.c.

Referenced by InitializeCockpitResources().

◆ g_stPilotHandBackgroundViewportBlock

◆ g_stPilotHandBounds

ShortRect g_stPilotHandBounds = { 0 }

Definition at line 24 of file cockpt.c.

Referenced by InitializeCockpitResources().

◆ g_stPilotHandOrigin

ShortPoint g_stPilotHandOrigin = { 0 }

◆ g_stRightVduBounds

ShortRect g_stRightVduBounds = { 0 }

Definition at line 22 of file cockpt.c.

Referenced by InitializeCockpitResources().

◆ g_stTargetBracketBounds

ShortRect g_stTargetBracketBounds = { -0x7fff, 0, 0, 0 }

Definition at line 102 of file cockpt.c.

Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().

◆ g_stTrainSimLeftVduSource

Viewport g_stTrainSimLeftVduSource = { 0 }

Definition at line 109 of file cockpt.c.

Referenced by CopyTrainSimPilotViewToVdus().

◆ g_stTrainSimRightVduSource

Viewport g_stTrainSimRightVduSource = { 0 }

Definition at line 108 of file cockpt.c.

Referenced by CopyTrainSimPilotViewToVdus().

◆ g_stWeaponDisplayOffset

ShortPoint g_stWeaponDisplayOffset = { 0, 0x10 }

Definition at line 12 of file cockpt.c.

Referenced by show_damage_disp(), show_weapon_disp(), and update_status_text().

◆ g_szAutopilotWaitReason

char g_szAutopilotWaitReason[28] = "Wait for ??????????????????"

Definition at line 111 of file cockpt.c.

◆ g_szNoWeaponSelected

char g_szNoWeaponSelected[8] = "None"
static

Definition at line 52 of file cockpt.c.

Referenced by show_weapon_disp().