|
Wing Commander II
Reconstructed Win32 source (1996)
|
Campaign start, continue prompt and game loop. More...
#include "game.h"Go to the source code of this file.
Functions | |
| void | InitializeNewPilotCampaign (short campaignSlot) |
| short | RunCampaignContinuePromptLoop (unsigned char *promptShapes, unsigned char *fieldShape, short promptFrame) |
| short | PromptToContinueCampaign (short promptFrame) |
| void | ReleaseSpaceflightResources (void) |
| short | RunCampaignGameLoop (short campaignSlot) |
| void | LoadStartingCampaignGlobals (short campaign) |
| short | RunSelectedCampaign (void) |
Variables | |
| PilotProfile | g_stDefaultPilotProfile = { 0 } |
| short | g_bNewPilotCampaignInitialized = 0 |
| short | g_bDeveloperCampaignReady = 1 |
| static char | g_szStartingCampaignGlobalsFile [] = "startglb.000" |
| short | g_nSelectedStartingCampaign |
| short | g_nSelectedCampaignSlot |
Campaign start, continue prompt and game loop.
Definition in file campaign.c.
| void InitializeNewPilotCampaign | ( | short | campaignSlot | ) |
Definition at line 14 of file campaign.c.
References FadeViewportPaletteToColour(), g_2_stModalSourceWindow, g_bNewPilotCampaignInitialized, g_nSelectedCampaignSlot, g_nSelectedStartingCampaign, g_pCampaignGlobals, InitializeNewPilotCampaign(), LoadStartingCampaignGlobals(), LoadTemporaryCampaignGlobals(), CampaignGlobals::mission, ReleasePacketSlot(), ReportFatalErrorCode(), ResetGameTextContexts(), RestoreGamePalette(), RunCampaignScript(), SaveAndFreeTemporaryCampaignGlobals(), and CampaignGlobals::series.
Referenced by InitializeNewPilotCampaign(), and RunGameApplication().
| void LoadStartingCampaignGlobals | ( | short | campaign | ) |
Definition at line 337 of file campaign.c.
References g_pCampaignGlobals, g_szStartingCampaignGlobalsFile, LoadStartingCampaignGlobals(), and LoadWholeDataFile().
Referenced by InitializeNewPilotCampaign(), LoadStartingCampaignGlobals(), RunCampaignGameLoop(), and RunPilotDatabaseMenu().
| short PromptToContinueCampaign | ( | short | promptFrame | ) |
Definition at line 60 of file campaign.c.
References AllocateViewport(), Viewport::bottom, ClearInputPump(), ClearViewport(), DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), FetchDiskPacketRetrying(), free_view_buffer(), free_viewport(), FreePacketAndClear(), g_cSecondaryViewBufferColour, g_pConstellationSprite, g_stSecondaryViewBufferBlock, init_constellation(), InitializeConstellationField(), Viewport::left, PromptToContinueCampaign(), ReportFatalErrorCode(), Viewport::right, RunCampaignContinuePromptLoop(), SetInputViewport(), SetMenuInputPump(), StopMusicUnlessSuppressed(), and Viewport::top.
Referenced by PromptToContinueCampaign(), and RunCampaignGameLoop().
Definition at line 114 of file campaign.c.
References free_3Space(), free_all_slots(), free_cockpit(), g_36_apTextGlyphs, g_bCockpitResourcesActive, g_nShowMemoryStatus, ReleasePacketHandle(), ReleaseSpaceflightResources(), remove_nav_pointer(), ShowMemoryStatusDebug(), and WaitForAnyInputPress().
Referenced by ejection_sequence(), ReleaseSpaceflightResources(), and RunCampaignGameLoop().
| short RunCampaignContinuePromptLoop | ( | unsigned char * | promptShapes, |
| unsigned char * | fieldShape, | ||
| short | promptFrame ) |
Definition at line 34 of file campaign.c.
References CopyViewportContents(), DisableMouseCursorDrawing(), DrawConstellationField(), DrawSpriteDefault(), EnableMouseCursorDrawing(), g_101_stScrViewInfo, g_stSecondaryViewBufferBlock, PollSceneHotspotInput(), RunCampaignContinuePromptLoop(), and WaitForVerticalBlankThunk().
Referenced by PromptToContinueCampaign(), and RunCampaignContinuePromptLoop().
| short RunCampaignGameLoop | ( | short | campaignSlot | ) |
Definition at line 136 of file campaign.c.
References AllocateScenePointerTable(), CampaignGlobals::arcadeState, calculate_damage_level(), check_stranded(), clear_cockpit_damage(), ClearInputPump(), CampaignGlobals::damageLevel, death_sequence(), ejection_sequence(), CampaignGlobals::field_08, CampaignGlobals::field_0c, CampaignGlobals::field_0e, PilotProfile::field_41, PilotProfile::field_43, FreePacketAndClear(), g_13_pActiveCutscenePixelsAddress, g_1_pCampaignDataBase, g_36_apTextGlyphs, g_36_cPilotKillCountValue, g_39_pCurrentCampaignDataOffset, g_6_bCampaignFlightRunning, g_asShipSide, g_bCutsceneViewportPreallocated, g_bDeveloperCampaignReady, g_bDirectCampaignSelection, g_bFriendlyFireWarningIssued, g_bNewPilotCampaignInitialized, g_bPumpMessagesDuringLoad, g_nArcadeState, g_nCurrentLevel, g_nCurSeries, g_nDirectSeries, g_nOriginDevUnlock, g_nShowMemoryStatus, g_nTrainSimActive, g_pCampaignGlobals, g_pCutsceneCockpitPalette, g_pPilotStatus, g_stCurrentPilotProfile, g_stDirectMissionSelection, GetAvailableMainMemory(), init_mission(), InitializeCampaignChalkboardScreen(), InitializeCampaignConstellationState(), LoadSelectedPilotCampaign(), LoadStartingCampaignGlobals(), LoadTemporaryCampaignGlobals(), CampaignGlobals::mission, PilotProfile::mission, OpenDiskDataFile(), CampaignGlobals::previousMission, CampaignGlobals::previousSeries, PromptToContinueCampaign(), ReleasePacketHandle(), ReleasePacketSlot(), ReleaseSceneMusicPacket(), ReleaseSpaceflightResources(), ResetGameTextContexts(), RunCampaignChalkboardMenu(), RunCampaignGameLoop(), RunCampaignScript(), RunSpaceFlight(), SaveAndFreeTemporaryCampaignGlobals(), CampaignGlobals::series, PilotProfile::series, CampaignGlobals::shipMissionFlags, ShowMemoryStatusDebug(), ShowPlayerEjectionSequence(), ShowPlayerStrandingSequence(), StoreMissionResultsInCampaignGlobals(), and WaitForAnyInputPress().
Referenced by RunCampaignGameLoop(), and RunSelectedCampaign().
| short RunSelectedCampaign | ( | void | ) |
Definition at line 346 of file campaign.c.
References g_nSelectedCampaignSlot, RunCampaignGameLoop(), and RunSelectedCampaign().
Referenced by RunGameApplication(), and RunSelectedCampaign().
| short g_bDeveloperCampaignReady = 1 |
Definition at line 10 of file campaign.c.
Referenced by RunCampaignGameLoop(), and RunGameApplication().
| short g_bNewPilotCampaignInitialized = 0 |
Definition at line 9 of file campaign.c.
Referenced by DrawCampaignChalkboardFrame(), InitializeCampaignChalkboardScreen(), InitializeNewPilotCampaign(), RunCampaignGameLoop(), and RunTitleScreen().
| short g_nSelectedCampaignSlot |
Definition at line 354 of file campaign.c.
Referenced by DrawNavLocationReadout(), ejection_sequence(), InitializeConstellationObject(), InitializeNewPilotCampaign(), LoadAlternateShipType(), LoadMissionData(), LoadOriginFxDrivers(), RunGameApplication(), and RunSelectedCampaign().
| short g_nSelectedStartingCampaign |
Definition at line 353 of file campaign.c.
Referenced by InitializeNewPilotCampaign(), and main().
| PilotProfile g_stDefaultPilotProfile = { 0 } |
Definition at line 8 of file campaign.c.
Referenced by OpenDiskDataFile(), RunGameApplication(), and RunPilotSaveLoadMenu().
|
static |
Definition at line 11 of file campaign.c.
Referenced by LoadStartingCampaignGlobals().