|
Wing Commander
Reconstructed Win32 source (1996)
|
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] |
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.
| 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().
Definition at line 229 of file pilot.cpp.
References ClearDebugPauseFlags(), dwDebugOverlayKey, and dwDebugOverlayKeyLatch.
Referenced by ClearDebugPauseFlags(), ClearInputKeyState(), ClearInputKeyStatePreservingModifiers(), DrawTextString(), exit_squadron(), HandleSpaceFlightControls(), init_3Space_objects(), init_player_input(), LoadInstallDat(), LogDisplayMode(), PacketLoad(), RunSpaceFlight(), SetInputKeyState(), Title_Sequence(), and WaitForKeyAcknowledge().
| 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().
Definition at line 176 of file pilot.cpp.
References DestroyGlobalDebugOverlayConsole(), and pDebugOverlay.
Referenced by DestroyGlobalDebugOverlayConsole(), init_3Space_objects(), ShutdownGameWindow(), and WinMain().
Definition at line 224 of file pilot.cpp.
References DiskPromptDrawHook().
Referenced by DiskPromptDrawHook(), init_3Space_objects(), and PromptInsertNumberedDisk().
| void * FetchDiskPacketRetrying | ( | short | logicalFile, |
| short | section, | ||
| short | flags ) |
Definition at line 37 of file mathutil.c.
| void LoadAnswerPromptAndResponse | ( | short | entry, |
| char * | prompt, | ||
| char * | response ) |
Definition at line 101 of file pilot.cpp.
References DosStrcpy(), FetchDiskPacketRetrying(), FreePacketAndClear(), LoadAnswerPromptAndResponse(), and PromptInsertNumberedDisk().
Referenced by init_3Space_objects(), LoadAnswerPromptAndResponse(), and PromptForAnswerText().
| short PromptForAnswerText | ( | short | entry | ) |
Definition at line 131 of file pilot.cpp.
References ApplyAnswerTextCipher(), ShortRect::bottom, cBlackColour, ClearViewport(), cRedColour, cViewportClearColour, DrawModalTextPanel(), InitializeModalTextPanel(), ShortRect::left, LoadAnswerPromptAndResponse(), PromptForAnswerText(), PromptForTextInput(), ReleaseTextFont(), RestoreModalTextPanel(), ShortRect::right, stScreenView, szComponentHitMessage, szHudMessageBuf, and ShortRect::top.
Referenced by init_3Space_objects(), and PromptForAnswerText().
| short PromptForTextInput | ( | short | x, |
| short | y, | ||
| const char * | prompt, | ||
| char * | destination, | ||
| short | maximumLength, | ||
| short | inputMode ) |
Definition at line 492 of file barracks.c.
| char PumpMessagesDuringWait | ( | void | ) |
Definition at line 188 of file pilot.cpp.
References pDebugOverlay, and PumpMessagesDuringWait().
Referenced by DrawTextString(), init_3Space_objects(), LoadInstallDat(), LogDisplayMode(), PacketLoad(), PumpMessagesDuringWait(), SetInputKeyState(), WaitForInputKey(), WaitForKeyAcknowledge(), and WaitForKeyExceptXOrF12().
| void ResetDiskPromptTimerHook | ( | int | mode, |
| int | interval ) |
Definition at line 203 of file pilot.cpp.
References ResetDiskPromptTimerHook(), and void().
Referenced by init_3Space_objects(), PromptInsertNumberedDisk(), and ResetDiskPromptTimerHook().
Definition at line 163 of file pilot.cpp.
References SceneEnterHook().
Referenced by init_3Space_objects(), SceneEnterHook(), and Title_Sequence().
Definition at line 219 of file pilot.cpp.
References SetConsoleBackgroundColourHook().
Referenced by init_3Space_objects(), and SetConsoleBackgroundColourHook().
Definition at line 212 of file pilot.cpp.
References SetConsoleTextColourHook().
Referenced by init_3Space_objects(), and SetConsoleTextColourHook().
| void ShowMeanwhileTransition | ( | short | scene, |
| short | variant ) |
Definition at line 36 of file pilot.cpp.
References cBlackColour, ClearViewport(), DIBslam(), DIBslamReal(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), FreePacketAndClear(), InitializeConversationText(), InitializeConversationViewport(), LoadSceneAnimationResources(), PanToScreen(), pIntroFont, PreloadMusicTrackHook(), print_subtitle(), pSceneAnimationSceneDataPtr, pSceneAnimationTextData, ReleaseMusicTrackHook(), ReleaseSceneAnimationResources(), ReleaseTextFont(), ResetScreenClipToFullHeight(), RestoreGamePalette(), SaveGamePalette(), SceneDirector(), SetTextContext(), ShowMeanwhileTransition(), spacetrack(), stCurrentConvTxtCtx, stModalSrcViewport, StopMusic(), StopMusicUnlessSuppressed(), stSceneBuffer, stScreenView, TextContext::viewport, and WaitForSceneAdvance().
Referenced by GameFlow(), init_3Space_objects(), RunAnimationDemoLoop(), and ShowMeanwhileTransition().
| void SystemDebugPrintf | ( | const char * | format, |
| ... ) |
Definition at line 182 of file pilot.cpp.
References SystemDebugPrintf(), and void().
Referenced by DrawTextString(), exit_squadron(), GetJoystickDevCaps(), init_3Space_objects(), InitializeDIBScreenViewport(), LoadInstallDat(), LoadOriginFxDrivers(), LogDisplayMode(), LogMemoryUsage(), main(), PacketLoad(), SetInputKeyState(), ShowModalMessage(), and SystemDebugPrintf().
| unsigned char TakeDebugStepFlag | ( | void | ) |
Definition at line 194 of file pilot.cpp.
References dwDebugOverlayKeyLatch, and TakeDebugStepFlag().
Referenced by init_3Space_objects(), TakeDebugStepFlag(), and WaitForDebugStep().
| unsigned int WaitForKeyExceptXOrF12 | ( | void | ) |
Definition at line 20 of file pilot.cpp.
References bFilteredKeyDelayStartedState, bFilteredKeyWaitActive, ClearInputKeyState(), FlushInputEvents(), PumpMessagesDuringWait(), and WaitForKeyExceptXOrF12().
Referenced by init_3Space_objects(), and WaitForKeyExceptXOrF12().
| DebugOverlayConsole* pDebugOverlay |
Definition at line 13 of file pilot.cpp.
Referenced by CreateDebugOverlayConsole(), DestroyGlobalDebugOverlayConsole(), and PumpMessagesDuringWait().