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

Cockpit HUD: weapon, damage, target, objective, message and pilot displays. More...

#include "wc1.h"

Go to the source code of this file.

Functions

void EmitTextString (void(__stdcall *writer)(int character), const char *text)
void FormatTextTokens (void(__stdcall *writer)(int), const char *format, va_list arguments)
void DrawFormattedText (const char *format,...)
void FormatTextBufferFromStart (const char *format,...)
void AppendFormattedText (const char *format,...)
void FatalErrorAndExit (const char *format,...)
unsigned 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)
void EraseCockpitReadoutAtPosition (signed char slot, short left, short top)
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 auto_pilot_valid (short showReason)
void * reset_cockpit (void)
unsigned int 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)
unsigned short set_message_time (unsigned short v)
void check_message (void)
unsigned int update_digital_readouts (void)
void PlayTargetLockSfx (void)
void malf_sound (void)
short malf (char component)
unsigned short vdu_malf (short vdu, short sound)
void ShowComponentHitHudMessage (const char *text, unsigned short colour, short flashCount)
int 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 find_ship_index (short missionShip)
short hidden_objective (short objective)
int set_new_objective (short pathIndex)
short cycle_next_objective (void)
void set_next_destination (void)
short LocateMobileObjective (short objective)
unsigned int someone_coming (void)
short escorting_a_ship (void)
void flag_reached (short objective, short reached)
short FixedToShortSaturating (int value)
void transform_to_objects_frame (const FixedVector *source, FixedVector *destination, short obj)
void rectangular_to_spherical (const FixedVector *rectangular, SphericalVector *spherical)
void DrawViewportPixel (Viewport *viewport, short x, short y, short colour)
int GetViewportPixel (Viewport *viewport, short x, short y)
short RandomBelowOrEqual (short n)
void check_sighting (short objective, short range, short object)
void check_visit (short objective, short range)
void update_objective_location (short objective)
unsigned int objective_lost (short objective)
void check_objectives (void)
void rotational_pos_to_scanner_pos (signed char object, const SphericalVector *position)
short mobile_objective (short objective)
void ResetScannerContacts (void)
void clear_head_up_display (void)
unsigned int set_objective_range (short showOnScanner)
short get_color (short object, unsigned short *colour)
unsigned int draw_3d_scanner (void)
void start_lock (unsigned short v)
unsigned 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 (char *s, unsigned short b)
void SetHudTextColour (short v)
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)
unsigned int overlay_head_up_display (void)
void RestoreCockpitExplosionIfVisible (void)
unsigned int RestoreTransientCockpitGraphics (void)
void SetHudMessageText (char *text, unsigned short colour, unsigned short duration)
void malf_noise (short vdu, int effect, unsigned short colour, short sound, short refresh)
void build_your_target_list (short *hasEnemy)
void cycle_onscreen_targets (void)
void check_target (void)
void update_missile_warning (void)
void determine_pilot_hand (void)
void DrawPilotHandFrame (void)
void CopyTrainSimPilotViewToRightVdu (void)
void animate_pilot (void)
void ResetPilotHandAnimation (void)
void send_message (short obj, short message)
void npc_communication (void)
void clear_cockpit_damage (void)
void explosion_draw (void)
unsigned int DrawPendingCockpitDamage (void)
void RestoreCockpitExplosionBackground (void)
void cockpit_explosion (void)
void place_damage_on_cockpit (short damage)
void vid_transmit (void)
void vid_equiv (short obj, short message)
void update_dead_disp (short a)
void check_stranded (void)
void update_VDUs (void)
void update_cockpit (void)
void PlayCockpitSelectionSfx (short selectionSound)
void vdu_pop_all (short vdu)
void SelectCockpitVduMode (short vdu, int mode)

Variables

