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

Communication menus and video transmissions. More...

#include "wc1.h"

Go to the source code of this file.

Functions

short get_face (short rating, unsigned int side)
void LoadCommPortraitShape (short face, signed char alternate)
void ResetCommMenuChoices (short reuse)
short IsCommMenuIdle (void)
void AppendCommMenuChoice (const char *text, short command)
void SendCommMenuChoice (short i)
void OpenCommMenuForTarget (const char *heading, const char *message)
short IsCommChoiceMenuOpen (void)
short GetPendingMenuAction (void)
void SetPendingMenuAction (unsigned char v)
void OpenCommRecipientMenu (void)
void CloseCommChoiceMenu (void)
short wingman_dead (void)
short have_target (void)
unsigned short CanOpenCommMenu (void)
void SelectCommRecipient (short recipient)
void BuildCommunicationRecipientMenu (void)
void BuildCommunicationCommandMenu (void)
void RefreshCommunicationMenu (void)
void HandleCommunicationMenuRequest (void)
void show_communications_disp (void)
unsigned int Chosen_communicate_option (short choice)
void talk_equiv (void)
void FreeCommDisplayResources (void)
void EndCommSessionWithWingman (void)
void EndCommMenu (void)
void ShowCentredPrompt (char *text, unsigned short arg)
short LoadCommDisplayResources (short rating, enum Side side)
char * ExpandCommMessageTokens (const char *text)
void real_vid_transmit (short obj, short message)

Variables

short nCommMenuChoiceCount = -1
short nCommMenuReuseMode = 0
unsigned char bMessageSpeed = 2
static signed char cPendingCommMenuAction = 1
unsigned char bRadioSilence = 0
unsigned char bVideoImagesSuppressed = 0
unsigned char bCommVideoEnabled = 1
const char * apszKilrathiAceNames [4]
static const char * apszCommMenuText [13]
signed char cCommMenuRecipient = -1
short nCommSpeakerObject = 0
short nCommSpeakerRating = 0
short nCommPortraitIndex = -1
struct Shape * apObjShapeArray [SPACE_OBJECT_COUNT]
ShortVector stRotationInput
short asShipWingLeaderArray [16]
short aasShipArmor [10][4]
short asShipWpnEnergyList [10]
signed char acFormationMemberLists [16]
signed char acShipIonDriveDmg [16]
short anShipMissionShips [16]
FixedVector vToTgt
short asCannedCommands [16]

Detailed Description

Communication menus and video transmissions.

Address range 430bc0-4318ef.

Definition in file comm.c.

Function Documentation

◆ AppendCommMenuChoice()

◆ BuildCommunicationCommandMenu()

◆ BuildCommunicationRecipientMenu()

◆ CanOpenCommMenu()

unsigned short CanOpenCommMenu ( void )

◆ Chosen_communicate_option()

◆ CloseCommChoiceMenu()

◆ EndCommMenu()

◆ EndCommSessionWithWingman()

◆ ExpandCommMessageTokens()

◆ FreeCommDisplayResources()

◆ get_face()

short get_face ( short rating,
unsigned int side )

Definition at line 62 of file comm.c.

References get_face(), and SIDE_KILRATHI.

Referenced by get_face(), init_personalities(), PlaySfxWaveFileByNumber(), and real_vid_transmit().

◆ GetPendingMenuAction()

short GetPendingMenuAction ( void )

◆ HandleCommunicationMenuRequest()

◆ have_target()

◆ IsCommChoiceMenuOpen()

◆ IsCommMenuIdle()

short IsCommMenuIdle ( void )

◆ LoadCommDisplayResources()

◆ LoadCommPortraitShape()

void LoadCommPortraitShape ( short face,
signed char alternate )

◆ OpenCommMenuForTarget()

void OpenCommMenuForTarget ( const char * heading,
const char * message )

◆ OpenCommRecipientMenu()

void OpenCommRecipientMenu ( void )

◆ real_vid_transmit()

◆ RefreshCommunicationMenu()

◆ ResetCommMenuChoices()

◆ SelectCommRecipient()

◆ SendCommMenuChoice()

◆ SetPendingMenuAction()

void SetPendingMenuAction ( unsigned char v)

◆ show_communications_disp()

◆ ShowCentredPrompt()

void ShowCentredPrompt ( char * text,
unsigned short arg )

◆ talk_equiv()

void talk_equiv ( void )

◆ wingman_dead()

short wingman_dead ( void )

Variable Documentation

◆ aasShipArmor

short aasShipArmor[10][4]

◆ acFormationMemberLists

signed char acFormationMemberLists[16]

◆ acShipIonDriveDmg

signed char acShipIonDriveDmg[16]

Definition at line 56 of file comm.c.

Referenced by damage_ion_drive(), recalc_max_velocity(), set_objects_data(), and Set_up_ship_info().

◆ anShipMissionShips

◆ apObjShapeArray

◆ apszCommMenuText

const char* apszCommMenuText[13]
static
Initial value:
= {
"Never mind...",
"Attack my target!",
"Help me out here",
"Return to base.",
"Die furball!",
"Slag off!",
"Bite it cat face.",
"Break and attack.",
"Keep formation!",
"Form on my wing.",
"Keep radio silence",
"Broadcast freely",
"Request Landing"
}

Definition at line 26 of file comm.c.

Referenced by SendCommMenuChoice().

◆ apszKilrathiAceNames

const char* apszKilrathiAceNames[4]
Initial value:
= {
"Bhurak",
"Dakhath",
"Khajja",
"Bakhtosh"
}

Definition at line 19 of file comm.c.

Referenced by BuildCommunicationCommandMenu(), real_vid_transmit(), and show_target_disp().

◆ asCannedCommands

short asCannedCommands[16]

Definition at line 59 of file comm.c.

Referenced by advance_canned_sequence(), Set_up_ship_info(), and update_canned_sequence().

◆ asShipWingLeaderArray

◆ asShipWpnEnergyList

short asShipWpnEnergyList[10]

◆ bCommVideoEnabled

unsigned char bCommVideoEnabled = 1

Definition at line 16 of file comm.c.

Referenced by InitializeCockpitResources(), and real_vid_transmit().

◆ bMessageSpeed

unsigned char bMessageSpeed = 2

Definition at line 12 of file comm.c.

Referenced by MeasureMessageWidth(), and SetMessageDisplaySpeed().

◆ bRadioSilence

unsigned char bRadioSilence = 0

◆ bVideoImagesSuppressed

unsigned char bVideoImagesSuppressed = 0

Definition at line 15 of file comm.c.

Referenced by HandleSpaceFlightControls(), real_vid_transmit(), and vid_transmit().

◆ cCommMenuRecipient

signed char cCommMenuRecipient = -1

◆ cPendingCommMenuAction

signed char cPendingCommMenuAction = 1
static

Definition at line 13 of file comm.c.

Referenced by GetPendingMenuAction(), and SetPendingMenuAction().

◆ nCommMenuChoiceCount

short nCommMenuChoiceCount = -1

◆ nCommMenuReuseMode

◆ nCommPortraitIndex

short nCommPortraitIndex = -1

◆ nCommSpeakerObject

short nCommSpeakerObject = 0

◆ nCommSpeakerRating

short nCommSpeakerRating = 0

Definition at line 43 of file comm.c.

Referenced by FreeCommDisplayResources(), and real_vid_transmit().

◆ stRotationInput

ShortVector stRotationInput

◆ vToTgt