|
Wing Commander
Reconstructed Win32 source (1996)
|
Scramble, landing and funeral scenes, and the animation demo. More...
Go to the source code of this file.
Functions | |
| unsigned int | init_3Space_objects (short scene) |
| short __stdcall | GetShapeFrameExtent (short x, short y, struct Shape *shape, short frame, short extent) |
| unsigned int | AnimateScrambleWalk (short ticks) |
| unsigned int | PlayScrambleHangarScene (void) |
| unsigned int | DrawScrambleActor (short actorIndex) |
| unsigned int | ConfigureScrambleActor (short x, short y, short deltaX, short deltaY, struct Shape *shape, short scale, short angle, signed char flip, short actorIndex) |
| unsigned int | DrawScrambleFrame (void) |
| void | FlushSoundEffectsAndLog (int soundHandle, short fadeTicks) |
| unsigned int | ReleaseMusicTrackHook (short track) |
| unsigned int | scramble (void) |
| void * | FetchDiskPacketRetrying (short logicalFile, short section, short flags) |
| unsigned int | spacetrack (int track, int mode, short enabled) |
| void __stdcall | SetEventManagerPump (void(*pump)(void)) |
| unsigned int | ReleaseTextFont (short fontIndex) |
| unsigned int | landing (signed char damageLevel) |
| unsigned int | funeral_player (void) |
| unsigned int | funeral_wingman (char *text, short duration) |
| void | FreePacketAndClear (void *slot, unsigned short releaseFlags) |
| unsigned int | InitializeConstellationField (Viewport *viewport, short direction, short density) |
| void __stdcall | FadeViewportPaletteToColour (Viewport *viewport, unsigned short colour, short enabled) |
| unsigned int | SceneDirector (short sceneType, unsigned char *sceneData, unsigned char *textData) |
| unsigned int | funeral_sequence (int playerFuneral) |
| unsigned int | RunAnimationDemoLoop (signed char animation) |
Scramble, landing and funeral scenes, and the animation demo.
Address range 407710-40975f. The initialized scene tables precede their diagnostic and subtitle literals, which end before the following AI state.
Definition in file cutscene.c.
| unsigned int AnimateScrambleWalk | ( | short | ticks | ) |
Definition at line 198 of file cutscene.c.
References acScrambleWalkerOverlayFrames, AnimateScrambleWalk(), bEscapePressedFlag, cScrambleLeftWalkerFrame, cScrambleRightWalkerFrame, cScrambleWalkerPair, DIBslam(), DIBslamReal(), DrawSpriteDefault(), GetShapeFrameExtent(), nFrameSkip, nFrameSkipCounter, nSceneScrambleWalkerPositionY, nScrambleBackgroundX, nScrambleLeftWalkerX, nScrambleRightWalkerX, pCurrentScrambleHangarShape, PumpWindowMessages(), RefreshMemoryStatusOverlay(), and stSceneBuffer.
Referenced by AnimateScrambleWalk(), and PlayScrambleHangarScene().
| unsigned int ConfigureScrambleActor | ( | short | x, |
| short | y, | ||
| short | deltaX, | ||
| short | deltaY, | ||
| struct Shape * | shape, | ||
| short | scale, | ||
| short | angle, | ||
| signed char | flip, | ||
| short | actorIndex ) |
Definition at line 432 of file cutscene.c.
References ScrambleAnimationActor::angle, ScrambleAnimationActor::animationFrame, aScrambleAnimationActors, ConfigureScrambleActor(), ScrambleAnimationActor::deltaX, ScrambleAnimationActor::deltaY, ScrambleAnimationActor::flip, ScrambleAnimationActor::scale, ScrambleAnimationActor::shape, ScrambleAnimationActor::x, and ScrambleAnimationActor::y.
Referenced by ConfigureScrambleActor(), landing(), scramble(), and ShowCarrierLaunchSequence().
| unsigned int DrawScrambleActor | ( | short | actorIndex | ) |
Definition at line 373 of file cutscene.c.
References ScrambleAnimationActor::animation, ScrambleAnimationActor::animationFrame, ScrambleAnimationActor::animationState, aScrambleAnimationActors, ScrambleAnimationActor::baseFrame, ScrambleAnimationActor::deltaX, ScrambleAnimationActor::deltaY, DrawScrambleActor(), DrawSpriteScaled(), nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, pScrambleView, ScrambleAnimationActor::x, and ScrambleAnimationActor::y.
Referenced by DrawScrambleActor(), DrawScrambleFrame(), and ShowCarrierLaunchSequence().
| unsigned int DrawScrambleFrame | ( | void | ) |
Definition at line 451 of file cutscene.c.
References aaScrambleShipDetails, acScrambleShipDetailSlots, bScrambleCanopyClosed, DIBslam(), DIBslamReal(), DrawScrambleActor(), DrawScrambleFrame(), DrawSpriteDefault(), DrawSpriteScaled(), ScrambleShipDetail::frame, nFrameSkip, nFrameSkipCounter, nSceneScrambleCanopyFrameValue, nSceneScrambleShipDetailCountValue, nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, nScrambleCanopyOffset, nScrambleCockpitAngle, OBJECT_TYPE_HORNET, OBJECT_TYPE_RAPIER, OBJECT_TYPE_RAPTOR, OBJECT_TYPE_SCIMITAR, CampaignState::playerShipType, pSceneScrambleBgShapePtr, pScrambleCanopyShape, pScrambleCockpitShapePtr, pScrambleDetailShape, pScrambleOverlayShape, pScrambleShipShape, RefreshMemoryStatusOverlay(), stCampaignState, stSceneBuffer, stScrambleCockpitDetail, stScrambleOverlay, stScramblePlayerShipPos, ScrambleShipDetail::x, ShortPoint::x, ScrambleShipDetail::y, and ShortPoint::y.
Referenced by DrawScrambleFrame(), landing(), and scramble().
| void * FetchDiskPacketRetrying | ( | short | logicalFile, |
| short | section, | ||
| short | flags ) |
| void FlushSoundEffectsAndLog | ( | int | soundHandle, |
| short | fadeTicks ) |
Definition at line 37 of file mathutil.c.
| unsigned int funeral_player | ( | void | ) |
Definition at line 944 of file cutscene.c.
References aFuneralParticlesArray, bFuneralShowTheEnd, DIBslam(), DIBslamReal(), DrawConstellationField(), DrawSpriteDefault(), DrawSpriteScaled(), funeral_player(), nCutsceneFuneralBasePosY, nCutsceneFuneralBaseX, nCutsceneFuneralGuardFrame, nFrameSkip, nFrameSkipCounter, nFuneralCasketPositionX, nFuneralCasketPosY, nFuneralMainDist, nFuneralParticleDistance, nFuneralParticleScale, nFuneralRifleFrame, nSceneFuneralMainScale, pCurrentConversationSpecialShape, print_subtitle(), RefreshMemoryStatusOverlay(), stCutsceneFuneralForeground, stSceneBuffer, Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by funeral_player(), funeral_sequence(), and funeral_wingman().
| unsigned int funeral_sequence | ( | int | playerFuneral | ) |
Definition at line 1049 of file cutscene.c.
References aFuneralParticleOrigins, aFuneralParticlesArray, asCampaignBriefingFiles, asFuneralSceneBySeries, bEscapePressedFlag, bFuneralShowTheEnd, cBlackColour, cBlueColour, ClearInputKeyStatePreservingModifiers(), ClearViewport(), cPrimaryViewBufferColour, CampaignState::currentSeries, FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), FlushInputEvents(), FormatTextBufferFromStart(), free_constellation(), free_inflight_music(), FreePacketAndClear(), funeral_player(), funeral_sequence(), GetMusicMode(), init_constellation(), InitializeConstellationField(), InitializeConversationText(), InitializeConversationViewport(), nCampaignDataSet, nCutsceneFuneralBasePosY, nCutsceneFuneralBaseX, nCutsceneFuneralGuardFrame, nFrameSkipCounter, nFuneralCasketPositionX, nFuneralCasketPosY, nFuneralMainDist, nFuneralParticleDistance, nFuneralRifleFrame, nFuneralSequenceActive, nMusicPlaybackMode, nWaitForMusicEnabled, pCurrentConversationSpecialShape, pIntroFont, PlaySfxWaveFileByNumber(), PreloadMusicTrackHook(), PumpWindowMessages(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ResetScreenClipToFullHeight(), RestoreGamePalette(), SceneDirector(), SetMusBreakpt(), spacetrack(), stCampaignState, stCurrentConvTextViewport, stCutsceneFuneralForeground, StopMusicUnlessSuppressed(), stSceneBuffer, stScreenView, ShortPoint::x, and ShortPoint::y.
Referenced by funeral_sequence(), GameFlow(), and RunAnimationDemoLoop().
| unsigned int funeral_wingman | ( | char * | text, |
| short | duration ) |
Definition at line 1015 of file cutscene.c.
References AddPCName(), bEscapePressedFlag, cBlackColour, CheckEscaped(), ClearViewport(), FormatTextBufferFromStart(), funeral_player(), funeral_wingman(), IsFrameTickElapsed(), nConvTextColorValue, nFrameSkipCounter, PumpWindowMessages(), SetFrameTimerPeriodDirect(), stCurrentConvTextViewport, and szTxtWorkspaceBuffer.
Referenced by funeral_wingman(), and SceneDirector().
| short __stdcall GetShapeFrameExtent | ( | short | x, |
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | extent ) |
Definition at line 187 of file cutscene.c.
References GetShapeFrameBounds(), and GetShapeFrameExtent().
Referenced by AnimateScrambleWalk(), GetLineLength(), GetShapeFrameExtent(), and print_subtitle().
| unsigned int init_3Space_objects | ( | short | scene | ) |
Definition at line 1904 of file logic.c.
References aObjectResourceSlotsArray, b3SpaceObjectsActive, bMissileCameraEnabled, bScriptedView, cScreenViewMode, init_3Space_objects(), init_constellation(), load_common_3Space_objects(), nClosestVisibleObject, nCurrentSpaceFrameValue, nExternalViewShip, nPlayerCollisionObject, nRenderedSpaceFrame, remove_all_3d_objects(), and ObjectResourceSlot::type.
| unsigned int InitializeConstellationField | ( | Viewport * | viewport, |
| short | direction, | ||
| short | density ) |
| unsigned int landing | ( | signed char | damageLevel | ) |
Definition at line 761 of file cutscene.c.
References acScrambleShipDetailSlots, anLandingDamageDetailCounts, apLandingCanopyFrames, apszLandingDamageComments, bEscapePressedFlag, bScrambleCanopyClosed, cBlackColour, cBlueColour, cCockpitLogicalFile, ClearViewport(), ConfigureScrambleActor(), DIBslam(), DIBslamReal(), DrawScrambleFrame(), FetchDiskPacketRetrying(), FlushSoundEffectsAndLog(), FormatTextBufferFromStart(), InitializeConversationText(), InitializeConversationViewport(), landing(), nFrameSkipCounter, nRenderedSpaceFrame, nSceneScrambleCanopyFrameValue, nSceneScrambleShipDetailCountValue, nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, nScrambleCanopyOffset, nScrambleCockpitAngle, OBJECT_TYPE_HORNET, OBJECT_TYPE_RAPIER, OBJECT_TYPE_RAPTOR, OBJECT_TYPE_SCIMITAR, CampaignState::playerShipType, PlaySfxWaveFileByNumber(), PollJoystickButtonEvents(), PreloadMusicTrackHook(), pSceneScrambleBgShapePtr, pScrambleCanopyShape, pScrambleCockpitShapePtr, pScrambleDetailShape, pScrambleOverlayShape, pScrambleShipShape, pScrambleView, PumpWindowMessages(), RandomInRange(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ResetScreenClipToFullHeight(), SetEventManagerPump(), spacetrack(), stCampaignState, stCurrentConvTextViewport, StopMusicUnlessSuppressed(), stSceneBuffer, stScrambleCockpitDetail, stScrambleOverlay, stScramblePlayerShipPos, WaitForSceneAdvance(), ShortPoint::x, and ShortPoint::y.
Referenced by GameFlow(), landing(), and RunAnimationDemoLoop().
| unsigned int PlayScrambleHangarScene | ( | void | ) |
Definition at line 279 of file cutscene.c.
References AnimateScrambleWalk(), bEscapePressedFlag, cCutsceneScrambleWalkTime, cScrambleLeftWalkerFrame, cScrambleRightWalkerFrame, cScrambleWalkerPair, DIBslam(), DIBslamReal(), DrawSpriteDefault(), FetchDiskPacketRetrying(), FlushSoundEffectsAndLog(), InitializeConversationViewport(), nFrameSkip, nFrameSkipCounter, nMemoryConfig, nSceneScrambleWalkerPositionY, nScrambleBackgroundX, nScrambleLeftWalkerX, nScrambleRightWalkerX, pCurrentScrambleHangarShape, PlayScrambleHangarScene(), PlaySfxWaveFileByNumber(), PreloadMusicTrackHook(), PumpWindowMessages(), RandomWord(), RefreshMemoryStatusOverlay(), ReleasePacketHandle(), ResetScreenClipToFullHeight(), SceneLeaveHook(), spacetrack(), and stSceneBuffer.
Referenced by GameFlow(), PlayScrambleHangarScene(), and RunAnimationDemoLoop().
| unsigned int RunAnimationDemoLoop | ( | signed char | animation | ) |
Definition at line 1337 of file cutscene.c.
References AwardCampaignMedal(), BarracksScreen(), Briefing(), CampaignState::currentMission, CampaignState::currentSeries, death_sequence(), DeBriefing(), exit_squadron(), free_3Space(), free_constellation(), funeral_sequence(), init_3Space_objects(), InitializeCockpitResources(), landing(), LaunchPlayerShip(), nCurrentConversationMedalIndex, Office(), PlayScrambleHangarScene(), RecRoom(), RunAnimationDemoLoop(), scramble(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowMeanwhileTransition(), ShowTigerClawEscapeScene(), stCampaignState, Title_Sequence(), and WaitForInputKey().
Referenced by main(), and RunAnimationDemoLoop().
| unsigned int SceneDirector | ( | short | sceneType, |
| unsigned char * | sceneData, | ||
| unsigned char * | textData ) |
| unsigned int scramble | ( | void | ) |
Definition at line 596 of file cutscene.c.
References bEscapePressedFlag, bScrambleCanopyClosed, cCockpitLogicalFile, ConfigureScrambleActor(), DrawScrambleFrame(), FetchDiskPacketRetrying(), FlushSoundEffects(), FlushSoundEffectsAndLog(), InitializeConversationViewport(), nFrameSkipCounter, nMemoryConfig, nSceneScrambleCanopyFrameValue, nSceneScrambleShipDetailCountValue, nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, nScrambleCanopyOffset, nScrambleCockpitAngle, OBJECT_TYPE_HORNET, OBJECT_TYPE_RAPIER, OBJECT_TYPE_RAPTOR, OBJECT_TYPE_SCIMITAR, CampaignState::playerShipType, PlaySfxWaveFileByNumber(), pSceneScrambleBgShapePtr, pScrambleCanopyShape, pScrambleCockpitShapePtr, pScrambleShipShape, pScrambleView, PumpWindowMessages(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ResetScreenClipToFullHeight(), scramble(), stCampaignState, StopMusicUnlessSuppressed(), stSceneBuffer, stScrambleCockpitDetail, stScrambleOverlay, stScramblePlayerShipPos, WaitForSceneAdvance(), ShortPoint::x, and ShortPoint::y.
Referenced by GameFlow(), RunAnimationDemoLoop(), and scramble().
| unsigned int spacetrack | ( | int | track, |
| int | mode, | ||
| short | enabled ) |
|
static |
Definition at line 47 of file cutscene.c.
Referenced by DrawScrambleFrame().
|
static |
Definition at line 133 of file cutscene.c.
|
static |
Definition at line 138 of file cutscene.c.
|
static |
Definition at line 143 of file cutscene.c.
| signed char acScrambleShipDetailSlots[24] |
Definition at line 166 of file cutscene.c.
Referenced by DrawScrambleFrame(), and landing().
|
static |
Definition at line 21 of file cutscene.c.
Referenced by AnimateScrambleWalk().
|
static |
Definition at line 155 of file cutscene.c.
Referenced by funeral_sequence().
| ShortPoint aFuneralParticlesArray[7] |
Definition at line 169 of file cutscene.c.
Referenced by funeral_player(), and funeral_sequence().
|
static |
Definition at line 122 of file cutscene.c.
Referenced by landing().
|
static |
Definition at line 148 of file cutscene.c.
Referenced by landing().
|
static |
Definition at line 126 of file cutscene.c.
Referenced by landing().
|
static |
Definition at line 36 of file cutscene.c.
Referenced by ConfigureScrambleActor(), and DrawScrambleActor().
|
static |
Definition at line 160 of file cutscene.c.
Referenced by funeral_sequence().
|
static |
Definition at line 28 of file cutscene.c.
|
static |
Definition at line 32 of file cutscene.c.
|
static |
Definition at line 163 of file cutscene.c.
Referenced by funeral_player(), and funeral_sequence().
| signed char cCutsceneScrambleWalkTime |
Definition at line 167 of file cutscene.c.
Referenced by PlayScrambleHangarScene().
|
static |
Definition at line 18 of file cutscene.c.
Referenced by AnimateScrambleWalk(), and PlayScrambleHangarScene().
|
static |
Definition at line 19 of file cutscene.c.
Referenced by AnimateScrambleWalk(), and PlayScrambleHangarScene().
| short nCutsceneFuneralBasePosY |
Definition at line 178 of file cutscene.c.
Referenced by funeral_player(), and funeral_sequence().
| short nCutsceneFuneralBaseX |
Definition at line 177 of file cutscene.c.
Referenced by funeral_player(), and funeral_sequence().
| short nFuneralParticleDistance |
Definition at line 171 of file cutscene.c.
Referenced by funeral_player(), and funeral_sequence().
| short nFuneralParticleScale |
Definition at line 181 of file cutscene.c.
Referenced by funeral_player().
| short nFuneralRifleFrame |
Definition at line 176 of file cutscene.c.
Referenced by funeral_player(), and funeral_sequence().
| short nSceneFuneralMainScale |
Definition at line 175 of file cutscene.c.
Referenced by funeral_player().
| short nSceneScrambleShipDetailCountValue |
Definition at line 165 of file cutscene.c.
Referenced by DrawScrambleFrame(), landing(), and scramble().
| short nSceneScrambleWalkerPositionY |
Definition at line 184 of file cutscene.c.
Referenced by AnimateScrambleWalk(), and PlayScrambleHangarScene().
| short nScrambleBackdropPositionY |
Definition at line 172 of file cutscene.c.
Referenced by DrawScrambleActor(), DrawScrambleFrame(), landing(), scramble(), and ShowCarrierLaunchSequence().
| short nScrambleBackgroundRightCoordX |
Definition at line 173 of file cutscene.c.
Referenced by DrawScrambleActor(), DrawScrambleFrame(), landing(), scramble(), and ShowCarrierLaunchSequence().
|
static |
Definition at line 26 of file cutscene.c.
Referenced by AnimateScrambleWalk(), and PlayScrambleHangarScene().
|
static |
Definition at line 24 of file cutscene.c.
Referenced by AnimateScrambleWalk(), and PlayScrambleHangarScene().
|
static |
Definition at line 25 of file cutscene.c.
Referenced by AnimateScrambleWalk(), and PlayScrambleHangarScene().
| struct Shape* pCurrentConversationSpecialShape |
Definition at line 168 of file cutscene.c.
Referenced by CloseTalk(), funeral_player(), and funeral_sequence().
| struct Shape* pCurrentScrambleHangarShape |
Definition at line 182 of file cutscene.c.
Referenced by AnimateScrambleWalk(), and PlayScrambleHangarScene().
| struct Shape* pSceneScrambleBgShapePtr |
Definition at line 170 of file cutscene.c.
Referenced by DrawScrambleFrame(), landing(), and scramble().
| struct Shape* pScrambleCockpitShapePtr |
Definition at line 183 of file cutscene.c.
Referenced by DrawScrambleFrame(), landing(), and scramble().
| ShortPoint stCutsceneFuneralForeground |
Definition at line 174 of file cutscene.c.
Referenced by funeral_player(), and funeral_sequence().
| ShortPoint stScramblePlayerShipPos |
Definition at line 180 of file cutscene.c.
Referenced by DrawScrambleFrame(), landing(), and scramble().