|
Wing Commander II
Reconstructed Win32 source (1996)
|
Cutscene engine and game flow. More...
#include "game.h"Go to the source code of this file.
Macros | |
| #define | GAMEFLOW_C |
| #define | g_cShowMemoryStatus (*(signed char *)&g_nShowMemoryStatus) |
Cutscene engine and game flow.
Definition in file gameflow.c.
| #define g_cShowMemoryStatus (*(signed char *)&g_nShowMemoryStatus) |
Definition at line 29 of file gameflow.c.
Referenced by DrawCinematicMemoryStatus(), and RunLoadedCutscene().
| #define GAMEFLOW_C |
Definition at line 6 of file gameflow.c.
| void AddCutsceneMusicNode | ( | CutsceneMusicNode ** | head, |
| short | resourceIndex ) |
Definition at line 682 of file gameflow.c.
References AddCutsceneMusicNode(), FatalCutsceneError(), FindActiveCutsceneFileResources(), g_19_bStoredHighMemoryEnabled, g_nMusicDriverMode, g_pCutsceneMusicResources, g_pMemoryLogFile, GetOriginalFreeMemory(), HasCutsceneMusicNode(), LoadCachedCutsceneResource(), CutsceneMusicNode::next, CutsceneMusicNode::packet, CutsceneMusicNode::previous, and CutsceneMusicNode::resourceIndex.
Referenced by AddCutsceneMusicNode(), and DosMemmove().
Definition at line 571 of file gameflow.c.
References AddCutsceneSoundEffect(), FatalCutsceneError(), FindCutsceneSoundEffect(), g_bCutsceneSkipAll, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_pCutsceneSoundEffects, g_pMemoryLogFile, GetOriginalFreeMemory(), CutsceneSoundEffect::next, CutsceneSoundEffect::resourceIndex, and CutsceneSoundEffect::sound.
Referenced by AddCutsceneSoundEffect(), and DosMemmove().
| void AdvanceSceneFlicStream | ( | SceneFlicObject * | object | ) |
Definition at line 1507 of file gameflow.c.
References AdvanceSceneFlicStream(), SceneFlicCacheEntry::auxiliaryAllocation, CopyViewportContents(), SceneFlicObject::currentFrame, DosStrcpy(), SceneFlicObject::filename, SceneFlicObject::finalFrame, g_15_stSceneFlicScratchViewport, g_aSceneFlicCopyTable, g_pMemoryLogFile, g_stSecondaryViewBufferBlock, GetShapeFrameCount(), LoadNamedPacket(), SceneFlicObject::nextSection, OutputDebugPrintf(), ReleasePacketSlot(), ReleaseSceneFlicPackets(), RewriteDiskFileGraphicsExtensions(), SceneFlicObject::segmentEndFrame, SceneFlicCacheEntry::shape, SceneFlicObject::shape, and WaitForCutsceneInputEvent().
Referenced by AdvanceSceneFlicStream(), DosMemmove(), DrawCutsceneSprite(), and InitializeSceneFlicStream().
Definition at line 1699 of file gameflow.c.
References AllocateCutsceneViewportOrFatal(), AllocateViewport(), and FatalCutsceneError().
Referenced by AllocateCutsceneViewportOrFatal(), DosMemmove(), and RunCutsceneScript().
| void AnimateCutsceneSpeakerMouth | ( | SceneFlicObject * | sprite | ) |
Definition at line 48 of file gameflow.c.
References AnimateCutsceneSpeakerMouth(), SceneFlicObject::currentFrame, g_196_nInputTimerTicks, g_2_bMovieStringAdvanceState, g_acCutsceneMouthDurations, g_acCutsceneMouthFrames, g_bCutsceneSkipFrame, g_bCutsceneSpeechActive, g_bCutsceneViewportPreallocated, g_cCutsceneSpeechSpeed, g_pszCurrentCutsceneText, g_pszCutsceneSpeechCursor, g_wDigiPlaying, RandomInRange(), SceneFlicObject::waitStart, and SceneFlicObject::waitTicks.
Referenced by AnimateCutsceneSpeakerMouth(), and DosMemmove().
Definition at line 220 of file gameflow.c.
References ClearActiveCutscenePixelAlias(), g_13_pActiveCutscenePixelsAddress, g_cCutsceneVideoMode, g_stSecondaryViewBufferBlock, Viewport::pixels, and Viewport::rowOffsets.
Referenced by ClearActiveCutscenePixelAlias(), DosMemmove(), and RunLoadedCutscene().
Definition at line 1224 of file gameflow.c.
References TextContext::backgroundColour, ClearCutsceneTextViewport(), ClearCutsceneViewport(), TextContext::cursorX, TextContext::cursorY, g_29_pCurrentTextContext, Viewport::left, Viewport::top, and TextContext::viewport.
Referenced by ClearCutsceneTextViewport(), DosMemmove(), ExecuteCutsceneSequence(), RunCutsceneScript(), and UpdateMap().
Definition at line 1195 of file gameflow.c.
References ClearCutsceneViewport(), ClearViewport(), g_abCutscenePaletteTranslation, and g_cCutsceneVideoMode.
Referenced by ClearCutsceneTextViewport(), ClearCutsceneViewport(), DosMemmove(), RestoreCutsceneTextBacking(), RunCutsceneScript(), RunLoadedCutscene(), and UpdateMap().
| void ConsumeCutscenePalettePacket | ( | short | firstColour, |
| short | count, | ||
| signed char | releasePacket ) |
Definition at line 512 of file gameflow.c.
References ConsumeCutscenePalettePacket(), FatalCutsceneError(), g_26_pFilmRgbPacket, ReadNextSceneForm(), ReleasePacketSlot(), and SwapSceneChunkSizeEndian().
Referenced by ConsumeCutscenePalettePacket(), DosMemmove(), ExecuteCutsceneSequence(), PresentCutsceneFrame(), and RunCutsceneScript().
| void CopyCutsceneSpriteDisplay | ( | unsigned char | destination, |
| unsigned char | source ) |
Definition at line 1033 of file gameflow.c.
References SceneFlicObject::baseFrame, CopyCutsceneSpriteDisplay(), SceneFlicObject::currentFrame, SceneFlicObject::drawType, SceneFlicObject::finalFrame, FindActiveCutsceneObjectResources(), g_apSceneObjects, g_pCutsceneSpriteResources, ReleaseCutsceneSpriteShape(), CutsceneObjectResourceList::scriptSymbolIndices, and SceneFlicObject::shape.
Referenced by CopyCutsceneSpriteDisplay(), DosMemmove(), and RunCutsceneScript().
| void DispatchCutsceneSpriteHandler | ( | SceneFlicObject * | sprite, |
| short | handlerType ) |
Definition at line 1442 of file gameflow.c.
References DispatchCutsceneSpriteHandler(), g_apCutsceneSpriteHandlers, and void().
Referenced by DispatchCutsceneSpriteHandler(), DosMemmove(), and UpdateCutsceneSpriteObject().
| void DrawCinematicMemoryStatus | ( | const char * | message | ) |
Definition at line 1732 of file gameflow.c.
References Viewport::bottom, ClearViewport(), TextContext::cursorX, TextContext::cursorY, DrawCinematicMemoryStatus(), FormatTextBufferFromStart(), g_10_stCutsceneStringViewportBlock, g_15_stSceneFlicScratchViewport, g_16_stCutsceneDrawingTextSettingsInfo, g_28_nCutsceneInitialAvailableMemoryWord, g_29_pCurrentTextContext, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_47_nCutsceneMemDelta, g_9_stCutsceneTextBackingPort, g_bCutsceneSkipFrame, g_bCutsceneTextRestorePending, g_cCutsceneVideoMode, g_cShowMemoryStatus, GetAvailableFarMemory(), GetAvailableMainMemory(), GetLargestMainMemoryBlock(), Viewport::left, PresentCutsceneFrame(), SetTextContext(), Viewport::top, TextContext::viewport, and WaitForCutsceneInputEvent().
Referenced by DosMemmove(), DrawCinematicMemoryStatus(), FormatCinematicMemoryStatus(), and RunCutsceneScript().
| void DrawCutsceneCockpitOverlay | ( | short | unused, |
| short | verticalOffset ) |
Definition at line 332 of file gameflow.c.
References DrawCutsceneCockpitOverlay(), DrawSpriteDefault(), g_69_asCockpitDmgStateList, g_aCockpitDamagePositions, g_pCutsceneCockpitPacket, g_stSecondaryViewBufferBlock, void(), and ShortPoint::x.
Referenced by DosMemmove(), DrawCutsceneCockpitOverlay(), and RunCutsceneScript().
| void DrawCutscenePlane | ( | CutscenePlane * | plane | ) |
Definition at line 1175 of file gameflow.c.
References CutscenePlane::active, DrawCutscenePlane(), DrawCutsceneSprite(), FatalCutsceneError(), g_apSceneObjects, g_bCutsceneDrawingEnabled, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_pCutsceneSpriteParentPlane, CutscenePlane::spriteCount, CutscenePlane::spriteIndices, and CutscenePlane::visible.
Referenced by DosMemmove(), DrawCutscenePlane(), ExecuteCutsceneSequence(), and RunCutsceneScript().
| void DrawCutsceneSprite | ( | SceneFlicObject * | sprite | ) |
Definition at line 1083 of file gameflow.c.
References SceneFlicObject::active, AdvanceSceneFlicStream(), SceneFlicObject::baseFrame, SceneFlicObject::currentFrame, SceneFlicObject::decoderState, DrawCutsceneSprite(), CutscenePlane::drawFlags, SceneFlicObject::drawFlags, DrawSpriteScaled(), SceneFlicObject::drawType, FatalCutsceneError(), g_11_pWatchedSceneSpriteB, g_26_pFilmRgbPacket, g_7_pWatchedSceneSpriteA, g_bCutsceneDrawingEnabled, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_nCutsceneSpritesDrawn, g_nFrameSkipCountdown, g_pCutsceneSpriteParentPlane, g_stSecondaryViewBufferBlock, CutscenePlane::rotation, SceneFlicObject::rotation, CutscenePlane::scale, SceneFlicObject::scale, SceneFlicObject::segmentStartFrame, SceneFlicObject::shape, SceneFlicObject::tick, SceneFlicObject::visible, CutscenePlane::x, SceneFlicObject::x, CutscenePlane::y, and SceneFlicObject::y.
Referenced by DosMemmove(), DrawCutscenePlane(), DrawCutsceneSprite(), and RunCutsceneScript().
| void DrawCutsceneTextAt | ( | short | x, |
| short | y, | ||
| short | viewportIndex, | ||
| const char * | text ) |
Definition at line 247 of file gameflow.c.
References ShortRect::bottom, Viewport::bottom, TextContext::cursorX, TextContext::cursorY, DrawCutsceneTextAt(), FormatTextBufferFromStart(), g_10_stCutsceneStringViewportBlock, g_15_stSceneFlicScratchViewport, g_16_stCutsceneDrawingTextSettingsInfo, g_27_pszCutsceneFormattedText, g_29_pCurrentTextContext, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_9_bCinematicSpriteTextEnableStatus, g_9_stCutsceneTextBackingPort, g_bCutsceneTextBoundsOverride, g_bCutsceneTextRestorePending, g_nAudioEnabled, g_stCutsceneTextBounds, g_stSecondaryViewBufferBlock, IsCutsceneSpeechLoaded(), ShortRect::left, Viewport::left, MaxShort(), MinShort(), ShortRect::right, Viewport::right, SetTextContext(), ShortRect::top, Viewport::top, and TextContext::viewport.
Referenced by DosMemmove(), DrawCutsceneTextAt(), and RunCutsceneScript().
| void ExecuteCutsceneScene | ( | CutsceneScene * | scene | ) |
Definition at line 1006 of file gameflow.c.
References ExecuteCutsceneScene(), FatalCutsceneError(), g_196_nInputTimerTicks, g_bCutsceneSkipAll, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_nActiveCutsceneResourceLevel, g_nCutsceneFrameDelay, g_nNextCutsceneFrameClock, g_pCurrentCutscenePlane, g_pCurrentCutsceneSprite, InitializeCutsceneViewports(), CutsceneScene::owner, PumpWindowMessages(), RunCutsceneScript(), and CutsceneScene::scriptCursor.
Referenced by CreateCutsceneResourceInstance(), DosMemmove(), ExecuteCutsceneScene(), LinkCutsceneObjectResources(), RunCutsceneScript(), and RunLoadedCutscene().
| void ExecuteCutsceneSequence | ( | CutsceneSequence * | sequence, |
| unsigned char * | text, | ||
| signed char | draw ) |
Definition at line 1284 of file gameflow.c.
References ClearCutsceneTextViewport(), ConsumeCutscenePalettePacket(), DrawCutscenePlane(), ExecuteCutsceneSequence(), ExpandCutsceneText(), FatalCutsceneError(), FormatTextBufferFromStart(), g_15_stSceneFlicScratchViewport, g_196_nInputTimerTicks, g_4_pszFilmWorkScratch, g_apCutscenePlanes, g_bCutsceneSkipFrame, g_bCutsceneTextRestorePending, g_bCutsceneViewportPreallocated, g_bMovieFramePresented, g_nActiveCutsceneResourceLevel, g_nAudioEnabled, g_nCutsceneFrameDelay, g_nFrameSkipCountdown, g_nNextCutsceneFrameClock, g_pCurrentCutsceneSequence, g_pszCurrentCutsceneText, g_stSecondaryViewBufferBlock, IsCutsceneSpeechLoaded(), CutsceneSequence::owner, CutsceneSequence::planeCount, CutsceneSequence::planeIndices, PresentCutsceneFrame(), PumpWindowMessages(), RestoreCutsceneTextBacking(), RunCutsceneScript(), CutsceneSequence::scriptCursor, and UpdateCutscenePlaneObject().
Referenced by CreateCutsceneResourceInstance(), DosMemmove(), ExecuteCutsceneSequence(), LinkCutsceneObjectResources(), and RunCutsceneScript().
| void ExpandCutsceneText | ( | const unsigned char * | source, |
| char * | destination ) |
Definition at line 1235 of file gameflow.c.
References PilotNameVariables::callsign, CopyStringAndReturnEnd(), DosMemset(), ExpandCutsceneText(), PilotNameVariables::firstName, g_117_nCutsceneFormatValueWord, g_pCampaignGlobals, g_stPilotNameVariables, and PilotNameVariables::lastName.
Referenced by DosMemmove(), ExecuteCutsceneSequence(), ExpandCutsceneText(), RunCutsceneScript(), and UpdateMap().
| void FatalCutsceneError | ( | const char * | format, |
| ... ) |
Definition at line 455 of file gameflow.c.
References exit_squadron(), FatalCutsceneError(), and g_4_pszFilmWorkScratch.
Referenced by AddCutsceneMusicNode(), AddCutsceneSoundEffect(), AllocateCutsceneViewportOrFatal(), AllocateScenePointerTable(), ConsumeCutscenePalettePacket(), CreateCutsceneResourceInstance(), DosMemmove(), DrawCutscenePlane(), DrawCutsceneSprite(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), FatalCutsceneError(), FindActiveCutsceneFileResources(), FindActiveCutsceneObjectResources(), InitializeCutsceneRuntimeResources(), LoadCachedCutsceneResource(), PopCutsceneScriptValue(), PushCutsceneScriptValue(), RunCutsceneScript(), UpdateCutscenePlaneObject(), and UpdateCutsceneSpriteObject().
| CutsceneResourceTable * FindActiveCutsceneFileResources | ( | CutsceneResourceTable * | resources | ) |
Definition at line 414 of file gameflow.c.
References FatalCutsceneError(), FindActiveCutsceneFileResources(), g_nActiveCutsceneResourceLevel, CutsceneResourceTable::next, and CutsceneResourceTable::owner.
Referenced by AddCutsceneMusicNode(), DosMemmove(), FindActiveCutsceneFileResources(), LoadCutsceneSpeechSlot(), ReleaseActiveCutscenePacket(), ReleaseCutsceneMusicNodes(), and RunCutsceneScript().
| CutsceneObjectResourceList * FindActiveCutsceneObjectResources | ( | CutsceneObjectResourceList * | resources | ) |
Definition at line 427 of file gameflow.c.
References FatalCutsceneError(), FindActiveCutsceneObjectResources(), g_nActiveCutsceneResourceLevel, CutsceneObjectResourceList::next, and CutsceneObjectResourceList::owner.
Referenced by CopyCutsceneSpriteDisplay(), DosMemmove(), FindActiveCutsceneObjectResources(), LinkCutsceneSpriteScript(), RunCutsceneScript(), and RunLoadedCutscene().
| CutsceneSoundEffect * FindCutsceneSoundEffect | ( | short | resourceIndex | ) |
Definition at line 546 of file gameflow.c.
References FindCutsceneSoundEffect(), FlushSoundEffect(), g_pCutsceneSoundEffects, CutsceneSoundEffect::next, CutsceneSoundEffect::resourceIndex, CutsceneSoundEffect::sound, and void().
Referenced by AddCutsceneSoundEffect(), DosMemmove(), and FindCutsceneSoundEffect().
| void * FindLoadedCutsceneMusic | ( | short | resourceIndex | ) |
Definition at line 790 of file gameflow.c.
References FindLoadedCutsceneMusic(), g_pCutsceneMusicPackets, HasCutsceneMusicNode(), CutsceneMusicNode::next, CutsceneMusicNode::packet, CutsceneMusicNode::previous, and CutsceneMusicNode::resourceIndex.
Referenced by DosMemmove(), FindLoadedCutsceneMusic(), and RunCutsceneScript().
| void FormatCinematicMemoryStatus | ( | const char * | format, |
| ... ) |
Definition at line 1785 of file gameflow.c.
References DrawCinematicMemoryStatus(), and FormatCinematicMemoryStatus().
Referenced by DosMemmove(), FormatCinematicMemoryStatus(), ReportCutscenePacketAllocationFailure(), and RunCutsceneScript().
| char * GetPackedStringByIndex | ( | CutsceneResourceTable * | resources, |
| short | index ) |
Definition at line 3487 of file gameflow.c.
References DosStrchr(), GetPackedStringByIndex(), and CutsceneResourceTable::packedFilenames.
Referenced by DosMemmove(), GetPackedStringByIndex(), InitializeSceneFlicStream(), LoadCachedCutsceneResource(), and LoadCutsceneSpeechSlot().
| signed char HasCutsceneMusicNode | ( | CutsceneMusicNode * | node | ) |
Definition at line 119 of file gameflow.c.
References HasCutsceneMusicNode().
Referenced by AddCutsceneMusicNode(), DosMemmove(), FindLoadedCutsceneMusic(), HasCutsceneMusicNode(), and ReleaseCutsceneMusicNodes().
Definition at line 808 of file gameflow.c.
References AllocateScenePointerTable(), FatalCutsceneError(), g_116_pszFilmPrintStore, g_17_nSceneInitialLargestBlockWord, g_28_nCutsceneInitialAvailableMemoryWord, g_4_pszFilmWorkScratch, g_apCutscenePlanes, g_apCutsceneScenes, g_apCutsceneSequences, g_apSceneObjects, g_bAutopilotDebugEnabled, g_bCutsceneDrawingEnabled, g_bMemoryLogToFile, g_bSceneCockpitLoaded, g_bSpeechEnabledFlag, g_nCutsceneFrameDelay, g_nCutsceneFrameTick, g_nCutsceneResourceLevel, g_pMemoryLogFile, GetAvailableMainMemory(), GetLargestMainMemoryBlock(), GetOriginalFreeMemory(), HOST_POINTER_SIZE, InitializeCinematicTextRenderer(), InitializeCutsceneRuntimeResources(), and WriteDetailedMemoryStateReport().
Referenced by DosMemmove(), InitializeCutsceneRuntimeResources(), and ParseCutsceneContainer().
Definition at line 873 of file gameflow.c.
References TextContext::alignment, TextContext::backgroundColour, TextContext::colour, g_10_stCutsceneStringViewportBlock, g_15_stSceneFlicScratchViewport, g_16_szTextBufferBuffer, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_9_stCutsceneTextBackingPort, InitializeCutsceneViewports(), Viewport::pixels, SetTextContext(), TextContext::text, and TextContext::viewport.
Referenced by DosMemmove(), ExecuteCutsceneScene(), and InitializeCutsceneViewports().
| void InitializeSceneFlicStream | ( | CutsceneResourceTable * | resources, |
| short | index, | ||
| SceneFlicObject * | object ) |
Definition at line 1463 of file gameflow.c.
References AdvanceSceneFlicStream(), CutsceneResourceTable::filenameIndices, g_nSceneFlicContext, GetPackedStringByIndex(), InitializeSceneFlicStream(), and CutsceneResourceTable::sectionIndices.
Referenced by DosMemmove(), InitializeSceneFlicStream(), and RunCutsceneScript().
| signed char IsCutsceneSpeechLoaded | ( | void | ) |
Definition at line 234 of file gameflow.c.
References g_12_apszMovieSpeechFiles, and IsCutsceneSpeechLoaded().
Referenced by DosMemmove(), DrawCutsceneTextAt(), ExecuteCutsceneSequence(), IsCutsceneSpeechLoaded(), and UpdateMap().
| void LinkCutsceneSpriteScript | ( | unsigned char | destination, |
| unsigned char | source ) |
Definition at line 1056 of file gameflow.c.
References FindActiveCutsceneObjectResources(), g_apSceneObjects, g_nActiveCutsceneResourceLevel, g_pCutsceneSpriteResources, LinkCutsceneSpriteScript(), SceneFlicObject::linkedOwner, SceneFlicObject::linkedScript, SceneFlicObject::owner, SceneFlicObject::scriptCursor, SceneFlicObject::scriptStart, and CutsceneObjectResourceList::scriptSymbolIndices.
Referenced by DosMemmove(), LinkCutsceneSpriteScript(), and RunCutsceneScript().
| void * LoadCachedCutsceneResource | ( | CutsceneResourceTable * | resources, |
| short | index, | ||
| int | resourceType ) |
Definition at line 3539 of file gameflow.c.
References DosStrcpy(), FatalCutsceneError(), CutsceneResourceTable::filenameIndices, g_19_bStoredHighMemoryEnabled, g_nActiveCutsceneResourceLevel, g_nPacketError, g_nSceneFlicContext, g_pMemoryLogFile, GetAvailableMainMemory(), GetNamedPacketSize(), GetPackedStringByIndex(), LoadCachedCutsceneResource(), CutsceneResourceTable::loadedPackets, LoadNamedPacket(), ReportCutscenePacketAllocationFailure(), RewriteCutsceneMusicExtensionForDriver(), RewriteCutsceneMusicExtensionForRetry(), RewriteDiskFileGraphicsExtensions(), and CutsceneResourceTable::sectionIndices.
Referenced by AddCutsceneMusicNode(), DosMemmove(), LoadCachedCutsceneResource(), and RunCutsceneScript().
| void LoadCutsceneCockpitOverlay | ( | short | scriptValue | ) |
Definition at line 322 of file gameflow.c.
References g_7_szCockpitAssetFilenameText, g_pCutsceneCockpitPacket, LoadCutsceneCockpitOverlay(), LoadNamedPacket(), and void().
Referenced by DosMemmove(), LoadCutsceneCockpitOverlay(), and RunCutsceneScript().
| void LoadCutsceneSpeechSlot | ( | short | resourceIndex, |
| short | slot ) |
Definition at line 640 of file gameflow.c.
References CutsceneResourceTable::filenameIndices, FindActiveCutsceneFileResources(), g_12_apszMovieSpeechFiles, g_19_asCutsceneSpeechSectionsList, g_1_asCutsceneSpeechChannelsTable, g_3_apSceneSpeechPacketsList, g_bCutsceneSkipAll, g_bCutsceneViewportPreallocated, g_bSpeechEnabledFlag, g_pCutsceneSpeechResources, g_wDigiPlaying, GetNamedPacketSize(), GetPackedStringByIndex(), LoadCutsceneSpeechSlot(), LoadSpeechPacketIntoBuffer(), PumpWindowMessages(), ReleasePacketSlot(), and CutsceneResourceTable::sectionIndices.
Referenced by DosMemmove(), LoadCutsceneSpeechSlot(), and RunCutsceneScript().
Definition at line 179 of file gameflow.c.
References g_116_pszFilmPrintStore, g_27_pszCutsceneFormattedText, g_4_pszFilmWorkScratch, g_pMemoryLogFile, g_szLastCutscenePrintBuffer, g_szLastCutsceneWorkBuffer, and LogChangedCutsceneWorkBuffers().
Referenced by DrawTextAt(), LogChangedCutsceneWorkBuffers(), and RunCutsceneScript().
| void LogMemoryStateToFile | ( | FILE * | file | ) |
Definition at line 132 of file gameflow.c.
References g_bMemoryLogToFile, g_pMemoryLogFile, LogMemoryStateToFile(), and WriteMemoryStateReportHook().
Referenced by auto_pilot_sequence(), DrawTextAt(), ejection_sequence(), LoadOriginFxDrivers(), LogMemoryStateToFile(), and ReportFatalErrorCode().
| int MapCutsceneSoundEffectNumber | ( | int | soundIndex | ) |
Definition at line 3673 of file gameflow.c.
References MapCutsceneSoundEffectNumber().
Referenced by close_behind(), MapCutsceneSoundEffectNumber(), and RunCutsceneScript().
| short PopCutsceneScriptValue | ( | short ** | stack, |
| short * | stackBottom ) |
Definition at line 1809 of file gameflow.c.
References DosFarPtrToNear(), FatalCutsceneError(), and PopCutsceneScriptValue().
Referenced by DosMemmove(), PopCutsceneScriptValue(), and RunCutsceneScript().
Definition at line 477 of file gameflow.c.
References TextContext::alignment, Viewport::bottom, ConsumeCutscenePalettePacket(), CopyViewportContents(), TextContext::cursorX, TextContext::cursorY, DrawFormattedText(), g_196_nInputTimerTicks, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_6_stMovieDebugTextCtx, g_bCutsceneDebugOverlayEnabled, g_bMovieFramePresented, g_cCutsceneVideoMode, g_nCutsceneFrameDelay, g_nCutsceneSpritesDrawn, g_nFrameSkipCountdown, g_wCutsceneDebugFrameNumber, PresentCutsceneFrame(), ResetCutsceneSpriteDrawTicks(), SetTextContext(), and TextContext::viewport.
Referenced by DosMemmove(), DrawCinematicMemoryStatus(), ExecuteCutsceneSequence(), PresentCutsceneFrame(), and RunCutsceneScript().
| void PushCutsceneScriptValue | ( | short ** | stack, |
| short * | stackTop, | ||
| short | value ) |
Definition at line 1826 of file gameflow.c.
References DosFarPtrToNear(), FatalCutsceneError(), and PushCutsceneScriptValue().
Referenced by DosMemmove(), PushCutsceneScriptValue(), and RunCutsceneScript().
| void ReleaseActiveCutscenePacket | ( | CutsceneResourceTable * | resources, |
| void * | packet ) |
Definition at line 1617 of file gameflow.c.
References CutsceneResourceTable::count, FindActiveCutsceneFileResources(), g_nActiveCutsceneResourceLevel, g_pMemoryLogFile, GetAvailableMainMemory(), CutsceneResourceTable::loadedPackets, ReleaseActiveCutscenePacket(), and ReleasePacketSlot().
Referenced by DosMemmove(), ReleaseActiveCutscenePacket(), ReleaseCutsceneFontPacket(), and ReleaseCutsceneSpriteShape().
Definition at line 1645 of file gameflow.c.
References TextContext::font, g_1_nCutsceneFontOwnerNumber, g_2_stCutsceneMessageCtxInfo, g_nActiveCutsceneResourceLevel, g_pCutsceneFontResources, ReleaseActiveCutscenePacket(), and ReleaseCutsceneFontPacket().
Referenced by DosMemmove(), ReleaseCutsceneFontPacket(), and RunCutsceneScript().
| void ReleaseCutsceneMusicNodes | ( | CutsceneMusicNode ** | head, |
| short | resourceIndex ) |
Definition at line 746 of file gameflow.c.
References FindActiveCutsceneFileResources(), g_nMusicDriverMode, g_pCutsceneMusicResources, g_pMemoryLogFile, GetOriginalFreeMemory(), HasCutsceneMusicNode(), CutsceneMusicNode::next, CutsceneMusicNode::previous, ReleaseCutsceneMusicNodes(), ReleaseLoadedCutsceneResource(), and CutsceneMusicNode::resourceIndex.
Referenced by DosMemmove(), ReleaseCutsceneMusicNodes(), and RunCutsceneScript().
| void ReleaseCutsceneSoundEffects | ( | short | resourceIndex | ) |
Definition at line 598 of file gameflow.c.
References FlushSoundEffect(), g_nMusicDriverMode, g_pCutsceneSoundEffects, g_pMemoryLogFile, GetOriginalFreeMemory(), CutsceneSoundEffect::next, ReleaseCutsceneSoundEffects(), CutsceneSoundEffect::resourceIndex, CutsceneSoundEffect::sound, and void().
Referenced by DosMemmove(), ReleaseCutsceneSoundEffects(), RunCutsceneScript(), and RunLoadedCutscene().
Definition at line 906 of file gameflow.c.
References g_12_apszMovieSpeechFiles, g_19_asCutsceneSpeechSectionsList, g_1_asCutsceneSpeechChannelsTable, g_3_apSceneSpeechPacketsList, ReleaseCutsceneSpeechPackets(), and ReleasePacketSlot().
Referenced by DosMemmove(), ReleaseCutsceneSpeechPackets(), RunCutsceneScript(), and RunLoadedCutscene().
| void ReleaseCutsceneSpriteShape | ( | SceneFlicObject * | sprite | ) |
Definition at line 3623 of file gameflow.c.
References g_8_nSavedCutsceneResourceOwnerValue, g_apSceneObjects, g_nActiveCutsceneResourceLevel, g_pCutsceneShapeResources, SceneFlicObject::owner, ReleaseActiveCutscenePacket(), ReleaseCutsceneSpriteShape(), and SceneFlicObject::shape.
Referenced by CopyCutsceneSpriteDisplay(), DosMemmove(), ReleaseCutsceneSpriteShape(), and RunCutsceneScript().
Definition at line 1707 of file gameflow.c.
References free_viewport(), g_cCutsceneVideoMode, GetDIBPixelBuffer(), Viewport::pixels, and ReleaseCutsceneViewport().
Referenced by DosMemmove(), ReleaseCutsceneViewport(), RunCutsceneScript(), and RunLoadedCutscene().
| void ReleaseLoadedCutsceneResource | ( | CutsceneResourceTable * | resources, |
| short | index ) |
Definition at line 3649 of file gameflow.c.
References g_apSceneObjects, g_nActiveCutsceneResourceLevel, g_pMemoryLogFile, GetAvailableMainMemory(), CutsceneResourceTable::loadedPackets, ReleaseLoadedCutsceneResource(), ReleasePacketSlot(), and SceneFlicObject::shape.
Referenced by DosMemmove(), ReleaseCutsceneFileResource(), ReleaseCutsceneMusicNodes(), ReleaseLoadedCutsceneResource(), and RunCutsceneScript().
Definition at line 1478 of file gameflow.c.
References SceneFlicObject::drawType, g_apSceneObjects, g_aSceneFlicCopyTable, ReleasePacketSlot(), ReleaseSceneFlicPackets(), SceneFlicCacheEntry::shape, and SceneFlicObject::shape.
Referenced by AdvanceSceneFlicStream(), DosMemmove(), ReleaseSceneFlicPackets(), RunCutsceneScript(), and RunLoadedCutscene().
Definition at line 894 of file gameflow.c.
References g_4_dwSceneMusicMode, g_aTuneResources, g_pSceneMusicPacket, MusicResource::packet, ReleasePacketSlot(), ReleaseSceneMusicPacket(), and StopMusic().
Referenced by ejection_sequence(), ReleaseSceneMusicPacket(), RunCampaignGameLoop(), RunLoadedCutscene(), RunSpaceFlight(), and UpdateShipTurretGuns().
| short RemoveCutsceneMemberIndex | ( | short | count, |
| unsigned char * | indices, | ||
| signed char | index ) |
Definition at line 440 of file gameflow.c.
References DosMemmove(), and RemoveCutsceneMemberIndex().
Referenced by DosMemmove(), RemoveCutsceneMemberIndex(), and RunCutsceneScript().
| void ReportCutscenePacketAllocationFailure | ( | const char * | filename, |
| short | section, | ||
| unsigned int | packetSize ) |
Definition at line 1797 of file gameflow.c.
References FormatCinematicMemoryStatus(), g_cCutsceneVideoMode, and ReportCutscenePacketAllocationFailure().
Referenced by DosMemmove(), LoadCachedCutsceneResource(), and ReportCutscenePacketAllocationFailure().
Definition at line 465 of file gameflow.c.
References g_apSceneObjects, g_nCutsceneSpritesDrawn, ResetCutsceneSpriteDrawTicks(), and SceneFlicObject::tick.
Referenced by DosMemmove(), PresentCutsceneFrame(), and ResetCutsceneSpriteDrawTicks().
Definition at line 1203 of file gameflow.c.
References TextContext::backgroundColour, Viewport::bottom, ClearCutsceneViewport(), CopyViewportContents(), TextContext::cursorY, g_10_stCutsceneStringViewportBlock, g_29_pCurrentTextContext, g_9_stCutsceneTextBackingPort, g_bCutsceneTextRestorePending, RestoreCutsceneTextBacking(), and Viewport::top.
Referenced by DosMemmove(), ExecuteCutsceneSequence(), RestoreCutsceneTextBacking(), RunCutsceneScript(), and UpdateMap().
| void RewriteCutsceneMusicExtensionForDriver | ( | char * | filename | ) |
Definition at line 3515 of file gameflow.c.
References DosStrchr(), g_nMusicDriverMode, and RewriteCutsceneMusicExtensionForDriver().
Referenced by LoadCachedCutsceneResource(), RewriteCutsceneMusicExtensionForDriver(), and UpdateShipTurretGuns().
| void RewriteCutsceneMusicExtensionForRetry | ( | char * | filename | ) |
Definition at line 3529 of file gameflow.c.
References DosStrchr(), and RewriteCutsceneMusicExtensionForRetry().
Referenced by LoadCachedCutsceneResource(), RewriteCutsceneMusicExtensionForRetry(), and UpdateShipTurretGuns().
| void RewriteDiskFileGraphicsExtensions | ( | char * | fileName | ) |
Definition at line 3502 of file gameflow.c.
References DosStrchr(), g_cCutsceneVideoMode, and RewriteDiskFileGraphicsExtensions().
Referenced by AdvanceSceneFlicStream(), LoadCachedCutsceneResource(), RewriteDiskFileGraphicsExtensions(), and UpdateShipTurretGuns().
Definition at line 200 of file gameflow.c.
References g_13_pActiveCutscenePixelsAddress, g_bCutsceneViewportPreallocated, g_cCutsceneVideoMode, g_pCutsceneCockpitPalette, g_pMemoryLogFile, g_stSecondaryViewBufferBlock, Viewport::pixels, ReleasePacketSlot(), RouteCutsceneViewportToDisplay(), Viewport::rowOffsets, and WriteDetailedMemoryStateReport().
Referenced by DosMemmove(), RouteCutsceneViewportToDisplay(), RunCutsceneScript(), and UpdateMap().
| signed char RunCutsceneScript | ( | unsigned char ** | scriptCursor, |
| short | objectType ) |
Definition at line 1844 of file gameflow.c.
References CutscenePlane::active, CutsceneSequence::active, SceneFlicObject::active, TextContext::alignment, AllocateCutsceneViewportOrFatal(), AllocateScenePointerTable(), SceneFlicObject::baseFrame, ShortRect::bottom, Viewport::bottom, ClearCutsceneTextViewport(), ClearCutsceneViewport(), TextContext::colour, ConsumeCutscenePalettePacket(), CopyCutsceneSpriteDisplay(), CopyViewportContents(), CutsceneResourceTable::count, SceneFlicObject::currentFrame, SceneFlicObject::delayFrames, CutscenePlane::deltaDepth, SceneFlicObject::deltaDepth, CutscenePlane::deltaX, SceneFlicObject::deltaX, CutscenePlane::deltaY, SceneFlicObject::deltaY, CutscenePlane::depth, DIBslamReal(), DosMemset(), DrawCinematicMemoryStatus(), DrawCutsceneCockpitOverlay(), DrawCutscenePlane(), DrawCutsceneSprite(), DrawCutsceneTextAt(), CutscenePlane::drawFlags, SceneFlicObject::drawFlags, SceneFlicObject::drawType, CutsceneTextResource::entries, ExecuteCutsceneScene(), ExecuteCutsceneSequence(), ExpandCutsceneText(), FadeMusic(), FadeViewportPaletteToColour(), FatalCutsceneError(), CampaignGlobals::field_08, SceneFlicObject::field_2f, SceneFlicObject::field_3, SceneFlicObject::finalFrame, FindActiveCutsceneFileResources(), FindActiveCutsceneObjectResources(), FindLoadedCutsceneMusic(), FindQueuedInputEvent(), FlushInputEvents(), FlushPendingInputEvents(), FlushSoundEffects(), TextContext::font, FormatCinematicMemoryStatus(), g_10_stCutsceneStringViewportBlock, g_116_pszFilmPrintStore, g_117_nCutsceneFormatValueWord, g_12_apszMovieSpeechFiles, g_15_stSceneFlicScratchViewport, g_196_nInputTimerTicks, g_19_asCutsceneSpeechSectionsList, g_19_pFilmInputFlag, g_1_asCutsceneSpeechChannelsTable, g_1_nCutsceneFontOwnerNumber, g_1_pActiveSceneFileResourcesRef, g_26_pFilmRgbPacket, g_27_pszCutsceneFormattedText, g_29_pCurrentTextContext, g_2_bMovieStringAdvanceState, g_2_nCutsceneForkOffsetNumber, g_2_pCutsceneLocalsTemp, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_3_apSceneSpeechPacketsList, g_3_nCutsceneTextIdx, g_4_nCutsceneResourceScratchValue, g_4_pszFilmSourceText, g_4_pszFilmWorkScratch, g_8_nSavedCutsceneResourceOwnerValue, g_9_bCinematicSpriteTextEnableStatus, g_9_stCutsceneTextBackingPort, g_abCutscenePaletteTranslation, g_acObjectType, g_aObjectTypeData, g_apCutscenePlanes, g_apCutsceneScenes, g_apCutsceneSequences, g_apSceneObjects, g_apszCutsceneObjectTypeNames, g_asObjectDamage, g_bCutsceneDrawingEnabled, g_bCutsceneSkipAll, g_bCutsceneSkipFrame, g_bCutsceneSpeechActive, g_bCutsceneTextBoundsOverride, g_bCutsceneViewportPreallocated, g_bMovieFramePresented, g_bSceneEscapeRequested, g_cCutsceneSoundVolume, g_cCutsceneSpeechSpeed, g_cCutsceneTextStyle, g_cCutsceneVideoMode, g_nActiveCutsceneResourceLevel, g_nCutsceneFrameDelay, g_nCutsceneFrameTick, g_nCutsceneMusicVolume, g_nCutsceneResourceLevel, g_nMusicDriverMode, g_nNextCutsceneFrameClock, g_nOriginDevUnlock, g_nSceneFlicContext, g_nYourWingman, g_pCampaignGlobals, g_pCurrentCutscenePlane, g_pCurrentCutsceneScene, g_pCurrentCutsceneSequence, g_pCurrentCutsceneSprite, g_pCutsceneCockpitPacket, g_pCutsceneFilmResources, g_pCutsceneFontResources, g_pCutsceneFxPacket, g_pCutsceneFxResources, g_pCutsceneMusicPackets, g_pCutscenePaletteResources, g_pCutscenePlaneResources, g_pCutsceneSceneResources, g_pCutsceneSequenceResources, g_pCutsceneShapeResources, g_pCutsceneSpriteParentPlane, g_pCutsceneSpriteResources, g_pCutsceneTextResources, g_pLinkedCutscenePlane, g_pLinkedCutsceneSequence, g_pLinkedCutsceneSprite, g_pMemoryLogFile, g_pSceneMusicPacket, g_pszCurrentCutsceneText, g_pszCutsceneSpeechCursor, g_stCutsceneTextBounds, g_stSecondaryViewBufferBlock, g_wDigiPlaying, InitializeSceneFlicStream(), ShortRect::left, Viewport::left, LinkCutsceneSpriteScript(), SceneFlicObject::linkedOwner, SceneFlicObject::linkedScript, LoadAndPlaySpeechPacket(), LoadCachedCutsceneResource(), LoadCutsceneCockpitOverlay(), LoadCutsceneSpeechSlot(), CutscenePlane::locals, CutsceneScene::locals, CutsceneSequence::locals, SceneFlicObject::locals, LogChangedCutsceneWorkBuffers(), MapCutsceneSoundEffectNumber(), MarkDibDirty(), CampaignGlobals::mission, InputEventState::modifiers, SceneFlicObject::owner, PanToScreen(), ParseCutsceneContainer(), Viewport::pixels, CutsceneSequence::planeCount, CutsceneSequence::planeIndices, PlaySfxWaveFileByNumber(), PlaySpeechPacketBuffer(), PopCutsceneScriptValue(), PresentCutsceneFrame(), PumpWindowMessages(), PushCutsceneScriptValue(), RandomInRange(), ReleaseCutsceneFontPacket(), ReleaseCutsceneMusicNodes(), ReleaseCutsceneResourceLevel(), ReleaseCutsceneSoundEffects(), ReleaseCutsceneSpeechPackets(), ReleaseCutsceneSpriteShape(), ReleaseCutsceneViewport(), ReleaseLoadedCutsceneResource(), ReleasePacketSlot(), ReleaseSceneFlicPackets(), RemoveCutsceneMemberIndex(), RestoreCutsceneTextBacking(), RestoreGamePalette(), ShortRect::right, Viewport::right, CutscenePlane::rotation, SceneFlicObject::rotation, RouteCutsceneViewportToDisplay(), RunCutsceneScript(), RunCutsceneWipeTransition(), SaveGamePalette(), CutscenePlane::scale, SceneFlicObject::scale, CutscenePlane::scriptCursor, CutsceneSequence::scriptCursor, SceneFlicObject::scriptCursor, CutscenePlane::scriptStart, CutsceneSequence::scriptStart, SceneFlicObject::scriptStart, CutsceneScene::sequenceCount, CutsceneScene::sequenceIndices, CampaignGlobals::series, ServiceCutsceneRuntimeHook(), ServiceInputDevices(), SceneFlicObject::shape, SoundDebugPrintf(), CutscenePlane::spriteCount, CutscenePlane::spriteIndices, StartInteractiveMusic(), InputEventState::status, StopMusic(), TakeInputPressCount(), ShortRect::top, Viewport::top, UpdateCutscenePlaneObject(), UpdateCutsceneSpriteObject(), UpdateMap(), CutscenePlane::visible, SceneFlicObject::visible, WaitForCutsceneInputEvent(), CutscenePlane::waitStart, CutsceneSequence::waitStart, SceneFlicObject::waitStart, CutscenePlane::waitTicks, CutsceneSequence::waitTicks, SceneFlicObject::waitTicks, WriteDetailedMemoryStateReport(), WriteMemoryStateReportHook(), CutscenePlane::x, SceneFlicObject::x, CutscenePlane::y, and SceneFlicObject::y.
Referenced by DosMemmove(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), RunCutsceneScript(), UpdateCutscenePlaneObject(), and UpdateCutsceneSpriteObject().
| void RunCutsceneWipeTransition | ( | Viewport * | destination, |
| Viewport * | source, | ||
| int | wipeType, | ||
| short | duration ) |
Definition at line 356 of file gameflow.c.
References AdvanceViewportWipe(), CopyViewportContents(), DIBslamReal(), FinishViewportWipe(), g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_bRoomTransitionAnimationEnabled, g_cCutsceneVideoMode, g_pMemoryLogFile, InitializeViewportWipe(), MarkDibDirty(), and RunCutsceneWipeTransition().
Referenced by DosMemmove(), RunCutsceneScript(), and RunCutsceneWipeTransition().
Definition at line 919 of file gameflow.c.
References ClearActiveCutscenePixelAlias(), ClearCutsceneViewport(), ExecuteCutsceneScene(), FindActiveCutsceneObjectResources(), FlushSoundEffects(), g_116_pszFilmPrintStore, g_13_pActiveCutscenePixelsAddress, g_27_pszCutsceneFormattedText, g_28_nCutsceneInitialAvailableMemoryWord, g_29_pCurrentTextContext, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_47_nCutsceneMemDelta, g_4_pszFilmWorkScratch, g_9_stCutsceneTextBackingPort, g_apCutscenePlanes, g_apCutsceneScenes, g_apCutsceneSequences, g_apSceneObjects, g_bCutsceneSkipAll, g_bMemoryLogToFile, g_bSceneCockpitLoaded, g_bSceneEscapeRequested, g_cCutsceneVideoMode, g_cShowMemoryStatus, g_nCutsceneResourceLevel, g_nInputPollPeriod, g_pCutsceneCockpitPacket, g_pCutsceneCockpitPalette, g_pCutsceneMusicResources, g_pCutsceneSceneResources, g_pMemoryLogFile, g_pSceneMusicPacket, g_stSecondaryViewBufferBlock, GetAvailableMainMemory(), GetOriginalFreeMemory(), QueryCurrentGraphicsMode(), ReleaseCutsceneFileResource(), ReleaseCutsceneResourceLevel(), ReleaseCutsceneSoundEffects(), ReleaseCutsceneSpeechPackets(), ReleaseCutsceneViewport(), ReleasePacketSlot(), ReleaseSceneFlicPackets(), ReleaseSceneMusicPacket(), RunLoadedCutscene(), StopMusic(), TextContext::viewport, and WriteDetailedMemoryStateReport().
Referenced by DosMemmove(), RunCampaignScript(), and RunLoadedCutscene().
| void UpdateCutscenePlaneObject | ( | CutscenePlane * | plane, |
| signed char | updateChildren ) |
Definition at line 1364 of file gameflow.c.
References CutscenePlane::deltaDepth, CutscenePlane::deltaX, CutscenePlane::deltaY, CutscenePlane::depth, FatalCutsceneError(), g_196_nInputTimerTicks, g_apSceneObjects, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_nActiveCutsceneResourceLevel, g_pCurrentCutscenePlane, CutscenePlane::owner, PumpWindowMessages(), RunCutsceneScript(), CutscenePlane::scriptCursor, CutscenePlane::spriteCount, CutscenePlane::spriteIndices, UpdateCutscenePlaneObject(), UpdateCutsceneSpriteObject(), CutscenePlane::waitTicks, CutscenePlane::x, and CutscenePlane::y.
Referenced by CreateCutsceneResourceInstance(), DosMemmove(), ExecuteCutsceneSequence(), LinkCutsceneObjectResources(), RunCutsceneScript(), and UpdateCutscenePlaneObject().
| void UpdateCutsceneSpriteObject | ( | SceneFlicObject * | sprite | ) |
Definition at line 1406 of file gameflow.c.
References SceneFlicObject::delayFrames, SceneFlicObject::deltaDepth, SceneFlicObject::deltaX, SceneFlicObject::deltaY, DispatchCutsceneSpriteHandler(), FatalCutsceneError(), SceneFlicObject::field_2f, SceneFlicObject::field_3, g_196_nInputTimerTicks, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_pCurrentCutsceneSprite, PumpWindowMessages(), RunCutsceneScript(), SceneFlicObject::scriptCursor, UpdateCutsceneSpriteObject(), SceneFlicObject::waitTicks, SceneFlicObject::x, and SceneFlicObject::y.
Referenced by CreateCutsceneResourceInstance(), DosMemmove(), LinkCutsceneObjectResources(), RunCutsceneScript(), UpdateCutscenePlaneObject(), and UpdateCutsceneSpriteObject().
| void UpdateMap | ( | char * | text, |
| short | objective ) |
Definition at line 1660 of file gameflow.c.
References BriefingMap_DisplayMap(), Build_objective_list(), ClearCutsceneTextViewport(), ClearCutsceneViewport(), ExpandCutsceneText(), FindQueuedInputEvent(), FormatTextBufferFromStart(), g_13_pActiveCutscenePixelsAddress, g_196_nInputTimerTicks, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_4_pszFilmWorkScratch, g_bBriefingMapActive, g_bCutsceneSkipFrame, g_bCutsceneTextRestorePending, g_bCutsceneViewportPreallocated, g_cCurrentObjective, g_nAudioEnabled, g_pCampaignGlobals, IsCutsceneSpeechLoaded(), LoadMissionData(), CampaignGlobals::mission, RestoreCutsceneTextBacking(), RouteCutsceneViewportToDisplay(), CampaignGlobals::series, ServiceCutsceneRuntimeHook(), ServiceInputDevices(), SetTextContext(), and UpdateMap().
Referenced by RunCutsceneScript(), and UpdateMap().
Definition at line 399 of file gameflow.c.
References FindQueuedInputEvent(), ServiceCutsceneRuntimeHook(), ServiceInputDevices(), and WaitForCutsceneInputEvent().
Referenced by AdvanceSceneFlicStream(), DosMemmove(), DrawCinematicMemoryStatus(), RunCutsceneScript(), and WaitForCutsceneInputEvent().
Definition at line 147 of file gameflow.c.
References g_pMemoryLogFile, GetAvailableFarMemory(), GetAvailableMainMemory(), GetLargestFreeMemoryBlock(), GetLargestMainMemoryBlock(), GetOriginalFreeMemory(), WriteDetailedMemoryStateReport(), and WriteMemoryStateReportHook().
Referenced by DrawTextAt(), InitializeCutsceneRuntimeResources(), RouteCutsceneViewportToDisplay(), RunCutsceneScript(), RunLoadedCutscene(), and WriteDetailedMemoryStateReport().
Definition at line 127 of file gameflow.c.
References WriteMemoryStateReportHook().
Referenced by DrawTextAt(), LogMemoryStateToFile(), RunCutsceneScript(), WriteDetailedMemoryStateReport(), and WriteMemoryStateReportHook().
| char g_10_nSpareGameflowWord |
Definition at line 3799 of file gameflow.c.
| Viewport g_10_stCutsceneStringViewportBlock |
Definition at line 3773 of file gameflow.c.
Referenced by DrawCinematicMemoryStatus(), DrawCutsceneTextAt(), InitializeCutsceneViewports(), RestoreCutsceneTextBacking(), and RunCutsceneScript().
| char* g_116_pszFilmPrintStore |
Definition at line 3802 of file gameflow.c.
Referenced by InitializeCutsceneRuntimeResources(), LogChangedCutsceneWorkBuffers(), RunCutsceneScript(), and RunLoadedCutscene().
| short g_117_nCutsceneFormatValueWord |
Definition at line 3801 of file gameflow.c.
Referenced by ExpandCutsceneText(), and RunCutsceneScript().
| SceneFlicObject * g_11_pWatchedSceneSpriteB |
Definition at line 3786 of file gameflow.c.
Referenced by DrawCutsceneSprite().
| char* g_12_apszMovieSpeechFiles[8] |
Definition at line 3797 of file gameflow.c.
Referenced by IsCutsceneSpeechLoaded(), LoadCutsceneSpeechSlot(), ReleaseCutsceneSpeechPackets(), and RunCutsceneScript().
| char g_13_nFreeGameflowWord1 |
Definition at line 3772 of file gameflow.c.
| Viewport g_15_stSceneFlicScratchViewport |
Definition at line 3792 of file gameflow.c.
Referenced by AdvanceSceneFlicStream(), DrawCinematicMemoryStatus(), DrawCutsceneTextAt(), ExecuteCutsceneSequence(), InitializeCutsceneViewports(), and RunCutsceneScript().
| TextContext g_16_stCutsceneDrawingTextSettingsInfo |
Definition at line 3805 of file gameflow.c.
Referenced by DrawCinematicMemoryStatus(), and DrawCutsceneTextAt().
| int g_17_nIdleGameflowWord2[5] |
Definition at line 3803 of file gameflow.c.
| unsigned int g_17_nSceneInitialLargestBlockWord |
Definition at line 3791 of file gameflow.c.
Referenced by InitializeCutsceneRuntimeResources().
| short g_19_asCutsceneSpeechSectionsList[8] |
Definition at line 3779 of file gameflow.c.
Referenced by LoadCutsceneSpeechSlot(), ReleaseCutsceneSpeechPackets(), and RunCutsceneScript().
| InputEventState* g_19_pFilmInputFlag |
Definition at line 3800 of file gameflow.c.
Referenced by RunCutsceneScript().
| short g_1_asCutsceneSpeechChannelsTable[8] |
Definition at line 3771 of file gameflow.c.
Referenced by LoadCutsceneSpeechSlot(), ReleaseCutsceneSpeechPackets(), and RunCutsceneScript().
| short g_1_nCutsceneFontOwnerNumber |
Definition at line 3807 of file gameflow.c.
Referenced by ReleaseCutsceneFontPacket(), and RunCutsceneScript().
| CutsceneResourceTable* g_1_pActiveSceneFileResourcesRef |
Definition at line 3774 of file gameflow.c.
Referenced by RunCutsceneScript().
| unsigned char* g_26_pFilmRgbPacket |
Definition at line 3787 of file gameflow.c.
Referenced by ConsumeCutscenePalettePacket(), DrawCutsceneSprite(), and RunCutsceneScript().
| char* g_27_pszCutsceneFormattedText |
Definition at line 3777 of file gameflow.c.
Referenced by DrawCutsceneTextAt(), LogChangedCutsceneWorkBuffers(), RunCutsceneScript(), and RunLoadedCutscene().
| unsigned int g_28_nCutsceneInitialAvailableMemoryWord |
Definition at line 3783 of file gameflow.c.
Referenced by DrawCinematicMemoryStatus(), InitializeCutsceneRuntimeResources(), and RunLoadedCutscene().
| short g_2_bMovieStringAdvanceState |
Definition at line 3796 of file gameflow.c.
Referenced by AnimateCutsceneSpeakerMouth(), and RunCutsceneScript().
| short g_2_nCutsceneForkOffsetNumber |
Definition at line 3784 of file gameflow.c.
Referenced by RunCutsceneScript().
| short* g_2_pCutsceneLocalsTemp |
Definition at line 3798 of file gameflow.c.
Referenced by RunCutsceneScript().
| TextContext g_2_stCutsceneMessageCtxInfo |
Definition at line 3804 of file gameflow.c.
Referenced by DrawCinematicMemoryStatus(), DrawCutsceneTextAt(), InitializeCutsceneViewports(), PresentCutsceneFrame(), ReleaseCutsceneFontPacket(), RunCutsceneScript(), RunLoadedCutscene(), and UpdateMap().
| signed char g_36_cPilotKillCountValue |
Definition at line 3811 of file gameflow.c.
Referenced by analyze_kill(), CanPlayerLand(), prepare_mission(), process_maneuver_node(), RunCampaignGameLoop(), and StoreMissionResultsInCampaignGlobals().
| int g_39_nIdleGameflowWord1 |
Definition at line 3789 of file gameflow.c.
| void* g_3_apSceneSpeechPacketsList[8] |
Definition at line 3806 of file gameflow.c.
Referenced by LoadCutsceneSpeechSlot(), ReleaseCutsceneSpeechPackets(), and RunCutsceneScript().
| short g_3_nCutsceneTextIdx |
Definition at line 3790 of file gameflow.c.
Referenced by RunCutsceneScript().
| int g_47_nCutsceneMemDelta |
Definition at line 3794 of file gameflow.c.
Referenced by DrawCinematicMemoryStatus(), and RunLoadedCutscene().
| unsigned int g_4_dwSceneMusicMode |
Definition at line 3776 of file gameflow.c.
Referenced by ReleaseSceneMusicPacket().
| short g_4_nCutsceneResourceScratchValue |
Definition at line 3788 of file gameflow.c.
Referenced by RunCutsceneScript().
| short g_4_nFreeGameflowWord2 |
Definition at line 3810 of file gameflow.c.
| char* g_4_pszFilmSourceText |
Definition at line 3778 of file gameflow.c.
Referenced by RunCutsceneScript().
| char* g_4_pszFilmWorkScratch |
Definition at line 3795 of file gameflow.c.
Referenced by ExecuteCutsceneSequence(), FatalCutsceneError(), InitializeCutsceneRuntimeResources(), LogChangedCutsceneWorkBuffers(), RunCutsceneScript(), RunLoadedCutscene(), and UpdateMap().
| char g_68_nUnusedGameflowNumberValue |
Definition at line 3808 of file gameflow.c.
| TextContext g_6_stMovieDebugTextCtx |
Definition at line 3781 of file gameflow.c.
Referenced by PresentCutsceneFrame().
| SceneFlicObject * g_7_pWatchedSceneSpriteA |
Definition at line 3785 of file gameflow.c.
Referenced by DrawCutsceneSprite().
| short g_8_bUserDestroyedFlag |
Definition at line 3809 of file gameflow.c.
Referenced by prepare_mission(), and ResolveObjectDestruction().
| short g_8_nSavedCutsceneResourceOwnerValue |
Definition at line 3770 of file gameflow.c.
Referenced by ReleaseCutsceneSpriteShape(), and RunCutsceneScript().
| Viewport g_9_stCutsceneTextBackingPort |
Definition at line 3775 of file gameflow.c.
Referenced by DrawCinematicMemoryStatus(), DrawCutsceneTextAt(), InitializeCutsceneViewports(), RestoreCutsceneTextBacking(), RunCutsceneScript(), and RunLoadedCutscene().
| unsigned char g_abCutscenePaletteTranslation[256] |
Definition at line 3708 of file gameflow.c.
Referenced by ClearCutsceneViewport(), and RunCutsceneScript().
| signed char g_acCutsceneMouthDurations[128] |
Definition at line 3741 of file gameflow.c.
Referenced by AnimateCutsceneSpeakerMouth().
| signed char g_acCutsceneMouthFrames[128] |
Definition at line 3731 of file gameflow.c.
Referenced by AnimateCutsceneSpeakerMouth().
| CutscenePlane** g_apCutscenePlanes = 0 |
Definition at line 3683 of file gameflow.c.
Referenced by CreateCutsceneResourceInstance(), ExecuteCutsceneSequence(), InitializeCutsceneRuntimeResources(), LinkCutsceneObjectResources(), ReleaseCutsceneObjectResource(), RunCutsceneScript(), and RunLoadedCutscene().
| CutsceneScene** g_apCutsceneScenes = 0 |
Definition at line 3685 of file gameflow.c.
Referenced by CreateCutsceneResourceInstance(), InitializeCutsceneRuntimeResources(), LinkCutsceneObjectResources(), ReleaseCutsceneObjectResource(), RunCutsceneScript(), and RunLoadedCutscene().
| CutsceneSequence** g_apCutsceneSequences = 0 |
Definition at line 3684 of file gameflow.c.
Referenced by CreateCutsceneResourceInstance(), InitializeCutsceneRuntimeResources(), LinkCutsceneObjectResources(), ReleaseCutsceneObjectResource(), RunCutsceneScript(), and RunLoadedCutscene().
| void(* g_apCutsceneSpriteHandlers[1])(SceneFlicObject *sprite) | ( | SceneFlicObject * | sprite | ) |
Definition at line 3691 of file gameflow.c.
Referenced by DispatchCutsceneSpriteHandler().
| SceneFlicObject** g_apSceneObjects = 0 |
Definition at line 3682 of file gameflow.c.
Referenced by CopyCutsceneSpriteDisplay(), CreateCutsceneResourceInstance(), DrawCutscenePlane(), InitializeCutsceneRuntimeResources(), LinkCutsceneObjectResources(), LinkCutsceneSpriteScript(), ReleaseCutsceneObjectResource(), ReleaseCutsceneSpriteShape(), ReleaseLoadedCutsceneResource(), ReleaseSceneFlicPackets(), ResetCutsceneSpriteDrawTicks(), RunCutsceneScript(), RunLoadedCutscene(), and UpdateCutscenePlaneObject().
| const char* g_apszCutsceneObjectTypeNames[4] |
Definition at line 19 of file gameflow.c.
Referenced by RunCutsceneScript().
| SceneFlicCacheEntry g_aSceneFlicCopyTable[15] |
Definition at line 3782 of file gameflow.c.
Referenced by AdvanceSceneFlicStream(), and ReleaseSceneFlicPackets().
| signed char g_bAutopilotDebugEnabled = 0 |
Definition at line 13 of file gameflow.c.
Referenced by ejection_sequence(), InitializeCutsceneRuntimeResources(), and main().
| signed char g_bCutsceneDebugOverlayEnabled = 0 |
Definition at line 3758 of file gameflow.c.
Referenced by PresentCutsceneFrame().
| signed char g_bCutsceneDrawingEnabled = 0 |
Definition at line 3694 of file gameflow.c.
Referenced by DrawCutscenePlane(), DrawCutsceneSprite(), InitializeCutsceneRuntimeResources(), and RunCutsceneScript().
| signed char g_bCutsceneSkipAll = 0 |
Definition at line 3690 of file gameflow.c.
Referenced by AddCutsceneSoundEffect(), ExecuteCutsceneScene(), LoadCutsceneSpeechSlot(), RunCutsceneScript(), and RunLoadedCutscene().
| signed char g_bCutsceneSkipFrame = 0 |
Definition at line 3689 of file gameflow.c.
Referenced by AddCutsceneSoundEffect(), AnimateCutsceneSpeakerMouth(), DrawCinematicMemoryStatus(), DrawCutscenePlane(), DrawCutsceneSprite(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), RunCutsceneScript(), RunCutsceneWipeTransition(), UpdateCutscenePlaneObject(), UpdateCutsceneSpriteObject(), and UpdateMap().
| signed char g_bCutsceneSpeechActive = 0 |
Definition at line 3753 of file gameflow.c.
Referenced by AnimateCutsceneSpeakerMouth(), and RunCutsceneScript().
| signed char g_bCutsceneTextBoundsOverride = 0 |
Definition at line 3756 of file gameflow.c.
Referenced by DrawCutsceneTextAt(), and RunCutsceneScript().
| signed char g_bCutsceneTextRestorePending = 0 |
Definition at line 3728 of file gameflow.c.
Referenced by DrawCinematicMemoryStatus(), DrawCutsceneTextAt(), ExecuteCutsceneSequence(), RestoreCutsceneTextBacking(), and UpdateMap().
| signed char g_bCutsceneViewportPreallocated = 0 |
Definition at line 3687 of file gameflow.c.
Referenced by AddCutsceneSoundEffect(), AnimateCutsceneSpeakerMouth(), DrawCutscenePlane(), DrawCutsceneSprite(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), LoadCutsceneSpeechSlot(), RouteCutsceneViewportToDisplay(), RunCampaignGameLoop(), RunCampaignScript(), RunCutsceneScript(), RunCutsceneWipeTransition(), UpdateCutscenePlaneObject(), UpdateCutsceneSpriteObject(), and UpdateMap().
| unsigned char g_bMemoryLogToFile = 0 |
Definition at line 12 of file gameflow.c.
Referenced by InitializeCutsceneRuntimeResources(), LogMemoryStateToFile(), and RunLoadedCutscene().
| signed char g_bMovieFramePresented |
Definition at line 3780 of file gameflow.c.
Referenced by ExecuteCutsceneSequence(), PresentCutsceneFrame(), and RunCutsceneScript().
| signed char g_bRoomTransitionAnimationEnabled = 1 |
Definition at line 14 of file gameflow.c.
Referenced by InitializeCampaignChalkboardScreen(), main(), RunCutsceneWipeTransition(), and RunTitleScreen().
| signed char g_bSceneCockpitLoaded |
Definition at line 3769 of file gameflow.c.
Referenced by InitializeCutsceneRuntimeResources(), and RunLoadedCutscene().
| signed char g_cCutsceneSoundVolume = 0x40 |
Definition at line 3679 of file gameflow.c.
Referenced by RunCutsceneScript().
| signed char g_cCutsceneSpeechSpeed = 1 |
Definition at line 3752 of file gameflow.c.
Referenced by AnimateCutsceneSpeakerMouth(), and RunCutsceneScript().
| signed char g_cCutsceneTextStyle = 0 |
Definition at line 3765 of file gameflow.c.
Referenced by RunCutsceneScript().
| signed char g_cCutsceneVideoMode = 0x13 |
Definition at line 3686 of file gameflow.c.
Referenced by ClearActiveCutscenePixelAlias(), ClearCutsceneViewport(), DrawCinematicMemoryStatus(), PresentCutsceneFrame(), ReleaseCutsceneViewport(), ReportCutscenePacketAllocationFailure(), RewriteDiskFileGraphicsExtensions(), RouteCutsceneViewportToDisplay(), RunCutsceneScript(), RunCutsceneWipeTransition(), and RunLoadedCutscene().
| short g_nActiveCutsceneResourceLevel = 0 |
Definition at line 3727 of file gameflow.c.
Referenced by ExecuteCutsceneScene(), ExecuteCutsceneSequence(), FindActiveCutsceneFileResources(), FindActiveCutsceneObjectResources(), LinkCutsceneSpriteScript(), LoadCachedCutsceneResource(), ReleaseActiveCutscenePacket(), ReleaseCutsceneFontPacket(), ReleaseCutsceneSpriteShape(), ReleaseLoadedCutsceneResource(), RunCutsceneScript(), and UpdateCutscenePlaneObject().
| unsigned short g_nCutsceneFrameDelay = 0 |
Definition at line 3705 of file gameflow.c.
Referenced by ExecuteCutsceneScene(), ExecuteCutsceneSequence(), InitializeCutsceneRuntimeResources(), PresentCutsceneFrame(), and RunCutsceneScript().
| short g_nCutsceneFrameTick = 0 |
Definition at line 3704 of file gameflow.c.
Referenced by InitializeCutsceneRuntimeResources(), and RunCutsceneScript().
| short g_nCutsceneResourceLevel = 0 |
Definition at line 3726 of file gameflow.c.
Referenced by CreateCutsceneResourceInstance(), DecodeCutsceneFileResource(), InitializeCutsceneRuntimeResources(), ParseCutsceneContainer(), PushCutsceneFileResource(), PushCutsceneObjectResource(), RunCutsceneScript(), and RunLoadedCutscene().
| short g_nCutsceneSpritesDrawn = 0 |
Definition at line 18 of file gameflow.c.
Referenced by DrawCutsceneSprite(), PresentCutsceneFrame(), and ResetCutsceneSpriteDrawTicks().
| short g_nEarlierGlobalCount |
Definition at line 3793 of file gameflow.c.
Referenced by ParseCutsceneContainer().
| int g_nNextCutsceneFrameClock = 0 |
Definition at line 3706 of file gameflow.c.
Referenced by ExecuteCutsceneScene(), ExecuteCutsceneSequence(), and RunCutsceneScript().
| short g_nSceneFlicContext = 0 |
Definition at line 3688 of file gameflow.c.
Referenced by InitializeSceneFlicStream(), LoadCachedCutsceneResource(), and RunCutsceneScript().
| int g_nUnusedCutsceneWord1 = 0 |
Definition at line 3698 of file gameflow.c.
| int g_nUnusedCutsceneWord2 = 0 |
Definition at line 3699 of file gameflow.c.
| int g_nUnusedCutsceneWord3 = 0 |
Definition at line 3761 of file gameflow.c.
| CampaignGlobals* g_pCampaignGlobals = 0 |
Definition at line 3707 of file gameflow.c.
Referenced by ejection_sequence(), ExpandCutsceneText(), HasSavedPilotCampaign(), InitializeCampaignChalkboardScreen(), InitializeNewPilotCampaign(), LoadSelectedPilotCampaign(), LoadStartingCampaignGlobals(), LoadTemporaryCampaignGlobals(), OpenDiskDataFile(), ParseCutsceneContainer(), RefreshCampaignChalkboardScreen(), RunCampaignChalkboardMenu(), RunCampaignGameLoop(), RunCutsceneScript(), RunGameApplication(), RunPilotSaveLoadMenu(), SaveAndFreeTemporaryCampaignGlobals(), UpdateMap(), and UpdateTargetCameraObject().
| CutscenePlane* g_pCurrentCutscenePlane = 0 |
Definition at line 3701 of file gameflow.c.
Referenced by ExecuteCutsceneScene(), RunCutsceneScript(), and UpdateCutscenePlaneObject().
| CutsceneScene* g_pCurrentCutsceneScene = 0 |
Definition at line 3703 of file gameflow.c.
Referenced by RunCutsceneScript().
| CutsceneSequence* g_pCurrentCutsceneSequence = 0 |
Definition at line 3702 of file gameflow.c.
Referenced by ExecuteCutsceneSequence(), and RunCutsceneScript().
| SceneFlicObject* g_pCurrentCutsceneSprite = 0 |
Definition at line 3700 of file gameflow.c.
Referenced by ExecuteCutsceneScene(), RunCutsceneScript(), and UpdateCutsceneSpriteObject().
| void* g_pCutsceneCockpitPacket = 0 |
Definition at line 15 of file gameflow.c.
Referenced by DrawCutsceneCockpitOverlay(), LoadCutsceneCockpitOverlay(), RunCutsceneScript(), and RunLoadedCutscene().
| void* g_pCutsceneCockpitPalette = 0 |
Definition at line 17 of file gameflow.c.
Referenced by RouteCutsceneViewportToDisplay(), RunCampaignGameLoop(), and RunLoadedCutscene().
| void* g_pCutsceneFxPacket = 0 |
Definition at line 3680 of file gameflow.c.
Referenced by RunCutsceneScript().
| CutsceneMusicNode* g_pCutsceneMusicPackets = 0 |
Definition at line 3681 of file gameflow.c.
Referenced by FindLoadedCutsceneMusic(), and RunCutsceneScript().
| CutsceneSoundEffect* g_pCutsceneSoundEffects = 0 |
Definition at line 3678 of file gameflow.c.
Referenced by AddCutsceneSoundEffect(), FindCutsceneSoundEffect(), and ReleaseCutsceneSoundEffects().
| CutscenePlane* g_pCutsceneSpriteParentPlane = 0 |
Definition at line 3760 of file gameflow.c.
Referenced by DrawCutscenePlane(), DrawCutsceneSprite(), and RunCutsceneScript().
| CutscenePlane* g_pLinkedCutscenePlane = 0 |
Definition at line 3696 of file gameflow.c.
Referenced by RunCutsceneScript().
| CutsceneSequence* g_pLinkedCutsceneSequence = 0 |
Definition at line 3697 of file gameflow.c.
Referenced by RunCutsceneScript().
| SceneFlicObject* g_pLinkedCutsceneSprite = 0 |
Definition at line 3695 of file gameflow.c.
Referenced by RunCutsceneScript().
| FILE* g_pMemoryLogFile = 0 |
Definition at line 3730 of file gameflow.c.
Referenced by AddCutsceneMusicNode(), AddCutsceneSoundEffect(), AdvanceSceneFlicStream(), InitializeCutsceneRuntimeResources(), LoadCachedCutsceneResource(), LogChangedCutsceneWorkBuffers(), LogMemoryStateToFile(), ReleaseActiveCutscenePacket(), ReleaseCutsceneMusicNodes(), ReleaseCutsceneSoundEffects(), ReleaseLoadedCutsceneResource(), RouteCutsceneViewportToDisplay(), RunCutsceneScript(), RunCutsceneWipeTransition(), RunLoadedCutscene(), and WriteDetailedMemoryStateReport().
| void* g_pSceneMusicPacket = 0 |
Definition at line 16 of file gameflow.c.
Referenced by ReleaseSceneMusicPacket(), RunCutsceneScript(), and RunLoadedCutscene().
| char* g_pszCurrentCutsceneText = 0 |
Definition at line 3729 of file gameflow.c.
Referenced by AnimateCutsceneSpeakerMouth(), ExecuteCutsceneSequence(), and RunCutsceneScript().
| char* g_pszCutsceneSpeechCursor = 0 |
Definition at line 3751 of file gameflow.c.
Referenced by AnimateCutsceneSpeakerMouth(), and RunCutsceneScript().
| ShortRect g_stCutsceneTextBounds = { 0, 0, 319, 199 } |
Definition at line 3757 of file gameflow.c.
Referenced by DrawCutsceneTextAt(), and RunCutsceneScript().
| PilotNameVariables g_stPilotNameVariables |
Definition at line 3762 of file gameflow.c.
Referenced by ExpandCutsceneText(), LoadSelectedPilotCampaign(), OpenDiskDataFile(), RunGameApplication(), RunPilotDatabaseMenu(), and RunPilotSaveLoadMenu().
|
static |
Definition at line 10 of file gameflow.c.
Referenced by LogChangedCutsceneWorkBuffers().
|
static |
Definition at line 9 of file gameflow.c.
Referenced by LogChangedCutsceneWorkBuffers().
| unsigned short g_wCutsceneDebugFrameNumber = 0 |
Definition at line 3759 of file gameflow.c.
Referenced by PresentCutsceneFrame().