|
Wing Commander II
Reconstructed Win32 source (1996)
|
Cockpit displays, HUD messages and VDUs. More...
#include "game.h"Go to the source code of this file.
Macros | |
| #define | COCKPT_C |
| #define | COMM_SPEAKER_SIDE(obj) |
Cockpit displays, HUD messages and VDUs.
Definition in file cockpt.c.
| #define COMM_SPEAKER_SIDE | ( | obj | ) |
| short achieved | ( | short | objective | ) |
Definition at line 1146 of file cockpt.c.
References achieved(), g_aMissionObjectives, and MissionObjective::type.
Referenced by achieved(), BuildMap(), CanPlayerLand(), cleanup_objectives(), and StoreMissionResultsInCampaignGlobals().
| void AdjustScannerContactColourForRange | ( | int | range, |
| short * | colour ) |
Definition at line 1650 of file cockpt.c.
References AdjustScannerContactColourForRange(), g_bPrimaryViewBufferColour, g_bRewritePacketExtensions, and g_cYellowColour.
Referenced by AdjustScannerContactColourForRange(), and draw_3d_scanner().
Definition at line 3092 of file cockpt.c.
References animate_pilot(), determine_pilot_hand(), DrawPilotHandFrame(), g_14_cPilotHandFrameCode, g_cLastPilotHandFrame, and g_pPilotHandAnimationShapePtr.
Referenced by animate_pilot(), ResetPilotHandAnimation(), and update_cockpit().
| short auto_pilot_valid | ( | short | showReason | ) |
Definition at line 440 of file cockpt.c.
References auto_pilot_valid(), CockpitMessage(), distance_from_point(), equ_vector(), g_aeObjectClass, g_aMissionObjectives, g_apShipMissionRecord, g_aShipDestination, g_asShipMissionParameter, g_asShipMissionType, g_asShipSide, g_cCurrentObjective, g_cMissionObjectiveCount, g_cYellowColour, g_nCurrentNavPoint, g_pActiveHazardField, g_pszAutopilotWaitReason, IsCockpitExplosionActive(), IsMissionObjectiveOutOfSystem(), kilrathi_near(), MISSION_TYPE_GOTO_WARP, OBJECT_CLASS_CAPITAL_SHIP, and SIDE_KILRATHI.
Referenced by auto_pilot_sequence(), auto_pilot_valid(), and draw_cockpit_lights().
| void build_your_target_list | ( | short * | hasEnemy | ) |
Definition at line 2781 of file cockpt.c.
References build_your_target_list(), g_15_nStoredScreenViewCentreX, g_27_stViewScratchInfo, g_37_nViewCenterY, g_66_pCabinHudImage, g_acViableTarget, g_aeObjectClass, g_aeSpecialManeuver, g_apObjectShape, g_asObjectDistance, g_asObjectFlip, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectScreenX, g_asObjectScreenY, g_asObjectType, g_asObjectViewFrame, g_asShipSide, g_asViableTargetDistance, g_cViableTargetCount, g_nAimCameraMode, g_nCurrentView, g_nTargetCameraZoom, GetTransformedShapeBounds(), IsSpriteFrameOverlappingRect(), OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, SortViableTargetsByDistance(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by build_your_target_list(), check_target(), and cycle_onscreen_targets().
Definition at line 740 of file cockpt.c.
References check_message(), clear_message_time(), ejection_sequence(), EndCommMenu(), g_9_nScreenMessageTimeNumber, g_acObjectType, g_aeSpecialManeuver, g_anShipFuel, g_aObjectTypeData, g_bEjectionSequencePending, g_bSpeechPlaybackDone, g_nCommDeathSequenceFrame, g_nCommSpeakerObject, g_pCommPortraitResource, message_showing(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by check_message(), and RenderSpaceViewFrame().
Definition at line 1515 of file cockpt.c.
References check_objectives(), cycle_next_objective(), DrawCalculatingLabel(), g_cCurrentObjective, g_nCurrentObjectiveRange, g_nDisplayedObjectiveRange, InvalidateVduMode(), objective_lost(), and update_objective_location().
Referenced by check_objectives(), and update_VDUs().
| void check_sighting | ( | short | objective, |
| short | range, | ||
| short | object ) |
Definition at line 1436 of file cockpt.c.
References check_sighting(), flag_objective(), g_asObjectScreenX, and sighted().
Referenced by check_sighting(), and update_objective_location().
Definition at line 3460 of file cockpt.c.
References any_enemy(), check_stranded(), g_6_nHomeOperationShipIndexValue, g_aMissionShips, and g_nArcadeState.
Referenced by check_stranded(), RunCampaignGameLoop(), and update_cockpit().
Definition at line 2901 of file cockpt.c.
References build_your_target_list(), check_target(), g_acShipTarget, g_acViableTarget, g_aeSpecialManeuver, g_asObjectScreenX, g_asShipSide, g_bTargetLockActive, g_bTargetLockMode, g_cViableTargetCount, g_nAimCameraMode, g_nCurrentView, g_nRenderedSpaceFrame, g_nTargetCameraFrame, g_nTargetCameraZoom, g_nTargetLockCountdown, malf(), malf_sound(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by check_target(), and update_cockpit().
| void check_visit | ( | short | objective, |
| short | range ) |
Definition at line 1445 of file cockpt.c.
References check_visit(), flag_reached(), g_aMissionObjectives, and MissionObjective::type.
Referenced by check_visit(), and update_objective_location().
| short CheckTargetLockMalfunction | ( | void | ) |
Definition at line 1933 of file cockpt.c.
References CheckTargetLockMalfunction(), g_bTargetLockActive, g_nTargetLockCountdown, lock_off(), malf(), PlaySfxWaveFileByNumber(), and RandomBelowOrEqual().
Referenced by CheckTargetLockMalfunction(), and decrement_lock_time().
Definition at line 3201 of file cockpt.c.
References clear_cockpit_damage(), and g_69_asCockpitDmgStateList.
Referenced by clear_cockpit_damage(), InitializeCockpitResources(), and RunCampaignGameLoop().
Definition at line 1577 of file cockpt.c.
References clear_head_up_display(), DrawViewportPixel(), g_101_stScrViewInfo, g_10_asScannerObjectYTable, g_14_asScannerTargetUnderlay, g_15_asScannerObjectX, g_47_asScannerBackgroundColourList, g_4_pScannerBlipUnderlayPointer, g_66_pCabinHudImage, g_cCurrentObjective, g_nCurrentView, g_nScannerTargetObject, IsMissionObjectiveOutOfSystem(), RestoreSpriteBackground(), and RestoreTargetCameraAttitudeIndicators().
Referenced by clear_head_up_display(), draw_3d_scanner(), and initialize_cockpit().
Definition at line 720 of file cockpt.c.
References clear_message_time(), and g_9_nScreenMessageTimeNumber.
Referenced by check_message(), clear_message_time(), and EndCommMenu().
Definition at line 383 of file cockpt.c.
References ClearGlobalMessage(), ClearHudMessageSlot(), and g_12_aHudTextSlotsArray.
Referenced by ClearGlobalMessage().
Definition at line 326 of file cockpt.c.
References ClearHudGunReadouts(), HudMessageSlot::flashCount, g_12_aHudTextSlotsArray, and HudMessageSlot::text.
Referenced by clean_up_cockpit(), ClearHudGunReadouts(), and InitializeCockpitResources().
| void ClearHudMessageDisplay | ( | short | closeCommMenu | ) |
Definition at line 2171 of file cockpt.c.
References ClearHudMessageDisplay(), EndCommMenu(), g_3_cOverlayMessageView, g_bCaptureHudMessageBackground, g_bDisplayWingmanTargetData, g_cPrimaryViewBufferColour, g_nCurrentView, g_nHudMessageBackgroundDepth, g_pszDisplayedHudMessage, print_message_text(), RestoreHudMessageBackground(), and SelectCockpitVduMode().
Referenced by ClearHudMessageDisplay(), DismissHudMessageIfShowing(), RenderSpaceViewFrame(), SetHudMessageText(), and ShowOnScreenMessage().
| void ClearHudMessageIfMatching | ( | HudMessageSlot * | slot, |
| const char * | text ) |
Definition at line 319 of file cockpt.c.
References ClearHudMessageIfMatching(), ClearHudMessageSlot(), and HudMessageSlot::text.
Referenced by ClearHudMessageIfMatching(), and remove_message().
| void ClearHudMessageSlot | ( | HudMessageSlot * | slot | ) |
Definition at line 303 of file cockpt.c.
References ClearHudMessageSlot(), DrawHudMessageSlot(), HudMessageSlot::flashCount, g_nCurrentView, get_mode(), IsCockpitWeaponShapeLoaded(), show_weapon_disp(), and HudMessageSlot::text.
Referenced by ClearGlobalMessage(), ClearHudMessageIfMatching(), ClearHudMessageSlot(), pop_mode(), push_mode(), set_mode(), SetHudMessageSlot(), ShowComponentHitHudMessage(), and UpdateMessage().
Definition at line 3300 of file cockpt.c.
References CaptureSpriteBackground(), cockpit_explosion(), DrawPendingCockpitDamage(), DrawSpriteDefault(), FreePacketAndClear(), g_101_stScrViewInfo, g_8_stCockpitExplosionPosBlock, g_cLastPilotHandFrame, g_nCockpitExplosionFrame, g_pCockpitExplosionBackground, g_pCockpitExplosionShape, IsCockpitExplosionActive(), PlaySfxWaveFileByNumber(), ShortPoint::x, and ShortPoint::y.
Referenced by cockpit_explosion(), and update_cockpit().
| void CockpitMessage | ( | const char * | text, |
| unsigned short | colour, | ||
| int | flashCount ) |
Definition at line 373 of file cockpt.c.
References CockpitMessage(), g_12_aHudTextSlotsArray, and set_global_message().
Referenced by auto_pilot_valid(), CockpitMessage(), decrement_lock_time(), flag_reached(), and OpenCommMenuForTarget().
Definition at line 3469 of file cockpt.c.
References ShortRect::bottom, Viewport::bottom, CopyTrainSimPilotViewToVdus(), CopyViewportContents(), g_2_stLeftwardVduPortBlock, g_3_stDashViewport, g_4_stRightVduView, g_stPilotHandBackgroundViewportBlock, g_stTrainSimLeftVduSource, g_stTrainSimRightVduSource, GetViewportIntersection(), ShortRect::left, Viewport::left, ShortRect::right, Viewport::right, ShortRect::top, and Viewport::top.
Referenced by CopyTrainSimPilotViewToVdus(), and update_VDUs().
| short cycle_next_objective | ( | void | ) |
Definition at line 1299 of file cockpt.c.
References cycle_next_objective(), g_abFlightPath, g_cCurrentNavPointIndex, g_cCurrentObjective, and set_new_objective().
Referenced by check_objectives(), cycle_next_objective(), InflightComputer(), and set_next_destination().
Definition at line 2871 of file cockpt.c.
References build_your_target_list(), cycle_onscreen_targets(), g_acShipTarget, g_acViableTarget, g_asShipSide, g_cViableTargetCount, and g_nTargetLockCountdown.
Referenced by cycle_onscreen_targets(), HandleFleetOverviewInput(), and SelectCockpitVduMode().
| signed char damage_your_component | ( | char | component, |
| char | amount, | ||
| char | maximum ) |
Definition at line 846 of file cockpt.c.
References damage_your_component(), g_acPlayerComponentDamage, g_apszComponentNames, g_cRedColour, get_mode(), malf(), MinShort(), ShowComponentHitHudMessage(), and vdu_malf().
Referenced by check_computer_damage(), damage_your_component(), and your_internal_damage().
| short decrement_lock_time | ( | short | screenX | ) |
Definition at line 1947 of file cockpt.c.
References CheckTargetLockMalfunction(), CockpitMessage(), decrement_lock_time(), g_aShipWeapons, g_bTargetLockAcquired, g_cRedColour, g_nSelectedReleaseWeaponIndex, g_nTargetLockCountdown, g_pszMissileLocked, malf(), OBJECT_DATA_TORPEDO, PlaySfxWaveFileByNumber(), and void().
Referenced by decrement_lock_time(), and target_locking().
Definition at line 3034 of file cockpt.c.
References determine_pilot_hand(), g_14_cPilotHandFrameCode, g_anFlightInput, and MinShort().
Referenced by animate_pilot(), and determine_pilot_hand().
Definition at line 2756 of file cockpt.c.
References ClearHudMessageDisplay(), DismissHudMessageIfShowing(), message_showing(), and set_message_time().
Referenced by DismissHudMessageIfShowing(), and real_vid_transmit().
Definition at line 1709 of file cockpt.c.
References AdjustScannerContactColourForRange(), CaptureSpriteBackground(), CockpitScannerGeometry::centerX, CockpitScannerGeometry::centerY, clear_head_up_display(), ComputeVectorDelta(), draw_3d_scanner(), DrawSpriteDefault(), DrawTargetCameraAttitudeIndicators(), DrawViewportPixel(), EYE_OBJECT, g_101_stScrViewInfo, g_10_asScannerObjectYTable, g_14_asScannerTargetUnderlay, g_15_asScannerObjectX, g_47_asScannerBackgroundColourList, g_4_pScannerBlipUnderlayPointer, g_66_pCabinHudImage, g_8_nGunDisplaySlot, g_8_nScopePointerX, g_9_nScannerCursorYValue, g_abGunDisplayConfiguration, g_acShipTarget, g_aeObjectClass, g_aiForwardScannerGridRows, g_aiTargetCameraScannerGridRows, g_anShipCloakState, g_aShipPosition, g_bPrimaryViewBufferColour, g_cCurrentObjective, g_nCockpitDisplayMode, g_nCurrentView, g_nScannerTargetObject, g_stCockpitScannerGeometry, get_color(), get_mode(), GetViewportPixel(), IsMissionObjectiveOutOfSystem(), OBJECT_CLASS_SHIP, SphericalVector::radius, rectangular_to_spherical(), rotational_pos_to_scanner_pos(), set_objective_range(), and transform_to_objects_frame().
Referenced by draw_3d_scanner(), and update_cockpit().
Definition at line 513 of file cockpt.c.
References auto_pilot_valid(), draw_cockpit_lights(), DrawSpriteDefault(), g_101_stScrViewInfo, g_12_abCockpitLightGoalTable, g_4_abCockpitLightMode, g_4_pCockpitPanelShape, g_acCockpitLightOffFrame, g_acCockpitLightOnFrame, g_asCockpitLightX, g_asCockpitLightY, g_nCockpitDisplayMode, and g_nRenderedSpaceFrame.
Referenced by draw_cockpit_lights(), and update_cockpit().
Definition at line 2323 of file cockpt.c.
References ComputeVectorDelta(), DivideFixed(), draw_nav_pointer(), EYE_OBJECT, find_vacant_3d_object(), g_66_pCabinHudImage, g_acObjectOwner, g_aeObjectClass, g_aMissionObjectives, g_apObjectShape, g_aShipPosition, g_asObjectCollisionRadius, g_asObjectDistance, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectScreenX, g_asObjectScreenY, g_asObjectViewFrame, g_cCurrentObjective, g_nCannedSceneMode, g_nCurrentView, g_nNavPointerObject, g_nScreenWidth, g_nTrainSimActive, get_mode(), IsMissionObjectiveOutOfSystem(), MultiplyFixed(), OBJECT_CLASS_PLANET, remove_nav_pointer(), transform_to_objects_frame(), Vector_magnitude(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by draw_nav_pointer(), and transform_objects_to_your_view().
| void draw_target_box | ( | unsigned short | colour, |
| signed char | object, | ||
| short | solid, | ||
| short | drawLockMarker, | ||
| short | padding, | ||
| ShortRect * | savedBounds ) |
Definition at line 2188 of file cockpt.c.
References ShortRect::bottom, CosFixed(), draw_target_box(), DrawSolidColourSprite(), DrawSpriteDefault(), DrawViewportBorder(), DrawViewportLine(), g_15_nStoredScreenViewCentreX, g_27_stViewScratchInfo, g_36_nTargetLockonMarkerY, g_37_nViewCenterY, g_66_pCabinHudImage, g_anObjectPitchRotation, g_anObjectRollRotation, g_apObjectShape, g_aShipWeapons, g_asObjectFlip, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectScreenX, g_asObjectScreenY, g_asObjectViewFrame, g_asShipIdentified, g_asShipSide, g_cBlueColour, g_cPrimaryViewBufferColour, g_cRedColour, g_cYellowColour, g_nSelectedReleaseWeaponIndex, g_nTargetLockCountdown, g_nTargetLockMarkerAngle, g_nTargetLockMarkerX, GetTransformedShapeBounds(), ShortRect::left, ShortRect::right, SIDE_IMPERIAL, SinFixed(), and ShortRect::top.
Referenced by draw_target_box(), overlay_head_up_display(), and RestoreTransientCockpitGraphics().
Definition at line 1160 of file cockpt.c.
References DrawCalculatingLabel(), DrawCockpitReadout(), g_16_szTextBufferBuffer, g_cCurrentObjective, g_nCurrentObjectiveRange, g_nDisplayedObjectiveRange, and IsMissionObjectiveOutOfSystem().
Referenced by check_objectives(), DrawCalculatingLabel(), and show_navigation_disp().
| void DrawCockpitReadout | ( | signed char | slot, |
| const char * | text ) |
Definition at line 247 of file cockpt.c.
References CockpitReadout::context, TextContext::cursorX, DrawCockpitReadout(), DrawFormattedText(), EraseCockpitReadoutRegion(), TextContext::font, g_101_stScrViewInfo, g_9_aConsoleMetersTable, g_cSecondaryViewBufferColour, CockpitReadout::previousRight, SetTextContext(), SetTextCursor(), and CockpitReadout::y.
Referenced by DrawCalculatingLabel(), DrawCockpitReadout(), DrawTargetRangeReadout(), update_bars(), and update_digital_readouts().
| short DrawHudMessageSlot | ( | HudMessageSlot * | slot | ) |
Definition at line 269 of file cockpt.c.
References HudMessageSlot::colour, TextContext::colour, HudMessageSlot::context, HudMessageSlot::drawColour, DrawHudMessageSlot(), DrawTextAt(), HudMessageSlot::flashCount, g_196_nInputTimerTicks, g_cSecondaryViewBufferColour, g_nCurrentView, MaxShort(), HudMessageSlot::text, HudMessageSlot::x, and HudMessageSlot::y.
Referenced by ClearHudMessageSlot(), DrawHudMessageSlot(), and UpdateMessage().
Definition at line 3250 of file cockpt.c.
References DrawPendingCockpitDamage(), DrawSpriteDefault(), FreePacketAndClear(), g_101_stScrViewInfo, g_36_nPendingDashDamageValue, g_3_stDashViewport, g_8_stCockpitExplosionPosBlock, g_bCockpitDamageFrame0Shown, g_bCockpitDamageFrame2Shown, g_bFuelGaugeDamaged, g_pPendingCockpitDamageShape, g_pPilotHandAnimationShapePtr, g_stPilotHandBackgroundViewportBlock, Viewport::left, Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by cockpit_explosion(), and DrawPendingCockpitDamage().
Definition at line 3065 of file cockpt.c.
References CopyViewportContents(), DrawPilotHandFrame(), DrawSpriteDefault(), g_14_cPilotHandFrameCode, g_3_stDashViewport, g_asPilotHandOffsets, g_cLastPilotHandFrame, g_pPilotHandAnimationShapePtr, g_stPilotHandBackgroundViewportBlock, g_stPilotHandOrigin, g_stPilotHandViewportRecord, Viewport::left, Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by animate_pilot(), and DrawPilotHandFrame().
| void EraseCockpitReadoutRegion | ( | Viewport * | viewport, |
| short | left, | ||
| short | top, | ||
| short | right, | ||
| short | bottom, | ||
| short | colour ) |
Definition at line 139 of file cockpt.c.
References Viewport::bottom, ClearViewport(), EraseCockpitReadoutRegion(), Viewport::left, Viewport::right, and Viewport::top.
Referenced by DrawCockpitReadout(), DrawTargetRangeReadout(), and EraseCockpitReadoutRegion().
| short escorting_a_ship | ( | void | ) |
Definition at line 1372 of file cockpt.c.
References escorting_a_ship(), g_asShipMissionType, is_any_ship_returning_to_current_nav_point(), and MISSION_TYPE_ESCORT.
Referenced by escorting_a_ship(), and flag_reached().
| void explosion_draw | ( | int | useBackgroundViewport | ) |
Definition at line 3212 of file cockpt.c.
References DrawSpriteDefault(), explosion_draw(), FreePacketAndClear(), g_101_stScrViewInfo, g_69_asCockpitDmgStateList, g_aCockpitDamagePositions, g_bCockpitDamageFrame0Shown, g_bCockpitDamageFrame2Shown, g_bFuelGaugeDamaged, g_pPendingCockpitDamageShape, g_stCockpitBackgroundViewportRecord, ShortPoint::x, and ShortPoint::y.
Referenced by explosion_draw(), initialize_cockpit(), and place_damage_on_cockpit().
| void FatalErrorAndExit | ( | const char * | format, |
| ... ) |
Definition at line 121 of file cockpt.c.
References exit_squadron(), and FatalErrorAndExit().
Referenced by FatalErrorAndExit(), ReportFatalErrorCode(), ReportOutOfMemoryAndExit(), and ReportPacketLoadError().
| short FindNearestMissileTargetingObject | ( | short | obj | ) |
Definition at line 2986 of file cockpt.c.
References distance_from_object(), FindNearestMissileTargetingObject(), g_acShipTarget, g_aeObjectClass, and OBJECT_CLASS_MISSILE.
Referenced by FindNearestMissileTargetingObject(), and update_missile_warning().
Definition at line 892 of file cockpt.c.
References Viewport::bottom, CaptureSpriteBackground(), DrawSpriteDefault(), fire_computer_graphic_missile(), g_1_pDashWeaponPicture, g_2_stLeftwardVduPortBlock, g_3_stReleaseWeaponReadoutLocationBlock, g_cReleaseWeaponDisplayFrame, g_cReleaseWeaponDisplayState, g_cReleaseWeaponDisplayTicks, g_nCurrentView, g_pReleaseWeaponDisplayBackground, get_mode(), RestoreSpriteBackground(), Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by fire_computer_graphic_missile(), and update_cockpit().
| void flag_objective | ( | short | objective, |
| unsigned char | flags ) |
Definition at line 1153 of file cockpt.c.
References flag_objective(), MissionObjective::flags, and g_aMissionObjectives.
Referenced by arrive_from_warp(), check_next_wave(), check_sighting(), cleanup_objectives(), cruise_home(), flag_objective(), flag_reached(), RunSpaceFlight(), set_up_action_sphere(), and strike_mission().
| void flag_reached | ( | short | objective, |
| short | reached ) |
Definition at line 1379 of file cockpt.c.
References CockpitMessage(), escorting_a_ship(), find_ship_index(), flag_objective(), flag_reached(), g_13_abShipArrivalMessageSent, g_6_nHomeOperationShipIndexValue, g_aMissionObjectives, g_aMissionShips, g_apShipMissionRecord, g_asShipMissionIndex, g_asShipMissionParameter, g_asShipSide, g_cCurrentObjective, g_cYellowColour, g_pszAutopilotWaitReason, send_message(), set_next_destination(), MissionObjective::type, and visited().
Referenced by check_visit(), cruise_to_destination(), flag_reached(), FlagCurrentNavObjectivesReached(), and UpdateTargetCameraObject().
| short get_color | ( | short | object, |
| unsigned short * | colour ) |
Definition at line 1671 of file cockpt.c.
References g_6_nHomeOperationShipIndexValue, g_acShipTarget, g_aeObjectClass, g_asObjectType, g_asShipMissionIndex, g_asShipSide, g_bPrimaryViewBufferColour, g_cBlueColour, g_cRedColour, g_cYellowColour, g_ucHomeCarrierScannerColour, g_ucHostileCapitalScannerColour, g_ucPrimaryTextColour, get_color(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, SIDE_IMPERIAL, and SIDE_KILRATHI.
Referenced by draw_3d_scanner(), and get_color().
| short get_mode | ( | short | i | ) |
Definition at line 630 of file cockpt.c.
References g_aaiVduModeStack, g_acVduModeStackDepth, and get_mode().
Referenced by ClearHudMessageSlot(), CloseCommChoiceMenu(), damage_your_component(), draw_3d_scanner(), draw_nav_pointer(), EndCommMenu(), EndCommSessionWithWingman(), fire_computer_graphic_missile(), fire_missile(), fire_players_lasers(), get_mode(), HandleSpaceFlightControls(), IsCommChoiceMenuOpen(), remove_weapon(), select_new_gun(), select_new_release_weapon(), SelectCockpitVduMode(), set_mode(), set_new_vdu(), set_next_destination(), SetVduModeIfChanged(), ShowComponentHitHudMessage(), update_VDUs(), update_vid_disp(), vdu_pop_all(), and vid_equiv().
| short GetRectHeight | ( | const Viewport * | viewport | ) |
Definition at line 2054 of file cockpt.c.
References GetRectHeight(), Viewport::left, and Viewport::right.
Referenced by GetRectHeight(), and print_message_text().
| short GetVduModeStackDepth | ( | short | i | ) |
Definition at line 658 of file cockpt.c.
References g_acVduModeStackDepth, and GetVduModeStackDepth().
Referenced by GetVduModeStackDepth(), and vdu_pop_all().
| short HasInRangeGunForTargetLead | ( | short | targetRange | ) |
Definition at line 2393 of file cockpt.c.
References g_aObjectTypeData, g_aShipWeapons, HasInRangeGunForTargetLead(), and OBJECT_CLASS_PROJECTILE.
Referenced by HasInRangeGunForTargetLead(), overlay_head_up_display(), and UpdateTargetLeadIndicator().
| short hidden_objective | ( | short | objective | ) |
Definition at line 1206 of file cockpt.c.
References find_ship_index(), g_aMissionNavPoints, g_aMissionObjectives, g_aMissionShips, g_cMissionObjectiveCount, hidden_objective(), is_team_member(), MISSION_TYPE_WARP_ARRIVE, and mobile_objective().
Referenced by AddUniqueObjectiveNavLabel(), BuildMap(), DrawNavMapLegend(), hidden_objective(), InflightComputer(), SelectNavObjectiveAtPoint(), and set_new_objective().
| unsigned int InitializeCockpitReadout | ( | signed char | slot, |
| TextContext * | context ) |
Definition at line 237 of file cockpt.c.
References TextContext::cursorX, TextContext::cursorY, g_9_aConsoleMetersTable, and InitializeCockpitReadout().
Referenced by InitializeCockpitReadout(), InitializeCockpitResources(), show_navigation_disp(), and show_target_disp().
| void InvalidateVduMode | ( | short | i | ) |
Definition at line 714 of file cockpt.c.
References g_anLastDrawnVduMode, and InvalidateVduMode().
Referenced by check_objectives(), DrawTargetRangeReadout(), HandleSpaceFlightControls(), initialize_cockpit(), InvalidateVduMode(), RefreshCommunicationMenu(), remove_weapon(), select_new_gun(), select_new_release_weapon(), SelectCockpitVduMode(), set_next_destination(), and UpdateDamageDisplay().
| short is_any_ship_returning_to_current_nav_point | ( | void | ) |
Definition at line 1358 of file cockpt.c.
References g_abShipNavPointIndex, g_aeObjectClass, g_asShipMissionType, g_cCurrentNavPointIndex, is_any_ship_returning_to_current_nav_point(), MISSION_TYPE_COME_HOME, and OBJECT_CLASS_SHIP.
Referenced by escorting_a_ship(), and is_any_ship_returning_to_current_nav_point().
| short IsCockpitExplosionActive | ( | void | ) |
Definition at line 133 of file cockpt.c.
References g_nCockpitExplosionFrame, and IsCockpitExplosionActive().
Referenced by auto_pilot_valid(), cockpit_explosion(), force_view(), IsCockpitExplosionActive(), new_view(), place_damage_on_cockpit(), RestoreCockpitExplosionBackground(), RestoreCockpitExplosionIfVisible(), and RestoreTransientCockpitGraphics().
| short IsCockpitWeaponShapeLoaded | ( | void | ) |
Definition at line 3699 of file cockpt.c.
References g_1_pDashWeaponPicture, and IsCockpitWeaponShapeLoaded().
Referenced by ClearHudMessageSlot(), HandleSpaceFlightControls(), IsCockpitWeaponShapeLoaded(), and update_VDUs().
| short IsMissionObjectiveOutOfSystem | ( | short | objectiveIndex | ) |
Definition at line 411 of file cockpt.c.
References find_ships_sphere(), g_aMissionNavPoints, g_aMissionObjectives, g_nCurStellarSystem, MissionObjective::index, IsMissionObjectiveOutOfSystem(), and MissionObjective::type.
Referenced by auto_pilot_valid(), clear_head_up_display(), draw_3d_scanner(), draw_nav_pointer(), DrawCalculatingLabel(), and IsMissionObjectiveOutOfSystem().
| short kilrathi_near | ( | short | obj, |
| short | range ) |
Definition at line 395 of file cockpt.c.
References g_aeObjectClass, g_aShipPosition, g_asShipSide, IsPointWithinRange(), kilrathi_near(), OBJECT_CLASS_SHIP, and SIDE_KILRATHI.
Referenced by auto_pilot_sequence(), auto_pilot_valid(), inflict_damage(), init_hazard(), and kilrathi_near().
| short LocateMobileObjective | ( | short | objective | ) |
Definition at line 1345 of file cockpt.c.
References g_aMissionObjectives, locate_ship(), LocateMobileObjective(), and mobile_objective().
Referenced by BriefingMap_LoadShapes(), LocateMobileObjective(), set_objective_range(), set_up_action_sphere(), and update_objective_location().
Definition at line 1916 of file cockpt.c.
References g_aShipWeapons, g_bTargetLockMode, g_bTargetLockReadoutDirty, g_nSelectedReleaseWeaponIndex, g_nTargetLockCountdown, g_nTargetLockMusicCooldown, g_pszMissileLocked, lock_off(), remove_message(), and StopMusic().
Referenced by CheckTargetLockMalfunction(), lock_off(), RemovePlayerReleaseWeapon(), SelectCockpitVduMode(), and target_locking().
| short malf | ( | char | component | ) |
Definition at line 811 of file cockpt.c.
References g_acPlayerComponentDamage, malf(), and RandomInRange().
Referenced by accelerate(), check_target(), CheckTargetLockMalfunction(), damage_your_component(), decrement_lock_time(), malf(), SelectCockpitVduMode(), and your_afterburner().
| void malf_noise | ( | short | vdu, |
| int | effect, | ||
| unsigned short | colour, | ||
| short | sound, | ||
| short | refresh ) |
Definition at line 2764 of file cockpt.c.
References g_2_stLeftwardVduPortBlock, g_4_stRightVduView, malf_noise(), PlaySfxWaveFileByNumber(), PlaySnowStaticSound(), set_new_vdu(), and snow_viewport().
Referenced by EndCommSessionWithWingman(), malf_noise(), real_vid_transmit(), set_new_vdu(), update_dead_disp(), and vdu_malf().
Definition at line 802 of file cockpt.c.
References g_abSoundEffectDefinitions, LogUnknownSoundEffect(), malf_sound(), and PlaySfxWaveFileByNumber().
Referenced by check_target(), HandleSpaceFlightControls(), and malf_sound().
| short message_showing | ( | void | ) |
Definition at line 726 of file cockpt.c.
References g_9_nScreenMessageTimeNumber, and message_showing().
Referenced by check_message(), DismissHudMessageIfShowing(), free_view_buffer(), HandleCommunicationMenuRequest(), HandleSpaceFlightControls(), imperial_formation(), InflightComputer(), initialize_cockpit(), message_showing(), npc_communication(), overlay_head_up_display(), SetHudMessageText(), and vid_equiv().
| short mobile_objective | ( | short | objective | ) |
Definition at line 1558 of file cockpt.c.
References g_aMissionObjectives, mobile_objective(), and MissionObjective::type.
Referenced by BuildMap(), hidden_objective(), LocateMobileObjective(), mobile_objective(), SetScale(), and update_objective_location().
Definition at line 3141 of file cockpt.c.
References g_acShipPendingMessage, g_acShipPortrait, g_aeObjectClass, g_aeShipObjective, g_aMissionShips, g_apShipMissionRecord, g_asPilotLevel, g_asShipMissionIndex, g_asShipSide, g_cQueuedNpcMessage, g_cQueuedNpcPortrait, g_nCommDeathSequenceFrame, g_nCommSpeakerObject, g_nTrainSimActive, message_showing(), npc_communication(), OBJECT_CLASS_SHIP, OBJECTIVE_DESTROY_SHIP, OBJECTIVE_ENGAGE_ENEMY, RandomBelowOrEqual(), real_vid_transmit(), ShowOnScreenMessage(), SIDE_KILRATHI, and vid_equiv().
Referenced by npc_communication(), and update_cockpit().
| short objective_lost | ( | short | objective | ) |
Definition at line 1497 of file cockpt.c.
References g_aMissionObjectives, g_aMissionShips, MissionObjective::index, objective_lost(), and MissionShipRecord::state.
Referenced by check_objectives(), and objective_lost().
| const char * objective_name | ( | short | objective | ) |
Definition at line 1181 of file cockpt.c.
References MissionObjective::displayName, g_aMissionObjectives, g_cMissionObjectiveCount, objective_name(), and sighted().
Referenced by BuildMap(), objective_name(), and show_navigation_disp().
Definition at line 2564 of file cockpt.c.
References ShortRect::bottom, CaptureSpriteBackground(), distance_from_object(), draw_target_box(), DrawSpriteDefault(), MouseCursorState::frame, g_15_nStoredScreenViewCentreX, g_1_nTargetLeadingIndicatorY, g_27_stViewScratchInfo, g_2_cEarlierTargetObjectValue, g_37_nViewCenterY, g_37_stPersonnelMousePointerState, g_66_pCabinHudImage, g_acPlayerComponentDamage, g_acShipTarget, g_aeObjectClass, g_anShipCloakState, g_aObjectTypeData, g_asShipCloakElapsedFrames, g_bMissileLockAcquired, g_bPrimaryViewBufferColour, g_bTargetBracketVisible, g_bTargetLockActive, g_bTargetLockDisplayEnabled, g_bTargetLockMode, g_cRedColour, g_cYellowColour, g_nAimCameraMode, g_nCockpitControlState, g_nCockpitResetState, g_nCommSpeakerObject, g_nCurrentView, g_nObjectType62Index, g_nRenderedSpaceFrame, g_nTargetCameraFrame, g_nTargetCameraZoom, g_nTargetLeadIndicatorX, g_nTargetLockCountdown, g_stCommTargetBracketBounds, g_stTargetBracketBounds, g_ucDefaultTextColour, GetInputCursorShape(), HasInRangeGunForTargetLead(), IsSpriteFrameOverlappingRect(), ShortRect::left, message_showing(), OBJECT_CLASS_CAPITAL_SHIP, overlay_head_up_display(), ShortRect::right, MouseCursorState::scratchBuffer, SetHudMessageText(), target_locking(), ShortRect::top, UpdateTargetLeadIndicator(), MouseCursorState::x, and MouseCursorState::y.
Referenced by DrawSpaceSceneFrame(), and overlay_head_up_display().
| void place_damage_on_cockpit | ( | short | damage | ) |
Definition at line 3334 of file cockpt.c.
References explosion_draw(), g_36_nPendingDashDamageValue, g_69_asCockpitDmgStateList, g_8_stCockpitExplosionPosBlock, g_aCockpitDamagePositions, g_nCockpitExplosionFrame, g_nCurrentView, g_pCockpitExplosionShape, IsCockpitExplosionActive(), and place_damage_on_cockpit().
Referenced by place_damage_on_cockpit(), and your_internal_damage().
| void PlayCockpitSelectionSfx | ( | short | selectionSound | ) |
Definition at line 3708 of file cockpt.c.
References PlayCockpitSelectionSfx(), PlaySfxWaveFileByNumber(), and void().
Referenced by PlayCockpitSelectionSfx(), and SelectCockpitVduMode().
| void pop_mode | ( | short | i | ) |
Definition at line 673 of file cockpt.c.
References ClearHudMessageSlot(), g_12_aHudTextSlotsArray, g_acVduModeStackDepth, and pop_mode().
Referenced by CloseCommChoiceMenu(), EndCommSessionWithWingman(), pop_mode(), and vdu_pop_all().
| void print_message_text | ( | char * | text, |
| unsigned short | colour ) |
Definition at line 2060 of file cockpt.c.
References TextContext::backgroundColour, TextContext::colour, DosStrcpy(), DrawTextAt(), g_168_stFlightTextContext, g_3_stDefaultStringContext, g_49_nViewportOffsetY, g_pszDisplayedHudMessage, g_pszPendingHudMessage, g_stHudMessageOrigin, GetRectHeight(), print_message_text(), SetRectBounds(), TextContext::viewport, ShortPoint::x, and ShortPoint::y.
Referenced by ClearHudMessageDisplay(), print_message_text(), and SetHudTextColour().
| void push_mode | ( | short | i, |
| int | state ) |
Definition at line 664 of file cockpt.c.
References ClearHudMessageSlot(), g_12_aHudTextSlotsArray, g_aaiVduModeStack, g_acVduModeStackDepth, and push_mode().
Referenced by OpenCommRecipientMenu(), push_mode(), and real_vid_transmit().
| void remove_message | ( | const char * | text | ) |
Definition at line 389 of file cockpt.c.
References ClearHudMessageIfMatching(), g_12_aHudTextSlotsArray, and remove_message().
Referenced by lock_off(), and remove_message().
Definition at line 2316 of file cockpt.c.
References g_nNavPointerObject, remove_nav_pointer(), and remove_object().
Referenced by death_sequence(), draw_nav_pointer(), ReleaseSpaceflightResources(), and remove_nav_pointer().
| void RemovePlayerReleaseWeapon | ( | signed char | weapon | ) |
Definition at line 872 of file cockpt.c.
References g_116_aWeaponDisplayPositions, g_3_nReleaseWeaponShowKindWord, g_3_stReleaseWeaponReadoutLocationBlock, g_5_nWeaponDisplayOriginXValue, g_aShipWeapons, g_cReleaseWeaponDisplayFrame, g_cReleaseWeaponDisplayState, g_cReleaseWeaponDisplayTicks, g_nArmsDisplayOriginY, g_pReleaseWeaponDisplayBackground, lock_off(), remove_weapon(), RemovePlayerReleaseWeapon(), ShortPoint::x, and ShortPoint::y.
Referenced by fire_weapon(), and RemovePlayerReleaseWeapon().
Definition at line 488 of file cockpt.c.
References g_12_abCockpitLightGoalTable, g_4_abCockpitLightMode, and reset_cockpit().
Referenced by initialize_cockpit(), InitializeCockpitResources(), and reset_cockpit().
Definition at line 3102 of file cockpt.c.
References animate_pilot(), CopyViewportContents(), g_3_stDashViewport, g_cLastPilotHandFrame, g_pPilotHandAnimationShapePtr, g_stPilotHandBackgroundViewportBlock, and ResetPilotHandAnimation().
Referenced by initialize_cockpit(), and ResetPilotHandAnimation().
Definition at line 1567 of file cockpt.c.
References g_15_asScannerObjectX, g_nScannerTargetObject, and ResetScannerContacts().
Referenced by InitializeCockpitResources(), ResetScannerContacts(), and ResetTargetCameraView().
Definition at line 3284 of file cockpt.c.
References g_101_stScrViewInfo, g_8_stCockpitExplosionPosBlock, g_nCockpitExplosionFrame, g_pCockpitExplosionBackground, g_pCockpitExplosionShape, IsCockpitExplosionActive(), RestoreCockpitExplosionBackground(), RestoreSpriteBackground(), ShortPoint::x, and ShortPoint::y.
Referenced by RestoreCockpitExplosionBackground(), RestoreCockpitExplosionIfVisible(), and update_cockpit().
Definition at line 2692 of file cockpt.c.
References g_pCockpitExplosionBackground, IsCockpitExplosionActive(), RestoreCockpitExplosionBackground(), and RestoreCockpitExplosionIfVisible().
Referenced by RenderSpaceViewFrame(), and RestoreCockpitExplosionIfVisible().
Definition at line 2143 of file cockpt.c.
References g_101_stScrViewInfo, g_49_nViewportOffsetY, g_nHudMessageBackgroundDepth, g_pHudMessageBackground, g_pHudMessageFrameShape, g_stHudMessageOrigin, RestoreHudMessageBackground(), RestoreSpriteBackground(), and ShortPoint::y.
Referenced by ClearHudMessageDisplay(), EndCommMenu(), and RestoreHudMessageBackground().
Definition at line 2549 of file cockpt.c.
References g_1_nTargetLeadingIndicatorY, g_27_stViewScratchInfo, g_66_pCabinHudImage, g_bTargetLockDisplayEnabled, g_nTargetLeadIndicatorX, g_pCockpitHudBackground, RestoreSpriteBackground(), and RestoreTargetLeadIndicator().
Referenced by RestoreTargetLeadIndicator(), and RestoreTransientCockpitGraphics().
Definition at line 2701 of file cockpt.c.
References CaptureSpriteBackground(), draw_target_box(), DrawSpriteDefault(), MouseCursorState::frame, g_101_stScrViewInfo, g_27_stViewScratchInfo, g_2_cEarlierTargetObjectValue, g_37_stPersonnelMousePointerState, g_8_stCockpitExplosionPosBlock, g_acShipTarget, g_bTargetLockActive, g_bTargetLockMode, g_cLastPilotHandFrame, g_cPrimaryViewBufferColour, g_nCockpitControlState, g_nCockpitExplosionFrame, g_pCockpitExplosionBackground, g_pCockpitExplosionShape, g_stCommTargetBracketBounds, g_stTargetBracketBounds, GetInputCursorShape(), IsCockpitExplosionActive(), RestoreSpriteBackground(), RestoreTargetLeadIndicator(), RestoreTransientCockpitGraphics(), MouseCursorState::scratchBuffer, MouseCursorState::x, ShortPoint::x, MouseCursorState::y, and ShortPoint::y.
Referenced by RenderSpaceViewFrame(), and RestoreTransientCockpitGraphics().
| void rotational_pos_to_scanner_pos | ( | signed char | object, |
| const SphericalVector * | position, | ||
| CockpitScannerGeometry | geometry ) |
Definition at line 1530 of file cockpt.c.
References CockpitScannerGeometry::centerX, CockpitScannerGeometry::centerY, g_10_asScannerObjectYTable, g_15_asScannerObjectX, g_8_nScopePointerX, g_9_nScannerCursorYValue, CockpitScannerGeometry::maximumX, CockpitScannerGeometry::maximumY, MaxShort(), CockpitScannerGeometry::minimumX, CockpitScannerGeometry::minimumY, MinShort(), SphericalVector::pitch, rotational_pos_to_scanner_pos(), and SphericalVector::yaw.
Referenced by draw_3d_scanner(), rotational_pos_to_scanner_pos(), and set_objective_range().
| void SelectCockpitVduMode | ( | short | vdu, |
| int | mode ) |
Definition at line 3729 of file cockpt.c.
References cycle_onscreen_targets(), g_68_nDamageShowTicksNumber, g_asVduSelectionSound, g_cCurrentKey, g_nCurrentView, get_mode(), InflightComputer(), InvalidateVduMode(), lock_off(), malf(), PlayCockpitSelectionSfx(), RefreshCommunicationMenu(), select_new_gun(), select_new_release_weapon(), SelectCockpitVduMode(), set_mode(), show_communications_disp(), update_VDUs(), vdu_malf(), and vdu_pop_all().
Referenced by ClearHudMessageDisplay(), fire_players_lasers(), HandleSpaceFlightControls(), and SelectCockpitVduMode().
| void send_message | ( | short | obj, |
| signed char | message ) |
Definition at line 3116 of file cockpt.c.
References g_6_nHomeOperationShipIndexValue, g_acShipPendingMessage, g_acShipPortrait, g_aeObjectClass, g_asShipMissionIndex, g_asShipMissionParameter, g_asShipSide, g_bRadioSilence, g_nTrainSimActive, g_nYourWingman, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, send_message(), and SIDE_KILRATHI.
Referenced by BeginShipDestructionSequence(), Explosion(), flag_reached(), house_keep_objects(), imperial_formation(), inflict_damage(), intelligence_events(), internal_damage(), request(), ResolveObjectDestruction(), send_appropriate_message(), send_message(), SendKilrathiAceGreetingOnce(), SendWingmanCommandAcknowledgement(), and try2rout().
| void set_global_message | ( | const char * | text, |
| unsigned short | colour, | ||
| int | flashCount ) |
Definition at line 363 of file cockpt.c.
References Viewport::bottom, g_12_aHudTextSlotsArray, g_1_stRightVduTextContextBlock, g_4_stRightVduView, Viewport::left, set_global_message(), and SetHudMessageSlot().
Referenced by CockpitMessage(), set_global_message(), and TryBeginStarSystemJump().
| void set_message_time | ( | short | duration | ) |
Definition at line 732 of file cockpt.c.
References g_9_nScreenMessageTimeNumber, g_bSpeechPlaybackDone, and set_message_time().
Referenced by DismissHudMessageIfShowing(), set_message_time(), and SetHudMessageText().
| void set_mode | ( | short | i, |
| int | state ) |
Definition at line 637 of file cockpt.c.
References ClearHudMessageSlot(), g_12_aHudTextSlotsArray, g_aaiVduModeStack, g_acVduModeStackDepth, get_mode(), and set_mode().
Referenced by init_vdus(), SelectCockpitVduMode(), set_mode(), SetVduModeIfChanged(), and vdu_malf().
| short set_new_objective | ( | short | pathIndex | ) |
Definition at line 1272 of file cockpt.c.
References g_abFlightPath, g_aeShipObjective, g_aMissionObjectives, g_cCurrentNavPointIndex, g_cCurrentObjective, g_cMissionObjectiveCount, hidden_objective(), set_new_objective(), set_objective_range(), and MissionObjective::type.
Referenced by Build_objective_list(), cycle_next_objective(), InflightComputer(), SelectNavObjectiveAtPoint(), set_new_objective(), and set_next_destination().
| void set_new_vdu | ( | short | vdu | ) |
Definition at line 680 of file cockpt.c.
References ClearViewport(), g_2_stLeftwardVduPortBlock, g_4_stRightVduView, g_anLastDrawnVduMode, g_cDarkGreenColour, g_cSecondaryViewBufferColour, get_mode(), malf_noise(), and set_new_vdu().
Referenced by DrawTargetRangeReadout(), malf_noise(), set_new_vdu(), show_communications_disp(), show_damage_disp(), show_weapon_disp(), and update_vid_disp().
Definition at line 1319 of file cockpt.c.
References cycle_next_objective(), g_abFlightPath, g_cCurrentNavPointIndex, g_cMissionObjectiveCount, get_mode(), InvalidateVduMode(), set_new_objective(), set_next_destination(), and visited().
Referenced by arrive_from_warp(), flag_reached(), set_next_destination(), and strike_mission().
| void set_objective_range | ( | short | showOnScanner | ) |
Definition at line 1630 of file cockpt.c.
References ComputeVectorDelta(), g_aMissionObjectives, g_aShipPosition, g_cCurrentObjective, g_nCurrentObjectiveRange, g_stCockpitScannerGeometry, LocateMobileObjective(), SphericalVector::radius, rectangular_to_spherical(), rotational_pos_to_scanner_pos(), set_objective_range(), and transform_to_objects_frame().
Referenced by draw_3d_scanner(), set_new_objective(), set_objective_range(), and update_cockpit().
| void SetCockpitLightBlink | ( | signed char | light, |
| short | interval ) |
Definition at line 499 of file cockpt.c.
References g_12_abCockpitLightGoalTable, g_nSpaceFrame, and SetCockpitLightBlink().
Referenced by SetCockpitLightBlink(), update_bars(), update_lights(), and update_missile_warning().
| void SetHudMessageSlot | ( | HudMessageSlot * | slot, |
| TextContext * | context, | ||
| short | x, | ||
| short | y, | ||
| const char * | text, | ||
| unsigned short | colour, | ||
| signed char | flashCount ) |
Definition at line 335 of file cockpt.c.
References ClearHudMessageSlot(), HudMessageSlot::colour, HudMessageSlot::context, HudMessageSlot::drawColour, HudMessageSlot::flashCount, SetHudMessageSlot(), HudMessageSlot::text, HudMessageSlot::x, and HudMessageSlot::y.
Referenced by set_global_message(), SetHudMessageSlot(), and ShowComponentHitHudMessage().
| void SetHudMessageText | ( | char * | text, |
| unsigned short | colour, | ||
| unsigned short | duration ) |
Definition at line 2742 of file cockpt.c.
References ClearHudMessageDisplay(), g_18_nHudMessageColour, g_bInflightComputerActive, g_pszPendingHudMessage, message_showing(), set_message_time(), and SetHudMessageText().
Referenced by FinishCannedScenePlayback(), HandleSpaceFlightControls(), overlay_head_up_display(), ReportSpaceFlightMaxFps(), SetHudMessageText(), ShowCentredPrompt(), ShowOnScreenMessage(), UpdateSavedTorpedoTargetLock(), and UpdateTargetLeadIndicator().
| void SetHudTextColour | ( | char * | text, |
| unsigned short | colour ) |
Definition at line 2159 of file cockpt.c.
References g_3_cOverlayMessageView, g_bCaptureHudMessageBackground, g_nCurrentView, g_pszPendingHudMessage, print_message_text(), SetHudTextColour(), and ShowHudTextLine().
Referenced by RunSpaceFlight(), and SetHudTextColour().
| void SetRectBounds | ( | Viewport * | viewport, |
| unsigned short | a, | ||
| unsigned short | b, | ||
| unsigned short | c, | ||
| unsigned short | d ) |
Definition at line 2044 of file cockpt.c.
References Viewport::bottom, Viewport::left, Viewport::right, SetRectBounds(), and Viewport::top.
Referenced by InflightComputer(), print_message_text(), SetRectBounds(), SetScreenClipRect(), and ShowConfedNavScan().
| unsigned short SetVduModeIfChanged | ( | short | i, |
| int | state ) |
Definition at line 647 of file cockpt.c.
References get_mode(), set_mode(), and SetVduModeIfChanged().
Referenced by SetVduModeIfChanged().
Definition at line 1193 of file cockpt.c.
References DrawCalculatingLabel(), DrawFormattedText(), DrawTextAt(), g_1_stRightVduTextContextBlock, g_4_stRightVduView, g_cCurrentObjective, InitializeCockpitReadout(), Viewport::left, objective_name(), show_navigation_disp(), and Viewport::top.
Referenced by show_navigation_disp(), and update_VDUs().
Definition at line 939 of file cockpt.c.
References ShipWeaponSlot::disabled, ObjectTypeData::displayName, DrawFormattedText(), DrawSpriteDefault(), DrawTextAt(), DrawViewportLine(), ObjectTypeData::field_18, g_116_aWeaponDisplayPositions, g_1_pDashWeaponPicture, g_2_stLeftwardVduPortBlock, g_5_nWeaponDisplayOriginXValue, g_5_stLeftVduStringContextRecord, g_aObjectTypeData, g_aShipWeapons, g_nArmsDisplayOriginY, g_nSelectedGunType, g_nSelectedReleaseWeaponIndex, g_stWeaponDisplayOffset, g_szNoWeaponSelected, g_ucPrimaryTextColour, Viewport::left, ObjectTypeData::objectClass, Viewport::right, set_new_vdu(), show_weapon_disp(), Viewport::top, ShipWeaponSlot::type, ShipWeaponSlot::weaponType, ShortPoint::x, and ShortPoint::y.
Referenced by ClearHudMessageSlot(), show_weapon_disp(), and update_VDUs().
| void ShowComponentHitHudMessage | ( | const char * | text, |
| unsigned short | colour, | ||
| short | flashCount ) |
Definition at line 830 of file cockpt.c.
References Viewport::bottom, ClearHudMessageSlot(), DosStrcpy(), g_12_aHudTextSlotsArray, g_16_szComponentHitMsg, g_2_stLeftwardVduPortBlock, g_5_stLeftVduStringContextRecord, get_mode(), Viewport::left, SetHudMessageSlot(), and ShowComponentHitHudMessage().
Referenced by damage_your_component(), fire_missile(), ReportComponentRepaired(), show_damage_disp(), ShowComponentHitHudMessage(), and your_internal_damage().
Definition at line 2129 of file cockpt.c.
References CaptureSpriteBackground(), g_101_stScrViewInfo, g_49_nViewportOffsetY, g_nHudMessageBackgroundDepth, g_pHudMessageBackground, g_pHudMessageFrameShape, g_stHudMessageOrigin, ShowHudTextLine(), and ShortPoint::y.
Referenced by SetHudTextColour(), and ShowHudTextLine().
| short sighted | ( | short | objective | ) |
Definition at line 1134 of file cockpt.c.
References g_aMissionObjectives, and sighted().
Referenced by check_sighting(), cleanup_objectives(), objective_name(), sighted(), StoreMissionResultsInCampaignGlobals(), and update_objective_location().
| void start_lock | ( | unsigned short | v | ) |
Definition at line 1896 of file cockpt.c.
References g_bTargetLockReadoutDirty, g_nTargetLockCountdown, g_nTargetLockMarkerAngle, g_nTargetLockMusicCooldown, RandomBelowOrEqual(), and start_lock().
Referenced by start_lock(), and starting_lock().
| short starting_lock | ( | unsigned short | v | ) |
Definition at line 1906 of file cockpt.c.
References g_nTargetLockCountdown, start_lock(), and starting_lock().
Referenced by starting_lock(), and target_locking().
| void target_locking | ( | signed char | target | ) |
Definition at line 1973 of file cockpt.c.
References CanShipWeaponDamageTarget(), decrement_lock_time(), g_acPlayerComponentDamage, g_aShipWeapons, g_asObjectScreenX, g_asObjectScreenY, g_asShipSide, g_bTargetLockActive, g_bTargetLockMode, g_nCurrentView, g_nFacingToTarget, g_nSelectedReleaseWeaponIndex, g_nTargetFacing, g_nTargetLockCountdown, g_nTargetLockMusicCooldown, get_facing_range_from_object(), IsCapitalShipObject(), lock_off(), OBJECT_DATA_JAVELIN_HEAT_SEEKING_MISSILE, OBJECT_DATA_SPICULUM_IMAGE_RECOGNITION_MISSILE, OBJECT_DATA_TORPEDO, ProcessMusicScriptCommand(), starting_lock(), and target_locking().
Referenced by overlay_head_up_display(), and target_locking().
Definition at line 587 of file cockpt.c.
References ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, DrawCockpitReadout(), g_16_szTextBufferBuffer, g_aasShipArmor, g_aasShipShield, g_acObjectType, g_aObjectTypeData, g_asObjectType, SetCockpitLightBlink(), ObjectTypeData::shieldAft, ObjectTypeData::shieldFore, update_bars(), and vdu_polygon().
Referenced by update_bars(), and update_cockpit().
Definition at line 3655 of file cockpt.c.
References animate_pilot(), check_stranded(), check_target(), cockpit_explosion(), draw_3d_scanner(), draw_cockpit_lights(), fire_computer_graphic_missile(), g_1_nGunShowEnergyPercent, g_bCockpitDamageFrame0Shown, g_bCockpitDamageFrame2Shown, g_cMissionObjectiveCount, g_nAimCameraMode, g_nCockpitDisplayMode, g_nCurrentView, g_nSpaceFrame, g_nTargetCameraFrame, g_nTargetCameraZoom, npc_communication(), repair_internal_damage(), RestoreCockpitExplosionBackground(), set_objective_range(), update_bars(), update_cockpit(), update_digital_readouts(), update_lights(), update_missile_warning(), update_objective_location(), update_VDUs(), UpdateTargetCameraCockpitHook(), UpdateTargetCameraTracking(), and vdu_polygon().
Referenced by RunSpaceFlight(), and update_cockpit().
| void update_dead_disp | ( | short | a | ) |
Definition at line 3454 of file cockpt.c.
References g_cDarkGreenColour, malf_noise(), and update_dead_disp().
Referenced by update_dead_disp(), and update_VDUs().
Definition at line 785 of file cockpt.c.
References DrawCockpitReadout(), g_16_stCockpitTextSettingsRecord, g_16_szTextBufferBuffer, g_anShipSpeed, g_aShipVelocity, MultiplyFixed(), SetTextContext(), update_digital_readouts(), and Vector_magnitude().
Referenced by update_cockpit(), and update_digital_readouts().
Definition at line 555 of file cockpt.c.
References calculate_damage_level(), FlushSoundEffectsAndLog(), g_12_abCockpitLightGoalTable, g_4_nSevereDmgWarningSfxHandle, g_aasShipShield, g_anShipFuel, g_aObjectTypeData, g_asShipWeaponEnergy, g_bForceCriticalDamageWarning, g_bFuelGaugeDamaged, g_nSpaceFrame, PlaySfxWaveFileByNumber(), SetCockpitLightBlink(), update_lights(), and vdu_polygon().
Referenced by update_cockpit(), and update_lights().
Definition at line 3006 of file cockpt.c.
References distance_from_object(), FindMissileTargetingObject(), FindNearestMissileTargetingObject(), g_12_abCockpitLightGoalTable, SetCockpitLightBlink(), and update_missile_warning().
Referenced by update_cockpit(), and update_missile_warning().
| void update_objective_location | ( | short | objective | ) |
Definition at line 1460 of file cockpt.c.
References check_sighting(), check_visit(), ComputeVectorDelta(), FixedToShortSaturating(), g_1_stElapsedCampaignDate, g_aMissionNavPoints, g_aMissionObjectives, g_aShipPosition, g_cCurrentObjective, g_nCurStellarSystem, IsObjectiveInDisplayedSystem(), LocateMobileObjective(), mobile_objective(), sighted(), update_objective_location(), Vector_magnitude(), visited(), and CampaignDate::year.
Referenced by check_objectives(), update_cockpit(), and update_objective_location().
Definition at line 1054 of file cockpt.c.
References DrawSpriteDefault(), g_116_aWeaponDisplayPositions, g_12_aHudTextSlotsArray, g_1_pDashWeaponPicture, g_27_aasGunCooldown, g_2_stLeftwardVduPortBlock, g_5_nWeaponDisplayOriginXValue, g_aShipWeapons, g_cReleaseWeaponDisplayFrame, g_nArmsDisplayOriginY, g_stWeaponDisplayOffset, Viewport::left, Viewport::top, update_status_text(), ShortPoint::x, and ShortPoint::y.
Referenced by update_status_text(), and update_VDUs().
Definition at line 3539 of file cockpt.c.
References Viewport::bottom, check_objectives(), CopyTrainSimPilotViewToVdus(), DrawFilledViewportRect(), DrawTargetRangeReadout(), g_101_stScrViewInfo, g_12_aHudTextSlotsArray, g_1_stRightVduTextContextBlock, g_2_stLeftwardVduPortBlock, g_4_stRightVduView, g_5_stLeftVduStringContextRecord, g_bForceDamageDisplayRedraw, g_nCockpitDisplayMode, g_nCurrentView, g_pPilotHandAnimationShapePtr, get_mode(), IsCockpitWeaponShapeLoaded(), Viewport::left, RefreshCommunicationMenu(), Viewport::right, SetTextContext(), show_communications_disp(), show_damage_disp(), show_navigation_disp(), show_target_disp(), show_weapon_disp(), HudMessageSlot::text, Viewport::top, update_dead_disp(), update_status_text(), update_VDUs(), update_vid_disp(), UpdateDamageDisplay(), UpdateMessage(), and vid_transmit().
Referenced by initialize_cockpit(), SelectCockpitVduMode(), update_cockpit(), and update_VDUs().
| short update_vid_disp | ( | short | vdu | ) |
Definition at line 702 of file cockpt.c.
References g_anLastDrawnVduMode, get_mode(), set_new_vdu(), and update_vid_disp().
Referenced by update_VDUs(), and update_vid_disp().
| void UpdateMessage | ( | HudMessageSlot * | slot | ) |
Definition at line 351 of file cockpt.c.
References ClearHudMessageSlot(), DrawHudMessageSlot(), HudMessageSlot::flashCount, HudMessageSlot::text, and UpdateMessage().
Referenced by update_VDUs(), and UpdateMessage().
Definition at line 2420 of file cockpt.c.
References AddFixedVectors(), CaptureSpriteBackground(), ComputeVectorDelta(), distance_from_object(), distance_from_point(), DivideFixed(), DrawSpriteDefault(), EYE_OBJECT, g_15_nStoredScreenViewCentreX, g_1_nTargetLeadingIndicatorY, g_27_stViewScratchInfo, g_37_nViewCenterY, g_66_pCabinHudImage, g_acShipTarget, g_aObjectTypeData, g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_aShipWeapons, g_asObjectCollisionRadius, g_bTargetLockActive, g_bTargetLockDisplayEnabled, g_bTargetLockMode, g_cRedColour, g_nCurrentView, g_nScreenWidth, g_nTargetLeadIndicatorX, g_pCockpitHudBackground, HasInRangeGunForTargetLead(), ObjectTypeData::maximumVelocity, MultiplyFixed(), OBJECT_CLASS_PROJECTILE, OBJECT_TYPE_TIGERS_CLAW, ScaleFixedVector(), SetHudMessageText(), transform_to_objects_frame(), UpdateTargetLeadIndicator(), vector_component_in_dir(), Vector_magnitude(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by overlay_head_up_display(), and UpdateTargetLeadIndicator().
| void vdu_malf | ( | short | vdu, |
| short | sound ) |
Definition at line 819 of file cockpt.c.
References g_2_stLeftwardVduPortBlock, g_4_stRightVduView, g_cDarkGreenColour, g_nCurrentView, malf_noise(), set_mode(), Viewport::top, and vdu_malf().
Referenced by damage_your_component(), SelectCockpitVduMode(), and vdu_malf().
| void vdu_polygon | ( | signed char | bar, |
| short | percent ) |
Definition at line 156 of file cockpt.c.
References CockpitBarDefinition::bottom, Viewport::bottom, CockpitBarDefinition::direction, DrawSpriteDefault(), CockpitBarDefinition::emptyFrame, CockpitBarDefinition::filledFrame, g_4_pCockpitPanelShape, g_8_nGunDisplaySlot, g_9_stCockpitMeterPort, g_abGunDisplayConfiguration, g_aCockpitBarDefinitions, g_apCockpitVduOverlayShapes, g_nCurrentView, CockpitBarDefinition::left, Viewport::left, CockpitBarDefinition::length, CockpitBarDefinition::right, Viewport::right, CockpitBarDefinition::top, Viewport::top, and vdu_polygon().
Referenced by update_bars(), update_cockpit(), update_lights(), and vdu_polygon().
| void vdu_pop_all | ( | short | vdu | ) |
Definition at line 3715 of file cockpt.c.
References EndCommMenu(), get_mode(), GetVduModeStackDepth(), pop_mode(), and vdu_pop_all().
Referenced by SelectCockpitVduMode(), and vdu_pop_all().
| void vid_equiv | ( | short | obj, |
| short | message ) |
Definition at line 3444 of file cockpt.c.
References g_nCurrentView, g_nTrainSimActive, get_mode(), message_showing(), real_vid_transmit(), and vid_equiv().
Referenced by npc_communication(), and vid_equiv().
Definition at line 3351 of file cockpt.c.
References COMM_SPEAKER_SIDE, DrawSpriteDefault(), EndCommMenu(), EndCommSessionWithWingman(), g_19_nCommPortraitAnimationTickWord, g_4_stRightVduView, g_7_asShipBurstStageCountdown, g_aeSpecialManeuver, g_bCommSpeechPlaying, g_bVideoImagesSuppressed, g_nCockpitDisplayMode, g_nCommDeathSequenceFrame, g_nCommPortraitFrame, g_nCommPortraitIndex, g_nCommSpeakerObject, g_nRenderedSpaceFrame, g_pCommPortraitResource, g_pCommVduFrameResource, g_szCommMessageTextText, Viewport::left, RandomInRange(), SIDE_NEUTRAL, SPECIAL_MANEUVER_UNKNOWN_9, Viewport::top, and vid_transmit().
Referenced by update_VDUs(), and vid_transmit().
| short visited | ( | short | objective | ) |
Definition at line 1140 of file cockpt.c.
References g_aMissionObjectives, and visited().
Referenced by BuildMap(), CanPlayerLand(), cleanup_objectives(), DrawNavMapLegend(), flag_reached(), set_next_destination(), StoreMissionResultsInCampaignGlobals(), triumph(), update_objective_location(), and visited().
| Viewport g_101_stScrViewInfo |
Definition at line 3831 of file cockpt.c.
Referenced by AppendFormattedText(), BriefingMap_DisplayMap(), CaptureMouseCursorBackground(), clear_head_up_display(), cockpit_explosion(), CompleteStarSystemJump(), CopyViewportRuns(), death_sequence(), DIBmakeDIB(), draw_3d_scanner(), draw_cockpit_lights(), DrawCockpitReadout(), DrawFormattedText(), DrawMouseCursor(), DrawNavLocationReadout(), DrawPendingCockpitDamage(), DrawSpriteTransformed(), DrawTargetCameraAttitudeIndicators(), DrawTitleOrchestra(), DrawViewportEllipse(), DrawViewportEllipseShadow(), dump_buffer_to_screen(), EMStartUp(), explosion_draw(), FillPolygon(), FillViewportEllipse(), fizzle_fade(), FormatTextBufferFromStart(), free_viewport(), InflightComputer(), init_vdus(), initialize_cockpit(), InitializeCampaignChalkboardScreen(), InitializeCockpitResources(), InitializeConversationViewport(), InitializeGameTextContexts(), KeyboardMousePump(), PollCampaignChalkboardMenu(), ReadPersonnelTextField(), RefreshMemoryStatusOverlay(), ResetScreenClipToFullHeight(), RestoreCockpitExplosionBackground(), RestoreHudMessageBackground(), RestoreMouseCursorBackground(), RestoreSpriteBackground(), RestoreTargetCameraAttitudeIndicators(), RestoreTransientCockpitGraphics(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), shaded_triangle(), shadow_draw(), ShowConfedNavScan(), ShowHudTextLine(), snow_viewport(), ToggleTargetCameraOverlay(), triangle(), update_VDUs(), and ValidateViewportBounds().
| short g_10_asScannerObjectYTable[11] |
Definition at line 3812 of file cockpt.c.
Referenced by clear_head_up_display(), draw_3d_scanner(), and rotational_pos_to_scanner_pos().
| ShortPoint g_116_aWeaponDisplayPositions[16] |
Definition at line 3804 of file cockpt.c.
Referenced by remove_weapon(), RemovePlayerReleaseWeapon(), ResetWeaponDisplayPositions(), show_weapon_disp(), and update_status_text().
| short g_128_nShotHotspotLeft |
Definition at line 3822 of file cockpt.c.
Referenced by DrawCampaignChalkboardFrame(), InitializeCampaignChalkboardScreen(), and LoadSceneHotspotBoundsForSelection().
| signed char g_12_abCockpitLightGoalTable[7] |
Definition at line 3815 of file cockpt.c.
Referenced by draw_cockpit_lights(), house_keep(), reset_cockpit(), SetCockpitLightBlink(), update_lights(), and update_missile_warning().
| HudMessageSlot g_12_aHudTextSlotsArray[2] |
Definition at line 3794 of file cockpt.c.
Referenced by ClearGlobalMessage(), ClearHudGunReadouts(), CockpitMessage(), pop_mode(), push_mode(), remove_message(), set_global_message(), set_mode(), ShowComponentHitHudMessage(), update_status_text(), and update_VDUs().
| char g_12_szSoundTraceScratch[0x200] |
Definition at line 3820 of file cockpt.c.
Referenced by SoundDebugPrintf().
| FixedVector g_137_aDirectionViewUpVectorArray[DIRECTION_VIEW_COUNT] |
Definition at line 3837 of file cockpt.c.
Referenced by get_right_shape(), and initialize_direction_view_frame().
| signed char g_13_abShipArrivalMessageSent[16] |
Definition at line 3803 of file cockpt.c.
Referenced by flag_reached(), and Set_up_ship_info().
| void* g_13_pStartupStellarPacket |
Definition at line 3827 of file cockpt.c.
Referenced by init_constellation(), and LoadOriginFxDrivers().
| short g_14_asScannerTargetUnderlay[5] |
Definition at line 3796 of file cockpt.c.
Referenced by clear_head_up_display(), and draw_3d_scanner().
| signed char g_14_cPilotHandFrameCode |
Definition at line 3788 of file cockpt.c.
Referenced by animate_pilot(), determine_pilot_hand(), DetermineFleetOverviewPilotHand(), DrawPilotHandFrame(), and DrawUnreferencedPilotHandFrame().
| short g_15_asScannerObjectX[11] |
Definition at line 3814 of file cockpt.c.
Referenced by clear_head_up_display(), draw_3d_scanner(), ResetScannerContacts(), and rotational_pos_to_scanner_pos().
| short g_15_nSceneAreaLowestWord |
Definition at line 3825 of file cockpt.c.
Referenced by DrawCampaignChalkboardFrame(), InitializeCampaignChalkboardScreen(), and LoadSceneHotspotBoundsForSelection().
| TextContext g_168_stFlightTextContext |
Definition at line 3832 of file cockpt.c.
Referenced by InitializeGameTextContexts(), print_message_text(), and ResetGameTextContexts().
| char g_16_szComponentHitMsg[40] |
Definition at line 3802 of file cockpt.c.
Referenced by ShowComponentHitHudMessage().
| char g_16_szTextBufferBuffer[256] |
Definition at line 3793 of file cockpt.c.
Referenced by DrawCalculatingLabel(), DrawTargetRangeReadout(), ExpandCommMessageTokens(), InitializeCutsceneViewports(), InitializeModalTextPanel(), LoadWingCmdrCfgFile(), update_bars(), and update_digital_readouts().
| unsigned short g_18_nHudMessageColour |
Definition at line 3819 of file cockpt.c.
Referenced by RunSpaceFlight(), and SetHudMessageText().
| short g_19_nCommPortraitAnimationTickWord |
Definition at line 3801 of file cockpt.c.
Referenced by real_vid_transmit(), and vid_transmit().
| short g_1_nTargetLeadingIndicatorY |
Definition at line 3786 of file cockpt.c.
Referenced by overlay_head_up_display(), RestoreTargetLeadIndicator(), and UpdateTargetLeadIndicator().
| unsigned char* g_1_pDashWeaponPicture |
Definition at line 3844 of file cockpt.c.
Referenced by fire_computer_graphic_missile(), InitializeCockpitResources(), IsCockpitWeaponShapeLoaded(), show_damage_disp(), show_weapon_disp(), update_status_text(), and UpdateDamageDisplay().
| char g_1_szLegacySaveFolder[0x30] |
Definition at line 3828 of file cockpt.c.
Referenced by LocateLegacySaveGame(), and RunPilotDatabaseMenu().
| short g_27_nSceneHotspotTopValue |
Definition at line 3823 of file cockpt.c.
Referenced by DrawCampaignChalkboardFrame(), InitializeCampaignChalkboardScreen(), and LoadSceneHotspotBoundsForSelection().
| Viewport g_27_stViewScratchInfo |
Definition at line 3841 of file cockpt.c.
Referenced by ApplyCannedSceneObjectEventRecord(), auto_pilot_sequence(), build_your_target_list(), clear_view_buffer(), CompleteStarSystemJump(), death_sequence(), draw_sorted_objects_to_buffer(), draw_target_box(), dump_buffer_to_screen(), easy2see(), FetchDiskPacketRetrying(), free_view_buffer(), get_right_shape(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), house_keep_objects(), initialize_cockpit(), initialize_view_buffer(), InitializeGameTextContexts(), InitializeSpaceFlightInput(), intro_drawbackgroundships(), overlay_head_up_display(), player_input(), process_player_input(), RenderSpaceViewFrame(), ResetGameTextContexts(), RestoreTargetLeadIndicator(), RestoreTransientCockpitGraphics(), RunSpaceFlight(), set_eye_direction_and_position(), unwarp(), UpdateSpacePaletteFade(), UpdateTargetLeadIndicator(), and warp().
| FixedVector g_2_aDirectionViewForwardAxisTable[DIRECTION_VIEW_COUNT] |
Definition at line 3838 of file cockpt.c.
Referenced by initialize_direction_view_frame().
| signed char g_2_cEarlierTargetObjectValue |
Definition at line 3799 of file cockpt.c.
Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().
| Viewport g_2_stLeftwardVduPortBlock |
Definition at line 3830 of file cockpt.c.
Referenced by CopyTrainSimPilotViewToVdus(), fire_computer_graphic_missile(), init_vdus(), InitializeCockpitResources(), malf_noise(), set_new_vdu(), show_damage_disp(), show_weapon_disp(), ShowComponentHitHudMessage(), update_status_text(), update_VDUs(), UpdateDamageDisplay(), and vdu_malf().
| unsigned char* g_36_apTextGlyphs[4] |
Definition at line 3835 of file cockpt.c.
Referenced by BriefingMap_DisplayMap(), CalibrateJoystickInteractive(), InitializeTextContextFromFont(), ReleaseSpaceflightResources(), ReleaseTextFont(), RunCampaignGameLoop(), and RunCampaignScript().
| short g_36_nPendingDashDamageValue |
Definition at line 3790 of file cockpt.c.
Referenced by DrawPendingCockpitDamage(), and place_damage_on_cockpit().
| short g_36_nTargetLockonMarkerY |
Definition at line 3805 of file cockpt.c.
Referenced by draw_target_box().
| char* g_3_apszPersonnelImportCaptionsTable[8] |
Definition at line 3821 of file cockpt.c.
Referenced by DrawTransferredPilotRow(), and RunPilotDatabaseMenu().
| signed char g_3_cOverlayMessageView |
Definition at line 3792 of file cockpt.c.
Referenced by ClearHudMessageDisplay(), ejection_sequence(), and SetHudTextColour().
| short g_3_nReleaseWeaponShowKindWord |
Definition at line 3785 of file cockpt.c.
Referenced by RemovePlayerReleaseWeapon().
| Viewport g_3_stDashViewport |
Definition at line 3829 of file cockpt.c.
Referenced by CopyTrainSimPilotViewToVdus(), DrawPendingCockpitDamage(), DrawPilotHandFrame(), DrawUnreferencedPilotHandFrame(), InitializeCockpitResources(), and ResetPilotHandAnimation().
| ReleaseWeaponPosition g_3_stReleaseWeaponReadoutLocationBlock |
Definition at line 3784 of file cockpt.c.
Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().
| short g_47_asScannerBackgroundColourList[10] |
Definition at line 3817 of file cockpt.c.
Referenced by clear_head_up_display(), and draw_3d_scanner().
| signed char g_4_abCockpitLightMode[7] |
Definition at line 3810 of file cockpt.c.
Referenced by draw_cockpit_lights(), and reset_cockpit().
| int g_4_nSevereDmgWarningSfxHandle |
Definition at line 3816 of file cockpt.c.
Referenced by house_keep(), ResetSoundState(), and update_lights().
| unsigned char* g_4_pScannerBlipUnderlayPointer |
Definition at line 3787 of file cockpt.c.
Referenced by clear_head_up_display(), draw_3d_scanner(), free_cockpit(), and InitializeCockpitResources().
| Viewport g_4_stRightVduView |
Definition at line 3842 of file cockpt.c.
Referenced by CopyTrainSimPilotViewToVdus(), DrawTargetRangeReadout(), init_vdus(), InitializeCockpitResources(), malf_noise(), real_vid_transmit(), set_global_message(), set_new_vdu(), show_communications_disp(), show_navigation_disp(), show_target_disp(), update_VDUs(), vdu_malf(), and vid_transmit().
| TextContext g_5_stLeftVduStringContextRecord |
Definition at line 3840 of file cockpt.c.
Referenced by init_vdus(), show_damage_disp(), show_weapon_disp(), ShowComponentHitHudMessage(), update_VDUs(), and UpdateDamageDisplay().
| unsigned char* g_66_pCabinHudImage |
Definition at line 3834 of file cockpt.c.
Referenced by build_your_target_list(), clear_head_up_display(), draw_3d_scanner(), draw_nav_pointer(), draw_target_box(), InitializeCockpitResources(), overlay_head_up_display(), RestoreTargetLeadIndicator(), and UpdateTargetLeadIndicator().
| short g_69_asCockpitDmgStateList[4] |
Definition at line 3818 of file cockpt.c.
Referenced by clear_cockpit_damage(), DrawCutsceneCockpitOverlay(), explosion_draw(), and place_damage_on_cockpit().
| short g_6_nHomeOperationShipIndexValue |
Definition at line 3806 of file cockpt.c.
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), check_stranded(), flag_reached(), get_color(), house_keep_objects(), prepare_mission(), request(), and send_message().
| short g_78_bHighMemoryBuffersSetState |
Definition at line 3839 of file cockpt.c.
Referenced by ApplyCannedSceneFrameEvents(), auto_pilot_sequence(), CompleteStarSystemJump(), ejection_sequence(), FinishCannedScenePlayback(), HandleCannedSceneBufferBoundary(), HandleSpaceFlightControls(), InitializeHighMemoryGraphicsBuffers(), RecordCannedSceneBriefingCharacter(), RecordCannedSceneObjectEvent(), RecordCannedSceneObjectState(), RecordMusicCommandHook(), ReleaseHighMemoryGraphicsBuffers(), ResetCannedSceneRecording(), and set_up_action_sphere().
| short g_8_nSceneRegionRightWord |
Definition at line 3824 of file cockpt.c.
Referenced by DrawCampaignChalkboardFrame(), InitializeCampaignChalkboardScreen(), and LoadSceneHotspotBoundsForSelection().
| short g_8_nScopePointerX |
Definition at line 3808 of file cockpt.c.
Referenced by draw_3d_scanner(), and rotational_pos_to_scanner_pos().
| volatile ShortPoint g_8_stCockpitExplosionPosBlock |
Definition at line 3813 of file cockpt.c.
Referenced by cockpit_explosion(), DrawPendingCockpitDamage(), place_damage_on_cockpit(), RestoreCockpitExplosionBackground(), and RestoreTransientCockpitGraphics().
| CockpitReadout g_9_aConsoleMetersTable[6] |
Definition at line 3807 of file cockpt.c.
Referenced by DrawCockpitReadout(), and InitializeCockpitReadout().
| FixedVector g_9_aDirectionLookRightVector[DIRECTION_VIEW_COUNT] |
Definition at line 3836 of file cockpt.c.
Referenced by get_right_shape(), and initialize_direction_view_frame().
| short g_9_nScannerCursorYValue |
Definition at line 3809 of file cockpt.c.
Referenced by draw_3d_scanner(), and rotational_pos_to_scanner_pos().
| short g_9_nScreenMessageTimeNumber |
Definition at line 3789 of file cockpt.c.
Referenced by check_message(), clear_message_time(), Explosion(), message_showing(), and set_message_time().
| Viewport g_9_stCockpitMeterPort |
Definition at line 3833 of file cockpt.c.
Referenced by InitializeCockpitResources(), and vdu_polygon().
| signed char g_acCockpitLightOffFrame[7] = { 0 } |
Definition at line 17 of file cockpt.c.
Referenced by draw_cockpit_lights(), and InitializeCockpitResources().
| signed char g_acCockpitLightOnFrame[7] = { 0 } |
Definition at line 18 of file cockpt.c.
Referenced by draw_cockpit_lights(), and InitializeCockpitResources().
| CockpitBarDefinition g_aCockpitBarDefinitions[8] = { 0 } |
Definition at line 19 of file cockpt.c.
Referenced by InitializeCockpitResources(), and vdu_polygon().
| ShortPoint g_aCockpitDamagePositions[4] = { 0 } |
Definition at line 14 of file cockpt.c.
Referenced by DrawCutsceneCockpitOverlay(), explosion_draw(), InitializeCockpitResources(), and place_damage_on_cockpit().
| ShortPoint g_aCockpitReadoutOrigins[4] = { 0 } |
Definition at line 20 of file cockpt.c.
Referenced by InitializeCockpitResources().
| ShortPoint g_aDefaultWeaponDisplayPositions[16] = { 0 } |
Definition at line 28 of file cockpt.c.
Referenced by InitializeCockpitResources(), and ResetWeaponDisplayPositions().
| int g_aiForwardScannerGridRows[78] |
Definition at line 55 of file cockpt.c.
Referenced by draw_3d_scanner().
| int g_aiTargetCameraScannerGridRows[50] |
Definition at line 77 of file cockpt.c.
Referenced by draw_3d_scanner().
| short g_asCockpitLightX[7] = { 0 } |
Definition at line 15 of file cockpt.c.
Referenced by draw_cockpit_lights(), and InitializeCockpitResources().
| short g_asCockpitLightY[7] = { 0 } |
Definition at line 16 of file cockpt.c.
Referenced by draw_cockpit_lights(), and InitializeCockpitResources().
| short g_asPilotHandOffsets[34] |
Definition at line 35 of file cockpt.c.
Referenced by DrawPilotHandFrame(), and DrawUnreferencedPilotHandFrame().
| short g_asVduSelectionSound[2] = { 0x7f, 0 } |
Definition at line 30 of file cockpt.c.
Referenced by SelectCockpitVduMode().
| short g_bCaptureHudMessageBackground = 1 |
Definition at line 99 of file cockpt.c.
Referenced by ClearHudMessageDisplay(), and SetHudTextColour().
| short g_bCockpitDamageFrame0Shown = 0 |
Definition at line 105 of file cockpt.c.
Referenced by DrawPendingCockpitDamage(), explosion_draw(), init_mission(), initialize_cockpit(), and update_cockpit().
| short g_bCockpitDamageFrame2Shown = 0 |
Definition at line 106 of file cockpt.c.
Referenced by DrawPendingCockpitDamage(), explosion_draw(), init_mission(), and update_cockpit().
| short g_bForceCriticalDamageWarning = 0 |
Definition at line 47 of file cockpt.c.
Referenced by update_lights().
| int g_bForceDamageDisplayRedraw = 0 |
Definition at line 110 of file cockpt.c.
Referenced by show_damage_disp(), and update_VDUs().
| short g_bFuelGaugeDamaged = 0 |
Definition at line 46 of file cockpt.c.
Referenced by DrawPendingCockpitDamage(), explosion_draw(), init_mission(), and update_lights().
| short g_bMissileLockAcquired = 0 |
Definition at line 104 of file cockpt.c.
Referenced by fire_weapon(), init_mission(), and overlay_head_up_display().
| signed char g_bTargetBracketVisible = 1 |
Definition at line 96 of file cockpt.c.
Referenced by overlay_head_up_display().
| short g_bTargetLockActive = 0 |
Definition at line 9 of file cockpt.c.
Referenced by check_target(), CheckTargetLockMalfunction(), fire_weapon(), init_mission(), new_view(), overlay_head_up_display(), RestoreTransientCockpitGraphics(), target_locking(), and UpdateTargetLeadIndicator().
| short g_bTargetLockDisplayEnabled = 0 |
Definition at line 29 of file cockpt.c.
Referenced by InitializeCockpitResources(), overlay_head_up_display(), RestoreTargetLeadIndicator(), and UpdateTargetLeadIndicator().
| signed char g_cHazardBaseTravelTime = 0 |
Definition at line 26 of file cockpt.c.
Referenced by init_hazard(), and InitializeCockpitResources().
| signed char g_cLastPilotHandFrame = (signed char)0xff |
Definition at line 34 of file cockpt.c.
Referenced by animate_pilot(), cockpit_explosion(), DrawPilotHandFrame(), DrawUnreferencedPilotHandFrame(), ResetPilotHandAnimation(), and RestoreTransientCockpitGraphics().
| signed char g_cReleaseWeaponDisplayFrame = -1 |
Definition at line 49 of file cockpt.c.
Referenced by fire_computer_graphic_missile(), RemovePlayerReleaseWeapon(), and update_status_text().
| signed char g_cReleaseWeaponDisplayState = 0 |
Definition at line 51 of file cockpt.c.
Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().
| signed char g_cReleaseWeaponDisplayTicks = 0 |
Definition at line 50 of file cockpt.c.
Referenced by fire_computer_graphic_missile(), and RemovePlayerReleaseWeapon().
| volatile short g_nCockpitExplosionFrame = 8 |
Definition at line 44 of file cockpt.c.
Referenced by cockpit_explosion(), InitializeCockpitResources(), IsCockpitExplosionActive(), place_damage_on_cockpit(), RestoreCockpitExplosionBackground(), and RestoreTransientCockpitGraphics().
| short g_nCommDeathSequenceFrame = 0 |
Definition at line 10 of file cockpt.c.
Referenced by check_message(), init_mission(), npc_communication(), real_vid_transmit(), and vid_transmit().
| short g_nCommMessageIndex = -1 |
Definition at line 11 of file cockpt.c.
Referenced by real_vid_transmit().
| int g_nCommPortraitFrame = -1 |
Definition at line 107 of file cockpt.c.
Referenced by vid_transmit().
| int g_nDisplayedObjectiveRange = 40000 |
Definition at line 53 of file cockpt.c.
Referenced by check_objectives(), and DrawCalculatingLabel().
| short g_nHazardPitchRange = 0 |
Definition at line 27 of file cockpt.c.
Referenced by InitializeCockpitResources().
| short g_nHudMessageBackgroundDepth = 0 |
Definition at line 100 of file cockpt.c.
Referenced by ClearHudMessageDisplay(), InitializeCockpitResources(), RestoreHudMessageBackground(), and ShowHudTextLine().
| short g_nScannerTargetObject = -1 |
Definition at line 54 of file cockpt.c.
Referenced by clear_head_up_display(), draw_3d_scanner(), and ResetScannerContacts().
| short g_nTargetLeadIndicatorX = (short)0x8001 |
Definition at line 31 of file cockpt.c.
Referenced by overlay_head_up_display(), RestoreTargetLeadIndicator(), and UpdateTargetLeadIndicator().
| short g_nTargetLockMarkerX = -0x7fff |
Definition at line 101 of file cockpt.c.
Referenced by draw_target_box().
| short g_nTargetLockMusicCooldown |
Definition at line 3811 of file cockpt.c.
Referenced by lock_off(), SaveTorpedoTargetLockForViewChange(), start_lock(), target_locking(), and UpdateSavedTorpedoTargetLock().
| unsigned char* g_pCockpitExplosionBackground = 0 |
Definition at line 41 of file cockpt.c.
Referenced by cockpit_explosion(), free_cockpit(), InitializeCockpitResources(), RestoreCockpitExplosionBackground(), RestoreCockpitExplosionIfVisible(), and RestoreTransientCockpitGraphics().
| unsigned char* volatile g_pCockpitExplosionShape = 0 |
Definition at line 43 of file cockpt.c.
Referenced by cockpit_explosion(), InitializeCockpitResources(), place_damage_on_cockpit(), RestoreCockpitExplosionBackground(), and RestoreTransientCockpitGraphics().
| unsigned char* g_pCockpitHudBackground = 0 |
Definition at line 42 of file cockpt.c.
Referenced by free_cockpit(), InitializeCockpitResources(), RestoreTargetLeadIndicator(), and UpdateTargetLeadIndicator().
| unsigned char* g_pHudMessageBackground = 0 |
Definition at line 98 of file cockpt.c.
Referenced by free_cockpit(), InitializeCockpitResources(), RestoreHudMessageBackground(), and ShowHudTextLine().
| unsigned char* g_pHudMessageFrameShape = 0 |
Definition at line 97 of file cockpt.c.
Referenced by free_cockpit(), InitializeCockpitResources(), RestoreHudMessageBackground(), and ShowHudTextLine().
| unsigned char* g_pPendingCockpitDamageShape = 0 |
Definition at line 40 of file cockpt.c.
Referenced by DrawPendingCockpitDamage(), explosion_draw(), and free_cockpit().
| unsigned char* g_pReleaseWeaponDisplayBackground = 0 |
Definition at line 48 of file cockpt.c.
Referenced by fire_computer_graphic_missile(), free_cockpit(), InitializeCockpitResources(), and RemovePlayerReleaseWeapon().
| char* g_pszAutopilotWaitReason = g_szAutopilotWaitReason |
Definition at line 45 of file cockpt.c.
Referenced by auto_pilot_valid(), flag_reached(), and TryBeginStarSystemJump().
| char* g_pszDisplayedHudMessage = 0 |
Definition at line 33 of file cockpt.c.
Referenced by ClearHudMessageDisplay(), print_message_text(), and RenderSpaceViewFrame().
| const char* g_pszMissileLocked = "MISSILE LOCKED " |
Definition at line 95 of file cockpt.c.
Referenced by decrement_lock_time(), and lock_off().
| char* g_pszPendingHudMessage = 0 |
Definition at line 32 of file cockpt.c.
Referenced by EndCommMenu(), print_message_text(), RenderSpaceViewFrame(), RunSpaceFlight(), SetHudMessageText(), and SetHudTextColour().
| CockpitScannerGeometry g_stCockpitScannerGeometry = { 0 } |
Definition at line 23 of file cockpt.c.
Referenced by draw_3d_scanner(), InitializeCockpitResources(), and set_objective_range().
| ShortRect g_stCommTargetBracketBounds = { -0x7fff, 0, 0, 0 } |
Definition at line 103 of file cockpt.c.
Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().
| ShortPoint g_stHudMessageOrigin = { 0 } |
Definition at line 13 of file cockpt.c.
Referenced by InitializeCockpitResources(), print_message_text(), RestoreHudMessageBackground(), and ShowHudTextLine().
| ShortRect g_stLeftVduBounds = { 0 } |
Definition at line 21 of file cockpt.c.
Referenced by InitializeCockpitResources().
| Viewport g_stPilotHandBackgroundViewportBlock |
Definition at line 3843 of file cockpt.c.
Referenced by CopyTrainSimPilotViewToVdus(), DrawPendingCockpitDamage(), DrawPilotHandFrame(), DrawUnreferencedPilotHandFrame(), free_cockpit(), InitializeCockpitResources(), and ResetPilotHandAnimation().
| ShortRect g_stPilotHandBounds = { 0 } |
Definition at line 24 of file cockpt.c.
Referenced by InitializeCockpitResources().
| ShortPoint g_stPilotHandOrigin = { 0 } |
Definition at line 25 of file cockpt.c.
Referenced by DrawPilotHandFrame(), DrawUnreferencedPilotHandFrame(), and InitializeCockpitResources().
| ShortRect g_stRightVduBounds = { 0 } |
Definition at line 22 of file cockpt.c.
Referenced by InitializeCockpitResources().
| ShortRect g_stTargetBracketBounds = { -0x7fff, 0, 0, 0 } |
Definition at line 102 of file cockpt.c.
Referenced by overlay_head_up_display(), and RestoreTransientCockpitGraphics().
| Viewport g_stTrainSimLeftVduSource = { 0 } |
Definition at line 109 of file cockpt.c.
Referenced by CopyTrainSimPilotViewToVdus().
| Viewport g_stTrainSimRightVduSource = { 0 } |
Definition at line 108 of file cockpt.c.
Referenced by CopyTrainSimPilotViewToVdus().
| ShortPoint g_stWeaponDisplayOffset = { 0, 0x10 } |
Definition at line 12 of file cockpt.c.
Referenced by show_damage_disp(), show_weapon_disp(), and update_status_text().
| char g_szAutopilotWaitReason[28] = "Wait for ??????????????????" |
|
static |
Definition at line 52 of file cockpt.c.
Referenced by show_weapon_disp().