|
Wing Commander
Reconstructed Win32 source (1996)
|
Win32 shell (window creation, message loop, exit paths and the guarded debug allocator) and the asteroid and mine hazard fields. More...
Go to the source code of this file.
Functions | |
| void | SaveGamePalette (void) |
| void | RestoreGamePalette (void) |
| short | easy2see (short obj) |
| void | make_shard (short asteroid, FixedVector direction) |
| void | remove_hazard (signed char hazard) |
| void | remove_all_hazards (void) |
| short | difficulty (void) |
| short | asteroid_velocity (void) |
| void | skew_randomly (short obj, short allowReverse) |
| void | align (short *value, short quantum) |
| void | init_hazard (short obj, FixedVector position, short moving) |
| short | near_field (const HazardField *field, const FixedVector *point) |
| short | within_field (const HazardField *field, const FixedVector *point) |
| short | try_far_spot (FixedVector *spot, short *moving) |
| short | rear_sphere (void) |
| short | ok_hazard_spot (short obj) |
| short | make_hazard (void) |
| void | extra_hazard (short obj) |
| void | approach (short obj) |
| void | manage_hazard (short obj, short slot) |
| void | match_ship_to_eye (void) |
| void | update_hazards (void) |
| void | start_hazard_field (short region) |
| void | add_hazard_field (enum ObjectType type, FixedVector center, short radius, short density) |
| void | check_hazards (void) |
| void __stdcall | WarpMouseTo (short x, short y) |
| void | CheckLauncherAndConfig (void) |
| int WINAPI | WinMain (HINSTANCE instance, HINSTANCE previous, LPSTR commandLine, int showCommand) |
| void | ShutdownGameWindow (void) |
| void | ShowNoticeMessageBox (const char *text) |
| unsigned int | AbortToDesktop (void) |
| int | CreateMainWindow (HINSTANCE instance, HINSTANCE previous, int showCommand) |
| unsigned int | PumpWindowMessages (void) |
| unsigned int | GetF1KeyLatch (void) |
| LRESULT CALLBACK | MainWindowProc (HWND window, UINT message, WPARAM wParam, LPARAM lParam) |
| int __stdcall | GetJoystickPosition (int *x, int *y, unsigned int *buttons, short joystick, unsigned short fallback) |
| short | GetJoystickButtons (void) |
| void | GetJoystickDevCaps (short joystick, unsigned short *xMin, unsigned short *xMax, unsigned short *yMin, unsigned short *yMax) |
| HINSTANCE | GetApplicationInstance (void) |
| HWND | GetMainWindowHandle (void) |
| HDC | GetMainWindowDeviceContext (void) |
| void * | AllocateGuardedMemory (unsigned int size) |
| void | ReportHeapGuardCorruption (void *memory, int count, int overrun) |
| void | CheckAllGuardedAllocations (void) |
| void | FreeGuardedAllocation (void *memory) |
Variables | |
| short | nHazardReferenceSpeed = 0 |
| short | nActiveHazards = 0 |
| static signed char | acHazardTravelTimeByView [8] |
| static signed char | acHazardPitchRange [8] |
| int | bIxAudioEnabled = 1 |
| unsigned int | bKeyEventQueueEnabled = 0 |
| unsigned int | nGuardedAllocationTotalBytes = 0 |
| unsigned int | nGuardedAllocationBytes = 0 |
| unsigned int | nGuardedAllocationPeakBytes = 0 |
| int | bShowKilrathiSagaCredits = 0 |
| int | bShowFrameRate = 0 |
| int | bDirectDrawModeCascadeEnabled = 1 |
| int | DAT_00465078 = 1 |
| int | bCockpitEnabled = 1 |
| volatile int | bMainWindowMinimized = 0 |
| int | DAT_00465084 = 0 |
| char | szMainWindowClassName [] = "Wing Commander" |
| char | szMainWindowTitle [] = "Wing Commander" |
| int | bWindowMessagePumpActive = 0 |
| volatile unsigned int | bF1KeyLatch = 0 |
| struct GuardedAllocation * | pGuardedAllocationHead = 0 |
| HDC | hMainWindowDC |
| HCURSOR | hPrevPointer |
| unsigned int | nSessionEndTime |
| int | bMainWindowAlive |
| HINSTANCE | hCurrentAppInstance |
| unsigned int | nSessionStartTime |
| short | awPaletteRgbWordsList [0x300] |
Win32 shell (window creation, message loop, exit paths and the guarded debug allocator) and the asteroid and mine hazard fields.
Address range 401000-402e7f; its string literals occupy 465048-465354.
Definition in file winmain.c.
| unsigned int AbortToDesktop | ( | void | ) |
Definition at line 665 of file winmain.c.
References AbortToDesktop(), hSingleInstanceSemaphore, nGuardedAllocationBytes, nGuardedAllocationPeakBytes, nGuardedAllocationTotalBytes, and szMemoryUsage.
Referenced by AbortToDesktop(), exit_squadron(), and WinMain().
| void add_hazard_field | ( | enum ObjectType | type, |
| FixedVector | center, | ||
| short | radius, | ||
| short | density ) |
Definition at line 461 of file winmain.c.
References add_hazard_field(), aHazardFields, HazardField::center, HazardField::density, HazardField::innerRadius, nCurrentHazardFieldTotal, HazardField::outerRadius, and HazardField::type.
Referenced by add_hazard_field(), and init_ship().
| void align | ( | short * | value, |
| short | quantum ) |
Definition at line 190 of file winmain.c.
References align().
Referenced by align(), and init_hazard().
| void * AllocateGuardedMemory | ( | unsigned int | size | ) |
Definition at line 1054 of file winmain.c.
References AllocateGuardedMemory(), GuardedAllocation::block, GuardedAllocation::next, nGuardedAllocationBytes, nGuardedAllocationPeakBytes, nGuardedAllocationTotalBytes, pGuardedAllocationHead, pGuardedAllocationTail, and GuardedAllocation::size.
Referenced by AllocateGuardedMemory(), and AllocateTaggedMemory().
| void approach | ( | short | obj | ) |
Definition at line 382 of file winmain.c.
References AddFixedVectors(), approach(), aShipFwdVec, aShipPositionsArray, aShipVelocity, point_at(), and ScaleFixedVector().
Referenced by approach(), and manage_hazard().
| short asteroid_velocity | ( | void | ) |
Definition at line 160 of file winmain.c.
References asteroid_velocity(), MinShort(), and RandomBelowOrEqual().
Referenced by asteroid_velocity(), and init_hazard().
Definition at line 478 of file winmain.c.
References aHazardFields, aShipPositionsArray, bIntroSecondaryScene, check_hazards(), nCurrentHazardFieldTotal, near_field(), pActiveHazardField, remove_all_hazards(), and start_hazard_field().
Referenced by auto_pilot_sequence(), check_hazards(), and house_keep().
Definition at line 1107 of file winmain.c.
References GuardedAllocation::block, CheckAllGuardedAllocations(), GuardedAllocation::next, pGuardedAllocationHead, ReportHeapGuardCorruption(), and GuardedAllocation::size.
Referenced by CheckAllGuardedAllocations().
Definition at line 513 of file winmain.c.
References bCockpitEnabled, bDirectDrawModeCascadeEnabled, bPlayerCollisionResponse, bPlayerVulnerable, bShowFrameRate, bShowKilrathiSagaCredits, CheckLauncherAndConfig(), nOriginDevUnlock, and ReadCheaterFlagFromRegistry().
Referenced by CheckLauncherAndConfig(), and WinMain().
| int CreateMainWindow | ( | HINSTANCE | instance, |
| HINSTANCE | previous, | ||
| int | showCommand ) |
Definition at line 685 of file winmain.c.
References bMainWindowAlive, CreateMainWindow(), DIBinstall(), hCurrentAppInstance, hMainWindow, hMainWindowDC, hPrevPointer, MainWindowProc(), PumpWindowMessages(), szMainWindowClassName, and szMainWindowTitle.
Referenced by CreateMainWindow(), and WinMain().
| short difficulty | ( | void | ) |
Definition at line 154 of file winmain.c.
References difficulty(), and nHazardReferenceSpeed.
Referenced by close_behind(), difficulty(), init_hazard(), and skill_check().
| short easy2see | ( | short | obj | ) |
Definition at line 83 of file winmain.c.
References apObjShapeArray, asObjectFlipArray, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, easy2see(), GetTransformedShapeBounds(), nCurrentViewCenterPosX, nCurrentViewCenterPosY, and stSpaceBufferViewport.
Referenced by easy2see(), and object_collision().
| void extra_hazard | ( | short | obj | ) |
Definition at line 375 of file winmain.c.
References aeObjectClass, extra_hazard(), OBJECT_CLASS_DUST, and OBJECT_CLASS_NULL.
Referenced by extra_hazard(), and update_star_field().
Definition at line 1147 of file winmain.c.
References GuardedAllocation::block, FreeGuardedAllocation(), GuardedAllocation::next, nGuardedAllocationBytes, pGuardedAllocationHead, pGuardedAllocationTail, ReportHeapGuardCorruption(), and GuardedAllocation::size.
Referenced by FreeGuardedAllocation(), and ReleasePacketHandle().
| HINSTANCE GetApplicationInstance | ( | void | ) |
Definition at line 1032 of file winmain.c.
References GetApplicationInstance(), and hCurrentAppInstance.
Referenced by GetApplicationInstance().
| unsigned int GetF1KeyLatch | ( | void | ) |
Definition at line 817 of file winmain.c.
References bF1KeyLatch, and GetF1KeyLatch().
Referenced by GetF1KeyLatch(), and HandleSpaceFlightControls().
| short GetJoystickButtons | ( | void | ) |
Definition at line 1005 of file winmain.c.
References aJoystickInfos, and GetJoystickButtons().
Referenced by GetJoystickButtons(), and ReadJoystickButtons().
| void GetJoystickDevCaps | ( | short | joystick, |
| unsigned short * | xMin, | ||
| unsigned short * | xMax, | ||
| unsigned short * | yMin, | ||
| unsigned short * | yMax ) |
Definition at line 1012 of file winmain.c.
References GetJoystickDevCaps(), and SystemDebugPrintf().
Referenced by GetJoystickDevCaps(), and LoadJoystickCalibrationFile().
| int __stdcall GetJoystickPosition | ( | int * | x, |
| int * | y, | ||
| unsigned int * | buttons, | ||
| short | joystick, | ||
| unsigned short | fallback ) |
Definition at line 969 of file winmain.c.
References aJoystickInfos, and GetJoystickPosition().
Referenced by GetJoystickPosition(), SampleBothJoysticks(), and SampleJoystickDevice().
| HDC GetMainWindowDeviceContext | ( | void | ) |
Definition at line 1048 of file winmain.c.
References GetMainWindowDeviceContext(), and hMainWindowDC.
Referenced by GetMainWindowDeviceContext().
| HWND GetMainWindowHandle | ( | void | ) |
Definition at line 1040 of file winmain.c.
References GetMainWindowHandle(), and hMainWindow.
Referenced by GetMainWindowHandle().
| void init_hazard | ( | short | obj, |
| FixedVector | position, | ||
| short | moving ) |
Definition at line 200 of file winmain.c.
References acHazardTravelTimeByView, acObjCollisionGraceTicks, AddFixedVectors(), align(), aShipFwdVec, aShipPositionsArray, aShipVelocity, asObjectCounterArray, asteroid_velocity(), bIntroSecondaryScene, cCurrentCockpitView, HazardField::center, difficulty(), distance_between_points(), init_hazard(), kilrathi_near(), MaxShort(), nActiveHazards, OBJECT_TYPE_ASTEROID1, OBJECT_TYPE_ASTEROID_FIELD, OBJECT_TYPE_SPACE_MINE, pActiveHazardField, point_at(), RandomBelow(), RandomBelowOrEqual(), ScaleFixedVector(), set_objects_data(), skew_randomly(), SubtractFixedVectors(), and HazardField::type.
Referenced by init_hazard(), and make_hazard().
| LRESULT CALLBACK MainWindowProc | ( | HWND | window, |
| UINT | message, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam ) |
Definition at line 823 of file winmain.c.
References bEscapePressedFlag, bF1KeyLatch, bHostPrimaryMouseButton, bHostSecondaryMouseButton, bKeyEventQueueEnabled, bMainWindowAlive, bPtrMovedByKeyboardState, hMainWindow, MainWindowProc(), nGuardedAllocationBytes, nGuardedAllocationPeakBytes, nGuardedAllocationTotalBytes, nHostMouseMessageX, nHostMouseMessageY, nSystemKeyDown, QueueInputEvent(), ReportSpaceFlightMaxFps(), SetInputKeyState(), SignalAudioMixerWakeEvent(), and szMemoryUsage.
Referenced by CreateMainWindow(), and MainWindowProc().
| short make_hazard | ( | void | ) |
Definition at line 361 of file winmain.c.
References find_vacant_3d_object(), init_hazard(), make_hazard(), and try_far_spot().
Referenced by make_hazard(), start_hazard_field(), and update_hazards().
| void make_shard | ( | short | asteroid, |
| FixedVector | direction ) |
Definition at line 105 of file winmain.c.
References acObjOwnersTable, AddFixedVectors(), alter_pitch(), alter_yaw(), aShipFwdVec, aShipPositionsArray, aShipVelocity, asObjectCollisionRadius, asObjectCounterArray, find_vacant_3d_object(), fix_objects_ijk(), make_shard(), OBJECT_TYPE_ROCK_CHUNK, RandomInRange(), real_velocity(), set_objects_data(), SetVectorFixedPoint(), and signed_random().
Referenced by hit_asteroid(), and make_shard().
| void manage_hazard | ( | short | obj, |
| short | slot ) |
Definition at line 396 of file winmain.c.
References aeObjectTypeList, approach(), asObjDistancesTable, asObjectScreenXList, manage_hazard(), nRenderedSpaceFrame, OBJECT_TYPE_SPACE_MINE, ok_hazard_spot(), real_velocity(), and remove_hazard().
Referenced by manage_hazard(), and update_hazards().
Definition at line 412 of file winmain.c.
References aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, aShipVelocity, HazardField::center, match_ship_to_eye(), nHazardReferenceSpeed, pActiveHazardField, and ScaleFixedVector().
Referenced by match_ship_to_eye(), and update_hazards().
| short near_field | ( | const HazardField * | field, |
| const FixedVector * | point ) |
Definition at line 280 of file winmain.c.
References HazardField::center, HazardField::innerRadius, IsPointWithinRange(), and near_field().
Referenced by check_hazards(), and near_field().
| short ok_hazard_spot | ( | short | obj | ) |
Definition at line 349 of file winmain.c.
References aShipPositionsArray, asObjectScreenXList, IsPointWithinRange(), ok_hazard_spot(), and rear_sphere().
Referenced by manage_hazard(), and ok_hazard_spot().
| unsigned int PumpWindowMessages | ( | void | ) |
Definition at line 740 of file winmain.c.
References bMainWindowAlive, bMainWindowMinimized, bWindowMessagePumpActive, DIBreInstall(), DIBslam(), DIBslamReal(), hMainWindow, init_player_input(), LogMemoryUsage(), nTickCount60Hz, pCurrentEventManagerPump, PumpWindowMessages(), and ShutdownGameWindow().
Referenced by AnimateScrambleWalk(), CheckEscaped(), CreateMainWindow(), funeral_sequence(), funeral_wingman(), GameFlow(), landing(), LaunchPlayerShip(), PlayScrambleHangarScene(), PollInputEvent(), PumpWindowMessages(), scramble(), ShowCarrierLaunchSequence(), ShowChalkBoard(), Title_Sequence(), ViewMedals(), and WaitForKeyAcknowledge().
| short rear_sphere | ( | void | ) |
Definition at line 342 of file winmain.c.
References find_ratio(), nHazardReferenceSpeed, and rear_sphere().
Referenced by ok_hazard_spot(), and rear_sphere().
Definition at line 141 of file winmain.c.
References abHazardObjects, pActiveHazardField, remove_all_hazards(), and remove_hazard().
Referenced by check_hazards(), free_3Space(), remove_all_hazards(), set_up_action_sphere(), start_hazard_field(), and Title_Sequence().
| void remove_hazard | ( | signed char | hazard | ) |
Definition at line 132 of file winmain.c.
References aiSoundEffectSourceActiveArray, MaxShort(), nActiveHazards, remove_hazard(), and remove_object().
Referenced by manage_hazard(), remove_all_hazards(), and remove_hazard().
Definition at line 1092 of file winmain.c.
References DIBpositionWindow(), and ReportHeapGuardCorruption().
Referenced by CheckAllGuardedAllocations(), FreeGuardedAllocation(), and ReportHeapGuardCorruption().
Definition at line 76 of file winmain.c.
References awPaletteRgbWordsList, DIBwholePaletteFromWords(), RestoreGamePalette(), and WaitForVerticalBlankThunk().
Referenced by death_sequence(), ejection_sequence(), funeral_sequence(), RestoreGamePalette(), ShowCampaignVictorySequence(), ShowMeanwhileTransition(), stranded_sequence(), and Title_Sequence().
Definition at line 61 of file winmain.c.
References awPaletteRgbWordsList, GetPaletteEntry(), and SaveGamePalette().
Referenced by LoadGamePaletteFile(), SaveGamePalette(), and ShowMeanwhileTransition().
| void ShowNoticeMessageBox | ( | const char * | text | ) |
Definition at line 657 of file winmain.c.
References DIBpositionWindow(), and ShowNoticeMessageBox().
Referenced by ShowNoticeMessageBox(), and Streamer_open().
Definition at line 638 of file winmain.c.
References DestroyGlobalDebugOverlayConsole(), DIBunInstall(), hMainWindow, hSingleInstanceSemaphore, nSessionEndTime, and ShutdownGameWindow().
Referenced by PumpWindowMessages(), and ShutdownGameWindow().
| void skew_randomly | ( | short | obj, |
| short | allowReverse ) |
Definition at line 166 of file winmain.c.
References aShipFwdVec, aShipRightVector, aShipUpVector, negate_vector(), RandomBelow(), and skew_randomly().
Referenced by init_hazard(), and skew_randomly().
| void start_hazard_field | ( | short | region | ) |
Definition at line 448 of file winmain.c.
References abHazardObjects, aHazardFields, make_hazard(), pActiveHazardField, remove_all_hazards(), and start_hazard_field().
Referenced by check_hazards(), start_hazard_field(), and Title_Sequence().
| short try_far_spot | ( | FixedVector * | spot, |
| short * | moving ) |
Definition at line 295 of file winmain.c.
References acHazardPitchRange, anObjectYawRotation, anObjPitchRot, aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, cCurrentCockpitView, copy_frame(), find_ratio(), IsPointWithinRange(), nCameraViewMode, pActiveHazardField, position_relative_ijk(), RandomBelow(), rotate_about_i(), rotate_about_j(), signed_random(), try_far_spot(), and within_field().
Referenced by make_hazard(), and try_far_spot().
Definition at line 426 of file winmain.c.
References abHazardObjects, bIntroSecondaryScene, make_hazard(), manage_hazard(), match_ship_to_eye(), nHazardReferenceSpeed, RandomBelowOrEqual(), real_velocity(), and update_hazards().
Referenced by update_hazards(), and update_star_field().
| void __stdcall WarpMouseTo | ( | short | x, |
| short | y ) |
Definition at line 501 of file winmain.c.
References SetMouseHomePosition(), stHostMouseState, stMouseCursorState, WarpMouseTo(), MouseCursorState::x, and MouseCursorState::y.
Referenced by BarracksScreen(), CentreMouseOnCurrentNavObjective(), InflightComputer(), player_input(), process_player_input(), RecRoom(), RunSpaceFlight(), SelectTrainSimMission(), Title_Sequence(), and WarpMouseTo().
| int WINAPI WinMain | ( | HINSTANCE | instance, |
| HINSTANCE | previous, | ||
| LPSTR | commandLine, | ||
| int | showCommand ) |
Definition at line 559 of file winmain.c.
References AbortToDesktop(), bIxAudioEnabled, bMainWindowMinimized, CheckLauncherAndConfig(), CreateDebugOverlayConsole(), CreateMainWindow(), DestroyGlobalDebugOverlayConsole(), DIBunInstall(), hMainWindow, hSingleInstanceSemaphore, InitGameClockEpoch(), InitializeAudioStreamer(), InitializeAudioSystem(), main(), MonoDebug_install(), nSessionEndTime, nSessionStartTime, pCurrentEventManagerPump, PromptInsertCorrectCd(), ServiceAudioStream(), Streamer_close(), void(), and WinMain().
Referenced by WinMain().
| short within_field | ( | const HazardField * | field, |
| const FixedVector * | point ) |
Definition at line 288 of file winmain.c.
References HazardField::center, HazardField::innerRadius, IsPointWithinRange(), and within_field().
Referenced by try_far_spot(), and within_field().
|
static |
Definition at line 26 of file winmain.c.
Referenced by try_far_spot().
|
static |
Definition at line 22 of file winmain.c.
Referenced by init_hazard().
| short awPaletteRgbWordsList[0x300] |
Definition at line 58 of file winmain.c.
Referenced by CachePaletteEntryFromWords(), DIBsetPalette(), RestoreGamePalette(), and SaveGamePalette().
| int bCockpitEnabled = 1 |
Definition at line 41 of file winmain.c.
Referenced by CheckLauncherAndConfig(), and RunSpaceFlight().
| int bDirectDrawModeCascadeEnabled = 1 |
Definition at line 37 of file winmain.c.
Referenced by CheckLauncherAndConfig(), DIBinstall(), DIBreInstall(), and main().
| volatile unsigned int bF1KeyLatch = 0 |
Definition at line 49 of file winmain.c.
Referenced by GetF1KeyLatch(), and MainWindowProc().
| int bIxAudioEnabled = 1 |
Definition at line 30 of file winmain.c.
Referenced by ClearStreamerTrigger(), ForceStreamerTrigger(), GetMusicStreamVolume(), GetStreamerTrigger(), InitializeAudioStreamer(), InitializeAudioSystem(), PlaySnowStaticSound(), playWAVE(), ServiceAudioStream(), SetMusicStreamVolume(), SetStreamerIntensity(), ShutdownAudioStreamer(), SignalAudioMixerWakeEvent(), StopSoundsUsingWave(), Streamer_close(), Streamer_open(), Streamer_play(), Streamer_stop(), Streamer_trigger(), UpdateStreamerStoppedFlag(), and WinMain().
| unsigned int bKeyEventQueueEnabled = 0 |
Definition at line 31 of file winmain.c.
Referenced by GameFlow(), MainWindowProc(), ReadTextInput(), RunTrainSim(), Title_Sequence(), and WaitForStreamInputKey().
| int bMainWindowAlive |
Definition at line 55 of file winmain.c.
Referenced by CreateMainWindow(), MainWindowProc(), and PumpWindowMessages().
| volatile int bMainWindowMinimized = 0 |
Definition at line 42 of file winmain.c.
Referenced by PumpWindowMessages(), and WinMain().
| int bShowFrameRate = 0 |
Definition at line 36 of file winmain.c.
Referenced by CheckLauncherAndConfig(), main(), and ThrottleFrameAndDrawFps().
| int bShowKilrathiSagaCredits = 0 |
Definition at line 35 of file winmain.c.
Referenced by CheckLauncherAndConfig(), and Title_Sequence().
| int bWindowMessagePumpActive = 0 |
Definition at line 48 of file winmain.c.
Referenced by PumpWindowMessages().
| HINSTANCE hCurrentAppInstance |
Definition at line 56 of file winmain.c.
Referenced by CreateMainWindow(), and GetApplicationInstance().
| HDC hMainWindowDC |
Definition at line 52 of file winmain.c.
Referenced by CreateMainWindow(), and GetMainWindowDeviceContext().
| HCURSOR hPrevPointer |
Definition at line 53 of file winmain.c.
Referenced by CreateMainWindow().
| short nActiveHazards = 0 |
Definition at line 19 of file winmain.c.
Referenced by init_hazard(), and remove_hazard().
| unsigned int nGuardedAllocationBytes = 0 |
Definition at line 33 of file winmain.c.
Referenced by AbortToDesktop(), AllocateGuardedMemory(), FreeGuardedAllocation(), and MainWindowProc().
| unsigned int nGuardedAllocationPeakBytes = 0 |
Definition at line 34 of file winmain.c.
Referenced by AbortToDesktop(), AllocateGuardedMemory(), and MainWindowProc().
| unsigned int nGuardedAllocationTotalBytes = 0 |
Definition at line 32 of file winmain.c.
Referenced by AbortToDesktop(), AllocateGuardedMemory(), and MainWindowProc().
| short nHazardReferenceSpeed = 0 |
Definition at line 18 of file winmain.c.
Referenced by difficulty(), match_ship_to_eye(), rear_sphere(), and update_hazards().
| unsigned int nSessionEndTime |
Definition at line 54 of file winmain.c.
Referenced by ShutdownGameWindow(), and WinMain().
| struct GuardedAllocation* pGuardedAllocationHead = 0 |
Definition at line 50 of file winmain.c.
Referenced by AllocateGuardedMemory(), CheckAllGuardedAllocations(), and FreeGuardedAllocation().
| char szMainWindowClassName[] = "Wing Commander" |
Definition at line 45 of file winmain.c.
Referenced by CreateMainWindow().
| char szMainWindowTitle[] = "Wing Commander" |
Definition at line 46 of file winmain.c.
Referenced by CreateMainWindow().