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

Communications menu and transmissions. More...

#include "game.h"

Go to the source code of this file.

Macros

#define COMM_C

Functions

void LoadCommPortraitResources (short portrait)
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)
void OpenCommRecipientMenu (void)
void CloseCommChoiceMenu (void)
short wingman_dead (void)
short have_target (void)
short CanOpenCommMenu (void)
void SelectCommRecipient (short recipient)
void BuildCommunicationRecipientMenu (void)
void BuildCommunicationCommandMenu (void)
void RefreshCommunicationMenu (void)
void HandleCommunicationMenuRequest (void)
void show_communications_disp (void)
void Chosen_communicate_option (short choice)
short get_mode (short i)
void pop_mode (short i)
void IssueQuickCommCommand (short recipient, short command)
void FreeCommDisplayResources (void)
void EndCommSessionWithWingman (void)
void EndCommMenu (void)
void ShowCentredPrompt (char *text, unsigned short arg)
char * ExpandCommMessageTokens (const char *text)
long GetNamedPacketSize (const char *filename, short section)
void LoadAndPlaySpeechPacket (char *fileName, short section)
void * LoadPacketIntoBuffer (char *fileName, short section, void *destination, int registerHandle)
void malf_noise (short vdu, int effect, unsigned short colour, short sound, short refresh)
void real_vid_transmit (short obj, short message)

Variables

short g_nEnemyTauntCommandBase = 20
short g_nCommMenuChoiceCount = -1
short g_nCommMenuReuseMode = 0
signed char g_cMessageSpeed = 2
signed char g_cPendingCommMenuAction = 1
signed char g_bRadioSilence = 0
signed char g_bVideoImagesSuppressed = 0
unsigned char * g_pCommPortraitResource = 0
unsigned char * g_pCommVduFrameResource = 0
signed char g_cCommMenuRecipient = -1
short g_nCommSpeakerObject = 0
short g_nCommSpeakerRating = 0
short g_nCommPortraitIndex = -1
short g_bCommSpeechPlaying = 0
char * g_48_apCommunicationTextPacketsTable [50]
char g_szOnScreenMessageBuffer [52]
int g_11_nUnusedCommWordWord [5]
char g_szCommMessageTextText [0x58]
signed char g_abCommMenuChoiceCommand [7]
const char * g_pszCommScreenHeading
char g_4_szCommMenuHeadingStore [0x40]
const char * g_1_apszCommMenuChoiceTextTable [7]

Detailed Description

Communications menu and transmissions.

Definition in file comm.c.

Macro Definition Documentation

◆ COMM_C

#define COMM_C

Definition at line 6 of file comm.c.

Function Documentation

◆ AppendCommMenuChoice()

◆ BuildCommunicationCommandMenu()

◆ BuildCommunicationRecipientMenu()

◆ CanOpenCommMenu()

short CanOpenCommMenu ( void )

◆ Chosen_communicate_option()

◆ CloseCommChoiceMenu()

◆ EndCommMenu()

◆ EndCommSessionWithWingman()

◆ ExpandCommMessageTokens()

◆ FreeCommDisplayResources()

◆ get_mode()

short get_mode ( short i)

Definition at line 630 of file cockpt.c.

◆ GetNamedPacketSize()

long GetNamedPacketSize ( const char * filename,
short section )

Definition at line 2164 of file eventmgr.c.

◆ HandleCommunicationMenuRequest()

◆ have_target()

◆ IsCommChoiceMenuOpen()

◆ IsCommMenuIdle()

short IsCommMenuIdle ( void )

◆ IssueQuickCommCommand()

void IssueQuickCommCommand ( short recipient,
short command )

◆ LoadAndPlaySpeechPacket()

void LoadAndPlaySpeechPacket ( char * fileName,
short section )

Definition at line 103 of file speech.c.

◆ LoadCommPortraitResources()

◆ LoadPacketIntoBuffer()

void * LoadPacketIntoBuffer ( char * fileName,
short section,
void * destination,
int registerHandle )

Definition at line 141 of file disk.c.

◆ malf_noise()

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

