|
Wing Commander II
Reconstructed Win32 source (1996)
|
Main application loop and spaceflight frame. More...
#include "game.h"Go to the source code of this file.
Macros | |
| #define | MAIN_C |
Main application loop and spaceflight frame.
Definition in file main.c.
Definition at line 902 of file main.c.
References AcknowledgeModalMessage(), ConfigureInputPump(), FlushPendingInputEvents(), get_player_input(), PollJoystickButtonEvents(), and SetFrameTimerAndWait().
Referenced by AcknowledgeModalMessage(), ShowModalMessage(), and UpdateShipTurretGuns().
| void AdjustSpaceFramePeriod | ( | short | adjustment | ) |
Definition at line 60 of file main.c.
References AdjustSpaceFramePeriod(), g_nSpaceFramePeriod, MaxShort(), MinShort(), and ShowOnScreenMessage().
Referenced by AdjustSpaceFramePeriod(), close_behind(), and HandleSpaceFlightControls().
| short calculate_damage_level | ( | void | ) |
Definition at line 1890 of file main.c.
References ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, calculate_damage_level(), ObjectTypeData::damageCapacity, g_aasShipArmor, g_acObjectType, g_acShipDamage, g_aObjectTypeData, and g_asObjectDamage.
Referenced by calculate_damage_level(), ejection_sequence(), gametrack(), RunCampaignGameLoop(), StoreMissionResultsInCampaignGlobals(), update_lights(), and UpdateShipTurretGuns().
| short CheckHeap | ( | void | ) |
| unsigned int clear_view_buffer | ( | void | ) |
Definition at line 277 of file main.c.
References clear_view_buffer(), ClearViewport(), g_27_stViewScratchInfo, and g_cPrimaryViewBufferColour.
Referenced by clear_view_buffer(), close_behind(), death_sequence(), and Draw_3Space_Frame().
| short CtrlBreakHandler | ( | void | ) |
Definition at line 83 of file main.c.
References CtrlBreakHandler().
Referenced by CtrlBreakHandler().
| short Draw_3Space_Frame | ( | void | ) |
Definition at line 1732 of file main.c.
References clear_view_buffer(), Draw_3Space_Frame(), DrawSpaceSceneFrame(), g_nArcadeState, g_nFrameSkipCountdown, and Update_3Space().
Referenced by death_sequence(), Draw_3Space_Frame(), and UpdateShipTurretGuns().
| unsigned int DrawSpaceSceneFrame | ( | void | ) |
Definition at line 1645 of file main.c.
References BuildObjectDepthOrder(), draw_sorted_objects_to_buffer(), DrawSpaceSceneFrame(), g_1_asSpacePaletteFade, g_aeObjectClass, g_aSpaceExplosionFlashPalette, g_asShipManeuver, g_bJumpSequenceActive, g_cPrimaryViewBufferColour, g_nCurrentView, g_nFrameSkip, g_nFrameSkipCountdown, g_nRenderedSpaceFrame, g_nSpaceBlastFlashIncrement, g_nSpaceExplosionFlashActive, g_nSpacePaletteFadeMode, MANEUVER_WARPING_OUT, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, overlay_head_up_display(), place_exhaust_on_ships(), reposition_fixed_child_objects(), SetPaletteEntry(), transform_objects_to_your_view(), update_star_field(), and UpdateSpacePaletteFade().
Referenced by Draw_3Space_Frame(), DrawSpaceSceneFrame(), RenderSpaceViewFrame(), and UpdateShipTurretGuns().
Definition at line 232 of file main.c.
References CopyViewportContents(), CopyViewportRuns(), dump_buffer_to_screen(), g_101_stScrViewInfo, g_15_pScreenViewportGeometry, g_1_cStoredViewDisplayModeValue, g_27_stViewScratchInfo, g_nCockpitDisplayMode, g_nShowMemoryStatus, ShowMemoryStatusDebug(), and Viewport::top.
Referenced by close_behind(), death_sequence(), dump_buffer_to_screen(), and RenderSpaceViewFrame().
| void FadeFlightPaletteEntry | ( | short * | entry | ) |
Definition at line 316 of file main.c.
References FadeFlightPaletteEntry().
Referenced by close_behind(), FadeFlightPaletteEntry(), and house_keep().
| short FindNearestNavPoint | ( | short | ship | ) |
Definition at line 1753 of file main.c.
References FindNearestNavPoint(), g_aMissionNavPoints, g_nCurrentNavPoint, g_nCurStellarSystem, GetShipDistanceToNavPoint(), MissionNavPoint::proximityRadius, MissionNavPoint::systemIndex, and MissionNavPoint::type.
Referenced by abandoned(), FindNearestNavPoint(), ReleaseStaleNavTarget(), and UpdateShipTurretGuns().
| unsigned int fire_players_lasers | ( | void | ) |
Definition at line 608 of file main.c.
References fire_fixed_projectile_weapon(), fire_players_lasers(), g_acShipTarget, g_asObjectCounter, g_asShipWeaponEnergy, get_mode(), and SelectCockpitVduMode().
Referenced by close_behind(), fire_players_lasers(), HandleSpaceFlightControls(), and player_input().
Definition at line 208 of file main.c.
References EndCommMenu(), free_view_buffer(), free_viewport(), g_27_stViewScratchInfo, message_showing(), and Viewport::pixels.
Referenced by auto_pilot_sequence(), close_behind(), death_sequence(), free_3Space(), free_cockpit(), free_view_buffer(), get_right_shape(), HandleSpaceFlightControls(), InflightComputer(), initialize_cockpit(), InitializeCockpitResources(), load_all_slots(), new_sphere_shapes(), PromptToContinueCampaign(), RunSpaceFlight(), set_eye_direction_and_position(), and SetFleetOverviewView().
Definition at line 389 of file main.c.
References g_12_wInputDeviceButtonStatus, g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, g_bFlightButtonOneHeld, g_bFlightButtonTwoHeld, g_stCurrentFlightInput, g_wFlightInputButtonState, g_wSavedInputDeviceButtonState, get_player_input(), ReadCalibratedJoystick(), TranslatePolledInputEvent(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by AcknowledgeModalMessage(), close_behind(), get_player_input(), InflightComputer(), and InitializeSpaceFlightInput().
| short GetShipDistanceToNavPoint | ( | short | ship, |
| MissionNavPoint * | navPoint ) |
Definition at line 1743 of file main.c.
References ComputeVectorDelta(), FixedToShortSaturating(), g_aShipPosition, GetShipDistanceToNavPoint(), MissionNavPoint::position, and Vector_magnitude().
Referenced by FindNearestNavPoint(), GetShipDistanceToNavPoint(), and UpdateShipTurretGuns().
| short HandleSpaceFlightControls | ( | void | ) |
Definition at line 912 of file main.c.
References accelerate(), AdjustSpaceFramePeriod(), any_enemy(), auto_pilot_sequence(), BeginInflightReplayHook(), CalibrateJoystickInteractive(), Chosen_communicate_option(), ClearTargetCameraView(), CloseCommChoiceMenu(), EndCommMenu(), explode(), fire_missile(), fire_players_lasers(), FireTargetCameraGuns(), FlushInputEvents(), force_view(), free_view_buffer(), g_128_abPauseInputState, g_13_abPreviousPauseKeyStatuses, g_1_cStoredViewDisplayModeValue, g_26_bMouseCursorEnabled, g_27_nLastAltCommandScanNumberWord, g_27_stViewScratchInfo, g_2_bAltFHotkeyFlag, g_2_bAltHHotkey, g_39_bAltNumpadAddHotkeySwitch, g_4_bMenuBHotkey, g_6_bAltDChordState, g_6_bMenuTHotkeySwitch, g_78_bHighMemoryBuffersSetState, g_88_nEventRepeatDelayState, g_acPlayerComponentDamage, g_acShipTarget, g_aeObjectClass, g_aeShipObjective, g_anShipSpeed, g_anVolumeLevels, g_asObjectType, g_asShipSide, g_bAltNumpadSubtractShortcut, g_bDebugBreakEnabled, g_bDisplayWingmanTargetData, g_bFullScreenSpaceView, g_bJoystickCalibrationHotkey, g_bMenuAHotkey, g_bMissileCameraEnabled, g_bPauseInputActive, g_bSceneEscapeRequested, g_bTargetLockMode, g_bVideoImagesSuppressed, g_cCurrentKey, g_cPreviousKey, g_cRedColour, g_nArcadeState, g_nCockpitControlGoal, g_nCockpitControlState, g_nCockpitDisplayMode, g_nCommMenuChoiceCount, g_nCurrentView, g_nEnemyTauntCommandBase, g_nExternalViewShip, g_nMusicVolumeSetting, g_nOriginDevUnlock, g_nScreenHeight, g_nScreenWidth, g_nSelectedReleaseWeaponIndex, g_nSfxVolumeSetting, g_nTargetCameraFrame, g_nYourWingman, g_ucPrimaryTextColour, get_mode(), GetControlKeyState(), GetF1KeyLatch(), GetKeyboardModifiers(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), initialize_cockpit(), initialize_view_buffer(), InvalidateVduMode(), IsCockpitWeaponShapeLoaded(), IssueQuickCommCommand(), malf_sound(), message_showing(), new_view(), OBJECT_CLASS_SHIP, OBJECTIVE_HOLD_FORMATION, player_input(), players_flight_dynamics(), PlaySfxWaveFileByNumber(), RandomInRange(), ReportFramesSkipped(), SaveVolumeSettingsToRegistry(), SelectCockpitVduMode(), SelectNextExternalViewObject(), ServiceInputDevices(), SetFrameTimerPeriodDirect(), SetHudMessageText(), SetMessageDisplaySpeed(), SetMusicStreamVolume(), SetSoundEffectsVolume(), SetViewportRect(), ShowGamePausedBanner(), ShowOnScreenMessage(), ShowVersionBanner(), SIDE_KILRATHI, ToggleTargetCameraOverlay(), TryBeginStarSystemJump(), and your_afterburner().
Referenced by HandleSpaceFlightControls(), RunSpaceFlight(), and UpdateShipTurretGuns().
Definition at line 349 of file main.c.
References check_hazards(), ejection_sequence(), FadeFlightPaletteEntry(), FlushSoundEffectsAndLog(), g_12_abCockpitLightGoalTable, g_4_nSevereDmgWarningSfxHandle, g_9_aasCockpitHitPaletteFades, g_nCannedSceneMode, g_nCurrentView, g_nEjectionSequenceState, g_nHazardFieldCount, g_nPendingEjectionSequenceCount, g_nSpaceFrame, g_nTrainSimActive, g_ucPendingEjectionTransition, house_keep(), ReleaseStaleNavTarget(), SetPaletteEntry(), and void().
Referenced by close_behind(), house_keep(), and Update_3Space().
Definition at line 217 of file main.c.
References AllocateViewport(), g_27_stViewScratchInfo, g_bSpaceViewBufferEnabled, g_cPrimaryViewBufferColour, initialize_view_buffer(), Viewport::pixels, and ReportOutOfMemoryAndExit().
Referenced by auto_pilot_sequence(), close_behind(), ejection_sequence(), get_right_shape(), HandleSpaceFlightControls(), initialize_cockpit(), initialize_view_buffer(), new_sphere_shapes(), RunSpaceFlight(), and set_eye_direction_and_position().
| short IsInputEventQueued | ( | int | type | ) |
Definition at line 657 of file main.c.
References FindQueuedInputEvent(), and IsInputEventQueued().
Referenced by DosMemmove(), HandleFleetOverviewInput(), IsInputEventQueued(), player_input(), and PollPersonnelMenuInput().
| short LogMemoryUsage | ( | void | ) |
Definition at line 24 of file main.c.
References ConfigureDefaultSpacePalette(), EMShutDown(), FinalizeInputManagerHook(), g_14_nCurrentGraphicsModeDetectedValue, g_bParentDirectorySelected, g_bSpeechEnabledFlag, g_dwInitialSpareMemory, g_nCurrentLevel, g_nCurSeries, g_nOriginDevUnlock, g_nShowMemoryStatus, g_pMemoryAdjustment, g_szCannedSceneTapeFile, GetLargestFreeMemoryBlockByType(), LogMemoryUsage(), MessagePumpHook(), ShutdownSoundBlaster(), and StopMusicIfDriverActive().
Referenced by close_behind(), EMStartUp(), exit_squadron(), LogMemoryUsage(), PumpWindowMessages(), RecordCannedSceneObjectEvent(), RecordCannedSceneObjectState(), ReportPacketLoadError(), and RunGameApplication().
| short MeasureMessageWidth | ( | const char * | text | ) |
Definition at line 895 of file main.c.
References g_cMessageSpeed, MeasureMessageWidth(), and MinShort().
Referenced by MeasureMessageWidth(), real_vid_transmit(), ShowOnScreenMessage(), and UpdateShipTurretGuns().
| short player_input | ( | void | ) |
Definition at line 665 of file main.c.
References accelerate(), Viewport::bottom, InputDeviceSample::buttons, fire_players_lasers(), MouseCursorState::frame, g_10_bPlayerInputActive, g_10_stPrevFlightControls, g_19_bPolledFlightInputQueued, g_1_bDiscreteFlightInputWaiting, g_27_stViewScratchInfo, g_37_stPersonnelMousePointerState, g_6_stHostMouseTextBlock, g_6_wQueuedButtonsState, g_aeSpecialManeuver, g_anFlightInput, g_anPreviousFlightInput, g_asMousePitchThresholds, g_asMouseYawThresholds, g_bMouseFireButtonLatched, g_bMouseMoveEventQueued, g_bSecondaryMouseButtonHeld, g_cCurrentKey, g_cPreviousKey, g_nCockpitControlGoal, g_nCockpitControlState, g_nMousePitchInput, g_nMouseYawInput, g_stCurrentFlightInput, GetNextInputEvent(), IsInputEventQueued(), Viewport::left, InputEventState::modifiers, player_input(), PollKeyboardState(), HostMouseMessage::primaryButton, process_player_input(), Viewport::right, HostMouseMessage::secondaryButton, ServiceInputDevices(), SetPersonnelMousePosition(), SPECIAL_MANEUVER_AFTERBURNER, InputEventState::status, Viewport::top, InputEventState::value, InputDeviceSample::x, InputEventState::x, MouseCursorState::x, InputDeviceSample::y, InputEventState::y, and MouseCursorState::y.
Referenced by close_behind(), HandleSpaceFlightControls(), and player_input().
Definition at line 620 of file main.c.
References g_acObjectType, g_aeSpecialManeuver, g_anFlightInput, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_aObjectTypeData, g_asObjectCounter, players_flight_dynamics(), SPECIAL_MANEUVER_BLOWING_UP, and SPECIAL_MANEUVER_NONE.
Referenced by close_behind(), HandleSpaceFlightControls(), and players_flight_dynamics().
Definition at line 442 of file main.c.
References Viewport::bottom, g_27_stViewScratchInfo, g_anFlightInput, g_cCurrentKey, g_cPreviousKey, g_nCockpitControlState, GetShiftKeyState(), Viewport::left, process_player_input(), Viewport::right, SetPersonnelMousePosition(), and Viewport::top.
Referenced by close_behind(), player_input(), and process_player_input().
Definition at line 283 of file main.c.
References CopyViewportContents(), DIBslamReal(), g_101_stScrViewInfo, g_nShowMemoryStatus, g_stSecondaryViewBufferBlock, MarkDibDirty(), RefreshMemoryStatusOverlay(), ShowMemoryStatusDebug(), and WaitForVerticalBlankThunk().
Referenced by AnimateTitleOrchestra(), close_behind(), DrawCampaignChalkboardFrame(), InitializeCampaignChalkboardScreen(), LocateLegacySaveGame(), PlayTitleConductorCue(), PollCampaignChalkboardMenu(), PushTitleOrchestraAway(), RefreshMemoryStatusOverlay(), RevealTitleLogo(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleMenuInputLoop(), RunTitleScreen(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), ShowNoTransferablePilots(), and ShowVictoryScreen().
| unsigned int ReleaseStaleNavTarget | ( | void | ) |
Definition at line 1769 of file main.c.
References FindNearestNavPoint(), g_nCurrentNavPoint, ReleaseStaleNavTarget(), and set_up_action_sphere().
Referenced by auto_pilot_sequence(), house_keep(), ReleaseStaleNavTarget(), and UpdateShipTurretGuns().
Definition at line 1705 of file main.c.
References check_message(), ClearHudMessageDisplay(), ClearViewport(), DrawSpaceSceneFrame(), dump_buffer_to_screen(), g_27_stViewScratchInfo, g_cPrimaryViewBufferColour, g_nCockpitDisplayMode, g_nCurrentView, g_pszDisplayedHudMessage, g_pszPendingHudMessage, RenderSpaceViewFrame(), RestoreCockpitExplosionIfVisible(), and RestoreTransientCockpitGraphics().
Referenced by RenderSpaceViewFrame(), RunSpaceFlight(), UpdateShipTurretGuns(), and visit_the_cinema().
| void RunGameApplication | ( | short | argc, |
| char ** | argv ) |
Definition at line 89 of file main.c.
References AllocateTaggedMemory(), BarracksScreen(), PilotNameVariables::callsign, PilotProfile::callsign, CampaignGlobals::field_08, PilotProfile::field_5e, g_10_nMenuDarkColour, g_19_bStoredHighMemoryEnabled, g_1_nResourcePaletteState, g_3_nOptionMessageColour, g_5_nStorageAdjustmentKbValue, g_bDeveloperCampaignReady, g_bDirectCampaignSelection, g_bMemoryAdjustmentEnabled, g_bRewritePacketExtensions, g_bSceneEscapeRequested, g_nArcadeState, g_nCurrentLevel, g_nCurSeries, g_nDirectSeries, g_nMenuSelectedCol, g_nMissionEntryNavOverride, g_nOriginDevUnlock, g_nSelectedCampaignSlot, g_pCampaignGlobals, g_pInitialArguments, g_pMemoryAdjustment, g_stCurrentPilotProfile, g_stDefaultPilotProfile, g_stDirectMissionSelection, g_stPilotNameVariables, init_mission(), InitializeCampaignConstellationState(), InitializeNewPilotCampaign(), LoadOriginFxDrivers(), LoadSelectedPilotCampaign(), LoadTemporaryCampaignGlobals(), LoadWingCmdrCfgFile(), LogMemoryUsage(), main(), PilotProfile::mission, RunGameApplication(), RunPilotDatabaseMenu(), RunSelectedCampaign(), RunSpaceFlight(), RunTitleScreen(), SaveAndFreeTemporaryCampaignGlobals(), PilotProfile::series, and SetMenuInputPump().
Referenced by close_behind(), RunGameApplication(), and WinMain().
| int RunSpaceFlight | ( | short | entryNavPoint | ) |
Definition at line 1778 of file main.c.
References Viewport::bottom, ConfigureInputPump(), MouseCursorState::context, copy_frame(), DIBslamReal(), find_objective(), FinishCannedScenePlayback(), flag_objective(), FlushInputEvents(), force_view(), free_inflight_music(), free_view_buffer(), g_13_stMissionHeaderBlock, g_18_nHudMessageColour, g_18_nInterfaceEventMode, g_1_bSpaceFlightActive, g_1_cStoredViewDisplayModeValue, g_27_stViewScratchInfo, g_37_stPersonnelMousePointerState, g_5_nCannedSceneFrameCount, g_6_bMissionWingmanState, g_88_nEventRepeatDelayState, g_acMissionShipStatusFlagsBytes, g_aMissionShips, g_bFullScreenSpaceView, g_bJumpSequenceActive, g_bMissionDeathSequencePending, g_bRenderingSpaceFrame, g_nArcadeState, g_nCannedSceneMode, g_nCannedSceneRecordedFrameCountNumber, g_nCockpitControlGoal, g_nCockpitControlState, g_nCockpitDisplayMode, g_nFrameSkipCountdown, g_nScreenHeight, g_nScreenWidth, g_nSpaceExplosionFlashActive, g_nSpaceFramePeriod, g_pszPendingHudMessage, HandleSpaceFlightControls(), init_inflight_music(), initialize_cockpit(), initialize_view_buffer(), InitializeSpaceFlightInput(), Viewport::left, MarkDibDirty(), MissionShipRecord::navPoint, new_view(), MissionHeader::playerMissionShip, ProcessCannedSceneInput(), ReleaseSceneMusicPacket(), RenderSpaceViewFrame(), ResetCannedSceneRecording(), ResetCockpitPaletteEntries(), Viewport::right, RunSpaceFlight(), set_up_action_sphere(), SetDefaultFrameTiming(), SetFrameTimerPeriodDirect(), SetHudTextColour(), SetInputViewport(), SetPersonnelMousePosition(), SetSpaceFlightFrameTiming(), SetViewportRect(), Viewport::top, Update_3Space(), update_cockpit(), InputPumpContext::viewport, and WaitForFrameTick().
Referenced by RunCampaignGameLoop(), RunGameApplication(), RunSpaceFlight(), and UpdateShipTurretGuns().
Definition at line 261 of file main.c.
References g_aeObjectClass, g_cViewObject, OBJECT_CLASS_SHIP, and SelectNextExternalViewObject().
Referenced by close_behind(), HandleSpaceFlightControls(), ProcessCannedSceneInput(), and SelectNextExternalViewObject().
| void SetPersonnelCursorPosition | ( | int | x, |
| int | y, | ||
| short | unused1, | ||
| short | unused2 ) |
Definition at line 16 of file main.c.
References g_37_stPersonnelMousePointerState, SetPersonnelCursorPosition(), MouseCursorState::x, and MouseCursorState::y.
Referenced by KeyboardMousePump(), and SetPersonnelCursorPosition().
Definition at line 309 of file main.c.
References g_1_asSpacePaletteFade, g_nCurrentView, and TriggerPlayerHitPaletteFlash().
Referenced by close_behind(), inflict_damage(), and TriggerPlayerHitPaletteFlash().
Definition at line 294 of file main.c.
References CheckAllGuardedAllocations(), g_nArcadeState, g_nCannedSceneMode, g_nSpaceFrame, house_keep(), house_keep_objects(), servicetrack(), set_eye_direction_and_position(), Update_3Space(), and update_objects_in_space().
Referenced by auto_pilot_sequence(), close_behind(), Draw_3Space_Frame(), RunSpaceFlight(), Update_3Space(), and visit_the_cinema().
Definition at line 327 of file main.c.
References ClearViewport(), g_1_asSpacePaletteFade, g_27_stViewScratchInfo, g_bViewportDirty, g_cPrimaryViewBufferColour, g_cRedColour, g_nSpacePaletteFadeMode, SetPaletteEntry(), and UpdateSpacePaletteFade().
Referenced by close_behind(), DrawSpaceSceneFrame(), and UpdateSpacePaletteFade().
| int g_10_bPlayerInputActive |
Definition at line 2013 of file main.c.
Referenced by player_input().
| short g_10_nMenuDarkColour |
Definition at line 2008 of file main.c.
Referenced by DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), HighlightPersonnelFileSlot(), HighlightTransferredPilot(), LocateLegacySaveGame(), RunGameApplication(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), and SelectTransferredPilot().
| InputDeviceSample g_10_stPrevFlightControls |
Definition at line 1996 of file main.c.
Referenced by HandleFleetOverviewInput(), and player_input().
|
extern |
Definition at line 2554 of file eventmgr.c.
Referenced by HandleSpaceFlightControls().
|
extern |
Definition at line 2556 of file eventmgr.c.
Referenced by HandleSpaceFlightControls().
| short g_19_bPolledFlightInputQueued |
Definition at line 2010 of file main.c.
Referenced by HandleFleetOverviewInput(), and player_input().
| short g_1_bDiscreteFlightInputWaiting |
Definition at line 1999 of file main.c.
Referenced by HandleFleetOverviewInput(), and player_input().
| int g_1_bSpaceFlightActive |
Definition at line 2004 of file main.c.
Referenced by PlayRawSpeechBuffer(), RunSpaceFlight(), and ServiceSoundSystem().
| short g_1_nResourcePaletteState |
Definition at line 2000 of file main.c.
Referenced by death_sequence(), ejection_sequence(), free_3Space_objects(), free_cockpit(), free_ship(), InitializeCockpitResources(), load_common_3Space_objects(), load_ship(), and RunGameApplication().
| short g_2_bFleetMouseMovePosted |
Definition at line 2002 of file main.c.
Referenced by HandleFleetOverviewInput().
| InputEvent g_3_aInputEventArray[0x100] |
Definition at line 2012 of file main.c.
Referenced by AllocateInputEvent(), and ReleaseInputEvent().
| short g_3_nOptionMessageColour |
Definition at line 2001 of file main.c.
Referenced by RunGameApplication(), and RunPilotSaveLoadMenu().
| int g_anVolumeLevels[11] |
Definition at line 1930 of file main.c.
Referenced by HandleSpaceFlightControls().
| short g_asMousePitchThresholds[6] |
Definition at line 1969 of file main.c.
Referenced by player_input().
| short g_asMouseYawThresholds[6] |
Definition at line 1966 of file main.c.
Referenced by player_input().
| short g_aSpaceExplosionFlashPalette[13][3] |
Definition at line 1977 of file main.c.
Referenced by DrawSpaceSceneFrame(), and house_keep_objects().
| short g_bCarrierLandingEnabled = 1 |
Definition at line 1945 of file main.c.
Referenced by house_keep_objects().
| int g_bFlightButtonOneHeld = 0 |
Definition at line 1964 of file main.c.
Referenced by get_player_input().
| int g_bFlightButtonTwoHeld = 0 |
Definition at line 1963 of file main.c.
Referenced by get_player_input().
| int g_bFullScreenSpaceView = 1 |
Definition at line 1928 of file main.c.
Referenced by HandleSpaceFlightControls(), and RunSpaceFlight().
| short g_bMapPrimaryInputQueued |
Definition at line 1997 of file main.c.
Referenced by HandleFleetOverviewInput().
| signed char g_bMouseMoveEventQueued = 0 |
Definition at line 1974 of file main.c.
Referenced by player_input().
| signed char g_bParentDirectorySelected = 0 |
Definition at line 1950 of file main.c.
Referenced by LogMemoryUsage().
| short g_bPlayerCollisionEnabled = 1 |
Definition at line 1947 of file main.c.
Referenced by CheckLauncherAndConfig(), main(), object_collision(), and visit_the_cinema().
| short g_bPlayerDamageEnabled = 1 |
Definition at line 1946 of file main.c.
Referenced by CheckLauncherAndConfig(), inflict_damage(), main(), pilot_hit(), ResolveObjectDestruction(), and visit_the_cinema().
| int g_bRenderingSpaceFrame = 0 |
Definition at line 1992 of file main.c.
Referenced by CopyViewportContents(), and RunSpaceFlight().
| signed char g_bSecondaryMouseButtonHeld = 0 |
Definition at line 1972 of file main.c.
Referenced by player_input().
| short g_bSpaceViewBufferEnabled = 0 |
Definition at line 1956 of file main.c.
Referenced by ejection_sequence(), free_3Space(), initialize_cockpit(), and initialize_view_buffer().
| short g_bViewportDirty = 0 |
Definition at line 1942 of file main.c.
Referenced by ApplyCannedSceneObjectEventRecord(), CompleteStarSystemJump(), house_keep_objects(), unwarp(), UpdateSpacePaletteFade(), and warp().
| int g_nArcadeState = 0 |
Definition at line 1938 of file main.c.
Referenced by auto_pilot_sequence(), check_stranded(), death_sequence(), Draw_3Space_Frame(), ejection_sequence(), FinishCannedScenePlayback(), HandleSpaceFlightControls(), house_keep_objects(), InitializeCampaignConstellationState(), pilot_hit(), ProcessMissionWaveCommands(), ResolveObjectDestruction(), RunCampaignGameLoop(), RunGameApplication(), RunSpaceFlight(), StoreMissionResultsInCampaignGlobals(), and Update_3Space().
| short g_nCockpitCameraObject = 0 |
Definition at line 1943 of file main.c.
Referenced by set_eye_direction_and_position().
| short g_nCockpitControlGoal = 0 |
Definition at line 1965 of file main.c.
Referenced by HandleFleetOverviewInput(), HandleSpaceFlightControls(), player_input(), and RunSpaceFlight().
| short g_nCockpitControlState = 0 |
Definition at line 1958 of file main.c.
Referenced by HandleFleetOverviewInput(), HandleSpaceFlightControls(), overlay_head_up_display(), player_input(), process_player_input(), RestoreTransientCockpitGraphics(), and RunSpaceFlight().
| int g_nCockpitDisplayMode = 0 |
Definition at line 1929 of file main.c.
Referenced by auto_pilot_sequence(), CopyViewportContents(), draw_3d_scanner(), draw_cockpit_lights(), dump_buffer_to_screen(), HandleSpaceFlightControls(), initialize_cockpit(), RenderSpaceViewFrame(), RunSpaceFlight(), set_eye_direction_and_position(), set_up_screen_viewport(), update_cockpit(), update_VDUs(), UpdateDamageDisplay(), and vid_transmit().
| short g_nCurrentLevel |
Definition at line 2009 of file main.c.
Referenced by GetAdaptiveTurnRate(), LogMemoryUsage(), RunCampaignGameLoop(), and RunGameApplication().
| short g_nCurSeries |
Definition at line 2005 of file main.c.
Referenced by GetAdaptiveTurnRate(), LogMemoryUsage(), RunCampaignGameLoop(), and RunGameApplication().
| short g_nDirectSeries = 1 |
Definition at line 1954 of file main.c.
Referenced by main(), RunCampaignGameLoop(), and RunGameApplication().
| short g_nFrameSkip = 0 |
Definition at line 1940 of file main.c.
Referenced by AnimateTitleOrchestra(), DrawSpaceSceneFrame(), LoadOriginFxDrivers(), PlayTitleConductorCue(), PushTitleOrchestraAway(), ReportFramesSkipped(), and RevealTitleLogo().
| short g_nFrameSkipCountdown = 1 |
Definition at line 1939 of file main.c.
Referenced by AnimateTitleOrchestra(), death_sequence(), Draw_3Space_Frame(), DrawCutsceneSprite(), DrawSpaceSceneFrame(), ExecuteCutsceneSequence(), PlayTitleConductorCue(), PresentCutsceneFrame(), PushTitleOrchestraAway(), RevealTitleLogo(), and RunSpaceFlight().
| short g_nMenuSelectedCol |
Definition at line 2007 of file main.c.
Referenced by DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), HighlightPersonnelFileSlot(), HighlightTransferredPilot(), RunGameApplication(), RunPilotDatabaseMenu(), and RunPilotSaveLoadMenu().
| short g_nMissionEntryNavOverride = -1 |
Definition at line 1951 of file main.c.
Referenced by prepare_mission(), and RunGameApplication().
| short g_nMousePitchInput = 0 |
Definition at line 1976 of file main.c.
Referenced by player_input().
| short g_nMouseYawInput = 0 |
Definition at line 1975 of file main.c.
Referenced by player_input().
| int g_nMusicVolumeSetting = 0x14 |
Definition at line 1935 of file main.c.
Referenced by HandleSpaceFlightControls(), LoadVolumeSettingsFromRegistry(), and SaveVolumeSettingsToRegistry().
| short g_nOriginDevUnlock = 0 |
Definition at line 1944 of file main.c.
Referenced by CheckLauncherAndConfig(), FetchDiskPacketRetrying(), HandleSpaceFlightControls(), HandleUnsupportedManeuver(), LoadOriginFxDrivers(), LoadPacketAllocated(), LoadPacketIntoBuffer(), LogMemoryUsage(), main(), perform_maneuver(), ReportPacketLoadError(), RunCampaignChalkboardMenu(), RunCampaignGameLoop(), RunCutsceneScript(), RunGameApplication(), RunPilotSaveLoadMenu(), and visit_the_cinema().
| int g_nSfxVolumeSetting = 0x14 |
Definition at line 1934 of file main.c.
Referenced by HandleSpaceFlightControls(), LoadVolumeSettingsFromRegistry(), and SaveVolumeSettingsToRegistry().
| short g_nShowMemoryStatus = 0 |
Definition at line 1948 of file main.c.
Referenced by AppendPacketLoadDebugLog(), dump_buffer_to_screen(), ejection_sequence(), LoadOriginFxDrivers(), LogMemoryUsage(), main(), RefreshMemoryStatusOverlay(), ReleaseSpaceflightResources(), and RunCampaignGameLoop().
| short g_nSpaceBlastFlashIncrement |
Definition at line 2006 of file main.c.
Referenced by DrawSpaceSceneFrame(), and house_keep_objects().
| short g_nSpaceFramePeriod = 4 |
Definition at line 1941 of file main.c.
Referenced by AdjustSpaceFramePeriod(), and RunSpaceFlight().
| int g_nTrainSimActive = 0 |
Definition at line 1937 of file main.c.
Referenced by auto_pilot_sequence(), death_sequence(), draw_nav_pointer(), house_keep(), npc_communication(), object_intelligence(), RunCampaignGameLoop(), send_message(), set_up_next_wave(), and vid_equiv().
| char* g_pInitialArguments[31] |
Definition at line 2003 of file main.c.
Referenced by LoadWingCmdrCfgFile(), and RunGameApplication().
| void* g_pMemoryAdjustment = 0 |
Definition at line 1949 of file main.c.
Referenced by LogMemoryUsage(), and RunGameApplication().
| InputDeviceSample g_stCurrentFlightInput = { 0 } |
Definition at line 1959 of file main.c.
Referenced by get_player_input(), HandleFleetOverviewInput(), and player_input().
| struct DirectMissionSelection g_stDirectMissionSelection = { 0, 0 } |
Definition at line 1953 of file main.c.
Referenced by main(), RunCampaignGameLoop(), and RunGameApplication().
| short g_wFlightInputButtonState = 0 |
Definition at line 1961 of file main.c.
Referenced by get_player_input().