static short asVduSelectionSound [2] = { 0x7f, 0 }
char * pszPendingHudMessage = 0
static char *volatile pszDisplayedHudMessage = 0
static volatile signed char cRenderedPilotHandFrame = -1
static int DAT_00469010 [2] = { 0, 0 }
static short asPilotHandOffsets [34]
struct Shape * pCockpitPilotShape = 0
unsigned char * pCockpitExplosionBackground = 0
struct Shape * pCockpitExplosionShape = 0
short nCockpitExplosionFrame = 8
unsigned char * pReleaseWeaponDisplayBackground = 0
static signed char cReleaseWeaponDisplayFrame = -1
static signed char cReleaseWeaponDisplayTicks = 0
static signed char cReleaseWeaponDisplayState = 0
static char szNoWeaponName [5] = "None"
static int nDisplayedObjectiveRange = 40000
static char * pszObjectiveStatusMessage = "Wait for ??????????????????"
static short nScannerTargetObject = -1
static int aiScannerGridRows [79]
static const char * pszMissileLockedMessage = "MISSILE LOCKED "
static unsigned char bTargetBracketVisible = 1
static short asHudMessageOrigins [10]
static short nTargetLockMarkerX = -0x7fff
static ShortRect stTargetBracketBounds = {-0x7fff, 0, 0, 0}
static ShortRect stPreviousTargetBracketBounds = {-0x7fff, 0, 0, 0}
short nNavPointerObject = -1
static Viewport stTrainSimVduSource = {0}
static ShortPoint aaCockpitDamagePositions [5][4]
struct Shape * pConfedCommBackground = 0
struct Shape * pCommStaticShape = 0
struct Shape * pKilrathiCommBackground = 0
static int nCommPortraitFrame = -1
static int bForceDamageDisplayRedraw = 0
static unsigned char abMouseCursorBackground [0x400]
enum ObjectType eReleaseWpnDisplayType
unsigned char * pRadarMarkerBackground
signed char bStickIndicatorFrameState
short nCurrentNoticeTimer
short nPendingCockpitDamageValue
HudMessageSlot aCockpitHudMessageSlotsTable [2]
signed char cLastTargetObject
int nSavedMouseCursorY
int nStoredMouseCursorPosX
char szComponentHitMessage [40]
short nTargetLockMarkerY
short nCarrierMissionShipIndexValue
CockpitReadout aCockpitReadouts [6]
short nScannerCursorX
short nScannerCursorY
unsigned char abCockpitIndicatorStatesArray [7]

Detailed Description

Cockpit HUD: weapon, damage, target, objective, message and pilot displays.

Address range 413a10-41807f, the Mac cockpt compilation unit: its symbol list identifies the surviving functions throughout this range, with the port-specific helpers interleaved in their original address order.

Definition in file cockpt.c.

Function Documentation

◆ achieved()

short achieved ( short objective)

◆ animate_pilot()

◆ AppendFormattedText()

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

◆ auto_pilot_valid()

◆ build_your_target_list()

◆ check_message()

void check_message ( void )

Definition at line 789 of file cockpt.c.

References check_message(), EndCommMenu(), message_showing(), and nCurrentNoticeTimer.

Referenced by check_message(), and RenderSpaceViewFrame().

◆ check_objectives()

◆ check_sighting()

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

◆ check_stranded()

◆ check_target()

◆ check_visit()

void check_visit ( short objective,
short range )

Definition at line 1320 of file cockpt.c.

References aMissionObjectivesArray, check_visit(), and flag_reached().

Referenced by check_visit(), and update_objective_location().

◆ CheckTargetLockMalfunction()

short CheckTargetLockMalfunction ( void )

◆ clear_cockpit_damage()

void clear_cockpit_damage ( void )

Definition at line 2556 of file cockpt.c.

References anCockpitDamageState, and clear_cockpit_damage().

Referenced by clear_cockpit_damage(), and InitializeCockpitResources().

◆ clear_head_up_display()

◆ clear_message_time()

void clear_message_time ( void )

Definition at line 770 of file cockpt.c.

References clear_message_time(), and nCurrentNoticeTimer.

Referenced by clear_message_time(), and EndCommMenu().

◆ ClearGlobalMessage()

void ClearGlobalMessage ( void )

Definition at line 489 of file cockpt.c.

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

Referenced by ClearGlobalMessage().

◆ ClearHudGunReadouts()

◆ ClearHudMessageIfMatching()

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

◆ ClearHudMessageSlot()

◆ cockpit_explosion()

◆ CockpitMessage()

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

◆ CopyTrainSimPilotViewToRightVdu()

◆ cycle_next_objective()

◆ cycle_onscreen_targets()

◆ damage_your_component()

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

◆ decrement_lock_time()

◆ determine_pilot_hand()

void determine_pilot_hand ( void )

◆ draw_3d_scanner()

◆ draw_cockpit_lights()

◆ draw_nav_pointer()

◆ draw_target_box()

◆ DrawCalculatingLabel()

◆ DrawCockpitReadout()

◆ DrawFormattedText()

◆ DrawHudMessageSlot()

◆ DrawPendingCockpitDamage()

◆ DrawPilotHandFrame()

◆ DrawViewportPixel()