Definition at line 2764 of file cockpt.c.

◆ OpenCommMenuForTarget()

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

◆ OpenCommRecipientMenu()

void OpenCommRecipientMenu ( void )

◆ pop_mode()

void pop_mode ( short i)

Definition at line 673 of file cockpt.c.

◆ real_vid_transmit()

◆ RefreshCommunicationMenu()

◆ ResetCommMenuChoices()

◆ SelectCommRecipient()

◆ SendCommMenuChoice()

◆ show_communications_disp()

◆ ShowCentredPrompt()

void ShowCentredPrompt ( char * text,
unsigned short arg )

◆ wingman_dead()

short wingman_dead ( void )

Variable Documentation

◆ g_11_nUnusedCommWordWord

int g_11_nUnusedCommWordWord[5]

Definition at line 584 of file comm.c.

◆ g_1_apszCommMenuChoiceTextTable

const char* g_1_apszCommMenuChoiceTextTable[7]

Definition at line 589 of file comm.c.

Referenced by AppendCommMenuChoice(), ResetCommMenuChoices(), and show_communications_disp().

◆ g_48_apCommunicationTextPacketsTable

char* g_48_apCommunicationTextPacketsTable[50]

Definition at line 582 of file comm.c.

Referenced by free_cockpit(), InitializeCockpitResources(), and SendCommMenuChoice().

◆ g_4_szCommMenuHeadingStore

char g_4_szCommMenuHeadingStore[0x40]

Definition at line 588 of file comm.c.

Referenced by BuildCommunicationCommandMenu().

◆ g_abCommMenuChoiceCommand

signed char g_abCommMenuChoiceCommand[7]

Definition at line 586 of file comm.c.

Referenced by AppendCommMenuChoice(), Chosen_communicate_option(), and ResetCommMenuChoices().

◆ g_bCommSpeechPlaying

short g_bCommSpeechPlaying = 0

Definition at line 22 of file comm.c.

Referenced by real_vid_transmit(), and vid_transmit().

◆ g_bRadioSilence

signed char g_bRadioSilence = 0

◆ g_bVideoImagesSuppressed

signed char g_bVideoImagesSuppressed = 0

Definition at line 15 of file comm.c.

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

◆ g_cCommMenuRecipient

signed char g_cCommMenuRecipient = -1

◆ g_cMessageSpeed

signed char g_cMessageSpeed = 2

Definition at line 12 of file comm.c.

Referenced by MeasureMessageWidth(), and SetMessageDisplaySpeed().

◆ g_cPendingCommMenuAction

signed char g_cPendingCommMenuAction = 1

◆ g_nCommMenuChoiceCount

◆ g_nCommMenuReuseMode

◆ g_nCommPortraitIndex

short g_nCommPortraitIndex = -1

Definition at line 21 of file comm.c.

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

◆ g_nCommSpeakerObject

short g_nCommSpeakerObject = 0

◆ g_nCommSpeakerRating

short g_nCommSpeakerRating = 0

Definition at line 20 of file comm.c.

Referenced by FreeCommDisplayResources(), and real_vid_transmit().

◆ g_nEnemyTauntCommandBase

short g_nEnemyTauntCommandBase = 20

◆ g_pCommPortraitResource

unsigned char* g_pCommPortraitResource = 0

◆ g_pCommVduFrameResource

unsigned char* g_pCommVduFrameResource = 0

Definition at line 17 of file comm.c.

Referenced by free_cockpit(), LoadCommPortraitResources(), and vid_transmit().

◆ g_pszCommScreenHeading

const char* g_pszCommScreenHeading

Definition at line 587 of file comm.c.

Referenced by OpenCommMenuForTarget(), and show_communications_disp().

◆ g_szCommMessageTextText

char g_szCommMessageTextText[0x58]

Definition at line 585 of file comm.c.

Referenced by real_vid_transmit(), and vid_transmit().

◆ g_szOnScreenMessageBuffer

char g_szOnScreenMessageBuffer[52]

Definition at line 583 of file comm.c.

Referenced by ShowCentredPrompt(), and ShowOnScreenMessage().