Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
launch.c File Reference

Carrier departure and cockpit launch sequences. More...

#include "wc1.h"

Go to the source code of this file.

Functions

void DrawLaunchDoorFrame (short distance)
void LaunchPlayerShip (void)
unsigned int ShowCarrierLaunchSequence (signed char sceneObject)

Variables

static short asCarrierLaunchApproachDeltaY [24]
static signed char acCarrierLaunchApproachFrames [24]
static ShortPoint aCarrierLaunchFighterPath [9]
static short asCarrierLaunchFighterDeltaY [14]
static short asCarrierLaunchViewData [14]
Viewport * pConstellationViewportPtr
short nViewConstellationStarCount
ConstellationParticle aConstellationParticlesList [16]
Viewport stConstellationViewport
short nConstellationParticleTotal
const short * pCurrentViewScriptPtr
short nCurrentExternalViewDistance
Viewport stPilotHandView
Viewport stLeftVdu
ScreenViewportPacket * pCurrentScreenViewportPkt
Viewport stScreenView
TextContext stHudMessageTextContext
Viewport stCockpitBar

Detailed Description

Carrier departure and cockpit launch sequences.

Address range 42b9a0-42c40f. Its boundary with the installation helpers in install.c, which follow, is provisional.

Definition in file launch.c.

Function Documentation

◆ DrawLaunchDoorFrame()

◆ LaunchPlayerShip()

◆ ShowCarrierLaunchSequence()

unsigned int ShowCarrierLaunchSequence ( signed char sceneObject)

Definition at line 145 of file launch.c.

References aCarrierLaunchFighterPath, acCarrierLaunchApproachFrames, AddFixedVectors(), aeObjectClass, alter_yaw(), aObjectTypeData, apObjShapeArray, asCarrierLaunchApproachDeltaY, asCarrierLaunchFighterDeltaY, asCarrierLaunchViewData, aShipPositionsArray, aShipVelocity, asObjDistancesTable, asObjectCollisionRadius, asObjectFlipArray, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, awObjectScales, bEscapePressedFlag, bIntroSceneResourcesActive, bScriptedView, clear_view_buffer(), ConfigureScrambleActor(), copy_frame(), DIBslam(), DIBslamReal(), draw_sorted_objects_to_buffer(), DrawScrambleActor(), DrawSpriteDefault(), DrawSpriteScaled(), dump_buffer_to_screen(), FetchDiskPacketRetrying(), FlushSoundEffectsAndLog(), free_ship(), house_keep_objects(), initialize_scripted_view(), nCurrentSpaceFrameValue, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nFrameSkip, nFrameSkipCounter, nRenderedSpaceFrame, nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, nScriptedViewObject, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, PaletteFadeHook(), CampaignState::playerShipType, PlaySfxWaveFileByNumber(), PreloadMusicTrackHook(), pScrambleView, PumpWindowMessages(), RefreshCockpitStatus(), ReleaseMusicTrackHook(), ReleasePacketHandle(), remove_nav_point_objects(), ResetSoundState(), set_eye_direction_and_position(), ObjectTypeData::shapeSet, ShowCarrierLaunchSequence(), sort_object_depth(), spacetrack(), stCampaignState, StopMusicUnlessSuppressed(), stSpaceBufferViewport, transform_objects_to_your_view(), update_objects_in_space(), update_star_field(), UpdateSpacePaletteFade(), void(), WaitForVerticalBlankThunk(), ShortPoint::x, and ShortPoint::y.

Referenced by GameFlow(), init_3Space_objects(), RunAnimationDemoLoop(), and ShowCarrierLaunchSequence().

Variable Documentation

◆ aCarrierLaunchFighterPath

ShortPoint aCarrierLaunchFighterPath[9]
static
Initial value:
= {
{ -2, 1 }, { -1, 1 }, { -1, 1 },
{ -1, 0 }, { -1, 1 }, { -1, 0 },
{ -1, 1 }, { -1, 0 }, { 0, 0 }
}

Definition at line 24 of file launch.c.

Referenced by ShowCarrierLaunchSequence().

◆ acCarrierLaunchApproachFrames

signed char acCarrierLaunchApproachFrames[24]
static
Initial value:
= {
36, 32, 32, 32, 32, 32, 32, 32,
25, 25, 25, 25, 25, 25, 25, 25,
18, 18, 18, 18, 18, 18, 18, 18
}

Definition at line 18 of file launch.c.

Referenced by ShowCarrierLaunchSequence().

◆ aConstellationParticlesList

ConstellationParticle aConstellationParticlesList[16]

Definition at line 42 of file launch.c.

Referenced by DrawConstellationField(), and InitializeConstellationField().

◆ asCarrierLaunchApproachDeltaY

short asCarrierLaunchApproachDeltaY[24]
static
Initial value:
= {
-1, -1, -1, -2, -2, -2, -2, -3,
-3, -3, -3, -3, -2, -2, -2, -2,
-1, -1, -1, -1, -1, 0, 0, 0
}

Definition at line 12 of file launch.c.

Referenced by ShowCarrierLaunchSequence().

◆ asCarrierLaunchFighterDeltaY

short asCarrierLaunchFighterDeltaY[14]
static
Initial value:
= {
3, 3, 3, 2, 2, 2, 2, 2,
1, 1, 1, 1, 1, 1
}

Definition at line 29 of file launch.c.

Referenced by ShowCarrierLaunchSequence().

◆ asCarrierLaunchViewData

short asCarrierLaunchViewData[14]
static
Initial value:
= {
12, 11, 1, 90, 90, 0, 9, -90, 0, 0, 20, 3, 15, -1
}

Definition at line 34 of file launch.c.

Referenced by ShowCarrierLaunchSequence().

◆ nConstellationParticleTotal

short nConstellationParticleTotal

Definition at line 44 of file launch.c.

Referenced by DrawConstellationField(), and InitializeConstellationField().

◆ nCurrentExternalViewDistance

short nCurrentExternalViewDistance

Definition at line 46 of file launch.c.

Referenced by new_view(), and set_eye_direction_and_position().

◆ nViewConstellationStarCount

short nViewConstellationStarCount

Definition at line 41 of file launch.c.

Referenced by DrawConstellationField(), and InitializeConstellationField().

◆ pConstellationViewportPtr

Viewport* pConstellationViewportPtr

Definition at line 40 of file launch.c.

Referenced by DrawConstellationField(), and InitializeConstellationField().

◆ pCurrentScreenViewportPkt

ScreenViewportPacket* pCurrentScreenViewportPkt

◆ pCurrentViewScriptPtr

const short* pCurrentViewScriptPtr

Definition at line 45 of file launch.c.

Referenced by initialize_scripted_view(), parse_view_script(), and update_scripted_view().

◆ stCockpitBar

Viewport stCockpitBar

Definition at line 52 of file launch.c.

Referenced by InitializeCockpitResources(), and vdu_polygon().

◆ stConstellationViewport

Viewport stConstellationViewport

Definition at line 43 of file launch.c.

Referenced by LoadFace(), RecRoom(), and SceneDirector().

◆ stHudMessageTextContext

TextContext stHudMessageTextContext

◆ stLeftVdu

◆ stPilotHandView

◆ stScreenView

Viewport stScreenView