Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
pilot.cpp File Reference

Inter-scene transitions, answer prompts, and the developer console's instance and wrappers. More...

#include "wc1.h"

Go to the source code of this file.

Functions

unsigned int WaitForKeyExceptXOrF12 (void)
void ShowMeanwhileTransition (short scene, short variant)
void ApplyAnswerTextCipher (char *text, signed char direction)
void __stdcall PromptInsertNumberedDisk (short logicalFile)
void * FetchDiskPacketRetrying (short logicalFile, short section, short flags)
char *__stdcall DosStrcpy (char *dst, const char *src)
void FreePacketAndClear (void *slot, unsigned short releaseFlags)
short PromptForTextInput (short x, short y, const char *prompt, char *destination, short maximumLength, short inputMode)
void LoadAnswerPromptAndResponse (short entry, char *prompt, char *response)
short PromptForAnswerText (short entry)
void SceneEnterHook (void)
void CreateDebugOverlayConsole (HINSTANCE module, HWND window, short columns, short rows)
void DestroyGlobalDebugOverlayConsole (void)
void SystemDebugPrintf (const char *format,...)
char PumpMessagesDuringWait (void)
unsigned char TakeDebugStepFlag (void)
void ResetDiskPromptTimerHook (int mode, int interval)
void SetConsoleTextColourHook (void)
void SetConsoleBackgroundColourHook (void)
void DiskPromptDrawHook (void)
void ClearDebugPauseFlags (void)

Variables

DebugOverlayConsole * pDebugOverlay
unsigned char abUnusedOverlayBuffer [0x100]

Detailed Description

Inter-scene transitions, answer prompts, and the developer console's instance and wrappers.

Address range 425730-425c2f. Compiled as C++ with /GX: the console allocation wrapper needs construction cleanup. The boundary between the C scene routines and the Win32 console wrappers is provisional.

Definition in file pilot.cpp.

Function Documentation

◆ ApplyAnswerTextCipher()

void ApplyAnswerTextCipher ( char * text,
signed char direction )

Definition at line 78 of file pilot.cpp.

References ApplyAnswerTextCipher().

Referenced by ApplyAnswerTextCipher(), init_3Space_objects(), and PromptForAnswerText().

◆ ClearDebugPauseFlags()

◆ CreateDebugOverlayConsole()

void CreateDebugOverlayConsole ( HINSTANCE module,
HWND window,
short columns,
short rows )

Definition at line 168 of file pilot.cpp.

References CreateDebugOverlayConsole(), and pDebugOverlay.

Referenced by CreateDebugOverlayConsole(), init_3Space_objects(), and WinMain().

◆ DestroyGlobalDebugOverlayConsole()

void DestroyGlobalDebugOverlayConsole ( void )

◆ DiskPromptDrawHook()

void DiskPromptDrawHook ( void )

Definition at line 224 of file pilot.cpp.

References DiskPromptDrawHook().

Referenced by DiskPromptDrawHook(), init_3Space_objects(), and PromptInsertNumberedDisk().

◆ DosStrcpy()

char *__stdcall DosStrcpy ( char * dst,
const char * src )

Definition at line 49 of file strdos.c.

◆ FetchDiskPacketRetrying()

void * FetchDiskPacketRetrying ( short logicalFile,
short section,
short flags )

Definition at line 126 of file disk.c.

◆ FreePacketAndClear()

void FreePacketAndClear ( void * slot,
unsigned short releaseFlags )

Definition at line 37 of file mathutil.c.

◆ LoadAnswerPromptAndResponse()

void LoadAnswerPromptAndResponse ( short entry,
char * prompt,
char * response )

◆ PromptForAnswerText()

◆ PromptForTextInput()

short PromptForTextInput ( short x,
short y,
const char * prompt,
char * destination,
short maximumLength,
short inputMode )

Definition at line 492 of file barracks.c.

◆ PromptInsertNumberedDisk()

void __stdcall PromptInsertNumberedDisk ( short logicalFile)

Definition at line 322 of file disk.c.

◆ PumpMessagesDuringWait()

◆ ResetDiskPromptTimerHook()

void ResetDiskPromptTimerHook ( int mode,
int interval )

◆ SceneEnterHook()

void SceneEnterHook ( void )

Definition at line 163 of file pilot.cpp.

References SceneEnterHook().

Referenced by init_3Space_objects(), SceneEnterHook(), and Title_Sequence().

◆ SetConsoleBackgroundColourHook()

void SetConsoleBackgroundColourHook ( void )

Definition at line 219 of file pilot.cpp.

References SetConsoleBackgroundColourHook().

Referenced by init_3Space_objects(), and SetConsoleBackgroundColourHook().

◆ SetConsoleTextColourHook()

void SetConsoleTextColourHook ( void )

Definition at line 212 of file pilot.cpp.

References SetConsoleTextColourHook().

Referenced by init_3Space_objects(), and SetConsoleTextColourHook().

◆ ShowMeanwhileTransition()

◆ SystemDebugPrintf()

◆ TakeDebugStepFlag()

unsigned char TakeDebugStepFlag ( void )

Definition at line 194 of file pilot.cpp.

References dwDebugOverlayKeyLatch, and TakeDebugStepFlag().

Referenced by init_3Space_objects(), TakeDebugStepFlag(), and WaitForDebugStep().

◆ WaitForKeyExceptXOrF12()

Variable Documentation

◆ abUnusedOverlayBuffer

unsigned char abUnusedOverlayBuffer[0x100]

Definition at line 17 of file pilot.cpp.

◆ pDebugOverlay