void DrawViewportPixel ( Viewport * viewport,
short x,
short y,
short colour )

Definition at line 976 of file gr.c.

◆ EmitTextString()

void EmitTextString ( void(__stdcall *  writer)(int character),
const char * text )

Definition at line 107 of file cockpt.c.

References EmitTextString().

Referenced by EmitTextString(), and FormatTextTokens().

◆ EraseCockpitReadoutAtPosition()

void EraseCockpitReadoutAtPosition ( signed char slot,
short left,
short top )

◆ 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,
... )

◆ find_ship_index()

short find_ship_index ( short missionShip)

Definition at line 439 of file logic.c.

◆ fire_computer_graphic_missile()

◆ FixedToShortSaturating()

short FixedToShortSaturating ( int value)

Definition at line 193 of file geom.c.

◆ flag_objective()

void flag_objective ( short objective,
unsigned char flags )

◆ flag_reached()

◆ FormatTextBufferFromStart()

◆ FormatTextTokens()

◆ get_color()

◆ get_mode()

◆ GetRectHeight()

short GetRectHeight ( const Viewport * viewport)

Definition at line 1772 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 717 of file cockpt.c.

References acVduModeStackDepth, and GetVduModeStackDepth().

Referenced by GetVduModeStackDepth(), and vdu_pop_all().

◆ GetViewportPixel()

int GetViewportPixel ( Viewport * viewport,
short x,
short y )

Definition at line 986 of file gr.c.

◆ hidden_objective()

◆ InitializeCockpitReadout()

◆ InvalidateVduMode()

◆ IsCockpitExplosionActive()

◆ 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()

void malf_sound ( void )

Definition at line 823 of file cockpt.c.

References malf_sound(), and PlaySfxWaveFileByNumber().

Referenced by check_target(), HandleSpaceFlightControls(), and malf_sound().

◆ message_showing()

◆ mobile_objective()

short mobile_objective ( short objective)

◆ npc_communication()

◆ objective_lost()

unsigned int 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)

◆ PlayTargetLockSfx()

void PlayTargetLockSfx ( void )

Definition at line 817 of file cockpt.c.

References PlaySfxWaveFileByNumber(), and PlayTargetLockSfx().

Referenced by PlayTargetLockSfx().

◆ pop_mode()

◆ print_message_text()

◆ push_mode()

void push_mode ( short i,
int state )

◆ RandomBelowOrEqual()

short RandomBelowOrEqual ( short n)

Definition at line 59 of file mathfp.c.

◆ rectangular_to_spherical()

void rectangular_to_spherical ( const FixedVector * rectangular,
SphericalVector * spherical )

Definition at line 383 of file geom.c.

◆ remove_message()

void remove_message ( const char * text)

Definition at line 495 of file cockpt.c.

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

Referenced by lock_off(), and remove_message().

◆ remove_nav_pointer()

void remove_nav_pointer ( void )

Definition at line 2008 of file cockpt.c.

References nNavPointerObject, remove_nav_pointer(), and remove_object().

Referenced by draw_nav_pointer(), and remove_nav_pointer().

◆ RemovePlayerReleaseWeapon()

◆ reset_cockpit()

◆ ResetPilotHandAnimation()

◆ ResetScannerContacts()

void ResetScannerContacts ( void )

◆ RestoreCockpitExplosionBackground()

◆ RestoreCockpitExplosionIfVisible()

◆ 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()

unsigned short set_message_time ( unsigned short v)

Definition at line 782 of file cockpt.c.

References nCurrentNoticeTimer, and set_message_time().

Referenced by set_message_time(), and SetHudMessageText().

◆ set_mode()

◆ set_new_objective()

◆ set_new_vdu()

◆ set_next_destination()

◆ set_objective_range()

◆ SetCockpitLightBlink()

unsigned int 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()

◆ 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 706 of file cockpt.c.

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

Referenced by SetVduModeIfChanged().

◆ show_navigation_disp()

◆ show_weapon_disp()

◆ ShowComponentHitHudMessage()

◆ ShowHudTextLine()

void ShowHudTextLine ( char * s,
unsigned short b )

◆ sighted()

short sighted ( short objective)

◆ someone_coming()

unsigned int someone_coming ( void )

◆ start_lock()

void start_lock ( unsigned short v)

◆ starting_lock()

unsigned short starting_lock ( unsigned short v)

Definition at line 1652 of file cockpt.c.

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

Referenced by starting_lock(), and target_locking().

◆ target_locking()

◆ transform_to_objects_frame()

