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

Flight input setup, fatal errors and on-screen messages. More...

#include "game.h"

Go to the source code of this file.

Functions

void InitializeSpaceFlightInput (void)
void ReportFatalErrorCode (const char *errorCode)
void exit_squadron (const char *msg,...)
void ShowMemoryStatusDebug (void)
void ShowModalMessage (const char *format,...)
void ReportOutOfMemoryAndExit (const char *resource)
void InitializeConversationViewport (void)
void ResetScreenClipToFullHeight (void)
void InitializeConversationText (void)
void ShowOnScreenMessage (short duration, const char *format,...)
void ShowGamePausedBanner (short showBanner)
void ShowVersionBanner (void)
void SetMessageDisplaySpeed (void)
short MinShort (short a, short b)
short MaxShort (short a, short b)
void ReportFramesSkipped (short adjustment)

Variables

static const char * g_pszFatalErrorMessage
int g_bPauseInputActive = 0
Viewport g_6_stConversationTextViewport
char g_6_szDefaultTextBufferText [0xc8]
unsigned char * g_18_pCockpitIndicatorShape
unsigned char * g_pConstellationSprite
Viewport g_2_stModalSourceWindow
unsigned char * g_pPilotHandAnimationShapePtr
Viewport g_stPilotHandViewportRecord
Viewport g_stSecondaryViewBufferBlock
short g_9_aasCockpitHitPaletteFades [6][3]
unsigned char * g_4_pCockpitPanelShape
TextContext g_1_stRightVduTextContextBlock
TextContext g_16_stCockpitTextSettingsRecord
TextContext g_3_stDefaultStringContext
TextContext g_2_stConversationTextCtx
short g_1_asSpacePaletteFade [3]

Detailed Description

Flight input setup, fatal errors and on-screen messages.

Definition in file message.c.

Function Documentation

◆ exit_squadron()

◆ InitializeConversationText()

◆ InitializeConversationViewport()

◆ InitializeSpaceFlightInput()

◆ MaxShort()

short MaxShort ( short a,
short b )

Definition at line 36 of file disk.c.

◆ MinShort()

short MinShort ( short a,
short b )

Definition at line 27 of file disk.c.

◆ ReportFatalErrorCode()

◆ ReportFramesSkipped()

void ReportFramesSkipped ( short adjustment)

◆ ReportOutOfMemoryAndExit()

◆ ResetScreenClipToFullHeight()

◆ SetMessageDisplaySpeed()

void SetMessageDisplaySpeed ( void )

◆ ShowGamePausedBanner()

◆ ShowMemoryStatusDebug()

◆ ShowModalMessage()

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

◆ ShowOnScreenMessage()

◆ ShowVersionBanner()

void ShowVersionBanner ( void )

Variable Documentation

◆ g_16_stCockpitTextSettingsRecord

TextContext g_16_stCockpitTextSettingsRecord

Definition at line 238 of file message.c.

Referenced by InitializeCockpitResources(), and update_digital_readouts().

◆ g_18_pCockpitIndicatorShape

unsigned char* g_18_pCockpitIndicatorShape

Definition at line 229 of file message.c.

Referenced by show_target_disp().

◆ g_1_asSpacePaletteFade

short g_1_asSpacePaletteFade[3]

◆ g_1_stRightVduTextContextBlock

TextContext g_1_stRightVduTextContextBlock

◆ g_2_stConversationTextCtx

TextContext g_2_stConversationTextCtx

Definition at line 240 of file message.c.

Referenced by InitializeConversationText().

◆ g_2_stModalSourceWindow

◆ g_3_stDefaultStringContext

◆ g_4_pCockpitPanelShape

unsigned char* g_4_pCockpitPanelShape

Definition at line 236 of file message.c.

Referenced by draw_cockpit_lights(), and vdu_polygon().

◆ g_6_stConversationTextViewport

Viewport g_6_stConversationTextViewport

Definition at line 227 of file message.c.

Referenced by InitializeConversationText().

◆ g_6_szDefaultTextBufferText

◆ g_9_aasCockpitHitPaletteFades

short g_9_aasCockpitHitPaletteFades[6][3]

Definition at line 235 of file message.c.

Referenced by house_keep(), object_collision(), and ResetCockpitPaletteEntries().

◆ g_bPauseInputActive

int g_bPauseInputActive = 0

Definition at line 13 of file message.c.

Referenced by HandleSpaceFlightControls(), and ShowOnScreenMessage().

◆ g_pConstellationSprite

◆ g_pPilotHandAnimationShapePtr

◆ g_pszFatalErrorMessage

const char* g_pszFatalErrorMessage
static
Initial value:
=
"Sorry, an error has occurred.\n"
"Please note the following information: %s.\n"
"Check your configuration. If this problem persists, please\n"
"call Origin Systems' service line. We are sorry for the inconvenience."

Definition at line 8 of file message.c.

Referenced by ReportFatalErrorCode().

◆ g_stPilotHandViewportRecord

Viewport g_stPilotHandViewportRecord

◆ g_stSecondaryViewBufferBlock