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

Objective arrival, warp transitions, mines and cockpit cleanup. More...

#include "wc1.h"
#include <process.h>

Go to the source code of this file.

Functions

short find_objective (int type, short index)
void arrive_from_warp (short obj)
unsigned int unwarp (short obj)
unsigned int warp (short obj)
int drop_player_mine (short obj)
unsigned int personality_killed (short personality)
void clean_up_cockpit (void)

Variables

TextContext stRightVduTxtContext
TextContext stCurrentCockpitReadoutTextCtx
TextContext stDefaultTxtContext
TextContext stCurrentConvTxtCtx
short asDamageFlashColour [3]
short nCurrentDmgDispTicks
ShortPoint stWpnDispOrigin
char szDmgStateText [0x48]
ShortPoint stDamageSpritePos
signed char cDamageDisplayComponentValue
signed char cDamageDisplayFrame
signed char cDamagedComponentCount

Detailed Description

Objective arrival, warp transitions, mines and cockpit cleanup.

Address range 42a8f0-42acff, corroborated by the Mac targ symbols.

Definition in file targ.c.

Function Documentation

◆ arrive_from_warp()

◆ clean_up_cockpit()

◆ drop_player_mine()

int drop_player_mine ( short obj)

◆ find_objective()

short find_objective ( int type,
short index )

◆ personality_killed()

◆ unwarp()

◆ warp()

Variable Documentation

◆ asDamageFlashColour

short asDamageFlashColour[3]

◆ cDamagedComponentCount

signed char cDamagedComponentCount

Definition at line 23 of file targ.c.

Referenced by show_damage_disp(), and UpdateDamageDisplay().

◆ cDamageDisplayComponentValue

signed char cDamageDisplayComponentValue

Definition at line 21 of file targ.c.

Referenced by UpdateDamageDisplay().

◆ cDamageDisplayFrame

signed char cDamageDisplayFrame

Definition at line 22 of file targ.c.

Referenced by UpdateDamageDisplay().

◆ nCurrentDmgDispTicks

short nCurrentDmgDispTicks

Definition at line 17 of file targ.c.

Referenced by SelectCockpitVduMode(), and UpdateDamageDisplay().

◆ stCurrentCockpitReadoutTextCtx

TextContext stCurrentCockpitReadoutTextCtx

Definition at line 13 of file targ.c.

Referenced by InitializeCockpitResources(), and update_digital_readouts().

◆ stCurrentConvTxtCtx

◆ stDamageSpritePos

ShortPoint stDamageSpritePos

Definition at line 20 of file targ.c.

Referenced by UpdateDamageDisplay().

◆ stDefaultTxtContext

◆ stRightVduTxtContext

◆ stWpnDispOrigin

ShortPoint stWpnDispOrigin

◆ szDmgStateText

char szDmgStateText[0x48]

Definition at line 19 of file targ.c.

Referenced by UpdateDamageDisplay().