void transform_to_objects_frame ( const FixedVector * source,
FixedVector * destination,
short obj )

Definition at line 610 of file geom.c.

◆ update_bars()

◆ update_cockpit()

◆ update_dead_disp()

void update_dead_disp ( short a)

Definition at line 2751 of file cockpt.c.

References 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()

void update_status_text ( void )

Definition at line 1025 of file cockpt.c.

References update_status_text().

Referenced by update_status_text(), and update_VDUs().

◆ update_VDUs()

◆ update_vid_disp()

short update_vid_disp ( short vdu)

Definition at line 753 of file cockpt.c.

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

Referenced by update_VDUs(), and update_vid_disp().

◆ UpdateMessage()

◆ vdu_malf()

unsigned short vdu_malf ( short vdu,
short sound )

◆ vdu_polygon()

◆ vdu_pop_all()

void vdu_pop_all ( short vdu)

Definition at line 2931 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

◆ aaCockpitDamagePositions

ShortPoint aaCockpitDamagePositions[5][4]
static
Initial value:
= {
{{224, 5}, {132, 96}, {233, 107}, {149, 161}},
{{177, 6}, {153, 142}, {103, 140}, {55, 183}},
{{107, 25}, {211, 32}, {21, 178}, {300, 178}},
{{74, 10}, {294, 19}, {197, 105}, {105, 134}},
{{0, 0}, {0, 0}, {0, 0}, {0, 0}}
}

Definition at line 74 of file cockpt.c.

Referenced by explosion_draw(), and place_damage_on_cockpit().

◆ abCockpitIndicatorStatesArray

unsigned char abCockpitIndicatorStatesArray[7]

Definition at line 105 of file cockpt.c.

Referenced by draw_cockpit_lights(), and reset_cockpit().

◆ abMouseCursorBackground

unsigned char abMouseCursorBackground[0x400]
static

Definition at line 88 of file cockpt.c.

Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().

◆ aCockpitHudMessageSlotsTable

◆ aCockpitReadouts

CockpitReadout aCockpitReadouts[6]

◆ aiScannerGridRows

int aiScannerGridRows[79]
static
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, -1,
-2
}

Definition at line 39 of file cockpt.c.

Referenced by draw_3d_scanner().

◆ asHudMessageOrigins

short asHudMessageOrigins[10]
static
Initial value:
= {
18, 14, 71, 5, 80, 29, 49, 27, 14, 13
}

Definition at line 65 of file cockpt.c.

Referenced by print_message_text().

◆ asPilotHandOffsets

short asPilotHandOffsets[34]
static
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 20 of file cockpt.c.

Referenced by DrawPilotHandFrame().

◆ asVduSelectionSound

short asVduSelectionSound[2] = { 0x7f, 0 }
static

Definition at line 13 of file cockpt.c.

Referenced by SelectCockpitVduMode().

◆ bForceDamageDisplayRedraw

int bForceDamageDisplayRedraw = 0
static

Definition at line 85 of file cockpt.c.

Referenced by update_VDUs().

◆ bStickIndicatorFrameState

signed char bStickIndicatorFrameState

Definition at line 92 of file cockpt.c.

Referenced by animate_pilot(), determine_pilot_hand(), and DrawPilotHandFrame().

◆ bTargetBracketVisible

unsigned char bTargetBracketVisible = 1
static

Definition at line 63 of file cockpt.c.

Referenced by overlay_head_up_display().

◆ cLastTargetObject

signed char cLastTargetObject

Definition at line 96 of file cockpt.c.

Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().

◆ cReleaseWeaponDisplayFrame

signed char cReleaseWeaponDisplayFrame = -1
static

Definition at line 30 of file cockpt.c.

Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().

◆ cReleaseWeaponDisplayState

signed char cReleaseWeaponDisplayState = 0
static

Definition at line 32 of file cockpt.c.

Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().

◆ cReleaseWeaponDisplayTicks

signed char cReleaseWeaponDisplayTicks = 0
static

Definition at line 31 of file cockpt.c.

Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().

◆ cRenderedPilotHandFrame

volatile signed char cRenderedPilotHandFrame = -1
static

◆ DAT_00469010

int DAT_00469010[2] = { 0, 0 }
static

Definition at line 18 of file cockpt.c.

◆ eReleaseWpnDisplayType

enum ObjectType eReleaseWpnDisplayType

Definition at line 90 of file cockpt.c.

Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().

◆ nCarrierMissionShipIndexValue

short nCarrierMissionShipIndexValue

