|
Wing Commander
Reconstructed Win32 source (1996)
|
Data-file wrappers, scaled interstitial text, canned sequences and the MONODEBG.VXD developer console. More...
Go to the source code of this file.
Functions | |
| void __stdcall | CloseDataFile (unsigned short fd) |
| short __stdcall | WriteDataFileAtOffset (unsigned short fd, int offset, unsigned int length, const void *data) |
| short __stdcall | CreateDataFile (const char *path) |
| int __stdcall | ReadDataFileAtOffset (unsigned short fd, int offset, unsigned int length, void *data) |
| int __stdcall | SeekDataFile (unsigned short fd, int offset, unsigned int origin) |
| int | MeasureScaledIntroTextWidth (const char *text, short scale) |
| int | DrawCenteredScaledIntroText (const char *text, short centreX, short baselineY, short scale) |
| short | GetLineLength (const char *text) |
| void | DrawSpriteDefault (Viewport *viewport, short x, short y, struct Shape *shape, short frame) |
| int | print_subtitle (Viewport *viewport, short colour, const char *text) |
| int | advance_canned_sequence (short obj) |
| unsigned int | update_canned_sequence (short obj) |
| void __stdcall | SplitGameClockTicks (unsigned char *parts) |
| void | MonoDebug_install (void) |
| void | MonoDebug_remove (void) |
| void | SendMonoDebugCommand3 (void) |
| void | SoundDebugPrintf (const char *fmt,...) |
| void | MonoDebug_print (const char *text) |
| void | ReadPerformanceCounter (LARGE_INTEGER *p) |
| char *__stdcall | ResetStringBuilder (TextContext *context) |
Variables | |
| short | nPacketError = 0 |
| static char | szDataFileReadError [0x40] |
| static char | szDataCreateError [0x40] |
| static char | szWriteDataError [0x40] |
| static char | szSeekDataError [0x40] |
| static unsigned char | abUnusedMonoBuffer [0x50] |
| static int | bMonoDebugAvailable |
| static HANDLE | hMonoDebugDriver |
| int | nHostMouseMessageY |
| int | bHostPrimaryMouseButton |
| int | bHostSecondaryMouseButton |
Data-file wrappers, scaled interstitial text, canned sequences and the MONODEBG.VXD developer console.
Address range 403500-403e4f. MonoDebug_install and MonoDebug_print anchor the final block; the Mac auto unit starts at visit_the_cinema (403e50).
Definition in file mono.c.
| int advance_canned_sequence | ( | short | obj | ) |
Definition at line 246 of file mono.c.
References advance_canned_sequence(), aeSpecialManeuvers, anPitchGoal, anRollGoal, anShipSpeed, anYawTarget, apCannedSequenceList, asActionCounts, asCannedCommands, explode(), fire_fixed_projectile_weapon(), and SPECIAL_MANEUVER_AFTERBURNER.
Referenced by advance_canned_sequence(), init_intelligence_data(), and update_canned_sequence().
| void __stdcall CloseDataFile | ( | unsigned short | fd | ) |
Definition at line 23 of file mono.c.
References CloseDataFile(), and nPacketError.
Referenced by CloseDataFile(), CloseDataFileByHandle(), CreateEmptySaveGameFile(), EnsureSaveGameFile(), get_pilot_talk(), LoadGame(), LoadInstallDat(), OpenDiskDataFile(), OpenPacketSection(), and SaveGame().
| short __stdcall CreateDataFile | ( | const char * | path | ) |
Definition at line 47 of file mono.c.
References CreateDataFile(), nPacketError, and szDataCreateError.
Referenced by CreateDataFile(), and CreateEmptySaveGameFile().
| int DrawCenteredScaledIntroText | ( | const char * | text, |
| short | centreX, | ||
| short | baselineY, | ||
| short | scale ) |
Definition at line 122 of file mono.c.
References DrawCenteredScaledIntroText(), DrawSpriteScaled(), GetTransformedShapeBounds(), MeasureScaledIntroTextWidth(), pIntroFont, ShortRect::right, and stSpaceBufferViewport.
Referenced by DrawCenteredScaledIntroText(), ShowGameOverScreen(), ShowGetReadyScreen(), and ShowVictoryScreen().
| short GetLineLength | ( | const char * | text | ) |
Definition at line 159 of file mono.c.
References GetLineLength(), GetShapeFrameExtent(), and pIntroFont.
Referenced by GetLineLength(), and print_subtitle().
| int MeasureScaledIntroTextWidth | ( | const char * | text, |
| short | scale ) |
Definition at line 93 of file mono.c.
References GetTransformedShapeBounds(), MeasureScaledIntroTextWidth(), pIntroFont, ShortRect::right, and stSpaceBufferViewport.
Referenced by DrawCenteredScaledIntroText(), and MeasureScaledIntroTextWidth().
Definition at line 331 of file mono.c.
References bMonoDebugAvailable, exit_squadron(), hMonoDebugDriver, and MonoDebug_install().
Referenced by MonoDebug_install(), and WinMain().
| void MonoDebug_print | ( | const char * | text | ) |
Definition at line 393 of file mono.c.
References bMonoDebugAvailable, exit_squadron(), hMonoDebugDriver, MonoDebug_print(), and MonoDebug_remove().
Referenced by MonoDebug_print(), and SoundDebugPrintf().
Definition at line 361 of file mono.c.
References bMonoDebugAvailable, hMonoDebugDriver, and MonoDebug_remove().
Referenced by MonoDebug_print(), MonoDebug_remove(), and SendMonoDebugCommand3().
| int print_subtitle | ( | Viewport * | viewport, |
| short | colour, | ||
| const char * | text ) |
Definition at line 197 of file mono.c.
References DIBslam(), DrawSpriteDefault(), GetLineLength(), GetShapeFrameExtent(), pIntroFont, Viewport::pixels, print_subtitle(), and stScreenView.
Referenced by funeral_player(), print_subtitle(), ShowMeanwhileTransition(), ShowTheEndScreen(), stranded_sequence(), and Title_Sequence().
| int __stdcall ReadDataFileAtOffset | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | length, | ||
| void * | data ) |
Definition at line 61 of file mono.c.
References nPacketError, ReadDataFileAtOffset(), and szDataFileReadError.
Referenced by get_pilot_talk(), LoadGame(), LoadInstallDat(), OpenPacketSection(), ReadDataFileAtOffset(), and ReadPacketSectionData().
| void ReadPerformanceCounter | ( | LARGE_INTEGER * | p | ) |
Definition at line 405 of file mono.c.
References ReadPerformanceCounter().
Referenced by ReadPerformanceCounter(), and RunSpaceFlight().
| char *__stdcall ResetStringBuilder | ( | TextContext * | context | ) |
Definition at line 411 of file mono.c.
References ResetStringBuilder(), TextContext::text, and TextContext::textCursor.
Referenced by InitializeModalTextPanel(), InitializeTrainSimTextPanel(), ResetStringBuilder(), RunTrainSim(), and ShowTrainSimHighScores().
| int __stdcall SeekDataFile | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | origin ) |
Definition at line 79 of file mono.c.
References nPacketError, SeekDataFile(), and szSeekDataError.
Referenced by OpenPacketSection(), SeekDataFile(), and SeekPacketSection().
Definition at line 373 of file mono.c.
References bMonoDebugAvailable, hMonoDebugDriver, MonoDebug_remove(), and SendMonoDebugCommand3().
Referenced by SendMonoDebugCommand3().
| void SoundDebugPrintf | ( | const char * | fmt, |
| ... ) |
Definition at line 382 of file mono.c.
References MonoDebug_print(), SoundDebugPrintf(), and szSoundDebugMsg.
Referenced by FadeMusic(), FlushSoundEffect(), FlushSoundEffects(), ForceStreamerTrigger(), gametrack(), ix_log_printf(), MapMusicTrackToStreamerCommand(), ProcessMusicScriptCommand(), SelectFlightMusicTrack(), SetMusBreakpt(), SetMusicOn(), SetSoundEffectsVolume(), SoundDebugPrintf(), StopMusic(), Streamer_close(), Streamer_open(), Streamer_play(), Streamer_stop(), and Streamer_trigger().
| void __stdcall SplitGameClockTicks | ( | unsigned char * | parts | ) |
Definition at line 307 of file mono.c.
References GetGameClockTicks(), and SplitGameClockTicks().
Referenced by FormatNavCoordinates(), and SplitGameClockTicks().
| unsigned int update_canned_sequence | ( | short | obj | ) |
Definition at line 278 of file mono.c.
References advance_canned_sequence(), anPitchGoal, anRollGoal, anShipSpeed, anYawTarget, asActionCounts, asCannedCommands, aShipVelocity, update_canned_sequence(), and Vector_magnitude().
Referenced by object_intelligence(), and update_canned_sequence().
| short __stdcall WriteDataFileAtOffset | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | length, | ||
| const void * | data ) |
Definition at line 29 of file mono.c.
References nPacketError, szWriteDataError, and WriteDataFileAtOffset().
Referenced by CreateEmptySaveGameFile(), SaveGame(), and WriteDataFileAtOffset().
| int bHostPrimaryMouseButton |
Definition at line 327 of file mono.c.
Referenced by MainWindowProc(), player_input(), and TranslatePolledInputEvent().
| int bHostSecondaryMouseButton |
Definition at line 328 of file mono.c.
Referenced by MainWindowProc(), player_input(), and TranslatePolledInputEvent().
|
static |
Definition at line 322 of file mono.c.
Referenced by MonoDebug_install(), MonoDebug_print(), MonoDebug_remove(), and SendMonoDebugCommand3().
|
static |
Definition at line 323 of file mono.c.
Referenced by MonoDebug_install(), MonoDebug_print(), MonoDebug_remove(), and SendMonoDebugCommand3().
| int nHostMouseMessageY |
Definition at line 326 of file mono.c.
Referenced by MainWindowProc(), and TranslatePolledInputEvent().
| short nPacketError = 0 |
Definition at line 15 of file mono.c.
Referenced by CloseDataFile(), CreateDataFile(), DecompressPacketSection(), FetchDiskPacketRetrying(), GetPacketSize(), LoadPacketAllocated(), OpenDataFileOrDie(), OpenPacketSection(), PacketLoad(), ReadDataFileAtOffset(), ReportPacketLoadError(), SeekDataFile(), and WriteDataFileAtOffset().
|
static |
Definition at line 19 of file mono.c.
Referenced by CreateDataFile().
|
static |
Definition at line 18 of file mono.c.
Referenced by ReadDataFileAtOffset().
|
static |
Definition at line 21 of file mono.c.
Referenced by SeekDataFile().
|
static |
Definition at line 20 of file mono.c.
Referenced by WriteDataFileAtOffset().