|
Wing Commander
Reconstructed Win32 source (1996)
|
Campaign victory, retreat and ending scenes. More...
Go to the source code of this file.
Functions | |
| unsigned int | init_3Space_objects (short) |
| void * | AllocateTaggedMemory (int size, unsigned short flags) |
| void | ReleasePacketHandle (void *handle) |
| unsigned int | GetFixedOneMillionThunk (short memoryType) |
| unsigned int | GetFixedOneMillionThunkAlt (short memoryType) |
| void | CreateCannedSceneObject (short *object, short yaw, short unusedPitch, short distance, struct Shape *shape, short frame, short type, short scale) |
| unsigned int | ShowCampaignVictorySequence (void) |
| unsigned int | ShowTigerClawEscapeScene (void) |
| unsigned int | ShowTheEndScreen (short enableFireworks) |
Variables | |
| static unsigned char | abTaggedAllocationPrefix [8] |
| signed char | acShipStressList [16] |
| short | anRollGoal [16] |
| enum Side | aeShipSide [12] |
| signed char | acShipAiCooldowns [16] |
| FixedVector | vCollisionDelta |
| signed char | acLastCollisionObjects [SPACE_OBJECT_COUNT] |
| short | aasShipMaximumShieldTable [10][2] |
| short | asObjectCollisionRadius [64] |
| signed char | acShipPointingModeList [16] |
| static const char * | apszCampaignVictoryText [4] |
| static const char * | pszTigerClawEscapeOpening |
| static const char * | pszTigerClawEscapeJump |
| static const char * | pszTigerClawEscapeClosing |
| static ShortVector | aCampaignVictoryProjectileOrigins [4] |
| static const char * | pszTheEnd = "The End" |
| static const char * | pszForNow = "For Now..." |
Campaign victory, retreat and ending scenes.
Address range 42fa90-43070f. The tagged-allocation helpers at its start stay in this unit provisionally.
Definition in file ending.c.
| void * AllocateTaggedMemory | ( | int | size, |
| unsigned short | flags ) |
Definition at line 31 of file ending.c.
References abTaggedAllocationPrefix, AllocateGuardedMemory(), AllocateTaggedMemory(), PushMemoryStackFrame(), and TaggedAllocationHeader::signature.
Referenced by AllocateTaggedMemory(), AllocateUntaggedMemory(), AllocateViewport(), CollectActivePaletteIndices(), DecompressPacketSection(), ejection_sequence(), FadeViewportPaletteToColour(), get_pilot_talk(), InitializeCockpitResources(), InitializeNearHeap(), LoadInstallDat(), LoadPacketAllocated(), LoadPaletteTripletsFile(), PacketLoad(), PanToScreen(), PlaySfxWaveFileByNumber(), PrepareShapeRLEData(), SetAwakenBarracksMenuLabel(), ShowModalTextPanel(), StepPaletteTransition(), and TalkerInit().
| void CreateCannedSceneObject | ( | short * | object, |
| short | yaw, | ||
| short | unusedPitch, | ||
| short | distance, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | type, | ||
| short | scale ) |
Definition at line 85 of file ending.c.
References aeObjectClass, aeObjectTypeList, alter_yaw(), apObjShapeArray, aShipFwdVec, aShipPositionsArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, CreateCannedSceneObject(), find_vacant_3d_object(), init_ijk(), OBJECT_CLASS_PLANET, ScaleFixedVector(), and void().
Referenced by CreateCannedSceneObject(), PlaySfxWaveFileByNumber(), and ShowCampaignVictorySequence().
| unsigned int GetFixedOneMillionThunk | ( | short | memoryType | ) |
Definition at line 71 of file ending.c.
References GetFixedOneMillion(), GetFixedOneMillionThunk(), and void().
Referenced by GetFixedOneMillionThunk(), LoadOriginFxDrivers(), and PlaySfxWaveFileByNumber().
| unsigned int GetFixedOneMillionThunkAlt | ( | short | memoryType | ) |
Definition at line 78 of file ending.c.
References GetFixedOneMillionAlt(), GetFixedOneMillionThunkAlt(), and void().
Referenced by FetchDiskPacketRetrying(), GetFixedOneMillionThunkAlt(), LoadOriginFxDrivers(), LogMemoryUsage(), main(), PlaySfxWaveFileByNumber(), ReportPacketLoadError(), SetFleetOverviewView(), and ShowMemoryStatusDebug().
Definition at line 50 of file ending.c.
References aapPacketReferences, FreeGuardedAllocation(), MapPacketHandleToBlock(), and ReleasePacketHandle().
Referenced by AllocateViewport(), AwardCampaignMedal(), BarracksScreen(), Briefing(), BriefingMap_DisplayMap(), CollectActivePaletteIndices(), DeBriefing(), DecompressPacketSection(), ejection_sequence(), EnterPilotNameAndCallsign(), FadeViewportPaletteToColour(), free_cockpit(), free_viewport(), FreeBarracksMenuLabel(), FreePacketAndClear(), funeral_sequence(), InflightComputer(), initialize_cockpit(), landing(), LaunchPlayerShip(), LoadInstallDat(), LoadMissionData(), LoadPaletteTripletsFile(), Office(), PanToScreen(), PlayScrambleHangarScene(), PlaySfxWaveFileByNumber(), PrepareShapeRLEData(), RecRoom(), ReleaseModalTextPanel(), ReleasePacketHandle(), ReleaseSceneAnimationResources(), ReleaseTextFont(), ReleaseUntaggedMemory(), scramble(), SelectTrainSimMission(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowChalkBoard(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowModalTextPanel(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), ShowTrainSimHighScores(), ShowVictoryScreen(), StepPaletteTransition(), and Title_Sequence().
| unsigned int ShowCampaignVictorySequence | ( | void | ) |
Definition at line 132 of file ending.c.
References aCampaignVictoryProjectileOrigins, apszCampaignVictoryText, asCampaignVictoryViewScript, asObjectCollisionRadius, asObjScreenScalesArray, bEscapePressedFlag, bIntroSceneResourcesActive, bScriptedView, cBlackColour, CheckEscaped(), clear_view_buffer(), ClearViewport(), CreateCannedSceneObject(), CampaignVictoryProjectile::depth, DIBslam(), DIBslamReal(), Draw_3Space_Frame(), DrawSpriteDefault(), DrawSpriteScaled(), dump_buffer_to_screen(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), CampaignVictoryProjectile::flip, FormatTextBufferFromStart(), free_3Space(), free_all_slots(), init_3Space_objects(), initialize_scripted_view(), InitializeConversationText(), IsFrameTickElapsed(), nCannedSceneMode, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nFrameSkipCounter, nScriptedViewObject, PreloadMusicTrackHook(), RandomBelowOrEqual(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), RestoreGamePalette(), CampaignVictoryProjectile::scale, CampaignVictoryProjectile::screenX, CampaignVictoryProjectile::screenY, set_up_action_sphere(), SetFrameTimerPeriodDirect(), SetTextContext(), ShowCampaignVictorySequence(), spacetrack(), stCurrentConvTextViewport, stCurrentConvTxtCtx, stModalSrcViewport, StopMusicUnlessSuppressed(), stScreenView, stSpaceBufferViewport, Update_3Space(), WaitForSceneAdvance(), WaitForVerticalBlankThunk(), CampaignVictoryProjectile::x, ShortVector::x, CampaignVictoryProjectile::y, ShortVector::y, and ShortVector::z.
Referenced by GameFlow(), PlaySfxWaveFileByNumber(), RunAnimationDemoLoop(), and ShowCampaignVictorySequence().
| unsigned int ShowTheEndScreen | ( | short | enableFireworks | ) |
Definition at line 495 of file ending.c.
References aFireworksList, bEscapePressedFlag, Viewport::bottom, cBlackColour, ClearViewport(), DIBslam(), DIBslamReal(), FetchDiskPacketRetrying(), FireworkState::frame, get_player_input(), InitializeConversationViewport(), InitializeFireworks(), nFrameSkipCounter, PanToScreen(), pFireworkShape, pIntroFont, PreloadMusicTrackHook(), print_subtitle(), pszForNow, pszTheEnd, RandomBelowOrEqual(), RandomInRange(), RefreshMemoryStatusOverlay(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ResetScreenClipToFullHeight(), Viewport::right, SetEventManagerPump(), ShowTheEndScreen(), spacetrack(), stModalSrcViewport, StopMusic(), StopMusicUnlessSuppressed(), stSceneBuffer, stScreenView, stSpaceBufferViewport, TheEndFireWorks(), FireworkState::variant, ViewMedals(), FireworkState::x, and FireworkState::y.
Referenced by GameFlow(), PlaySfxWaveFileByNumber(), and ShowTheEndScreen().
| unsigned int ShowTigerClawEscapeScene | ( | void | ) |
Definition at line 368 of file ending.c.
References AddFixedVectors(), aObjectTypeData, aShipFwdVec, aShipPositionsArray, aShipVelocity, asObjectCollisionRadius, asTigerClawEscapeViewScript, awObjectScales, bEscapePressedFlag, bIntroSceneResourcesActive, bScriptedView, bViewportDirty, cBlackColour, clear_view_buffer(), ClearViewport(), CampaignState::currentSeries, cViewportClearColour, DIBslam(), DIBslamReal(), Draw_3Space_Frame(), DrawSpriteScaled(), dump_buffer_to_screen(), FetchDiskPacketRetrying(), find_vacant_3d_object(), FormatTextBufferFromStart(), free_3Space(), free_all_slots(), init_3Space_objects(), initialize_scripted_view(), InitializeConversationText(), nCannedSceneMode, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nFrameSkipCounter, nScriptedViewObject, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, PreloadMusicTrackHook(), pszTigerClawEscapeClosing, pszTigerClawEscapeJump, pszTigerClawEscapeOpening, ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ScaleFixedVector(), set_objects_data(), set_up_action_sphere(), SetTextContext(), ObjectTypeData::shapeSet, ShowTigerClawEscapeScene(), spacetrack(), stCampaignState, stCurrentConvTextViewport, stCurrentConvTxtCtx, StopMusicUnlessSuppressed(), stSpaceBufferViewport, Update_3Space(), and zero_vector().
Referenced by GameFlow(), PlaySfxWaveFileByNumber(), RunAnimationDemoLoop(), and ShowTigerClawEscapeScene().
| short aasShipMaximumShieldTable[10][2] |
Definition at line 26 of file ending.c.
Referenced by internal_damage(), replenish_shields(), replenish_weapon_energy_bank(), revise_shields(), RunTrainSim(), and set_objects_data().
|
static |
Definition at line 16 of file ending.c.
Referenced by AllocateTaggedMemory().
|
static |
Definition at line 124 of file ending.c.
Referenced by ShowCampaignVictorySequence().
| signed char acLastCollisionObjects[SPACE_OBJECT_COUNT] |
Definition at line 25 of file ending.c.
Referenced by object_collision(), and set_objects_data().
| signed char acShipAiCooldowns[16] |
Definition at line 23 of file ending.c.
Referenced by intelligence_events(), object_collision(), and ship_intelligence().
| signed char acShipPointingModeList[16] |
Definition at line 28 of file ending.c.
Referenced by point_ship(), and Set_up_ship_info().
| signed char acShipStressList[16] |
Definition at line 20 of file ending.c.
Referenced by explode(), handle_stress(), init_intelligence_data(), intelligence_events(), reset_stress(), ShipAiState44(), stress_morale(), and try2rout().
| enum Side aeShipSide[12] |
Definition at line 22 of file ending.c.
Referenced by abandoned(), analyze_kill(), any_enemy(), any_enemy_tail(), arrive_from_warp(), attacker_in_range(), auto_pilot_sequence(), bad_target(), build_target_list(), build_your_target_list(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), call_enemy(), check_destroy_target(), check_next_wave(), check_target(), coming_home(), cruise_to_destination(), cycle_onscreen_targets(), detect_enemy_tail(), draw_target_box(), FF_missile_intelligence(), FindEnemyAimingWithinRange(), get_color(), get_first_follow_point(), get_follow_point(), hostile_sphere(), house_keep_objects(), in_danger(), inflict_damage(), init_intelligence_data(), initialize_ship(), internal_damage(), kilrathi_near(), nearest_enemy_range(), new_space_music_changes(), npc_communication(), prepare_for_jump(), process_maneuver_node(), real_vid_transmit(), remove_object(), report_kilrathi_rout(), request(), reset_mission_type(), run_away(), scan_for_enemy(), score_for_kill(), select_target(), send_appropriate_message(), send_message(), Set_up_ship_info(), ship_intelligence(), target_locking(), target_valid(), try2rout(), vid_transmit(), and wingman_mission().
| short anRollGoal[16] |
Definition at line 21 of file ending.c.
Referenced by advance_canned_sequence(), auto_pilot_sequence(), chase_location(), formation_break(), goto_formation(), Mcorkscrew(), Mline_up_drop(), Mroll_over(), Mstrafe_n_roll(), Mwabble(), no_goal(), rotate_object_to_goal(), steady_object(), steer_away_from_object(), steer_away_from_predicted_object(), tanker_intelligence(), and update_canned_sequence().
|
static |
Definition at line 108 of file ending.c.
Referenced by ShowCampaignVictorySequence().
| short asObjectCollisionRadius[64] |
Definition at line 27 of file ending.c.
Referenced by animate_object(), apply_force_to_object(), auto_position(), check_for_collision(), distance_from_object(), distance_from_point(), draw_nav_pointer(), explosion_shock_wave(), get_facing_range_from_object(), get_facing_range_from_point(), initialize_scripted_view(), IsPointWithinEyeViewCone(), make_shard(), Mtail_fire(), Mveer_away(), Mzip_past(), new_view(), object_collision(), onboard_explosion(), perform_maneuver(), point_ship_behind_object(), point_ship_below_object(), real_crash_time(), rotational_acceleration(), set_objects_data(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), ShowTigerClawEscapeScene(), transform_objects_to_your_view(), and update_star_field().
|
static |
Definition at line 129 of file ending.c.
Referenced by ShowTheEndScreen().
|
static |
Definition at line 128 of file ending.c.
Referenced by ShowTheEndScreen().
|
static |
Definition at line 121 of file ending.c.
Referenced by ShowTigerClawEscapeScene().
|
static |
Definition at line 118 of file ending.c.
Referenced by ShowTigerClawEscapeScene().
|
static |
Definition at line 115 of file ending.c.
Referenced by ShowTigerClawEscapeScene().
| FixedVector vCollisionDelta |
Definition at line 24 of file ending.c.
Referenced by check_for_collision(), hit_asteroid(), and object_collision().