Definition at line 101 of file cockpt.c.

Referenced by check_stranded(), new_view(), and prepare_mission().

◆ nCockpitExplosionFrame

◆ nCommPortraitFrame

int nCommPortraitFrame = -1
static

Definition at line 84 of file cockpt.c.

Referenced by vid_transmit().

◆ nCurrentNoticeTimer

short nCurrentNoticeTimer

Definition at line 93 of file cockpt.c.

Referenced by check_message(), clear_message_time(), message_showing(), and set_message_time().

◆ nDisplayedObjectiveRange

int nDisplayedObjectiveRange = 40000
static

Definition at line 34 of file cockpt.c.

Referenced by check_objectives(), and DrawCalculatingLabel().

◆ nNavPointerObject

◆ nPendingCockpitDamageValue

short nPendingCockpitDamageValue

Definition at line 94 of file cockpt.c.

Referenced by DrawPendingCockpitDamage(), and place_damage_on_cockpit().

◆ nSavedMouseCursorY

int nSavedMouseCursorY

Definition at line 97 of file cockpt.c.

Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().

◆ nScannerCursorX

short nScannerCursorX

Definition at line 103 of file cockpt.c.

Referenced by draw_3d_scanner(), and rotational_pos_to_scanner_pos().

◆ nScannerCursorY

short nScannerCursorY

Definition at line 104 of file cockpt.c.

Referenced by draw_3d_scanner(), and rotational_pos_to_scanner_pos().

◆ nScannerTargetObject

short nScannerTargetObject = -1
static

Definition at line 37 of file cockpt.c.

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

◆ nStoredMouseCursorPosX

int nStoredMouseCursorPosX

Definition at line 98 of file cockpt.c.

Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().

◆ nTargetLockMarkerX

short nTargetLockMarkerX = -0x7fff
static

Definition at line 68 of file cockpt.c.

Referenced by draw_target_box().

◆ nTargetLockMarkerY

short nTargetLockMarkerY

Definition at line 100 of file cockpt.c.

Referenced by draw_target_box().

◆ pCockpitExplosionBackground

◆ pCockpitExplosionShape

◆ pCockpitPilotShape

struct Shape* pCockpitPilotShape = 0

Definition at line 25 of file cockpt.c.

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

◆ pCommStaticShape

struct Shape* pCommStaticShape = 0

Definition at line 82 of file cockpt.c.

Referenced by FreeCommDisplayResources(), LoadCommDisplayResources(), and vid_transmit().

◆ pConfedCommBackground

struct Shape* pConfedCommBackground = 0

◆ pKilrathiCommBackground

struct Shape* pKilrathiCommBackground = 0

◆ pRadarMarkerBackground

unsigned char* pRadarMarkerBackground

◆ pReleaseWeaponDisplayBackground

unsigned char* pReleaseWeaponDisplayBackground = 0

◆ pszDisplayedHudMessage

char* volatile pszDisplayedHudMessage = 0
static

Definition at line 15 of file cockpt.c.

Referenced by print_message_text(), RestoreTransientCockpitGraphics(), and SetHudTextColour().

◆ pszMissileLockedMessage

const char* pszMissileLockedMessage = "MISSILE LOCKED "
static

Definition at line 62 of file cockpt.c.

Referenced by decrement_lock_time(), and lock_off().

◆ pszObjectiveStatusMessage

char* pszObjectiveStatusMessage = "Wait for ??????????????????"
static

Definition at line 36 of file cockpt.c.

Referenced by flag_reached().

◆ pszPendingHudMessage

char* pszPendingHudMessage = 0

◆ stPreviousTargetBracketBounds

ShortRect stPreviousTargetBracketBounds = {-0x7fff, 0, 0, 0}
static

Definition at line 70 of file cockpt.c.

Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().

◆ stTargetBracketBounds

ShortRect stTargetBracketBounds = {-0x7fff, 0, 0, 0}
static

Definition at line 69 of file cockpt.c.

Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().

◆ stTrainSimVduSource

Viewport stTrainSimVduSource = {0}
static

Definition at line 72 of file cockpt.c.

Referenced by CopyTrainSimPilotViewToRightVdu().

◆ szComponentHitMessage

char szComponentHitMessage[40]

Definition at line 99 of file cockpt.c.

Referenced by PromptForAnswerText(), and ShowComponentHitHudMessage().

◆ szNoWeaponName

char szNoWeaponName[5] = "None"
static

Definition at line 33 of file cockpt.c.

Referenced by show_weapon_disp().