|
Wing Commander II
Reconstructed Win32 source (1996)
|
Declarations for reconstructed game functions. More...
Go to the source code of this file.
Typedefs | |
| typedef ShortRect | ModalPanelBounds |
Functions | |
| void | SaveGamePalette (void) |
| void | RestoreGamePalette (void) |
| short | easy2see (short obj) |
| void | make_shard (short asteroid, FixedVector direction) |
| void | remove_hazard (signed char hazard) |
| void | remove_all_hazards (void) |
| short | difficulty (void) |
| short | asteroid_velocity (void) |
| void | skew_randomly (short obj, short allowReverse) |
| void | align (int *value, short quantum) |
| void | init_hazard (short obj, FixedVector position, short moving) |
| short | near_field (const HazardField *field, const FixedVector *point) |
| short | within_field (const HazardField *field, const FixedVector *point) |
| short | try_far_spot (FixedVector *spot, short *moving) |
| short | rear_sphere (void) |
| short | ok_hazard_spot (short obj) |
| short | make_hazard (void) |
| void | extra_hazard (short obj) |
| void | approach (short obj) |
| void | manage_hazard (short obj, short slot) |
| void | match_ship_to_eye (void) |
| void | update_hazards (void) |
| void | start_hazard_field (short region) |
| void | add_hazard_field (short type, FixedVector center, short radius, short density) |
| void | check_hazards (void) |
| void | CheckLauncherAndConfig (void) |
| int WINAPI | WinMain (HINSTANCE instance, HINSTANCE previous, LPSTR commandLine, int showCommand) |
| void | ShutdownGameWindow (void) |
| void | ShowNoticeMessageBox (const char *text) |
| unsigned int | AbortToDesktop (void) |
| int | CreateMainWindow (HINSTANCE instance, HINSTANCE previous, int showCommand) |
| unsigned int | PumpWindowMessages (int skipMessages) |
| unsigned int | GetF1KeyLatch (void) |
| LRESULT CALLBACK | MainWindowProc (HWND window, UINT message, WPARAM wParam, LPARAM lParam) |
| void | GetJoystickPosition (unsigned int *x, unsigned int *y, int *buttons, unsigned short joystick, unsigned int fallback) |
| short | GetJoystickButtons (void) |
| void | GetJoystickDevCaps (short joystick, short *xMin, short *xMax, short *yMin, short *yMax) |
| HINSTANCE | GetApplicationInstance (void) |
| HWND | GetMainWindowHandle (void) |
| HDC | GetMainWindowDeviceContext (void) |
| void * | AllocateGuardedMemory (unsigned int size) |
| void | ReportHeapGuardCorruption (void *memory, int count, int overrun) |
| void | CheckAllGuardedAllocations (void) |
| int | IsFreedHeapBlockTracked (void *memory) |
| int | DetectDoubleFree (void *memory) |
| void | TrackFreedHeapBlock (void *memory) |
| void | UntrackFreedHeapBlock (void *memory) |
| void | FreeGuardedAllocation (void *memory) |
| void | SetMousePosition (int x, int y) |
| int | TakeInputPressCount (void) |
| unsigned int | PollKeyboardState (void) |
| void | KeyboardMousePump (void) |
| void | SetPersonnelCursorPosition (int x, int y, short unused1, short unused2) |
| int | GetHomeKeyState (void) |
| int | GetUpArrowKeyState (void) |
| int | GetPageUpKeyState (void) |
| int | GetLeftArrowKeyState (void) |
| int | GetRightArrowKeyState (void) |
| int | GetEndKeyState (void) |
| int | GetDownArrowKeyState (void) |
| int | GetPageDownKeyState (void) |
| int | GetNumLockKeyState (void) |
| int | GetNumpadPlusKeyState (void) |
| int | GetNumpadMinusKeyState (void) |
| int | GetReturnKeyState (void) |
| int | GetSpaceKeyState (void) |
| int | GetShiftKeyState (void) |
| unsigned int | GetKeyboardModifiers (void) |
| int | GetControlKeyState (void) |
| int | GetJKeyState (void) |
| unsigned int | GetGameClockTicks (void) |
| void | InitGameClockRandomEpoch (void) |
| void | WriteDebugString (const char *s) |
| void | SetInputCursorHostPosition (int x, int y) |
| char * | LocateStreamsDirOnDisc (void) |
| char | FindCdRomDriveByVolumeLabel (const char *label, const char *directory) |
| int | SetCurrentDirOnDrive (char drive, const char *directory) |
| int | PromptInsertCorrectCd (void) |
| short | OpenDataFileOrDie (const char *path) |
| void | CloseDataFile (unsigned short fd) |
| short | WriteDataFileAtOffset (unsigned short fd, int offset, unsigned int length, const void *data) |
| short | CreateDataFile (const char *path) |
| int | ReadDataFileAtOffset (unsigned short fd, int offset, unsigned int length, void *data) |
| int | SeekDataFile (unsigned short fd, int offset, unsigned int origin) |
| void | SplitGameClockTicks (unsigned char *parts) |
| void | MonoDebug_install (void) |
| void | MonoDebug_remove (void) |
| void | SendMonoDebugCommand3 (void) |
| void | SoundDebugPrintf (const char *fmt,...) |
| void | MonoDebug_print (const char *text) |
| void | ReadPerformanceCounter (LARGE_INTEGER *p) |
| void | ResetStringBuilder (TextContext *context) |
| void | visit_the_cinema (int view, int obj, short frames) |
| short | player_wingman (short obj) |
| void | set_speed (short obj, short speed) |
| void | auto_position (short obj, short *formationSlot) |
| void | auto_pilot_sequence (void) |
| void | ejection_sequence (short outcome, signed char restoreCockpit) |
| void | TryBeginStarSystemJump (void) |
| void | CompleteStarSystemJump (void) |
| short | RunCampaignContinuePromptLoop (unsigned char *promptShapes, unsigned char *fieldShape, short promptFrame) |
| short | PromptToContinueCampaign (short promptFrame) |
| void | MarkPilotDead (short pilot) |
| void | ReleaseSpaceflightResources (void) |
| void | LoadMissionData (short series, short mission) |
| void | UpdateMap (char *text, short objective) |
| void | HandleUnsupportedManeuver (short maneuver, short ship, short target) |
| void | BeginShipCloak (short ship) |
| void | ResetShipCloakState (short ship) |
| void | SetShipAiScratchWord (unsigned short v) |
| void | maneuver_complete (short ship) |
| void | Mline_up_drop (short ship, short target) |
| void | Mwabble (short ship) |
| void | advance (short ship) |
| void | ShipAiState35 (short ship, short target) |
| void | Mfull_ahead (short ship, short target) |
| void | Mchill (short ship, short target) |
| void | Mdrop_a_mine (short ship, short target) |
| void | Mthink (short ship, short target) |
| void | Mtight_loop (short ship) |
| void | Mhard_break (short ship) |
| void | Msit_n_spin (short ship, short target) |
| void | Mturn_n_spin (short ship, short target) |
| void | Mburnout (short ship, short target) |
| void | Mkickit (short ship) |
| void | Mturn_n_kick (short ship) |
| void | Mroll_over (short ship) |
| void | Mhard_turn (short ship) |
| void | Mfish_hook (short ship, short target) |
| void | Mtry2tail (short ship, short target) |
| void | Msplit_left (short ship) |
| void | Msplit_right (short ship) |
| void | Mgloat (short ship) |
| void | Mtail_fire (short ship, short target) |
| void | Mzip_past (short ship, short target) |
| void | ShipAiState47 (short ship, short target) |
| void | ShipAiState28 (short ship, short target) |
| void | ShipAiState46 (short ship) |
| void | Mtarget_missile (short ship, short target) |
| void | Mram_missile (short ship, short target) |
| void | Mbuzz_debris (short ship) |
| void | Mstrafe_enemy (short ship, short target) |
| void | Mbest_strafe (short ship, short target) |
| void | Msit_n_fire (short ship, short target) |
| void | Mstrafe_n_roll (short ship, short target) |
| void | Mkill_missile (short ship, short target) |
| void | Msuicide_run (short ship, short target) |
| void | Mget_distance (short ship, short target) |
| void | general_zig (short ship, unsigned int target, short pitch) |
| void | Mzig_zag (short ship, unsigned int target) |
| void | Mzig_zag_pitch (short ship, unsigned int target) |
| void | Mcorkscrew (short ship) |
| void | Mveer_away (short ship, short target) |
| void | ShipAiState44 (short ship) |
| void | Mtarget_laser (short ship, short target) |
| void | Mrout_me (short ship) |
| void | ShipAiState3 (short ship, short target) |
| void | ShipAiState45 (short ship, short target) |
| void | Mnone (void) |
| void | Mreset (short ship) |
| void | perform_maneuver (short obj) |
| short | GetShapeFrameExtent (short x, short y, unsigned char *shape, short frame, short extent) |
| void | UpdateTargetCameraObject (short obj) |
| short | RunCampaignGameLoop (short campaignSlot) |
| void | InitializeCampaignChalkboardScreen (short cockpitVariant) |
| void | RefreshCampaignChalkboardScreen (short cockpitVariant) |
| void | DrawCampaignChalkboardFrame (unsigned short frame) |
| short | RunCampaignChalkboardMenu (short campaignSlot) |
| void | ShowPlayerEjectionSequence (void) |
| void | ShowPlayerStrandingSequence (void) |
| short | GetMissionShipPilotSaveIndex (short missionShip) |
| short | GetInitialMissionShipPilotSaveIndex (short initialShip) |
| short | GetMissionShipVelocityState (short missionShip) |
| void | StoreMissionResultsInCampaignGlobals (CampaignGlobals *globals) |
| void | LoadStartingCampaignGlobals (short campaign) |
| short | RunSelectedCampaign (void) |
| void | InitializeNewPilotCampaign (short campaignSlot) |
| void | cruise_home (short obj) |
| void | fail (short obj) |
| void | coming_home (short obj) |
| void | run_away (short obj) |
| short | check_engage_target (short obj) |
| short | check_destroy_target (short obj) |
| void | maneuvering (short obj, short newTarget) |
| void | formation_burst (short obj) |
| void | disallow_engage (void) |
| void | allow_engage (void) |
| void | try2allow_engage (short obj) |
| void | imperial_formation (short obj) |
| void | formation_break (short obj) |
| void | imperial_wingman (short obj) |
| void | kilrathi_wingman (short obj) |
| void | wingman_mission (short obj) |
| short | dist_from_home (short obj) |
| short | scan_and_lock (short obj, short newTactic) |
| void | patrol_area (short obj) |
| void | kilrathi_patrol (short obj) |
| void | cruise_to_destination (short obj) |
| void | prepare_for_jump (short obj) |
| void | accelerate_and_jump (short obj) |
| void | reach_warp (short obj) |
| void | split_patrol_mission (short obj) |
| void | warp_arrival (short obj) |
| void | return_to_buddy (short obj, short buddy) |
| void | escort_buddy (short obj, short buddy) |
| void | escort_mission (short obj) |
| void | check_goal (short obj) |
| void | streak_toward (short obj, short goal, short range) |
| void | approach_and_engage (short obj, short goal) |
| void | strike_mission (short obj) |
| void | return_to_master (short obj, short master) |
| void | defend_mission (short obj) |
| void | rendezvous_mission (short obj) |
| void | ship_intelligence (short obj) |
| void | orbit_sphere (short obj) |
| void | tanker_intelligence (short obj) |
| void | destroyer_intelligence (short obj) |
| void | stationary_intelligence (short obj) |
| void | SpawnCapitalFlakProjectile (short weapon, short obj, int x, int y, int z) |
| void | capital_ship_strike_mission (short obj) |
| void | capital_ship_intelligence (short obj) |
| void | futurion_intelligence (short obj) |
| void | mine_intelligence (short obj) |
| void | heat_seeking_missile_intelligence (short obj) |
| void | FF_missile_intelligence (short obj) |
| void | chaff_intelligence (short obj) |
| void | set_sphere_point (const MissionShipRecord *record, FixedVector *position) |
| short | is_alive (signed char pilot) |
| void | ApplyAlternateShipType (short obj) |
| void | LoadAlternateShipType (short resourceType, short logicalFile) |
| short | FindObjectResourceSlot (short resourceType) |
| void | check_futurion (short i) |
| void | ResetWeaponDisplayPositions (void) |
| void | init_mission (short series, short mission) |
| void | prepare_mission (void) |
| void | release_all_capital_ship_shapes (void) |
| void | release_capital_ship_shapes (short resourceType) |
| void | load_ship (short resourceType, short objectType, short objectClass, short slot) |
| void | free_ship (short slot) |
| void | free_all_slots (void) |
| void | load_all_slots (void) |
| void | remove_nav_point_objects (void) |
| short | get_shape_slot (void) |
| short | shape_loaded (short resourceType) |
| short | shape_needed (const MissionNavPoint *navPoint, short resourceType) |
| void | new_sphere_shapes (MissionNavPoint *navPoint) |
| void | set_up_action_sphere (short navPoint) |
| void | ProcessMissionWaveCommands (MissionNavPoint *navPoint) |
| short | room_for_me (short obj, short minimum) |
| void | place_ship_near_player_until_valid (short obj, short minimum, short maximum) |
| short | set_up_next_wave (void) |
| void | sub_int_vector (const ShortVector *left, const ShortVector *right, ShortVector *difference) |
| void | set_formation_position (short obj, const MissionShipRecord *record) |
| void | Set_up_ship_info (short obj, short missionShip, signed char navPoint) |
| short | is_team_member (short missionShip) |
| void | find_next_ship_turn_slot (short obj) |
| short | init_ship (short missionShip, short navPoint) |
| void | init_intelligence_data (short obj) |
| short | SampleBothJoysticks (InputDeviceSample *samples, unsigned int fallback) |
| void | SampleJoystickDevice (InputDeviceSample *samples, short joystick, unsigned int fallback) |
| short | ReadJoystickButtons (void) |
| void | SampleActiveJoystickDevice (void) |
| void | DrawNavTextLine (unsigned char alignment, unsigned short colour, const char *format,...) |
| void | SetNavMapCoordinateScaling (short enabled) |
| void | ScaleNavMapMarkerSize (short *size) |
| void | ScaleNavMapCoordinates (short *x, short *y, short mapX, short mapY) |
| void | nav_getxy (short *x, short *y, int worldX, int worldZ) |
| void | CheckPoint (short x, short y) |
| void | IncludeNavMapWorldPoint (int worldX, int worldZ) |
| void | SetScale (void) |
| void | Build_objective_list (void) |
| short | NavMapPointInsideReservedArea (short area, short x, short y) |
| short | NavMapLabelFits (short x, short y, short width, short height) |
| short | NavMapLabelPositionAvailable (short x, short y, short width, short height) |
| void | ResetNavMapReservedAreas (void) |
| void | ReserveNavMapArea (short x, short y, short width, short height) |
| void | ResetNavMapLabels (void) |
| short | TryPlaceNavMapLabel (short x, short y, short width, short force) |
| void | PlaceNavMapLabel (short x, short y, unsigned short colour, const char *text) |
| void | AddUniqueObjectiveNavLabel (short x, short y, unsigned short colour, const char *text, short objective, short missionShip) |
| short | IsPointInNavMapLabel (short label, short x, short y) |
| void | DrawNavMapLabels (void) |
| void | DrawNavRectangleMarker (short x, short y, short size, short shadow, unsigned short colour, short reserve) |
| void | DrawNavSquareOutline (Viewport *viewport, short x, short y, short size, signed char colour) |
| void | DrawNavSquareMarker (short x, short y, short size, short shadow, short colour, short reserve) |
| void | DrawNavTriangleOutline (Viewport *viewport, short x, short y, short size, signed char colour) |
| void | DrawNavTriangleMarker (short x, short y, short size, short shadow, unsigned short colour, short reserve) |
| void | DrawNavCrossMarker (short x, short y, short size, short shadow, unsigned short colour, short reserve) |
| void | SetScreenClipRect (unsigned short a, unsigned short b, unsigned short c, unsigned short d) |
| void | DrawNavHazardMarker (FixedVector navPosition, FixedVector offset, short size, unsigned short markerColour, unsigned short textColour, const char *text) |
| void | DrawNavPlayerMarker (short colour, short reserve) |
| void | BuildMap (short showPlayer) |
| void | UpdateInflightNavText (short showColon) |
| void | FormatNavCoordinates (unsigned char *out) |
| void | DrawSelectedNavLegendEntry (const char *text, short navPoint) |
| void | DrawNavMapLegend (void) |
| char * | nav_note (short objective) |
| void | DrawNavLocationReadout (const char *title, short showFlightData) |
| void | BriefingMap_LoadShapes (void) |
| void | BriefingMap_DisplayMap (void) |
| short | SelectNavObjectiveAtPoint (short mouseX, short mouseY) |
| void | CentreMouseOnCurrentNavObjective (void) |
| void | ShowConfedNavScan (short refresh) |
| void | InflightComputer (void) |
| short | MergeAdjacentNearHeapBlocks (int descriptorAddress) |
| int | ReleaseNearHeapBlock (int descriptorAddress) |
| void | PurgeNearHeapBlocks (short flags) |
| unsigned short | InitializeNearHeap (void) |
| void * | AllocateNearHeapBlockFromEnd (int size, short flags) |
| void * | AllocateNearHeapBlockByFlags (int size, short flags) |
| short | GetViewportIntersection (ShortRect *intersection, const ShortRect *first, const ShortRect *second) |
| void | free_viewport (Viewport *viewport) |
| void | Title_Sequence (void) |
| void | DrawTitleSky (short planetY) |
| void | DrawTitleOrchestra (void) |
| void | AnimateTitleOrchestra (void) |
| void | PlayTitleConductorCue (void) |
| void | DrawScaledTitleLogo (short y, short scale) |
| void | PushTitleOrchestraAway (void) |
| short | RevealTitleLogo (void) |
| void | ShowVictoryScreen (short logoY) |
| void | CalibrateJoystickInteractive () |
| void | WaitForJoystickButtonRelease (void) |
| void | WaitForJoystickButtonPress (void) |
| void | SetFleetOverviewView (short initializeCockpit) |
| unsigned int | rotate_eye_to_goal (void) |
| short | GetVectorMagnitude (const FixedVector *vector) |
| unsigned int | set_eye_direction_and_position (void) |
| void | force_view (int view, short obj) |
| void | SaveTorpedoTargetLockForViewChange (int previousView) |
| unsigned int | new_view (int view, short obj) |
| unsigned int | start_dust (short obj, FixedVector origin, short forwardDistance, int rightOffset, int upOffset) |
| unsigned int | generate_stars (void) |
| unsigned int | update_star_field (void) |
| short | count_down (short obj) |
| void | house_keep_objects (void) |
| void | update_objects_in_space (void) |
| unsigned int | rotate_object (short obj) |
| void | accelerate_and_move_object (short obj) |
| void | animate_shape (short obj) |
| void | animate_object (short obj) |
| void | hit_asteroid (short asteroid, short destructionChance) |
| void | object_collision (short obj) |
| void | object_intelligence (short obj) |
| void | EmitTextString (void(*writer)(int), const char *text) |
| void | FormatTextTokens (void(*writer)(int), const char *format, va_list arguments) |
| void | DrawFormattedText (const char *format,...) |
| void | FormatTextBufferFromStart (const char *format,...) |
| void | AppendFormattedText (const char *format,...) |
| void | DrawCinematicFontCharacter (char character) |
| short | IsCinematicFontCharacterPrintable (short character) |
| void | DrawWrappedCinematicText (char *text) |
| short | MeasureCinematicFontCharacterWidth (short character) |
| short | MeasureCinematicFontLineHeight (void) |
| void | InitializeCinematicTextRenderer (void) |
| void | FatalErrorAndExit (const char *format,...) |
| short | IsCockpitExplosionActive (void) |
| void | EraseCockpitReadoutRegion (Viewport *viewport, short left, short top, short right, short bottom, short colour) |
| void | vdu_polygon (signed char bar, short percent) |
| unsigned int | InitializeCockpitReadout (signed char slot, TextContext *context) |
| void | DrawCockpitReadout (signed char slot, const char *text) |
| short | DrawHudMessageSlot (HudMessageSlot *slot) |
| void | ClearHudMessageSlot (HudMessageSlot *slot) |
| void | ClearGlobalMessage (void) |
| void | ClearHudMessageIfMatching (HudMessageSlot *slot, const char *text) |
| void | ClearHudGunReadouts (void) |
| void | DismissHudMessageIfShowing (void) |
| short | FindNearestMissileTargetingObject (short obj) |
| short | ObjectivesShareNavLabel (short objective, short other) |
| void | DrawNavMapBriefingBeacons (void) |
| void | ClearTransientObjectsForEjection (void) |
| void | FlagCurrentNavObjectivesReached (void) |
| short | IsObjectiveInDisplayedSystem (short objective) |
| void | FollowSelectedObjectiveSystem (void) |
| void | SetHudMessageSlot (HudMessageSlot *slot, TextContext *context, short x, short y, const char *text, unsigned short colour, signed char flashCount) |
| void | UpdateMessage (HudMessageSlot *slot) |
| void | set_global_message (const char *text, unsigned short colour, int flashCount) |
| void | CockpitMessage (const char *text, unsigned short colour, int flashCount) |
| void | remove_message (const char *text) |
| short | kilrathi_near (short obj, short range) |
| short | IsMissionObjectiveOutOfSystem (short objective) |
| short | auto_pilot_valid (short showReason) |
| void | reset_cockpit (void) |
| void | SetCockpitLightBlink (signed char light, short interval) |
| void | draw_cockpit_lights (void) |
| void | update_lights (void) |
| void | update_bars (void) |
| short | get_mode (short i) |
| void | set_mode (short i, int state) |
| unsigned short | SetVduModeIfChanged (short i, int state) |
| short | GetVduModeStackDepth (short i) |
| void | push_mode (short i, int state) |
| void | pop_mode (short i) |
| void | set_new_vdu (short vdu) |
| short | update_vid_disp (short vdu) |
| void | InvalidateVduMode (short i) |
| void | clear_message_time (void) |
| short | message_showing (void) |
| void | set_message_time (short duration) |
| void | check_message (void) |
| void | update_digital_readouts (void) |
| void | malf_sound (void) |
| short | malf (char component) |
| void | vdu_malf (short vdu, short sound) |
| void | ShowComponentHitHudMessage (const char *text, unsigned short colour, short flashCount) |
| signed char | damage_your_component (char component, char amount, char maximum) |
| void | RemovePlayerReleaseWeapon (signed char weapon) |
| void | fire_computer_graphic_missile (void) |
| void | show_weapon_disp (void) |
| void | update_status_text (void) |
| short | sighted (short objective) |
| short | visited (short objective) |
| short | achieved (short objective) |
| void | flag_objective (short objective, unsigned char flags) |
| void | DrawCalculatingLabel (void) |
| const char * | objective_name (short objective) |
| void | show_navigation_disp (void) |
| short | hidden_objective (short objective) |
| short | set_new_objective (short pathIndex) |
| short | cycle_next_objective (void) |
| void | set_next_destination (void) |
| short | LocateMobileObjective (short objective) |
| short | is_any_ship_returning_to_current_nav_point (void) |
| short | escorting_a_ship (void) |
| void | flag_reached (short objective, short reached) |
| void | check_sighting (short objective, short range, short object) |
| void | check_visit (short objective, short range) |
| void | update_objective_location (short objective) |
| short | objective_lost (short objective) |
| void | check_objectives (void) |
| void | rotational_pos_to_scanner_pos (signed char object, const SphericalVector *position, CockpitScannerGeometry geometry) |
| short | mobile_objective (short objective) |
| void | ResetScannerContacts (void) |
| void | clear_head_up_display (void) |
| void | set_objective_range (short showOnScanner) |
| void | AdjustScannerContactColourForRange (int range, short *colour) |
| short | get_color (short object, unsigned short *colour) |
| void | draw_3d_scanner (void) |
| void | start_lock (unsigned short v) |
| short | starting_lock (unsigned short v) |
| void | lock_off (void) |
| short | CheckTargetLockMalfunction (void) |
| short | decrement_lock_time (short screenX) |
| void | target_locking (signed char target) |
| void | SetRectBounds (Viewport *viewport, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom) |
| short | GetRectHeight (const Viewport *viewport) |
| void | print_message_text (char *text, unsigned short colour) |
| void | RestoreHudMessageBackground (void) |
| void | ShowHudTextLine (void) |
| void | SetHudTextColour (char *text, unsigned short colour) |
| void | ClearHudMessageDisplay (short closeCommMenu) |
| void | draw_target_box (unsigned short colour, signed char object, short solid, short drawLockMarker, short padding, ShortRect *savedBounds) |
| void | remove_nav_pointer (void) |
| void | draw_nav_pointer (void) |
| short | HasInRangeGunForTargetLead (short targetRange) |
| void | UpdateTargetLeadIndicator (void) |
| void | RestoreTargetLeadIndicator (void) |
| void | overlay_head_up_display (void) |
| void | RestoreCockpitExplosionIfVisible (void) |
| void | RestoreTransientCockpitGraphics (void) |
| void | SetHudMessageText (char *text, unsigned short colour, unsigned short duration) |
| void | malf_noise (short vdu, int effect, unsigned short colour, short sound, short refresh) |
| void | build_your_target_list (short *hasEnemy) |
| void | cycle_onscreen_targets (void) |
| void | check_target (void) |
| void | update_missile_warning (void) |
| void | determine_pilot_hand (void) |
| void | DrawPilotHandFrame (void) |
| void | CopyTrainSimPilotViewToVdus (void) |
| void | animate_pilot (void) |
| void | ResetPilotHandAnimation (void) |
| void | send_message (short obj, signed char message) |
| void | npc_communication (void) |
| void | clear_cockpit_damage (void) |
| void | explosion_draw (int useBackgroundViewport) |
| void | DrawPendingCockpitDamage (void) |
| void | RestoreCockpitExplosionBackground (void) |
| void | cockpit_explosion (void) |
| void | place_damage_on_cockpit (short damage) |
| void | vid_transmit (void) |
| void | vid_equiv (short obj, short message) |
| void | update_dead_disp (short a) |
| void | check_stranded (void) |
| void | update_VDUs (void) |
| void | update_cockpit (void) |
| short | IsCockpitWeaponShapeLoaded (void) |
| void | PlayCockpitSelectionSfx (short selectionSound) |
| void | vdu_pop_all (short vdu) |
| void | SelectCockpitVduMode (short vdu, int mode) |
| short | MeasureTextPixelWidthClamped (const char *text) |
| short | CollectActivePaletteIndices (Viewport *viewport, unsigned char *indices, short capacity) |
| short | get_ship_max_velocity (short obj) |
| void | recalc_max_velocity (short ship) |
| void | drain_fuel (short ship, short amount) |
| void | damage_ion_drive (short ship, short amount, short maximum) |
| int | GetShipAccelerationRate (short ship) |
| void | point_at (short obj, FixedVector point) |
| void | look_at (short obj) |
| void | position_relative (FixedVector *position, FixedVector direction, short distance) |
| void | position_relative_ijk (FixedVector *position, short obj, short right, short up, short forward) |
| short | FixedToShortSaturating (int value) |
| int | MinInt (int a, int b) |
| int | MaxInt (int a, int b) |
| int | AbsInt (int v) |
| unsigned int | SignFixed (int v) |
| short | WrapDegrees (short degrees) |
| short | equ_vector (const FixedVector *left, const FixedVector *right) |
| short | IsPairEqualityDifferentFromFlag (const unsigned int *values) |
| void | zero_vector (FixedVector *vector) |
| void | negate_vector (FixedVector *vector) |
| void | AddFixedVectors (const FixedVector *left, const FixedVector *right, FixedVector *sum) |
| void | SubtractFixedVectors (FixedVector *left, FixedVector *right, FixedVector *difference) |
| void | ComputeVectorDelta (FixedVector *from, FixedVector *to, FixedVector *delta) |
| void | ScaleFixedVector (FixedVector *vector, int scale, FixedVector *result) |
| void | divide_vector (FixedVector *vector, int divisor, FixedVector *result) |
| short | ChooseRandomSignedMagnitude (short minimum, short maximum, short allowNegative) |
| void | MakeRandomVectorFixed (short minimum, short maximum, FixedVector *vector) |
| void | FillFixedVectorWithRandomComponents (short limit, FixedVector *vector) |
| void | random_radial (const FixedVector *center, short radius, FixedVector *position) |
| void | rectangular_to_spherical (const FixedVector *rectangular, SphericalVector *spherical) |
| void | ConvertFixedVectorToShortVector (const FixedVector *source, ShortVector *destination) |
| int | dot_product (const FixedVector *left, const FixedVector *right) |
| short | vector_angle (FixedVector left, FixedVector right) |
| void | vector_cross_product (const FixedVector *left, const FixedVector *right, FixedVector *product) |
| short | NormalizeFixedVector (FixedVector *vector) |
| int | vector_length_in_dir (const FixedVector *vector, const FixedVector *direction) |
| void | vector_component_in_dir (const FixedVector *vector, const FixedVector *direction, FixedVector *component) |
| void | rotate_about_i (short angle, FixedVector *j, FixedVector *k) |
| void | rotate_about_j (short angle, FixedVector *i, FixedVector *k) |
| void | rotate_about_k (short angle, FixedVector *i, FixedVector *j) |
| void | init_ijk (short obj) |
| void | copy_frame (short source, short destination) |
| void | fix_objects_ijk (short obj) |
| void | transform_to_objects_frame (const FixedVector *source, FixedVector *destination, short obj) |
| void | alter_pitch (short angle, short obj) |
| void | alter_yaw (short angle, short obj) |
| void | alter_roll (short angle, short obj) |
| short | distance_between_points (const FixedVector *from, const FixedVector *to) |
| short | distance_from_point (short obj, const FixedVector *point) |
| short | distance_from_object (short obj, short other) |
| short | enemy_within_range (short obj, short range) |
| void | get_facing_range_from_point (short obj, const FixedVector *point) |
| void | get_facing_range_from_object (short obj, short other) |
| short | facing_to_object (short obj, FixedVector *point) |
| short | match_roll_orientation (short obj, short reference) |
| short | set_ship_rotation_goals (short obj, short turnRate, const FixedVector *direction, short pointingMode, short *yawGoal, short *pitchGoal) |
| void | point_ship (short obj, short turnRate, const FixedVector *direction) |
| void | point_ship_at_point (short obj, const FixedVector *point) |
| void | point_ship_at_object (short obj, short other) |
| void | point_capital_ship_at_object (short obj, short other) |
| void | point_ship_behind_object (short obj, short other) |
| void | point_ship_below_object (short obj, short other) |
| void | point_perpendicular_to_point (short obj, const FixedVector *point) |
| void | point_perpendicular (short obj, short other) |
| void | point_parallel (short obj, short other) |
| void | NormalizeAndScaleVector (FixedVector *vector, int scale) |
| void | SetVectorFixedPoint (unsigned int *p, short v) |
| short | IsPointWithinRange (FixedVector *from, FixedVector *to, short range) |
| short | check_for_collision (short obj) |
| void | position_child (short parent, short weapon, FixedVector *position) |
| void | child_object (short hardpoint, short child, short parent) |
| short | get_ship_slot (void) |
| short | find_vacant_3d_object (void) |
| void | remove_object (short obj) |
| void | apply_force_to_objects_center (FixedVector *force, short obj) |
| void | apply_force_to_object (FixedVector *point, FixedVector *force, short obj) |
| void | rotational_acceleration (FixedVector *point, FixedVector *force, short obj) |
| void | ClampVectorTo30 (short *p) |
| void | ClampTo30 (short *p) |
| void | transform_objects_to_your_view (void) |
| void | set_background_objects_rotation (short obj, FixedVector *direction) |
| void | get_right_shape (short obj, FixedVector *direction) |
| short | InitializeModalTextPanel (ModalTextPanel *panel, short fontIndex, ModalPanelBounds bounds, short clearColour, short backgroundColour, short borderColour) |
| void | DrawModalTextPanel (ModalTextPanel *panel, short x, short y, unsigned char alignment, const char *format,...) |
| void | RestoreModalTextPanel (ModalTextPanel *panel) |
| short | ShowModalTextPanel (short fontIndex, const char *format,...) |
| void | ReleaseModalTextPanel (void) |
| void | DrawUnreferencedPilotHandFrame (Viewport *viewport, unsigned char *shape, BarracksAnimationState *state) |
| short | RunCampaignSelectionFrame (void *scene, void *field) |
| short | BarracksScreen (void) |
| short | StepPaletteTransition (short *current, const short *target, short componentCount) |
| char * | DosStrcat (char *destination, const char *source) |
| DWORD WINAPI | DebugOverlayWorkerProc (void *parameter) |
| LRESULT CALLBACK | DebugKeyboardHookProc (int code, WPARAM key, LPARAM flags) |
| void | DebugOverlayPrintf (DebugOverlayConsole *console, const char *format,...) |
| short | MinShort (short a, short b) |
| short | MaxShort (short a, short b) |
| void | FreePacketAndClear (void *slot, unsigned short releaseFlags) |
| void | ReleasePacketSlot (void **slot) |
| void | ReportPacketLoadError (void *packet, char *fileName, short retry, short section, const char *sourceTag) |
| void | AppendPacketLoadDebugLog (char *fileName, short section, void *packet) |
| void * | LoadPacketIntoBuffer (char *fileName, short section, void *destination, int registerHandle) |
| void * | LoadPacketAllocated (char *fileName, short section) |
| void * | FetchDiskPacketRetrying (char *fileName, short section, short flags) |
| void | RewritePacketFilenameForInstalledData (char *fileName) |
| void | InitializeTextContextFromFont (TextContext *context, short fontIndex, unsigned char colour, signed char background) |
| void | ReleaseTextFont (short fontIndex) |
| void | DrawTextAt (TextContext *context, int x, int y, const char *text, unsigned char alignment) |
| void | OpenDiskDataFile (short logicalFile) |
| void | FlushPendingInputPresses (void) |
| short | WaitForInputKey (void) |
| unsigned short | WaitForAnyInputPress (void) |
| short | WaitForSceneAdvance (void *scenePacket) |
| void | LoadSceneHotspotBoundsForSelection (void *scenePacket, short selection) |
| short | FindSceneHotspotAtPosition (void *scenePacket, short offsetX, short offsetY, short x, short y) |
| short | PollSceneHotspotInput (void *scenePacket, short offsetX, short offsetY, short dismissOnBackground, short maximumSelection) |
| void | SwapSceneChunkSizeEndian (int *value) |
| unsigned int | ReadNextSceneForm (unsigned char **cursor, unsigned char **nextForm) |
| void * | AllocateScenePointerTable (int count, short elementSize, unsigned short flags, const char *errorMessage) |
| signed char | DecodeSceneResourceChunk (unsigned char **cursor, SceneResourceTable *resource) |
| void | DrawPilotSaveMenuChoices (short choice) |
| void | HighlightPersonnelFileSlot (short choice) |
| short | SelectPersonnelFileSlot (void) |
| void | RunPilotSaveLoadMenu (void) |
| short | initialize_object (short obj, short type, short owner, short matchLoadedType) |
| short | borrow_dust (void) |
| short | new_object (short type, short owner) |
| short | initialize_ship (short type, short owner, short matchLoadedType) |
| short | CountShipProjectiles (short ship) |
| short | CanShipWeaponDamageTarget (short ship, short target) |
| short | ShipHasCloakingDevice (short ship) |
| short | HasShipCockpitGunDisplay (short ship) |
| void | IncreaseAdaptiveDifficulty (void) |
| void | DecreaseAdaptiveDifficulty (void) |
| void | ResetTargetCameraView (void) |
| short | CountShipCockpitGunDisplays (short ship) |
| void | ToggleTargetCameraOverlay (void) |
| void | ClearTargetCameraView (void) |
| void | ToggleTargetCameraTracking (void) |
| void | UpdateTargetCameraTracking (void) |
| void | ClearSavedTorpedoTargetLock (void) |
| void | UpdateSavedTorpedoTargetLock (void) |
| void | SetTargetCameraEyePosition (short cameraMode) |
| void | DrawTargetCameraAttitudeIndicators (unsigned short colour) |
| void | RestoreTargetCameraAttitudeIndicators (void) |
| void | UpdateTargetCameraCockpitHook (void) |
| void | FinalizeTargetCameraViewHook (void) |
| short | ShipHasTorpedo (short ship) |
| short | any_selected (unsigned char *loadout, short objectClass) |
| void | remove_weapon (short obj, short weapon) |
| void | InitializeShipWeaponTypeIndices (short obj) |
| void | set_objects_data (short obj, short type, short owner, short matchObjectClass) |
| unsigned int | match_rotation_goal (short *rotation, short *goal, short totalError, short rate) |
| void | rotate_object_to_goal (short obj) |
| void | check_for_lost_control (short obj) |
| void | celerate (short ship, int delta) |
| unsigned int | approach_speed (short ship, int targetSpeed) |
| void | steady_object (short ship) |
| short | real_velocity (short obj) |
| unsigned int | fix_velocity (short obj) |
| void | SortViableTargetsByDistance (void) |
| void | send_appropriate_message (short attacker, short victim) |
| short | inflict_damage (short attacker, short victim, short damage, const FixedVector *impactDirection) |
| short | pilot_hit (short obj) |
| short | onboard_explosion (short obj) |
| void | call_enemy (short obj) |
| short | internal_damage (short attacker, short owner, short victim, short damage, short quadrant) |
| void | revise_shields (short obj) |
| short | IsOnlyShipGun (short ship, short weapon) |
| short | your_internal_damage (short attacker, short owner, short damage, short quadrant) |
| short | ReportComponentRepaired (short component, short minimumDamage) |
| void | repair_internal_damage (void) |
| void | Create_ship_hit_debris (short obj, short count) |
| void | check_next_wave (void) |
| void | ProcessEnemyWaveCompletion (void) |
| void | Create_explosion_debris (short obj) |
| void | affect_mission_score (short pilot, int event, short amount) |
| void | score_for_kill (short pilot, short victim) |
| void | analyze_kill (short attacker, short victim) |
| short | ShipExplosion (short obj) |
| short | Explosion (short obj) |
| void | explosion_shock_wave (short obj, short blastDamage) |
| short | explode (short attacker, short victim) |
| short | ResolveObjectDestruction (short attacker, short victim) |
| int | send_at_point (short obj, FixedVector *point, short speed) |
| short | find_child_object (short parent, short objectClass) |
| short | IsCapitalShipObject (short obj) |
| short | GetAdaptiveTurnRate (void) |
| short | find_child_ship (short parent, short objectClass, short target) |
| int | launch_object (short parent, short child, FixedVector direction, short speed) |
| void | fire (short obj, short target) |
| short | hemisphere (FixedVector *target, FixedVector *parent, FixedVector *hardpoint) |
| void | fire_flack (short owner, short explosion, short range, FixedVector *aim, short burstMode) |
| int | RandomFixedAimComponent (short radius, short speed, short maximum) |
| short | SpawnFlakBurst (short obj, short range, FixedVector *hardpoint, short burstMode) |
| short | HasShipActiveMissile (short obj) |
| short | fire_turrets (short obj) |
| short | fire_weapon (short obj, short weapon) |
| short | fire_missile (short ship) |
| void | fire_fixed_projectile_weapon (short obj) |
| void | fire_afterburner (short obj, short time) |
| short | find_weapon (short obj, short weaponType) |
| void | check_computer_damage (void) |
| short | RandomSign (short v) |
| void | fire_super_brake (short ship) |
| short | flip_angle (short ship, short angle) |
| void | place_exhaust_on_ships (void) |
| void | reposition_fixed_child_objects (void) |
| void | housekeep_power_plant_and_fuel (short ship) |
| void | replenish_shields (short ship) |
| void | replenish_weapon_energy_bank (short ship) |
| void | accelerate (short amount) |
| void | your_afterburner (void) |
| void | LoadGamePaletteFile (void) |
| void | EMShutDown (void) |
| void | EMStartUp (void) |
| void | LoadOriginFxDrivers (void) |
| short | QueryCurrentGraphicsMode (void) |
| short | LoadGraphicsDriver (short rewritePacketExtensions) |
| void * | LoadSpeechPacketIntoBuffer (char *fileName, short section, void *destination) |
| void | PlaySpeechPacketBuffer (void *packet, unsigned short packetSize, int interrupt) |
| void | LoadAndPlaySpeechPacket (char *fileName, short section) |
| void | SoundBlasterOut (unsigned short port, unsigned char value) |
| unsigned char | SoundBlasterIn (unsigned short port) |
| void | SoundBlasterWaitWrite (void) |
| void | SoundBlasterEndOfInterrupt (void) |
| void | StopDigiPlayback (void) |
| void | SoundBlasterDspInterrupt (void) |
| short | InitializeSoundBlaster (short port, short irq) |
| void | ShutdownSoundBlaster (void) |
| void | InitializeHighMemoryGraphicsBuffers (void) |
| void | LogMemoryStateToFile (FILE *file) |
| void | WriteMemoryStateReportHook (void) |
| void | WriteDetailedMemoryStateReport (void) |
| void | LogChangedCutsceneWorkBuffers (void) |
| void | LoadSpaceflightResources (void) |
| void | FxDriverInitHook (void) |
| void | StopMusicIfDriverActive (void) |
| void | InitializeMusicResources (void) |
| void | ConfigureDefaultSpacePalette (short mode) |
| void | ApplySpacePaletteModeHook (void) |
| short | InitializePostPaletteState (void) |
| short | InitializeInputManagerMemory (short eventQueueSize) |
| void | InitializeGameTextContexts (void) |
| void | initialize_direction_view_frame (short yaw, short pitch, signed char frame) |
| void | initialize_direction_view_frames (void) |
| void | ShutdownNearHeap (void) |
| void | SendKilrathiAceGreetingOnce (short obj) |
| short | signed_random (short range) |
| void | LoadTemporaryCampaignGlobals (void) |
| void | SaveAndFreeTemporaryCampaignGlobals (void) |
| void | InitializeCampaignConstellationState (CampaignGlobals *globals, short copyPosition) |
| void * | LoadWholeDataFile (const char *path) |
| short | alert_flag (short ship, unsigned int bits) |
| void | set_alert (short obj, unsigned int bits) |
| void | clear_alert (short obj) |
| void | start_collision_alert (short obj, short other) |
| void | try2end_collision_alert (short obj) |
| short | normal_speed (short obj) |
| short | real_crash_time (short obj, short other) |
| short | crash_time (short obj, short other) |
| short | detect_collisions (short obj) |
| short | unactive (short ship) |
| short | are_alive (short obj) |
| void | trim_goals (short obj, short amount) |
| short | report_kilrathi_rout (int mode) |
| short | find_ship_index (short missionShip) |
| short | try2rout (short obj) |
| signed char | no_goal (short ship) |
| signed char | CanSetNewShipTurnGoal (short ship) |
| short | being_tailed (short obj, short other) |
| short | detect_enemy_tail (short obj) |
| short | is_ship_tailing_player_target (short obj) |
| short | FindMissileTargetingObject (short obj) |
| void | build_squad_list (short leader) |
| unsigned int | find_squad_center (FixedVector *center) |
| void | init_formation_burst (short obj) |
| void | reset_mission_type (short obj, short missionType) |
| unsigned int | change_mission_type (short obj, short missionType) |
| unsigned int | reset_objective (short ship, short objective) |
| unsigned int | alter_objective (short ship, short objective) |
| unsigned int | reset_tactic (short ship, short tactic) |
| unsigned int | alter_tactic (short ship, short tactic) |
| void | reset_maneuver (short ship, short maneuver) |
| void | try2reset_maneuver (short obj, short maneuver) |
| void | set_special (short ship, short special) |
| unsigned int | approach_zero_speed (short ship) |
| unsigned int | approach_min_speed (short obj) |
| void | approach_half_speed (short obj) |
| unsigned int | approach_cruise_speed (short ship) |
| unsigned int | approach_full_speed (short ship) |
| unsigned int | approach_ship_speed (short obj, short other) |
| void | ComputePointAheadOfObject (short obj, unsigned short distance, FixedVector *point) |
| void | ComputePointBehindObject (short obj, unsigned short distance, FixedVector *point) |
| short | close_behind () |
| short | scan_for_enemy (short obj, unsigned short range) |
| short | any_enemy (short obj, short range) |
| short | ships_within_range (short obj, short other, short range) |
| short | attacker_in_range (short obj, unsigned short range) |
| short | in_danger (short obj) |
| short | target_within_range (short obj) |
| short | build_target_list (short obj, short range) |
| void | inherit_leader_mission (short obj) |
| void | inherit_leader (short obj) |
| short | dead_ship (short missionShip) |
| short | gone_ship (short missionShip) |
| short | skill_check (short obj, short margin) |
| short | find_ships_sphere (short missionShip) |
| void | RefreshObjectiveShipNavPoints (void) |
| short | locate_ship (short missionShip, FixedVector *point) |
| void | get_follow_point (short obj, FixedVector *point) |
| unsigned int | get_first_follow_point (short obj, FixedVector *point) |
| short | hostile_sphere (short obj, short navPoint) |
| short | abandoned (short obj, short other) |
| void | engage (short obj, short target, short objective) |
| short | target_valid (short obj, short target) |
| short | triumph (short obj) |
| short | find_ratio (short inputMinimum, short inputMaximum, short input, short outputMinimum, short outputMaximum) |
| short | evaluate_damage (short obj) |
| short | LoadShapeSet (PacketResourceDescriptor *resources, short flags, char *defaultFileName) |
| short | has_opposing_ship (short side) |
| void | launch_carrier_fighter (short carrier) |
| void | FreeShapeSet (PacketResourceDescriptor *resources, unsigned short releaseFlags) |
| int | LoadPacketResourceList (PacketResourceDescriptor *resources, short flags, int availableBytes, char *defaultFileName) |
| void | ResetCockpitPaletteEntries (void) |
| void | initialize_cockpit (signed char mode) |
| void | InitializeConstellationObject (const ConstellationObjectDefinition *definition, short object) |
| void | FreeConstellationObject (short object) |
| void | init_constellation (short scene) |
| void | free_constellation (void) |
| void | init_vdus (void) |
| void | InitializeCockpitResources (short shipType) |
| void | free_cockpit (void) |
| void | init_3Space_objects (short scene) |
| void | load_common_3Space_objects (void) |
| void | remove_all_3d_objects (void) |
| void | free_3Space (void) |
| void | free_3Space_objects (void) |
| void | init_inflight_music (void) |
| void | free_inflight_music (void) |
| void | PreloadMusicTrack (int track) |
| void | ReleaseMusicTrack (int track) |
| unsigned int | GetAvailableMainMemory (void) |
| unsigned int | GetLargestMainMemoryBlock (void) |
| int | MapCutsceneSoundEffectNumber (int soundIndex) |
| void | CreateDebugOverlayConsole (HINSTANCE module, HWND window, short columns, short rows) |
| void | DestroyGlobalDebugOverlayConsole (void) |
| void | SystemDebugPrintf (const char *format,...) |
| void | OutputDebugPrintf (const char *format,...) |
| char | PumpMessagesDuringWait (void) |
| unsigned char | TakeDebugStepFlag (void) |
| void | SetDebugTextPosition (short row, short column) |
| void | SetDebugCursorPosition (short column, short row) |
| void | ResetDebugOverlay (void) |
| void | ClearDebugOverlay (void) |
| void | ClearDebugPauseFlags (void) |
| void | EraseTextContextBackground (TextContext *context) |
| void | EraseLastTextInputCharacter (void) |
| void | DrawTextInputCursor (char character) |
| void | EraseCharacterAfterTextCursor (char character) |
| void | ClearTextInputCharacter (char character) |
| short | ReadTextInput (char *destination, short maximumLength, volatile short mode, volatile short allowPathSeparators) |
| short | LogMemoryUsage (void) |
| void | ReportFatalErrorCode (const char *errorCode) |
| void | AllocateApplicationScratchBuffer (void) |
| void | SplitGameClockTicksForNav (unsigned char *parts) |
| void | ReleaseApplicationScratchBuffer (void) |
| unsigned char * | GetInputCursorShape (void) |
| short | WaitForQueuedInputPress (void) |
| void | AdjustSpaceFramePeriod (short adjustment) |
| void | RunGameApplication (short argc, char **argv) |
| short | LoadSelectedPilotCampaign (void) |
| short | RunPilotDatabaseMenu (void) |
| void | PollPersonnelMenuInput (void) |
| void | DrawPersonnelMenuBackdrop (void *scenePacket) |
| void | RestorePersonnelMenuBackground (Viewport *viewport) |
| void | DrawPersonnelSourceChoices (short choice) |
| void | DrawPersonnelMenuChoices (short choice) |
| void | DrawPersonnelFileSlot (short slot) |
| void | DrawTransferredPilotRow (short row) |
| void | HighlightTransferredPilot (short choice) |
| short | SelectTransferredPilot (short count) |
| short | SelectLegacyGameSource (void) |
| short | LocateLegacySaveGame (short source) |
| void | ShowNoTransferablePilots (void) |
| char * | GetLegacyGameDataPath (void) |
| short | ReadPersonnelTextField (unsigned int x, unsigned int y, int font, const char *prompt, char *destination, int maximumLength, int mode, int required) |
| void | DisableMouseCursorDrawing (void) |
| void | EnableMouseCursorDrawing (void) |
| void | PersonnelDriveHook (short drive) |
| void | SetPersonnelMousePosition (short x, short y) |
| short | OffsetSceneHotspotBounds (ShortRect *bounds, const SceneHotspot *hotspot, short offsetX, short offsetY) |
| void | ShowMemoryStatusDebug (void) |
| void | exit_squadron (const char *msg,...) |
| void | main (short argc, char **argv) |
| void | free_view_buffer (void) |
| void | initialize_view_buffer (void) |
| void | dump_buffer_to_screen (void) |
| unsigned int | clear_view_buffer (void) |
| void | InitializeConversationViewport (void) |
| void | ResetScreenClipToFullHeight (void) |
| void | InitializeConversationText (void) |
| void | RefreshMemoryStatusOverlay (void) |
| void | Update_3Space (void) |
| void | UpdateSpacePaletteFade (void) |
| void | TriggerPlayerHitPaletteFlash (void) |
| void | FadeFlightPaletteEntry (short *entry) |
| void | house_keep (void) |
| void | get_player_input (void) |
| void | process_player_input (void) |
| unsigned int | fire_players_lasers (void) |
| void | players_flight_dynamics (void) |
| short | player_input (void) |
| void | SelectNextExternalViewObject (void) |
| short | HandleFleetOverviewInput (void) |
| void | UpdateFleetOverviewCameraRotation (void) |
| void | FireTargetCameraGuns (void) |
| void | UpdateShipTurretGuns (int ship) |
| short | MeasureMessageWidth (const char *text) |
| void | AcknowledgeModalMessage (void) |
| short | RunTitleMenuInputLoop (unsigned char *buttons, unsigned char *logo, unsigned char *background, short showSecondButton) |
| void | ShowModalMessage (const char *format,...) |
| void | ReportOutOfMemoryAndExit (const char *resource) |
| void | ShowOnScreenMessage (short duration, const char *format,...) |
| void | ShowGamePausedBanner (short showBanner) |
| void | ShowVersionBanner (void) |
| void | SetMessageDisplaySpeed (void) |
| void | ReportFramesSkipped (short adjustment) |
| short | HandleSpaceFlightControls (void) |
| unsigned int | DrawSpaceSceneFrame (void) |
| short | Draw_3Space_Frame (void) |
| void | RenderSpaceViewFrame (void) |
| short | GetShipDistanceToNavPoint (short ship, MissionNavPoint *navPoint) |
| short | FindNearestNavPoint (short ship) |
| unsigned int | ReleaseStaleNavTarget (void) |
| int | RunSpaceFlight (short entryNavPoint) |
| void | InitializeSpaceFlightInput (void) |
| void | ReleaseSceneMusicPacket (void) |
| void | ProcessCannedSceneInput (void) |
| void | FinishCannedScenePlayback (void) |
| void | BeginInflightReplayHook (void) |
| void | ResetCannedScenePlaybackBuffer (void) |
| unsigned short | RestoreCannedSceneObjectState (CannedSceneObjectStateRecord *record) |
| unsigned short | ApplyCannedSceneObjectEventRecord (CannedSceneObjectEventRecord *record) |
| unsigned short | ApplyCannedSceneSoundRecord (CannedSceneBriefingCharacterRecord *record) |
| unsigned short | ApplyCannedSceneMusicRecord (CannedSceneMusicCommandRecord *record) |
| void | ApplyCannedSceneFrameEvents (void) |
| void | LoadCannedScenePlaybackBuffer (void) |
| void | ResetCannedSceneRecording (void) |
| void | InitializeCannedSceneFrameIndex (void) |
| void | HandleCannedSceneBufferBoundary (void) |
| void | CheckCannedSceneBufferCapacity (void) |
| int | GetCannedSceneObjectMode (short obj) |
| void | RecordCannedSceneObjectState (short obj) |
| void | RecordCannedSceneObjectEvent (short obj, int event) |
| void | RecordMusicCommandHook (int track, int command, short enabled) |
| void | WriteTapeInitialState (void) |
| void | ReadTapeInitialState (void) |
| void | FlushCannedSceneRecordingBuffer (void) |
| short | calculate_damage_level (void) |
| void | CopyHugeMemoryOverlapSafe (void *destination, void *source, int count) |
| void | FadeViewportPaletteToColour (Viewport *viewport, unsigned short colour, short enabled) |
| short | find_objective (short type, short index) |
| void | arrive_from_warp (short obj) |
| void | unwarp (short obj) |
| void | warp (short obj) |
| void | clean_up_cockpit (void) |
| short | find_next_gun (short obj, short currentGun) |
| int | select_guns (short selectedGun) |
| void | select_new_gun (void) |
| void | select_new_release_weapon (short preferredType) |
| void CALLBACK | FrameTimerCallback (UINT timerId, UINT message, DWORD user, DWORD first, DWORD second) |
| void | SetMultimediaTimerCallback (int period) |
| void * | PacketLoad (const char *filename, short section, void *destination, short flags, void *decompressionWorkspace, int registerHandle) |
| long | GetNamedPacketSize (const char *filename, short section) |
| void * | LoadNamedPacket (const char *filename, short section, void *destination, unsigned short flags, void *decompressionWorkspace, int registerHandle) |
| void | InitializeAudioSystem (HWND window) |
| void | ServiceAudioStream (void) |
| WaveTableEntry * | AllocateWaveTableEntry (void) |
| WaveTableEntry * | FindWaveTableEntryByName (const char *name) |
| void | RemoveWaveTableEntry (WaveTableEntry *entry) |
| void | FreeWaveTable (void) |
| ActiveSoundEntry * | AllocateActiveSoundEntry (void) |
| void | RemoveActiveSoundEntry (ActiveSoundEntry *entry) |
| ActiveSoundEntry * | FindActiveSoundEntryBySample (IxSample *sample) |
| IxSample *__fastcall | ix_sound_get_sample (IxSound *sound) |
| void | ReleaseFinishedSoundEntries (void) |
| void | StopSoundsUsingWave (const char *name) |
| void | playWAVE (const char *filename, int looping, int volume) |
| void | PlayRawSpeechBuffer (void *buffer, size_t size, int interrupt) |
| void | stop_all_sounds (void) |
| void | PlaySnowStaticSound (void) |
| void | ServiceSoundSystem (void) |
| void | SetSoundEffectsVolume (int volume) |
| LONG | RegistryQueryValue (HKEY key, LPCSTR name, DWORD type, LPBYTE data, DWORD size) |
| void | RegistryStoreValue (HKEY key, LPCSTR name, DWORD type, const BYTE *data, DWORD size) |
| void | LoadVolumeSettingsFromRegistry (void) |
| void | SaveVolumeSettingsToRegistry (void) |
| void | RewriteDiskFileGraphicsExtensions (char *fileName) |
| void | RewriteCutsceneMusicExtensionForDriver (char *filename) |
| void | RewriteCutsceneMusicExtensionForRetry (char *filename) |
| short | LoadWingCmdrCfgFile (short argc, char **argv) |
| void | show_damage_disp (void) |
| void | UpdateDamageDisplay (void) |
| void | InitializeFireworks (void) |
| short | TheEndFireWorks (Viewport *viewport, short count) |
| void | InitializeConstellationField (Viewport *viewport, short direction, short density) |
| signed char | IsConstellationParticleOutsideViewport (ConstellationParticle particle) |
| void | DrawConstellationField (void) |
| short | OpenPacketSection (const char *filename, short section, PacketSectionHandle *handle) |
| void | CloseDataFileByHandle (unsigned short *handle) |
| void | show_target_disp (void) |
| void | DrawTargetRangeReadout (void) |
| void | LogDisplayMode (const char *mode) |
| short | CalcRectangleArea (const Viewport *viewport) |
| short | AllocateViewport (Viewport *viewport, short clearColour, short flags) |
| short | IsSpriteFrameOverlappingRect (const ShortRect *rectangle, short x, short y, unsigned char *shape, short frame) |
| void | FadeMusic (short duration) |
| void | SetMusicOn (short enabled) |
| void | StopMusicStream (void) |
| void | StopMusic (short enabled) |
| short | StartMusic (void *music) |
| short | StartInteractiveMusic (int track) |
| void | SetMusBreakpt (int first, int second) |
| int | StartSoundEffectHook (const unsigned char *definition, int effectHandle, int volume, int pan, int sample, int looping) |
| void | FlushSoundEffect (void) |
| void | FlushSoundEffects (void) |
| void | SceneLeaveHook () |
| unsigned short | ProcessMusicScriptCommand (int track, int command, short enabled) |
| void | spacetrack (int track, int mode, int enabled) |
| void | StopMusicUnlessSuppressed (void) |
| unsigned int | IsMusicTrackComplete (void) |
| void | wait_for_end_of_music (void) |
| void | new_space_music_changes (short attacker, short victim) |
| int | changetrack (void) |
| void | gametrack (void) |
| void | servicetrack (void) |
| void | ResetSoundState (void) |
| void | ResetSoundStateForScene (void) |
| void | ResetSoundStateForFlight (void) |
| void | DisableMusicForSceneHook (void) |
| void | EnableMusicForScene (void) |
| int | LogUnknownSoundEffect (const unsigned char *definition, short sourceObject, short pan, short volume, short looping, short priority) |
| void | FlushSoundEffectsAndLog (void *effect, short flags) |
| void | sound_effect (signed char soundNumber, short sourceObject, short looping) |
| void | PlaySfxWaveFileByNumber (int soundNumber, int sourceObject, int looping) |
| void | cleanup_objectives (void) |
| short | IsShipRouting (short ship) |
| void | SendWingmanCommandAcknowledgement (short ship, short accepted) |
| short | disobey_formation (short ship) |
| short | IsEngagementTargetDisallowed (short ship, short target) |
| short | CanPlayerLand (void) |
| short | ShouldWingmanAcceptRoutCommand (short ship, short pilot) |
| void | request (short requester, short ship, short command) |
| unsigned short | InitializeDIBScreenViewport (Viewport *viewport, unsigned short colour) |
| void | InitFullScreenViewport (Viewport *viewport, short arg) |
| unsigned int | GetPacketSize (const char *filename, short section) |
| void | FreeNearHeapBlock (void *pointer) |
| int | GetNearHeapBlockSize (void *pointer) |
| unsigned short | IsSoundHardwarePresent (short device) |
| void | MessagePumpHook (int mode) |
| void * | PushMemoryStackFrame (void *memory, int offset) |
| int | IsPushedPacketHandle (void *handle) |
| void * | MapPacketHandleToBlock (void *handle) |
| void * | AllocateTaggedMemory (unsigned int size, short flags) |
| void | ReleasePacketHandle (void *handle) |
| unsigned int | GetAvailableFarMemoryByType (short memoryType) |
| unsigned int | GetLargestFreeMemoryBlockByType (short memoryType) |
| void | RunCampaignScript (short campaignSlot) |
| signed char | AreCutsceneResourceNamesEqual (const char *left, const char *right) |
| void | SkipCutsceneChunk (unsigned char **cursor) |
| short | FindCutsceneResourceSymbolIndex (CutsceneObjectResourceList *list, short scriptHalf, const char *symbol) |
| short | CreateCutsceneResourceInstance (int formType, CutsceneObjectResourceList *list, short index) |
| signed char | LinkCutsceneObjectResources (CutsceneObjectResourceList *list, short scriptHalf, int formType) |
| CutsceneResourceTable * | PushCutsceneFileResource (CutsceneResourceTable **head) |
| void | DecodeCutsceneFileResource (CutsceneResourceTable *resource, unsigned char **cursor) |
| unsigned char | ParseCutsceneContainer (void *scenePacket) |
| signed char | DecodeCutsceneObjectResource (CutsceneObjectResourceList *resource, unsigned char **cursor, unsigned char *end, unsigned int formType) |
| unsigned char | ReleaseCutsceneObjectResourceData (CutsceneObjectResourceList *resource) |
| CutsceneObjectResourceList * | PushCutsceneObjectResource (CutsceneObjectResourceList **head) |
| void | ReleaseCutsceneObjectResource (short owner, CutsceneObjectResourceList **head, int formType) |
| void | ReleaseCutsceneFileResourceExceptPacket (short owner, CutsceneResourceTable **head, void *retainedPacket) |
| void | ReleaseCutsceneFileResource (short owner, CutsceneResourceTable **head) |
| void | ReleaseCutsceneTextResource (short owner, CutsceneTextResource **head) |
| void | ReleaseCutsceneResourceLevel (short owner) |
| signed char | DecodeSceneStructChunk (unsigned char **cursor, SceneResourceTable **resource) |
| signed char | DecodeSceneOffsetChunk (unsigned char **cursor, SceneResourceTable **resource) |
| signed char | DecodeSceneSymbolChunk (unsigned char **cursor, SceneResourceTable **resource) |
| signed char | DecodeSceneFileChunk (unsigned char **cursor, SceneResourceTable **resource) |
| short | UpdateInputDeviceTransitions (short raw) |
| void | JoystickInputHook (void) |
| void | PollJoystickButtonEvents (void) |
| void | PollMenuInputDevices (void) |
| void | ResetCommMenuChoices (short reuse) |
| short | IsCommMenuIdle (void) |
| void | AppendCommMenuChoice (const char *text, short command) |
| void | SendCommMenuChoice (short i) |
| void | OpenCommMenuForTarget (const char *heading, const char *message) |
| short | IsCommChoiceMenuOpen (void) |
| void | OpenCommRecipientMenu (void) |
| void | CloseCommChoiceMenu (void) |
| short | wingman_dead (void) |
| short | have_target (void) |
| short | CanOpenCommMenu (void) |
| void | SelectCommRecipient (short recipient) |
| void | BuildCommunicationRecipientMenu (void) |
| void | BuildCommunicationCommandMenu (void) |
| void | RefreshCommunicationMenu (void) |
| void | HandleCommunicationMenuRequest (void) |
| void | show_communications_disp (void) |
| void | Chosen_communicate_option (short choice) |
| void | IssueQuickCommCommand (short recipient, short command) |
| void | FreeCommDisplayResources (void) |
| void | EndCommSessionWithWingman (void) |
| void | EndCommMenu (void) |
| void | ShowCentredPrompt (char *text, unsigned short arg) |
| void | LoadCommPortraitResources (short portrait) |
| char * | ExpandCommMessageTokens (const char *text) |
| void | real_vid_transmit (short obj, short message) |
| short | ReserveContiguousPaletteEntries (short entryCount) |
| void | ReleaseContiguousPaletteEntries (short firstEntry) |
| void | PrintPaletteAllocationMap (void) |
| short | LoadJoystickCalibrationFile (short horizontalRange, short verticalRange, short horizontalDeadZone, short verticalDeadZone) |
| short | ReadCalibratedJoystick (void) |
| void | ThrottleFrameAndDrawFps (HDC dc) |
| void | ReportSpaceFlightMaxFps (float adjustment) |
| void | SetSpaceFlightFrameTiming (void) |
| void | SetDefaultFrameTiming (void) |
| void | SetCinematicFrameTiming (float frameRate) |
| void | DIBerror (const char *tag, int hr) |
| void | DIBpositionWindow (void) |
| void | DIBreInstall (void) |
| void | DIBinstall (HWND window) |
| int | DIBcascade (int mode, int *reportedResult) |
| void | DIBunInstall (void) |
| void | DIBmakeDIB (void) |
| void | DIBdestroyDIB (void) |
| void | MarkDibDirty (void) |
| void | EnableDibSlam (void) |
| void | DisableDibSlam (void) |
| void | DIBslamReal (void) |
| void | DIBupdate (int left, int top, int right, int bottom) |
| unsigned char * | GetDIBPixelBuffer (void) |
| void | DIBpixelBufferHook (void) |
| HWND | GetDIBWindowHandle (void) |
| unsigned int | GetDIBWidth (void) |
| unsigned int | GetDIBHeight (void) |
| void | CachePaletteEntryFromWords (short index, unsigned short *rgb) |
| void | DIBramPalette (void) |
| void | DIBsetPalette (short index, short *rgb) |
| void | GetPaletteEntryAsWords (short i, unsigned short *rgb) |
| void | DIBwholePaletteFromTriplets (unsigned char *palette) |
| void | DIBwholePaletteFromWords (unsigned short *palette) |
| void | DIBwaitForVerticalBlank (void) |
| void | steer_away_from_object (short obj, short other, short amount) |
| void | steer_away_from_predicted_object (short obj, short other, short predictionTicks, short amount) |
| void | prevent_collision (short obj) |
| short | handle_collisions (short obj) |
| short | CountEnemyFighters (void) |
| short | regulate_turn (short obj) |
| unsigned int | select_target (short obj) |
| unsigned int | veer_random (short obj, short amount) |
| unsigned int | offset_location (short obj, const ShortVector *offset, FixedVector *location) |
| unsigned int | compute_formation_destination (short leader, const ShortVector *offset, FixedVector *destination) |
| void | control_speed (short obj, unsigned short range, int desiredSpeed) |
| void | chase_location (short obj, const FixedVector *destination, short reference) |
| void | goto_location (short obj, const FixedVector *destination) |
| void | goto_formation (short obj, const FixedVector *destination, short leader) |
| unsigned int | maintain_formation (int obj) |
| unsigned int | reset_stress (short obj) |
| short | stress_morale (short obj) |
| short | any_defense (short obj) |
| short | pick_regular_maneuver (short obj, short event) |
| short | pick_from_list (const ManeuverChoice *choice, short obj, short event) |
| short | pick_kilrathi_maneuver (short obj, short event) |
| short | CountAlliesOnSameTarget (short obj) |
| void | process_maneuver_node (short obj, short event) |
| void | handle_stress (short obj, short event) |
| void | intelligence_events (int obj) |
| void | chase_speed (short obj, short range) |
| short | RandomBelow (short n) |
| void | SeedRandomFromClock (void) |
| unsigned short | GetRandomWord (void) |
| unsigned short | RandomInRange (unsigned short lo, unsigned short hi) |
| short | RandomBelowOrEqual (short n) |
| long | MultiplyFixed (int left, int right) |
| long | DivideFixed (int numerator, int denominator) |
| long | SinFixed (short degrees) |
| long | CosFixed (short degrees) |
| short | ArcSin (int value) |
| short | ArcCos (int value) |
| long | Magnitude (int value) |
| long | PlanarMagnitude (int x, int y) |
| long | Vector_magnitude (const FixedVector *vector) |
| void | SetTextCursor (unsigned short a, unsigned short b) |
| void | SetTextContext (TextContext *context) |
| void | WaitForVerticalBlankThunk (void) |
| void * | IdentityHandle (void *v) |
| void | SetWholePaletteFromTriplets (unsigned char *palette) |
| short | ReadWord (unsigned short *p) |
| short | GetFontCharWidth (char i) |
| short | GetShapeFrameBounds (short *bounds, short x, short y, unsigned char *shape, short frame) |
| short | IsPointInRect (short x, short y, const short *rect) |
| void | SplitPackedPoint (ShortPoint point, short *p) |
| void | DrawTextString (const char *text) |
| void | DrawTextCharacter (char character) |
| void | AppendTextCharacter (char character) |
| int | MeasureShapeFrameStorage (unsigned char *shape, short frame) |
| unsigned int | DosFarPtrToNear (void *v) |
| void * | DosNearPtrToFar (unsigned int v) |
| char * | DosStrrchr (char *s, short c) |
| char * | DosStrchr (const char *s, short c) |
| char * | DosStrcpy (char *dst, const char *src) |
| char * | CopyStringAndReturnEnd (char *destination, const char *source) |
| short | DosStrlen (const char *s) |
| short | ParseHexNumber (char *text) |
| void | DosMemmove (void *dst, const void *src, unsigned short n) |
| void | DosMemset (void *destination, unsigned int count, short value) |
| void | ShutdownEventManager (void) |
| void | TranslatePolledInputEvent (unsigned short type, unsigned int value) |
| void | QueueInputEventAtCursor (unsigned int type, short primaryButton, short secondaryButton) |
| InputEvent * | AllocateInputEvent (void) |
| void | ReleaseInputEvent (InputEvent *event) |
| void | QueueInputEvent (int type, int x, int y, int value, int primaryButton, int secondaryButton, unsigned int ignored, unsigned int field14, unsigned int field18) |
| void | ReleaseInputEventQueue (void) |
| void | RetainInputEventsOfType (int type) |
| void | RemoveInputEvent (InputEvent *event) |
| int | GetNextInputEvent (InputEventState *event) |
| int | PollInputEvent (InputEventState *event, short) |
| short | ServiceInputDevices (short deviceMask) |
| void | SetInputViewport (Viewport *viewport) |
| void | ClearInputPump (void) |
| void | SetMenuInputPump (void) |
| void | FinalizeInputManagerHook (void) |
| int | ConfigureInputPump (int slot, void(*pump)(void)) |
| short | LoadInputCursorShape (const char *filename, short section, short flags) |
| void | InitializeInputDriverHook (void) |
| void | FinalizeInputDriverHook (void) |
| void | FlushPendingInputEvents (void) |
| void | SetPaletteEntryFromTriplet (const unsigned char *triplet, short index) |
| void | SetMusicTickRateHook (short period) |
| short | PeekInputEvent (InputEventState *event, short type) |
| short | IsInputEventQueued (int type) |
| InputEventState * | FindQueuedInputEvent (int type) |
| void | FlushInputEvents (void) |
| short | InitializeMouseCursorDepth () |
| void | CheckCursor (void) |
| void | CaptureMouseCursorBackground (void) |
| void | DrawMouseCursor (void) |
| void | RestoreMouseCursorBackground (void) |
| void | RefreshMouseCursorDisplay (void) |
| void | ResumeMouseCursorHook (void) |
| void | SetMouseCursorShape (unsigned char *shape, short frame) |
| void | SetMouseHomePosition (short x, short y) |
| void | ApplyPackedMousePosition (ShortPoint point) |
| void | SetFrameTimerPeriod (short period) |
| void | SetFrameTimerAndWait (short period) |
| void | SetFrameTimerPeriodDirect (short p) |
| void | WaitForFrameTick (void) |
| short | IsFrameTickElapsed (void) |
| void * | AllocateZeroedRecords (int count, short elementSize, short flags) |
| unsigned short | EnableHighMemoryResources (void) |
| int | GetSoundHardwareFlag (void) |
| void * | AllocateDefaultMemory (unsigned int size) |
| void | TimerResetHook (void) |
| void | ClearMemoryHeaps (void) |
| DwordPtr | IdentityDword (DwordPtr value) |
| short | EmsSaveMapping (void) |
| short | EmsRestoreMapping (void) |
| unsigned int | IdentityWord (unsigned int v) |
| void | TimerStopHook (void) |
| unsigned int | GetAvailableFarMemory (void) |
| unsigned int | GetLargestFreeMemoryBlock (void) |
| void | ClearInputKeyStatePreservingModifiers (void) |
| void | ClearInputKeyState (void) |
| void | SetInputKeyState (int scanCode, unsigned char pressed) |
| void | BuildObjectDepthOrder (void) |
| void | draw_sorted_objects_to_buffer (void) |
| void | intro_drawbackgroundships (void) |
| void | set_up_screen_viewport (signed char mode) |
| void | MouseIdleHook (void) |
| short | GetNavRangeSentinel (void) |
| short | GetOriginalFreeMemory (void) |
| void | StartupHook (unsigned int(*callback)(unsigned int, short)) |
| unsigned int | JoystickEdgeHook (int button) |
| void | FreeIfNotNull (void *p) |
| unsigned int | GetStartupErrorCode (int vector) |
| unsigned short | SelectDiskDriveHook (short drive) |
| short | GetCurrentDiskDriveHook (void) |
| unsigned short | GetShutdownErrorCode (unsigned char *driveState) |
| void | VideoReleaseHook (void) |
| void | ExitCleanupHook (void) |
| short | IsVectorWithinRange (FixedVector *vector, short range) |
| unsigned int | shrink_vector (FixedVector *vector) |
| unsigned int | shrink (int *component) |
| void | FillGraphicSuffix (char *path, short number, short digits) |
| void | ConvertChar_Int (char *text, short number, short digits) |
| signed char | HasCutsceneMusicNode (CutsceneMusicNode *node) |
| CutsceneSoundEffect * | FindCutsceneSoundEffect (short resourceIndex) |
| void | AddCutsceneSoundEffect (void *sound, short resourceIndex) |
| void | AddCutsceneMusicNode (CutsceneMusicNode **head, short resourceIndex) |
| void | RouteCutsceneViewportToDisplay (void) |
| void | ClearActiveCutscenePixelAlias (void) |
| signed char | IsCutsceneSpeechLoaded (void) |
| void | LoadCutsceneCockpitOverlay (short scriptValue) |
| void | DrawCutsceneCockpitOverlay (short unused, short verticalOffset) |
| void | FatalCutsceneError (const char *format,...) |
| CutsceneResourceTable * | FindActiveCutsceneFileResources (CutsceneResourceTable *resources) |
| CutsceneObjectResourceList * | FindActiveCutsceneObjectResources (CutsceneObjectResourceList *resources) |
| short | RemoveCutsceneMemberIndex (short count, unsigned char *indices, signed char index) |
| void | InitializeCutsceneRuntimeResources (void) |
| void | InitializeCutsceneViewports (void) |
| void | ReleaseCutsceneSpeechPackets (void) |
| void * | FindLoadedCutsceneMusic (short resourceIndex) |
| void | RunLoadedCutscene (void) |
| void | ExecuteCutsceneScene (CutsceneScene *scene) |
| void | CopyCutsceneSpriteDisplay (unsigned char destination, unsigned char source) |
| void | LinkCutsceneSpriteScript (unsigned char destination, unsigned char source) |
| void | DrawCutsceneSprite (SceneFlicObject *sprite) |
| void | DrawCutscenePlane (CutscenePlane *plane) |
| void | ClearCutsceneViewport (Viewport *viewport, unsigned char colour) |
| void | RestoreCutsceneTextBacking (void) |
| void | DrawCinematicMemoryStatus (const char *message) |
| void | FormatCinematicMemoryStatus (const char *format,...) |
| void | ReportCutscenePacketAllocationFailure (const char *filename, short section, unsigned int packetSize) |
| void | ClearCutsceneTextViewport (void) |
| void | ExpandCutsceneText (const unsigned char *source, char *destination) |
| void | ResetCutsceneSpriteDrawTicks (void) |
| void | PresentCutsceneFrame (Viewport *source, Viewport *destination) |
| void | ConsumeCutscenePalettePacket (short firstColour, short count, signed char releasePacket) |
| void | ReleaseCutsceneSoundEffects (short resourceIndex) |
| void | LoadCutsceneSpeechSlot (short resourceIndex, short slot) |
| void | ReleaseCutsceneMusicNodes (CutsceneMusicNode **head, short resourceIndex) |
| void | RunCutsceneWipeTransition (Viewport *destination, Viewport *source, int wipeType, short duration) |
| void | WaitForCutsceneInputEvent (void) |
| void | ServiceCutsceneRuntimeHook (void) |
| void | AllocateCutsceneViewportOrFatal (Viewport *viewport, short colour, short flags) |
| void | DrawCutsceneTextAt (short x, short y, short viewportIndex, const char *text) |
| void | AnimateCutsceneSpeakerMouth (SceneFlicObject *sprite) |
| void | ExecuteCutsceneSequence (CutsceneSequence *sequence, unsigned char *text, signed char draw) |
| void | UpdateCutscenePlaneObject (CutscenePlane *plane, signed char updateChildren) |
| void | UpdateCutsceneSpriteObject (SceneFlicObject *sprite) |
| void | DispatchCutsceneSpriteHandler (SceneFlicObject *sprite, short handlerType) |
| void | ReleaseActiveCutscenePacket (CutsceneResourceTable *resources, void *packet) |
| void | ReleaseCutsceneFontPacket (void) |
| void | ReleaseCutsceneViewport (Viewport *viewport) |
| short | PopCutsceneScriptValue (short **stack, short *stackBottom) |
| void | PushCutsceneScriptValue (short **stack, short *stackTop, short value) |
| signed char | RunCutsceneScript (unsigned char **cursor, short objectType) |
| unsigned short | HasSavedPilotCampaign (void) |
| void | BeginShipDestructionSequence (short obj) |
| void | SpawnMissionEjectionPod (short obj) |
| void | RecordCannedSceneBriefingCharacter (signed char character, signed char pose, short animationFrame) |
| char * | GetPackedStringByIndex (CutsceneResourceTable *resources, short index) |
| void | InitializeSceneFlicStream (CutsceneResourceTable *resources, short index, SceneFlicObject *object) |
| void | ReleaseSceneFlicPackets (void) |
| void | AdvanceSceneFlicStream (SceneFlicObject *object) |
| void * | LoadCachedCutsceneResource (CutsceneResourceTable *resources, short index, int resourceType) |
| void | ReleaseCutsceneSpriteShape (SceneFlicObject *sprite) |
| void | ReleaseLoadedCutsceneResource (CutsceneResourceTable *resources, short index) |
| void | SetViewportRect (Viewport *viewport, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom) |
| void | PanToScreen (Viewport *source, Viewport *destination) |
| void | death_sequence (void) |
| char * | CopyRasterDriverName (void *const *callbacks) |
| void | InstallRasterDriverCallbacks (void *const *callbacks) |
| unsigned int | SetRasterClipPixel (RasterClip *clip, int x, int y, int colour) |
| int | ReadRasterClipPixel (RasterClip *clip, int x, int y) |
| unsigned int | DrawClippedLine (RasterClip *clip, int x1, int y1, int x2, int y2, int mode, int colour) |
| int | FillRasterClipCheckerboard (RasterClip *clip, int left, int top, int right, int bottom, unsigned char colour) |
| int | DrawRLEImage (RasterClip *clip, unsigned char *shape, int frame, int x, int y) |
| int | DrawRLEImageUnclipped (RasterClip *clip, RLEFrameHeader *frameHeader, int x, int y, int strideScratch) |
| void | SetPaletteTranslationTable (const unsigned char *translation) |
| int | DrawRLEImageColor (RasterClip *clip, unsigned char *shape, int frame, int x, int y) |
| int | DrawRLEImageColorUnclipped (RasterClip *clip, RLEFrameHeader *frameHeader, int x, int y, int strideScratch) |
| int | RotateRLEImage (RasterClip *clip, unsigned char *shape, int frame, int x, int y, unsigned char *scratch, unsigned int angleTenths, int scaleX, int scaleY, unsigned int flags) |
| unsigned int | GetRLEFrameBounds (unsigned char *shape, int frame, int x, int y, unsigned int flags, int *bounds) |
| int | EncodeRasterClipToRLEFrame (RasterClip *clip, unsigned char transparentColour, int originX, int originY, unsigned char *output) |
| unsigned int | TranslateRLEFramePalette (unsigned char *shape, int frame) |
| void | EncodeRLEScanline (int pixelCount, unsigned char transparentColour, int sourceX) |
| void | EmitRLEScanlineRun (int runType, int trailingCount, int sourceX) |
| int | FillRasterClip (RasterClip *clip, int colour) |
| int | BlitRasterClip (RasterClip *source, int sourceX, int sourceY, RasterClip *destination, int destinationX, int destinationY, unsigned int colour) |
| int | ScrollRasterClipWrapped (RasterClip *clip, int deltaX, int deltaY, int mode, unsigned int fillOrScratch) |
| unsigned int | DrawRasterEllipse (RasterClip *clip, int x, int y, int horizontalRadius, int verticalRadius, int colour) |
| unsigned int | FillRasterEllipse (RasterClip *clip, int x, int y, int horizontalRadius, int verticalRadius, int colour) |
| void | GetRLETransformTrig (int angleTenths, int *cosine, int *sine) |
| void | CalculateRoundedRLEFixedProduct (int left, int right, int *result) |
| void | TransformRLEPoint (int *point, int *result, int *origin, unsigned int angleTenths, int scaleX, int scaleY) |
| unsigned int | GetRawImageHeight (unsigned char *shape) |
| unsigned int | GetRawFrameWidth (unsigned char *shape, int frame) |
| int | BlitRawFrame (RasterClip *clip, int x, int y, unsigned char *shape, int frame, unsigned char *translation) |
| void | BlitSelectedRawFrames (RasterClip *clip, int x, int y, unsigned char *shape, const unsigned char *frames, unsigned char *translation) |
| int | BlitRawScanline (RasterClip *clip, int y, const unsigned char *pixels, int width) |
| unsigned char * | FindIFFChunkData (const char *chunkId, const unsigned char *iffData) |
| unsigned int | DecodeIFFImage (RasterClip *clip, const unsigned char *iffData) |
| void | CopyILBMPalette (const unsigned char *iffData, unsigned char *palette) |
| unsigned int | GetILBMImageSize (const unsigned char *iffData) |
| unsigned int | DecodePCXImage (RasterClip *clip, const unsigned char *pcxData) |
| void | CopyPCXPaletteFromFileTail (const unsigned char *fileData, unsigned int fileSize, unsigned char *palette) |
| unsigned int | GetPCXImageSize (const unsigned char *header) |
| void | ResetGIFLZWDictionary (void) |
| unsigned int | ReadGIFDataSubBlockByte (void) |
| unsigned int | ReadGIFLZWCode (void) |
| void | AppendGIFLZWDictionaryEntry (void) |
| void | EmitGIFDecodedPixel (void) |
| unsigned int | ExpandGIFLZWImage (RasterClip *clip, const unsigned char *gifData, void *workspace) |
| void | CopyGIFPalette (const unsigned char *gifData, unsigned char *palette) |
| unsigned int | GetGIFImageSize (const unsigned char *gifData) |
| unsigned int | GetRLEFrameDimensions (unsigned char *shape, int frame) |
| unsigned int | GetRLEFrameExtents (unsigned char *shape, int frame) |
| unsigned int | GetRLEImageSize (unsigned char *shape, int frame) |
| unsigned int | GetRLEImageOrigin (unsigned char *shape, int frame) |
| void | ApplyRLEFramePalette (unsigned char *shape, int frame, unsigned char *palette) |
| unsigned int | CopyRLEFramePalette (unsigned char *shape, int frame, unsigned char *entries) |
| unsigned int | SetRLEFramePalette (unsigned char *shape, int frame, const unsigned char *entries) |
| unsigned int | GetRLEFrameCount (const unsigned char *shape) |
| int | CollectUniqueRLEImageFrames (const unsigned char *shape, unsigned int *frames) |
| int | CollectUniqueRLEPaletteFrames (const unsigned char *shape, unsigned int *frames) |
| void | FadeRasterPaletteToPalette (RasterSurface *surface, const unsigned char *targetPalette, unsigned int duration) |
| int | CollectRasterClipColours (RasterClip *clip, unsigned int *colours) |
| void | ResetGameTextContexts (void) |
| short | RunTitleScreen (void) |
| short | PollCampaignChalkboardMenu (unsigned char *scene) |
| short | ReadPacketSectionData (PacketSectionHandle *handle, void *destination, unsigned int length) |
| void | CheckHeapBlockSignature (unsigned char *shape) |
| int | HasValidShapeAllocationSignature (unsigned char *shape) |
| unsigned char * | GetPreparedShapeData (unsigned char *shape) |
| short | GetShapeFrameCount (unsigned char *shape) |
| void | GetShapeFrameExtents (unsigned char *shape, short frame, short *width, short *height, short *leftExtent, short *topExtent) |
| void | DecodeShapeFrame (unsigned char *shape, short frame, unsigned char *bitmap, int width, int height, int leftExtent, int topExtent) |
| int | SignExtendClipCoord (volatile short v) |
| void | ValidateViewportBounds (Viewport *viewport, RasterSurface *surface, RasterClip *clip) |
| void | ClipViewportToScreen (Viewport *viewport) |
| signed char | InitializeViewportWipe (Viewport *source, Viewport *destination, int wipeType, short duration, short passFlags, void *workspace) |
| void | SetViewportHorizontalBounds (Viewport *viewport, int left, int right) |
| void | SetViewportVerticalBounds (Viewport *viewport, int top, int bottom) |
| signed char | AdvanceViewportWipe (void *workspace) |
| void | OffsetViewportBounds (Viewport *viewport, int left, int top, int right, int bottom) |
| void | SetViewportRectangleBounds (Viewport *viewport, int left, int top, int right, int bottom) |
| void | FinishViewportWipe (void *workspace) |
| void | GenerateWipeRadialEdges (short *edges, int radius) |
| void | BlitWipeRadialBands (Viewport *source, Viewport *destination, short *trailingEdges, short *leadingEdges) |
| void | SetSolidColourTranslation (unsigned char colour) |
| void | PrepareShapeRLEData (unsigned char *shape) |
| void | DrawSpriteTransformed (Viewport *viewport, int x, int y, unsigned char *shape, int frame, int angle, int scaleX, int scaleY, int flip, int blendMode) |
| void | RasterLineHook (const void *marker) |
| void | DrawFontGlyph (char character, TextContext *context, int height, int width, int y) |
| void | __copyline (void) |
| void | __wipeline (void) |
| void | EstablishColors (Viewport *viewport, unsigned char *active) |
| void | GetPaletteEntry (short index, unsigned short *rgb) |
| void | SetPaletteEntry (short index, short *rgb) |
| void | DrawSpriteDefault (Viewport *viewport, short x, short y, unsigned char *shape, short frame) |
| void | CaptureSpriteBackground (Viewport *viewport, unsigned char *background, short x, short y, unsigned char *shape, short frame) |
| void | RestoreSpriteBackground (Viewport *viewport, unsigned char *background, short x, short y, unsigned char *shape, short frame) |
| void | DrawSolidColourSprite (Viewport *viewport, short x, short y, unsigned char *shape, short frame, unsigned short colour) |
| void | CopyViewportContents (Viewport *source, Viewport *destination) |
| void | ClearViewport (Viewport *viewport, short colour) |
| void | DrawViewportPixel (Viewport *viewport, short x, short y, short colour) |
| short | GetViewportPixel (Viewport *viewport, short x, short y) |
| void | DrawViewportLine (Viewport *viewport, short x1, short y1, short x2, short y2, short colour) |
| void | FillPolygon (Viewport *viewport, ShortPoint *points, int count, char colour) |
| void | triangle (Viewport *viewport, ShortPoint *points, int colour) |
| void | shaded_triangle (Viewport *viewport) |
| void | DrawFilledViewportRect (Viewport *viewport, short left, short top, short right, short bottom, short colour) |
| void | DrawViewportBorder (Viewport *viewport, short left, short top, short right, short bottom, short colour) |
| void | DrawViewportEllipse (Viewport *viewport, short x, short y, short verticalRadius, short horizontalRadius, short colour) |
| void | FillViewportEllipse (Viewport *viewport, short x, short y, short verticalRadius, short horizontalRadius, short colour) |
| void | DrawViewportEllipseShadow (Viewport *viewport, short x, short y, short verticalRadius, short horizontalRadius, short colour) |
| void | shadow_draw (Viewport *viewport) |
| void | DrawShapeFrameScaled (Viewport *viewport, unsigned char *shape, int frame, int x, int y, int angle, int scale) |
| void | GetShapeFrameCorners (unsigned char *shape, int frame, int x, int y, short *points, int *count) |
| void | DrawSpriteScaled (Viewport *viewport, short x, short y, unsigned char *shape, short frame, short angle, short scale, short flip) |
| void | DrawSolidColourSpriteScaled (Viewport *viewport, short x, short y, unsigned char *shape, short frame, short angle, short scale, short flip, unsigned short colour) |
| short | GetTransformedShapeBounds (Viewport *viewport, short x, short y, unsigned char *shape, short frame, short angle, short scale, short flip, short *bounds) |
| void | CopyViewportRuns (Viewport *source, Viewport *destination, const short *runs) |
| void | fizzle_fade (Viewport *source, Viewport *destination) |
| void | snow_viewport (Viewport *viewport, int effect, unsigned short colour) |
| void | UpdateStreamerStoppedFlag (void) |
| void | SignalAudioMixerWakeEvent (void) |
| void | InitializeAudioStreamer (HWND window) |
| void | Streamer_open (const char *streamName) |
| void | Streamer_play (void) |
| void | Streamer_stop (void) |
| void | SetStreamerTrigger (int trigger) |
| void | SetStreamerIntensity (int intensity) |
| void | ForceStreamerTrigger (int trigger) |
| void | SetMusicStreamVolume (unsigned short volume) |
| unsigned int | GetMusicStreamVolume (void) |
| void | Streamer_close (void) |
| void | DestroyAudioStreamer (void) |
| int | ReadCheaterFlagFromRegistry (void) |
| int | ix_system_init (void) |
| void | ix_system_service_sounds (void) |
| void | ix_system_shutdown (void) |
| void | ix_system_configure (int option, void *value) |
| void | ix_system_set_master_volume (unsigned short volume) |
| void | ix_system_set_voice_count (int voiceCount) |
| IxSample * | ix_system_new_sample (void) |
| void | ix_system_delete_all_samples (void) |
| IxSound * | ix_system_new_sound (IxSample *sample) |
| void | ix_system_delete_all_sounds (void) |
| void | ix_system_delete_sound (IxSound *sound) |
| void __fastcall | ix_sound_start (IxSound *sound) |
| void __fastcall | ix_sound_release (IxSound *sound) |
| void __fastcall | ix_sound_stop (IxSound *sound) |
| int __fastcall | ix_sound_is_playing (IxSound *sound) |
| int | ix_streamer_init (void) |
| void | ix_streamer_destroy (void) |
| void | ix_streamer_configure (int option, void *value) |
| int | ix_streamer_open_stream_file (char *path) |
| void | ix_streamer_close_stream_file (void) |
| void | ix_streamer_audio_play (void) |
| void | ix_streamer_audio_stop (void) |
| void | ix_streamer_set_intensity (unsigned char intensity) |
| void | ix_streamer_set_trigger (char trigger) |
| void | ix_streamer_force_trigger (char trigger) |
| void | ix_streamer_set_volume (unsigned short volume) |
| unsigned short | ix_streamer_get_volume (void) |
Declarations for reconstructed game functions.
Definition in file functions.h.
| typedef ShortRect ModalPanelBounds |
Definition at line 694 of file functions.h.
Definition at line 647 of file gr.c.
References __copyline(), and RasterLineHook().
Referenced by __copyline(), and CollectRasterClipColours().
Definition at line 656 of file gr.c.
References __wipeline(), and RasterLineHook().
Referenced by __wipeline(), and CollectRasterClipColours().
| short abandoned | ( | short | obj, |
| short | other ) |
Definition at line 933 of file logic.c.
References abandoned(), distance_from_object(), explode(), FindNearestNavPoint(), g_abShipTurn, g_asShipSide, g_nCurrentNavPoint, hostile_sphere(), RandomBelowOrEqual(), and SIDE_KILRATHI.
Referenced by abandoned(), close_behind(), cruise_home(), and cruise_to_destination().
| unsigned int AbortToDesktop | ( | void | ) |
Definition at line 220 of file winmain.c.
References AbortToDesktop(), g_19_hOneProcessLock, g_29_abMemoryLoadNotice, g_bApplicationShutdownStarted, g_dwGuardedAllocationBytes, g_dwGuardedAllocationPeakBytes, and g_dwGuardedAllocationTotalBytes.
Referenced by AbortToDesktop(), and WinMain().
| int AbsInt | ( | int | v | ) |
Definition at line 151 of file geom.c.
References AbsInt().
Referenced by AbsInt(), and control_speed().
| void accelerate | ( | short | amount | ) |
Definition at line 3017 of file ship.c.
References accelerate(), celerate(), g_nSpaceFrame, malf(), and PlaySfxWaveFileByNumber().
Referenced by accelerate(), DrawTextAt(), HandleSpaceFlightControls(), and player_input().
| void accelerate_and_jump | ( | short | obj | ) |
Definition at line 539 of file brains.c.
References accelerate_and_jump(), approach_full_speed(), g_asShipCount, and warp().
Referenced by accelerate_and_jump(), and reach_warp().
| void accelerate_and_move_object | ( | short | obj | ) |
Definition at line 1153 of file spc.c.
References accelerate_and_move_object(), AddFixedVectors(), alert_flag(), approach_zero_speed(), ComputeVectorDelta(), DivideFixed(), dot_product(), drain_fuel(), g_acObjectType, g_acShipExhaustHeat, g_aeObjectClass, g_aeSpecialManeuver, g_anShipSpeed, g_aObjectTypeData, g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_asShipAfterburnerTimer, g_asShipTactic, g_vPlayerAcceleration, GetShipAccelerationRate(), ObjectTypeData::maximumVelocity, MinInt(), MultiplyFixed(), NormalizeAndScaleVector(), OBJECT_CLASS_MISSILE, RandomBelowOrEqual(), ScaleFixedVector(), set_special(), SPECIAL_MANEUVER_AFTERBURNER, SPECIAL_MANEUVER_KILL_ENGINES, SPECIAL_MANEUVER_NONE, SPECIAL_MANEUVER_STOP_DRIFT, SPECIAL_MANEUVER_SUPER_BRAKE, TACTIC_SIT_STILL, Vector_magnitude(), and zero_vector().
Referenced by accelerate_and_move_object(), and update_objects_in_space().
| 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().
Definition at line 902 of file main.c.
References AcknowledgeModalMessage(), ConfigureInputPump(), FlushPendingInputEvents(), get_player_input(), PollJoystickButtonEvents(), and SetFrameTimerAndWait().
Referenced by AcknowledgeModalMessage(), ShowModalMessage(), and UpdateShipTurretGuns().
| void add_hazard_field | ( | short | type, |
| FixedVector | center, | ||
| short | radius, | ||
| short | density ) |
Definition at line 411 of file fields.c.
References add_hazard_field(), HazardField::center, HazardField::density, g_aHazardFields, g_nHazardFieldCount, HazardField::innerRadius, HazardField::outerRadius, and HazardField::type.
Referenced by add_hazard_field(), and init_ship().
| void AddCutsceneMusicNode | ( | CutsceneMusicNode ** | head, |
| short | resourceIndex ) |
Definition at line 682 of file gameflow.c.
References AddCutsceneMusicNode(), FatalCutsceneError(), FindActiveCutsceneFileResources(), g_19_bStoredHighMemoryEnabled, g_nMusicDriverMode, g_pCutsceneMusicResources, g_pMemoryLogFile, GetOriginalFreeMemory(), HasCutsceneMusicNode(), LoadCachedCutsceneResource(), CutsceneMusicNode::next, CutsceneMusicNode::packet, CutsceneMusicNode::previous, and CutsceneMusicNode::resourceIndex.
Referenced by AddCutsceneMusicNode(), and DosMemmove().
Definition at line 571 of file gameflow.c.
References AddCutsceneSoundEffect(), FatalCutsceneError(), FindCutsceneSoundEffect(), g_bCutsceneSkipAll, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_pCutsceneSoundEffects, g_pMemoryLogFile, GetOriginalFreeMemory(), CutsceneSoundEffect::next, CutsceneSoundEffect::resourceIndex, and CutsceneSoundEffect::sound.
Referenced by AddCutsceneSoundEffect(), and DosMemmove().
| void AddFixedVectors | ( | const FixedVector * | left, |
| const FixedVector * | right, | ||
| FixedVector * | sum ) |
Definition at line 211 of file geom.c.
References AddFixedVectors(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by accelerate_and_move_object(), AddFixedVectors(), animate_object(), apply_force_to_object(), apply_force_to_objects_center(), approach(), auto_pilot_sequence(), capital_ship_strike_mission(), chase_location(), compute_formation_destination(), ComputePointAheadOfObject(), ComputePointBehindObject(), Create_explosion_debris(), Create_ship_hit_debris(), DrawNavHazardMarker(), find_squad_center(), fire_weapon(), FireTargetCameraGuns(), goto_formation(), init_formation_burst(), init_hazard(), init_ship(), launch_object(), locate_ship(), make_shard(), Msit_n_spin(), new_view(), object_collision(), onboard_explosion(), position_relative(), random_radial(), real_crash_time(), servicetrack(), set_eye_direction_and_position(), set_sphere_point(), SetFleetOverviewView(), SpawnCapitalFlakProjectile(), SpawnFlakBurst(), start_dust(), steer_away_from_object(), steer_away_from_predicted_object(), update_objects_in_space(), update_star_field(), UpdateShipTurretGuns(), and UpdateTargetLeadIndicator().
| void AddUniqueObjectiveNavLabel | ( | short | x, |
| short | y, | ||
| unsigned short | colour, | ||
| const char * | text, | ||
| short | objective, | ||
| short | missionShip ) |
Definition at line 419 of file nav.c.
References AddUniqueObjectiveNavLabel(), g_aMissionObjectives, hidden_objective(), ObjectivesShareNavLabel(), and PlaceNavMapLabel().
Referenced by AddUniqueObjectiveNavLabel(), BuildMap(), and DrawNavMapBriefingBeacons().
| 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().
| void AdjustSpaceFramePeriod | ( | short | adjustment | ) |
Definition at line 60 of file main.c.
References AdjustSpaceFramePeriod(), g_nSpaceFramePeriod, MaxShort(), MinShort(), and ShowOnScreenMessage().
Referenced by AdjustSpaceFramePeriod(), close_behind(), and HandleSpaceFlightControls().
| void advance | ( | short | ship | ) |
Definition at line 181 of file fl.c.
References advance(), g_acShipSequence, g_asShipManeuver, and MANEUVER_NONE.
Referenced by advance(), auto_pilot_sequence(), DrawWrappedCinematicText(), general_zig(), Mburnout(), Mbuzz_debris(), Mcorkscrew(), Mfish_hook(), Mgloat(), Mhard_break(), Mhard_turn(), Mkickit(), Mroll_over(), Msit_n_spin(), Msplit_left(), Msplit_right(), Mtarget_missile(), Mtight_loop(), Mturn_n_kick(), Mturn_n_spin(), Mveer_away(), and ShipAiState46().
| void AdvanceSceneFlicStream | ( | SceneFlicObject * | object | ) |
Definition at line 1507 of file gameflow.c.
References AdvanceSceneFlicStream(), SceneFlicCacheEntry::auxiliaryAllocation, CopyViewportContents(), SceneFlicObject::currentFrame, DosStrcpy(), SceneFlicObject::filename, SceneFlicObject::finalFrame, g_15_stSceneFlicScratchViewport, g_aSceneFlicCopyTable, g_pMemoryLogFile, g_stSecondaryViewBufferBlock, GetShapeFrameCount(), LoadNamedPacket(), SceneFlicObject::nextSection, OutputDebugPrintf(), ReleasePacketSlot(), ReleaseSceneFlicPackets(), RewriteDiskFileGraphicsExtensions(), SceneFlicObject::segmentEndFrame, SceneFlicCacheEntry::shape, SceneFlicObject::shape, and WaitForCutsceneInputEvent().
Referenced by AdvanceSceneFlicStream(), DosMemmove(), DrawCutsceneSprite(), and InitializeSceneFlicStream().
| signed char AdvanceViewportWipe | ( | void * | workspace | ) |
Definition at line 255 of file wipe.c.
References AdvanceViewportWipe(), BlitWipeRadialBands(), Viewport::bottom, CopyViewportContents(), g_105_nFadePreviousVerticalEdge, g_108_nTransitionVertSum, g_11_nWipeRadialAccumulator, g_11_pWipeFrontEdges, g_139_nDissolveProgress, g_14_nBlendHorizontalTotal, g_16_nRevealVerticalDelta, g_17_nFadeType, g_18_nBlendRadialStep, g_18_nWipeAcrossStride, g_18_nWipeTotalStages, g_19_stFadeToView, g_1_nFadeRadialThreshold, g_1_stWipeScratchSourcePort, g_26_stWipeTempDestinationViewport, g_2_nWipePreviousAcrossEdge, g_3_nFadeCurrentHorizontalEdge, g_3_nWipeRoundFlags, g_3_stDissolveSourceViewport, g_5_nWipeAcrossThreshold, g_9_pWipeRearEdges, g_nRevealVertThreshold, g_nWipeCurrentVerticalEdges, GenerateWipeRadialEdges(), Viewport::left, OffsetViewportBounds(), Viewport::right, SetViewportHorizontalBounds(), SetViewportRectangleBounds(), SetViewportVerticalBounds(), Viewport::top, and void().
Referenced by AdvanceViewportWipe(), CollectRasterClipColours(), InitializeCampaignChalkboardScreen(), RunCutsceneWipeTransition(), and RunTitleScreen().
| void affect_mission_score | ( | short | pilot, |
| int | event, | ||
| short | amount ) |
Definition at line 1621 of file ship.c.
References affect_mission_score(), g_stCurrentPilotProfile, and PilotProfile::missionScore.
Referenced by affect_mission_score(), cleanup_objectives(), DrawTextAt(), and score_for_kill().
| short alert_flag | ( | short | ship, |
| unsigned int | bits ) |
Definition at line 25 of file logic.c.
References alert_flag(), and g_anShipAlertFlags.
Referenced by accelerate_and_move_object(), alert_flag(), approach_speed(), DrawTextAt(), handle_collisions(), rotate_object_to_goal(), and set_special().
| void align | ( | int * | value, |
| short | quantum ) |
Definition at line 134 of file fields.c.
References align().
Referenced by align(), and init_hazard().
| ActiveSoundEntry * AllocateActiveSoundEntry | ( | void | ) |
Definition at line 132 of file sound.c.
References AllocateActiveSoundEntry(), g_pActiveSoundHead, g_pActiveSoundTail, and ActiveSoundEntry::next.
Referenced by AllocateActiveSoundEntry(), playWAVE(), and UpdateShipTurretGuns().
Definition at line 2399 of file eventmgr.c.
References AllocateApplicationScratchBuffer(), AllocateTaggedMemory(), g_37_stPersonnelMousePointerState, and MouseCursorState::scratchBuffer.
Referenced by AllocateApplicationScratchBuffer(), close_behind(), and WinMain().
Definition at line 1699 of file gameflow.c.
References AllocateCutsceneViewportOrFatal(), AllocateViewport(), and FatalCutsceneError().
Referenced by AllocateCutsceneViewportOrFatal(), DosMemmove(), and RunCutsceneScript().
| void * AllocateDefaultMemory | ( | unsigned int | size | ) |
Definition at line 1465 of file eventmgr.c.
References AllocateDefaultMemory(), and AllocateTaggedMemory().
Referenced by AllocateDefaultMemory(), DosMemmove(), and InitializeHighMemoryGraphicsBuffers().
| void * AllocateGuardedMemory | ( | unsigned int | size | ) |
Definition at line 757 of file winmain.c.
References AllocateGuardedMemory(), GuardedAllocation::block, g_9_pGuardedAllocationLastRef, g_pGuardedAllocationHead, GuardedAllocation::next, GuardedAllocation::size, and UntrackFreedHeapBlock().
Referenced by AllocateGuardedMemory(), and AllocateTaggedMemory().
| InputEvent * AllocateInputEvent | ( | void | ) |
Definition at line 616 of file eventmgr.c.
References AllocateInputEvent(), g_3_aInputEventArray, g_3_anCurrentInputEventEntryAllocation, and g_nInputEventPoolInitialized.
Referenced by AllocateInputEvent(), DosMemmove(), and QueueInputEvent().
| void * AllocateNearHeapBlockByFlags | ( | int | size, |
| short | flags ) |
Definition at line 229 of file nearheap.c.
References NearHeapBlock::address, AllocateNearHeapBlockByFlags(), AllocateNearHeapBlockFromEnd(), DosNearPtrToFar(), g_1_nNearHeapBase, g_nNearArenaSize, g_nNearHeapFirstDescriptor, g_nNearHeapMaxDescriptors, and NearHeapBlock::sizeAndFlags.
Referenced by AllocateNearHeapBlockByFlags().
| void * AllocateNearHeapBlockFromEnd | ( | int | size, |
| short | flags ) |
Definition at line 144 of file nearheap.c.
References NearHeapBlock::address, AllocateNearHeapBlockFromEnd(), DosNearPtrToFar(), g_1_nNearHeapBase, g_nNearArenaSize, g_nNearHeapFirstDescriptor, g_nNearHeapMaxDescriptors, and NearHeapBlock::sizeAndFlags.
Referenced by AllocateNearHeapBlockByFlags(), and AllocateNearHeapBlockFromEnd().
| void * AllocateScenePointerTable | ( | int | count, |
| short | elementSize, | ||
| unsigned short | flags, | ||
| const char * | errorMessage ) |
Definition at line 131 of file iffload.c.
References AllocateScenePointerTable(), AllocateZeroedRecords(), and FatalCutsceneError().
Referenced by AllocateScenePointerTable(), CreateCutsceneResourceInstance(), DecodeCutsceneFileResource(), DecodeCutsceneObjectResource(), DecodeSceneOffsetChunk(), DecodeSceneStructChunk(), DecodeSceneSymbolChunk(), DrawTextAt(), InitializeCutsceneRuntimeResources(), ParseCutsceneContainer(), PushCutsceneFileResource(), PushCutsceneObjectResource(), RunCampaignGameLoop(), RunCutsceneScript(), and StoreMissionResultsInCampaignGlobals().
| void * AllocateTaggedMemory | ( | unsigned int | size, |
| short | flags ) |
Definition at line 92 of file memapi.c.
References AllocateGuardedMemory(), AllocateTaggedMemory(), g_abTaggedAllocationPrefix, and PushMemoryStackFrame().
Referenced by AllocateApplicationScratchBuffer(), AllocateDefaultMemory(), AllocateNearMemory(), AllocateTaggedMemory(), AllocateViewport(), AllocateZeroedRecords(), CollectActivePaletteIndices(), DrawNavLocationReadout(), FadeViewportPaletteToColour(), init_intelligence_data(), InitializeCampaignChalkboardScreen(), InitializeCockpitResources(), InitializeInputManagerMemory(), InitializeMusicResources(), InitializeNearHeap(), InitializeSoundBlaster(), LoadPacketAllocated(), LoadSpeechPacketIntoBuffer(), LoadWholeDataFile(), PacketLoad(), PanToScreen(), PrepareShapeRLEData(), RunGameApplication(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), ShowModalTextPanel(), StepPaletteTransition(), and UpdateShipTurretGuns().
| short AllocateViewport | ( | Viewport * | viewport, |
| short | clearColour, | ||
| short | flags ) |
Definition at line 32 of file vpalloc.c.
References AllocateTaggedMemory(), AllocateViewport(), Viewport::allocation, Viewport::bottom, ClearViewport(), g_apViewportAllocations, g_nAllocateViewportCalls, g_nSpacePaletteFadeMode, g_nViewportAllocationCount, Viewport::left, LogDisplayMode(), Viewport::pixels, ReleasePacketHandle(), Viewport::right, Viewport::rowOffsets, and Viewport::top.
Referenced by AllocateCutsceneViewportOrFatal(), AllocateViewport(), BarracksScreen(), BriefingMap_DisplayMap(), BriefingMap_LoadShapes(), FetchDiskPacketRetrying(), InitFullScreenViewport(), initialize_cockpit(), initialize_view_buffer(), InitializeCampaignChalkboardScreen(), InitializeCockpitResources(), InitializeConversationViewport(), InitializeModalTextPanel(), PromptToContinueCampaign(), RunPilotDatabaseMenu(), RunTitleScreen(), and UpdateShipTurretGuns().
| WaveTableEntry * AllocateWaveTableEntry | ( | void | ) |
Definition at line 55 of file sound.c.
References AllocateWaveTableEntry(), g_pWaveTableHead, g_pWaveTableTail, and WaveTableEntry::next.
Referenced by AllocateWaveTableEntry(), PlayRawSpeechBuffer(), PlaySnowStaticSound(), playWAVE(), and UpdateShipTurretGuns().
| void * AllocateZeroedRecords | ( | int | count, |
| short | elementSize, | ||
| short | flags ) |
Definition at line 1437 of file eventmgr.c.
References AllocateTaggedMemory(), and AllocateZeroedRecords().
Referenced by AllocateScenePointerTable(), AllocateZeroedRecords(), and DosMemmove().
Definition at line 205 of file brains.c.
References allow_engage(), g_bEngageAllowed, and g_nAutoEngageTimer.
Referenced by allow_engage(), request(), and try2allow_engage().
| unsigned int alter_objective | ( | short | ship, |
| short | objective ) |
Definition at line 453 of file logic.c.
References alter_objective(), alter_tactic(), g_aeShipObjective, steady_object(), and TACTIC_NONE.
Referenced by alter_objective(), DrawTextAt(), and request().
| void alter_pitch | ( | short | angle, |
| short | obj ) |
Definition at line 504 of file geom.c.
References alter_pitch(), fix_objects_ijk(), g_aShipForwardVector, g_aShipUpVector, and rotate_about_i().
Referenced by alter_pitch(), InitializeConstellationObject(), make_shard(), rotate_object(), set_background_objects_rotation(), and Set_up_ship_info().
| void alter_roll | ( | short | angle, |
| short | obj ) |
Definition at line 520 of file geom.c.
References alter_roll(), fix_objects_ijk(), g_aShipRightVector, g_aShipUpVector, and rotate_about_k().
Referenced by alter_roll(), InitializeConstellationObject(), rotate_object(), and Set_up_ship_info().
| unsigned int alter_tactic | ( | short | ship, |
| short | tactic ) |
Definition at line 469 of file logic.c.
References alter_tactic(), g_asShipTactic, MANEUVER_NONE, and reset_maneuver().
Referenced by alter_objective(), alter_tactic(), DrawTextAt(), and patrol_area().
| void alter_yaw | ( | short | angle, |
| short | obj ) |
Definition at line 512 of file geom.c.
References alter_yaw(), fix_objects_ijk(), g_aShipForwardVector, g_aShipRightVector, and rotate_about_j().
Referenced by alter_yaw(), InitializeConstellationObject(), make_shard(), rotate_object(), set_background_objects_rotation(), and Set_up_ship_info().
| void analyze_kill | ( | short | attacker, |
| short | victim ) |
Definition at line 1705 of file ship.c.
References analyze_kill(), g_13_stMissionHeaderBlock, g_36_cPilotKillCountValue, g_4_acInitialShipKillNumber, g_asShipMissionIndex, g_asShipSide, new_space_music_changes(), and score_for_kill().
Referenced by analyze_kill(), DrawTextAt(), and ResolveObjectDestruction().
| void animate_object | ( | short | obj | ) |
Definition at line 1314 of file spc.c.
References AddFixedVectors(), animate_object(), animate_shape(), FillFixedVectorWithRandomComponents(), find_vacant_3d_object(), g_acObjectType, g_aeObjectClass, g_aObjectTypeData, g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_asObjectCollisionRadius, g_asObjectDamage, g_asObjectScale, g_asObjectScreenX, g_nRenderedSpaceFrame, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_DEBRIS, OBJECT_CLASS_EXPLOSION, OBJECT_CLASS_FIXED_OBJECT, OBJECT_CLASS_MINE, OBJECT_CLASS_SHIP, OBJECT_DATA_SHIP_DAMAGE_EFFECT_FIRST, PlaySfxWaveFileByNumber(), RandomInRange(), ScaleFixedVector(), set_objects_data(), and zero_vector().
Referenced by animate_object(), and update_objects_in_space().
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().
| void animate_shape | ( | short | obj | ) |
Definition at line 1261 of file spc.c.
References animate_shape(), ObjectTypeData::animation, g_acObjectAnimationDelay, g_acObjectType, g_aObjectTypeData, g_asObjectAnimationIndex, g_asObjectFlip, g_asObjectScale, g_asObjectScreenX, g_asObjectType, g_asObjectViewFrame, PlaySfxWaveFileByNumber(), remove_object(), and ObjectTypeData::yawRate.
Referenced by animate_object(), animate_shape(), and set_objects_data().
| void AnimateCutsceneSpeakerMouth | ( | SceneFlicObject * | sprite | ) |
Definition at line 48 of file gameflow.c.
References AnimateCutsceneSpeakerMouth(), SceneFlicObject::currentFrame, g_196_nInputTimerTicks, g_2_bMovieStringAdvanceState, g_acCutsceneMouthDurations, g_acCutsceneMouthFrames, g_bCutsceneSkipFrame, g_bCutsceneSpeechActive, g_bCutsceneViewportPreallocated, g_cCutsceneSpeechSpeed, g_pszCurrentCutsceneText, g_pszCutsceneSpeechCursor, g_wDigiPlaying, RandomInRange(), SceneFlicObject::waitStart, and SceneFlicObject::waitTicks.
Referenced by AnimateCutsceneSpeakerMouth(), and DosMemmove().
Definition at line 148 of file intro.c.
References AnimateTitleOrchestra(), DrawSpriteDefault(), DrawTitleSky(), g_apszTitleActorFrames, g_apTitleSections, g_aTitleActorMotion, g_bSceneEscapeRequested, g_nFrameSkip, g_nFrameSkipCountdown, g_nMusicDriverMode, g_nTitleMusicSequenceStage, g_stSecondaryViewBufferBlock, RandomInRange(), RefreshMemoryStatusOverlay(), and WaitForInputKey().
Referenced by AnimateTitleOrchestra(), and Title_Sequence().
| short any_defense | ( | short | obj | ) |
Definition at line 438 of file smart.c.
References any_defense(), g_apDefenseManeuvers, g_asPilotLevel, and RandomBelowOrEqual().
Referenced by any_defense(), maintain_formation(), pick_kilrathi_maneuver(), and pick_regular_maneuver().
| short any_enemy | ( | short | obj, |
| short | range ) |
Definition at line 610 of file logic.c.
References any_enemy(), distance_from_object(), g_aeObjectClass, g_aeSpecialManeuver, g_asShipSide, g_nTargetRange, g_nTargetShip, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by any_enemy(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), check_stranded(), close_behind(), disobey_formation(), HandleSpaceFlightControls(), imperial_formation(), intelligence_events(), internal_damage(), run_away(), ShouldWingmanAcceptRoutCommand(), and try2rout().
| short any_selected | ( | unsigned char * | loadout, |
| short | objectClass ) |
Definition at line 264 of file ship.c.
References any_selected(), and g_aObjectTypeData.
Referenced by any_selected(), DrawTextAt(), and remove_weapon().
| void AppendCommMenuChoice | ( | const char * | text, |
| short | command ) |
Definition at line 60 of file comm.c.
References AppendCommMenuChoice(), g_1_apszCommMenuChoiceTextTable, g_abCommMenuChoiceCommand, g_nCommMenuChoiceCount, and g_nCommMenuReuseMode.
Referenced by AppendCommMenuChoice(), BuildCommunicationRecipientMenu(), SendCommMenuChoice(), and UpdateShipTurretGuns().
| void AppendFormattedText | ( | const char * | format, |
| ... ) |
Definition at line 141 of file textfmt.c.
References AppendFormattedText(), AppendTextCharacter(), FormatTextTokens(), g_101_stScrViewInfo, g_29_pCurrentTextContext, MarkDibDirty(), Viewport::pixels, and TextContext::viewport.
Referenced by AppendFormattedText().
References AppendGIFLZWDictionaryEntry().
Referenced by AppendGIFLZWDictionaryEntry().
Definition at line 98 of file disk.c.
References AppendPacketLoadDebugLog(), g_nShowMemoryStatus, GetAvailableMainMemory(), GetLargestMainMemoryBlock(), and GetNamedPacketSize().
Referenced by AppendPacketLoadDebugLog(), FetchDiskPacketRetrying(), LoadPacketAllocated(), and LoadPacketIntoBuffer().
| void AppendTextCharacter | ( | char | character | ) |
Definition at line 375 of file eventmgr.c.
References AppendTextCharacter(), g_29_pCurrentTextContext, and TextContext::textCursor.
Referenced by AppendFormattedText(), AppendTextCharacter(), DrawNavTextLine(), FormatTextBufferFromStart(), and intelligence_events().
| void apply_force_to_object | ( | FixedVector * | point, |
| FixedVector * | force, | ||
| short | obj ) |
Definition at line 908 of file geom.c.
References AddFixedVectors(), apply_force_to_object(), check_for_lost_control(), ClampTo30(), DivideFixed(), g_acObjectType, g_aeObjectClass, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_aObjectTypeData, g_aShipVelocity, g_asObjectCollisionRadius, MultiplyFixed(), OBJECT_CLASS_SHIP, PlanarMagnitude(), ObjectTypeData::radarRadius, transform_to_objects_frame(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by apply_force_to_object(), and object_collision().
| void apply_force_to_objects_center | ( | FixedVector * | force, |
| short | obj ) |
Definition at line 895 of file geom.c.
References AddFixedVectors(), apply_force_to_objects_center(), divide_vector(), g_acObjectType, g_aObjectTypeData, and g_aShipVelocity.
Referenced by apply_force_to_objects_center(), explosion_shock_wave(), and UpdateTargetCameraObject().
| void ApplyAlternateShipType | ( | short | obj | ) |
Definition at line 138 of file mission.c.
References ObjectTypeData::animation, ApplyAlternateShipType(), ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, ObjectTypeData::collisionRadius, ObjectTypeData::field_18, g_aasShipArmor, g_aasShipMaximumShield, g_aasShipShield, g_acLastCollisionObject, g_acObjectOwner, g_acObjectType, g_acPilotHitPoints, g_acShipDamage, g_acShipIonDriveDamage, g_acShipLastAttacker, g_acShipTarget, g_aeObjectClass, g_anShipFuel, g_aObjectTypeData, g_apObjectExhaustShape, g_apObjectShape, g_aShipWeapons, g_asObjectCollisionRadius, g_asObjectDamage, g_asObjectFlip, g_asObjectScale, g_asObjectScreenAngle, g_asObjectType, g_asObjectViewFrame, g_asShipTurretFireEnabled, g_asShipWeaponEnergy, g_nSelectedGunType, g_nSelectedReleaseWeaponIndex, HasShipCockpitGunDisplay(), init_ijk(), InitializeShipWeaponTypeIndices(), ObjectTypeData::lifetime, ObjectTypeData::objectClass, recalc_max_velocity(), ObjectTypeData::scale, ObjectTypeData::shapeSet, ObjectTypeData::shieldAft, ObjectTypeData::shieldFore, and ObjectTypeData::weaponLoadout.
Referenced by ApplyAlternateShipType(), init_ship(), and prepare_mission().
Definition at line 150 of file replay.c.
References ApplyCannedSceneFrameEvents(), ApplyCannedSceneMusicRecord(), ApplyCannedSceneObjectEventRecord(), ApplyCannedSceneSoundRecord(), CannedSceneRecordHeader::frame, g_3_nCannedSceneWriteIndex, g_78_bHighMemoryBuffersSetState, g_dwHighMemoryParagraphValue, g_nSpaceFrame, g_pHighMemoryBlockA, IdentityDword(), CannedSceneRecordHeader::opcode, and RestoreCannedSceneObjectState().
Referenced by ApplyCannedSceneFrameEvents(), update_objects_in_space(), and UpdateShipTurretGuns().
| unsigned short ApplyCannedSceneMusicRecord | ( | CannedSceneMusicCommandRecord * | record | ) |
Definition at line 135 of file replay.c.
References ApplyCannedSceneMusicRecord(), CannedSceneMusicCommandRecord::command, CannedSceneMusicCommandRecord::enabled, ProcessMusicScriptCommand(), and CannedSceneMusicCommandRecord::track.
Referenced by ApplyCannedSceneFrameEvents(), ApplyCannedSceneMusicRecord(), and UpdateShipTurretGuns().
| unsigned short ApplyCannedSceneObjectEventRecord | ( | CannedSceneObjectEventRecord * | record | ) |
Definition at line 81 of file replay.c.
References ApplyCannedSceneObjectEventRecord(), approach(), auto_pilot_sequence(), ClearViewport(), CannedSceneObjectEventRecord::counter, CannedSceneObjectEventRecord::event, g_27_stViewScratchInfo, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asObjectScale, g_bPrimaryViewBufferColour, g_bViewportDirty, CannedSceneObjectEventRecord::object, OBJECT_DATA_STAR, CannedSceneObjectEventRecord::objectType, CannedSceneObjectEventRecord::owner, CannedSceneObjectEventRecord::position, remove_object(), CannedSceneObjectEventRecord::scale, set_objects_data(), and CannedSceneObjectEventRecord::velocity.
Referenced by ApplyCannedSceneFrameEvents(), ApplyCannedSceneObjectEventRecord(), and UpdateShipTurretGuns().
| unsigned short ApplyCannedSceneSoundRecord | ( | CannedSceneBriefingCharacterRecord * | record | ) |
Definition at line 120 of file replay.c.
References CannedSceneBriefingCharacterRecord::animationFrame, ApplyCannedSceneSoundRecord(), CannedSceneBriefingCharacterRecord::character, PlaySfxWaveFileByNumber(), and CannedSceneBriefingCharacterRecord::pose.
Referenced by ApplyCannedSceneFrameEvents(), ApplyCannedSceneSoundRecord(), and UpdateShipTurretGuns().
| void ApplyPackedMousePosition | ( | ShortPoint | point | ) |
Definition at line 1386 of file eventmgr.c.
References ApplyPackedMousePosition(), g_16_stEventQueuePointerData, SetInputCursorHostPosition(), QueuedMouseState::x, ShortPoint::x, QueuedMouseState::y, and ShortPoint::y.
Referenced by ApplyPackedMousePosition(), and DosMemmove().
| void ApplyRLEFramePalette | ( | unsigned char * | shape, |
| int | frame, | ||
| unsigned char * | palette ) |
References ApplyRLEFramePalette().
Referenced by ApplyRLEFramePalette().
Definition at line 222 of file eventmgr.c.
References ApplySpacePaletteModeHook().
Referenced by ApplySpacePaletteModeHook(), ConfigureDefaultSpacePalette(), and DrawTextAt().
| void approach | ( | short | obj | ) |
Definition at line 324 of file fields.c.
References AddFixedVectors(), approach(), g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_nCannedSceneMode, point_at(), RecordCannedSceneObjectEvent(), and ScaleFixedVector().
Referenced by ApplyCannedSceneObjectEventRecord(), approach(), and manage_hazard().
| void approach_and_engage | ( | short | obj, |
| short | goal ) |
Definition at line 673 of file brains.c.
References approach_and_engage(), distance_from_object(), engage(), evaluate_damage(), g_acShipTarget, g_aeObjectClass, g_asObjectType, g_asPilotLevel, g_nTargetRange, init_formation_burst(), MaxShort(), MinShort(), OBJECT_CLASS_FUTURION, OBJECTIVE_DESTROY_SHIP, scan_for_enemy(), and streak_toward().
Referenced by approach_and_engage(), and strike_mission().
| unsigned int approach_cruise_speed | ( | short | ship | ) |
Definition at line 529 of file logic.c.
References approach_cruise_speed(), approach_speed(), g_acObjectType, and g_aObjectTypeData.
Referenced by approach_cruise_speed(), capital_ship_intelligence(), coming_home(), cruise_home(), cruise_to_destination(), destroyer_intelligence(), DrawTextAt(), goto_location(), Msit_n_fire(), Mstrafe_enemy(), Mtight_loop(), patrol_area(), rendezvous_mission(), return_to_buddy(), ship_intelligence(), and tanker_intelligence().
| unsigned int approach_full_speed | ( | short | ship | ) |
Definition at line 537 of file logic.c.
References approach_full_speed(), approach_speed(), and g_asShipMaximumVelocity.
Referenced by accelerate_and_jump(), approach_full_speed(), capital_ship_intelligence(), chase_speed(), cruise_to_destination(), DrawTextAt(), formation_burst(), goto_formation(), goto_location(), Mbuzz_debris(), Mcorkscrew(), Mfish_hook(), Mget_distance(), Mhard_turn(), Mram_missile(), Mroll_over(), Msplit_left(), Msplit_right(), Mturn_n_kick(), Mveer_away(), Mzip_past(), patrol_area(), prevent_collision(), rendezvous_mission(), run_away(), ShipAiState45(), ShipAiState46(), streak_toward(), and tanker_intelligence().
| void approach_half_speed | ( | short | obj | ) |
Definition at line 520 of file logic.c.
References approach_half_speed(), approach_speed(), g_acObjectType, and g_aObjectTypeData.
Referenced by approach_half_speed(), cruise_to_destination(), defend_mission(), destroyer_intelligence(), DrawTextAt(), and goto_location().
| unsigned int approach_min_speed | ( | short | obj | ) |
Definition at line 514 of file logic.c.
References approach_min_speed(), and approach_speed().
Referenced by approach_min_speed(), DrawTextAt(), and goto_formation().
| unsigned int approach_ship_speed | ( | short | obj, |
| short | other ) |
Definition at line 544 of file logic.c.
References approach_ship_speed(), approach_speed(), and g_anShipSpeed.
Referenced by approach_ship_speed(), coming_home(), DrawTextAt(), escort_buddy(), goto_formation(), and imperial_formation().
| unsigned int approach_speed | ( | short | ship, |
| int | targetSpeed ) |
Definition at line 682 of file ship.c.
References alert_flag(), approach_speed(), celerate(), g_anShipSpeed, GetShipAccelerationRate(), MultiplyFixed(), and SignFixed().
Referenced by approach_cruise_speed(), approach_full_speed(), approach_half_speed(), approach_min_speed(), approach_ship_speed(), approach_speed(), approach_zero_speed(), capital_ship_strike_mission(), chase_location(), chase_speed(), control_speed(), DrawTextAt(), and Msit_n_spin().
| unsigned int approach_zero_speed | ( | short | ship | ) |
Definition at line 508 of file logic.c.
References approach_speed(), and approach_zero_speed().
Referenced by accelerate_and_move_object(), approach_zero_speed(), capital_ship_strike_mission(), chase_speed(), DrawTextAt(), Msit_n_fire(), Mstrafe_enemy(), prevent_collision(), and UpdateSavedTorpedoTargetLock().
| short ArcCos | ( | int | value | ) |
Definition at line 116 of file eventmgr.c.
References ArcCos().
Referenced by ArcCos(), get_right_shape(), intelligence_events(), match_roll_orientation(), rectangular_to_spherical(), and set_background_objects_rotation().
| short ArcSin | ( | int | value | ) |
Definition at line 102 of file eventmgr.c.
References ArcSin().
Referenced by ArcSin(), intelligence_events(), and set_ship_rotation_goals().
| short are_alive | ( | short | obj | ) |
Definition at line 194 of file logic.c.
References are_alive(), g_aeShipObjective, SHIP_OBJECTIVE_NOT_ALIVE, and unactive().
Referenced by are_alive(), and DrawTextAt().
| signed char AreCutsceneResourceNamesEqual | ( | const char * | left, |
| const char * | right ) |
Definition at line 46 of file iffload.c.
References AreCutsceneResourceNamesEqual(), and DosStrlen().
Referenced by AreCutsceneResourceNamesEqual(), FindCutsceneResourceSymbolIndex(), and UpdateShipTurretGuns().
| void arrive_from_warp | ( | short | obj | ) |
Definition at line 30 of file jump.c.
References arrive_from_warp(), find_objective(), fix_velocity(), flag_objective(), g_abFlightPath, g_aMissionObjectives, g_anShipSpeed, g_asShipMaximumVelocity, g_asShipMissionType, g_asShipSide, g_asShipTactic, g_cCurrentObjective, g_nCurrentNavPoint, MISSION_TYPE_COME_HOME, MISSION_TYPE_NONE, MISSION_TYPE_PATROL, place_ship_near_player_until_valid(), reset_mission_type(), set_next_destination(), SIDE_IMPERIAL, TACTIC_NONE, and unwarp().
Referenced by arrive_from_warp(), UpdateShipTurretGuns(), and warp_arrival().
| short asteroid_velocity | ( | void | ) |
Definition at line 104 of file fields.c.
References asteroid_velocity(), MinShort(), and RandomBelowOrEqual().
Referenced by asteroid_velocity(), and init_hazard().
| short attacker_in_range | ( | short | obj, |
| unsigned short | range ) |
Definition at line 664 of file logic.c.
References attacker_in_range(), distance_from_object(), g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_asShipSide, g_nTargetRange, g_nTargetShip, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by attacker_in_range(), close_behind(), imperial_formation(), rendezvous_mission(), select_target(), and tanker_intelligence().
Definition at line 100 of file auto.c.
References AddFixedVectors(), advance(), auto_pilot_sequence(), auto_pilot_valid(), auto_position(), check_hazards(), clean_up_cockpit(), ComputeVectorDelta(), copy_frame(), ObjectTypeData::cruiseVelocity, distance_between_points(), distance_from_object(), distance_from_point(), ejection_sequence(), equ_vector(), force_view(), free_view_buffer(), g_27_stViewScratchInfo, g_78_bHighMemoryBuffersSetState, g_abFlightPath, g_acObjectType, g_aeObjectClass, g_aeSpecialManeuver, g_aMissionNavPoints, g_aMissionObjectives, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_anPitchGoal, g_anRollGoal, g_anShipSpeed, g_anYawGoal, g_aObjectTypeData, g_aShipDestination, g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_asShipMaximumVelocity, g_asShipMissionIndex, g_asShipSide, g_bAutopilotSequenceActive, g_cCurrentNavPointIndex, g_cCurrentObjective, g_nArcadeState, g_nAutopilotDebugEnabled, g_nAutopilotFormationShipCount, g_nCockpitDisplayMode, g_nCurrentNavPoint, g_nEjectionSequenceState, g_nPendingEjectionSequenceCount, g_nScreenHeight, g_nScreenWidth, g_nTrainSimActive, g_nYourWingman, g_pActiveHazardField, g_ucPendingEjectionTransition, initialize_view_buffer(), is_team_member(), kilrathi_near(), LogMemoryStateToFile(), MinShort(), NormalizeFixedVector(), OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, player_wingman(), point_at(), MissionObjective::position, ReleaseStaleNavTarget(), remove_object(), report_kilrathi_rout(), ResetCannedSceneRecording(), ResetSoundState(), ScaleFixedVector(), set_speed(), SetViewportRect(), SIDE_IMPERIAL, SPECIAL_MANEUVER_NONE, SPECIAL_MANEUVER_UNKNOWN_9, SubtractFixedVectors(), Update_3Space(), visit_the_cinema(), and zero_vector().
Referenced by ApplyCannedSceneObjectEventRecord(), auto_pilot_sequence(), and HandleSpaceFlightControls().
| 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 auto_position | ( | short | obj, |
| short * | formationSlot ) |
Definition at line 64 of file auto.c.
References auto_position(), g_aShipFormationOffset, g_aShipPosition, g_asObjectCollisionRadius, g_nAutopilotFormationShipCount, g_nYourWingman, MaxShort(), player_wingman(), and position_relative_ijk().
Referenced by auto_pilot_sequence(), and auto_position().
| short BarracksScreen | ( | void | ) |
Definition at line 499 of file titlemnu.c.
References AllocateViewport(), BarracksScreen(), Viewport::bottom, ClearViewport(), DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), FetchDiskPacketRetrying(), free_viewport(), FreePacketAndClear(), g_2_stModalSourceWindow, g_cSecondaryViewBufferColour, g_pConstellationSprite, g_stSecondaryViewBufferBlock, init_constellation(), InitializeConstellationField(), Viewport::left, LoadNamedPacket(), ReportFatalErrorCode(), Viewport::right, RunCampaignSelectionFrame(), SetInputViewport(), SetMenuInputPump(), SetPersonnelMousePosition(), Viewport::top, and WaitForSceneAdvance().
Referenced by BarracksScreen(), and RunGameApplication().
Definition at line 11 of file replay.c.
References BeginInflightReplayHook().
Referenced by BeginInflightReplayHook(), HandleSpaceFlightControls(), and UpdateShipTurretGuns().
| void BeginShipCloak | ( | short | ship | ) |
Definition at line 92 of file fl.c.
References BeginShipCloak(), g_anShipCloakState, g_asObjectScreenX, g_asShipCloakElapsedFrames, g_nCannedSceneMode, PlaySfxWaveFileByNumber(), and recalc_max_velocity().
Referenced by BeginShipCloak(), RestoreCannedSceneObjectState(), and ShipAiState47().
| void BeginShipDestructionSequence | ( | short | obj | ) |
Definition at line 12 of file destroy.c.
References BeginShipDestructionSequence(), explosion_shock_wave(), g_7_asShipBurstStageCountdown, g_acObjectType, g_aMissionShips, g_aObjectTypeData, g_asObjectCounter, g_asObjectScreenX, g_asShipMissionIndex, g_bMissionDeathSequencePending, g_bMissionEjectionPodSpawned, g_nPendingEjectionShip, OBJECT_DATA_INDEX, OBJECT_TYPE_EXPLOSION2, PlaySfxWaveFileByNumber(), send_message(), set_special(), ShipExplosion(), SPECIAL_MANEUVER_UNKNOWN_9, and MissionShipRecord::state.
Referenced by BeginShipDestructionSequence(), DosMemmove(), and ResolveObjectDestruction().
| short being_tailed | ( | short | obj, |
| short | other ) |
Definition at line 321 of file logic.c.
References being_tailed(), g_nFacingToTarget, g_nTargetFacing, g_nTargetRange, and get_facing_range_from_object().
Referenced by being_tailed(), detect_enemy_tail(), DrawTextAt(), and is_ship_tailing_player_target().
| int BlitRasterClip | ( | RasterClip * | source, |
| int | sourceX, | ||
| int | sourceY, | ||
| RasterClip * | destination, | ||
| int | destinationX, | ||
| int | destinationY, | ||
| unsigned int | colour ) |
References BlitRasterClip().
Referenced by BlitRasterClip(), and CopyViewportContents().
| int BlitRawFrame | ( | RasterClip * | clip, |
| int | x, | ||
| int | y, | ||
| unsigned char * | shape, | ||
| int | frame, | ||
| unsigned char * | translation ) |
References BlitRawFrame().
Referenced by BlitRawFrame().
| int BlitRawScanline | ( | RasterClip * | clip, |
| int | y, | ||
| const unsigned char * | pixels, | ||
| int | width ) |
References BlitRawScanline().
Referenced by BlitRawScanline().
| void BlitSelectedRawFrames | ( | RasterClip * | clip, |
| int | x, | ||
| int | y, | ||
| unsigned char * | shape, | ||
| const unsigned char * | frames, | ||
| unsigned char * | translation ) |
References BlitSelectedRawFrames().
Referenced by BlitSelectedRawFrames().
| void BlitWipeRadialBands | ( | Viewport * | source, |
| Viewport * | destination, | ||
| short * | trailingEdges, | ||
| short * | leadingEdges ) |
Definition at line 1261 of file wipe.c.
References BlitWipeRadialBands(), Viewport::bottom, Viewport::left, Viewport::pixels, Viewport::right, Viewport::rowOffsets, and Viewport::top.
Referenced by AdvanceViewportWipe(), BlitWipeRadialBands(), CollectRasterClipColours(), and FinishViewportWipe().
| short borrow_dust | ( | void | ) |
Definition at line 190 of file ship.c.
References borrow_dust(), g_acObjectOwner, g_aeObjectClass, g_asObjectScreenX, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_DEBRIS, OBJECT_CLASS_DUST, OBJECT_CLASS_MINE, and OBJECT_CLASS_PROJECTILE.
Referenced by borrow_dust(), DrawTextAt(), and new_object().
Definition at line 968 of file nav.c.
References AllocateViewport(), BriefingMap_DisplayMap(), BriefingMap_LoadShapes(), DrawNavLocationReadout(), free_viewport(), g_101_stScrViewInfo, g_36_apTextGlyphs, g_cSecondaryViewBufferColour, g_pNavLocationText, g_pNavMapShape, g_stSecondaryViewBufferBlock, ReleasePacketHandle(), ReleasePacketSlot(), and Viewport::top.
Referenced by BriefingMap_DisplayMap(), and UpdateMap().
Definition at line 953 of file nav.c.
References AllocateViewport(), BriefingMap_LoadShapes(), FetchDiskPacketRetrying(), g_cMissionObjectiveCount, g_cSecondaryViewBufferColour, g_pNavMapShape, g_stSecondaryViewBufferBlock, LocateMobileObjective(), ReportOutOfMemoryAndExit(), and SetScreenClipRect().
Referenced by BriefingMap_DisplayMap(), BriefingMap_LoadShapes(), and InflightComputer().
Definition at line 193 of file nav.c.
References Build_objective_list(), MissionObjectiveSource::description, MissionObjective::displayName, MissionObjective::field_8, MissionObjective::flags, g_69_aMissionObjectiveSources, g_abFlightPath, g_aMissionNavPoints, g_aMissionObjectives, g_aMissionShips, g_cCurrentNavPointIndex, g_cCurrentObjective, g_cMissionObjectiveCount, MissionObjective::index, MissionObjectiveSource::index, MissionObjective::name, nav_getxy(), MissionNavPoint::position, MissionObjective::position, RefreshObjectiveShipNavPoints(), set_new_objective(), set_sphere_point(), SetNavMapCoordinateScaling(), MissionObjective::type, MissionObjectiveSource::type, FixedVector::x, and FixedVector::z.
Referenced by Build_objective_list(), prepare_mission(), and UpdateMap().
| void build_squad_list | ( | short | leader | ) |
Definition at line 370 of file logic.c.
References build_squad_list(), g_acShipList, and g_asShipWingLeader.
Referenced by build_squad_list(), DrawTextAt(), and init_formation_burst().
| short build_target_list | ( | short | obj, |
| short | range ) |
Definition at line 728 of file logic.c.
References build_target_list(), distance_from_object(), g_acShipList, g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_asObjectType, g_asShipListRange, g_asShipSide, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by build_target_list(), close_behind(), and fire_turrets().
| 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 199 of file comm.c.
References any_enemy(), BuildCommunicationCommandMenu(), CloseCommChoiceMenu(), g_13_stMissionHeaderBlock, g_1_nEnemyCommCommandBase, g_4_szCommMenuHeadingStore, g_6_nHomeOperationShipIndexValue, g_acObjectType, g_acShipPortrait, g_acShipTarget, g_aeObjectClass, g_aeShipObjective, g_aObjectTypeData, g_apShipMissionRecord, g_asObjectType, g_asShipIdentified, g_asShipMissionIndex, g_asShipMissionType, g_asShipSide, g_bEjectionAwaitingCommCommand, g_bLandingCommRequestPending, g_bRadioSilence, g_cCommMenuRecipient, g_nAutoEngageTimer, g_nCommMenuChoiceCount, g_nCommMenuReuseMode, g_nEnemyCommPilotIndex, g_nEnemyTauntCommandBase, g_nFacingToTarget, g_nTargetFacing, g_nTargetRange, g_nYourWingman, g_ucPendingEjectionTransition, get_facing_range_from_object(), have_target(), IsCommChoiceMenuOpen(), IsCommMenuIdle(), MISSION_TYPE_CANNED_SEQUENCE, OBJECT_CLASS_SHIP, OBJECT_TYPE_DEBRIS_GLASS, OBJECTIVE_HOLD_FORMATION, OpenCommMenuForTarget(), ResetCommMenuChoices(), SendCommMenuChoice(), SIDE_IMPERIAL, SIDE_KILRATHI, and MissionHeader::wingmanMissionShip.
Referenced by BuildCommunicationCommandMenu(), RefreshCommunicationMenu(), and UpdateShipTurretGuns().
Definition at line 137 of file comm.c.
References any_enemy(), AppendCommMenuChoice(), BuildCommunicationRecipientMenu(), g_6_nHomeOperationShipIndexValue, g_acShipTarget, g_aeObjectClass, g_apShipMissionRecord, g_asObjectType, g_asShipIdentified, g_asShipMissionIndex, g_asShipMissionType, g_asShipSide, g_bEjectionAwaitingCommCommand, g_nCommMenuReuseMode, g_nYourWingman, g_ucPendingEjectionTransition, have_target(), MISSION_TYPE_CANNED_SEQUENCE, OBJECT_CLASS_SHIP, OBJECT_TYPE_DEBRIS_GLASS, OpenCommMenuForTarget(), ResetCommMenuChoices(), SelectCommRecipient(), SendCommMenuChoice(), SIDE_IMPERIAL, SIDE_KILRATHI, and wingman_dead().
Referenced by BuildCommunicationRecipientMenu(), RefreshCommunicationMenu(), and UpdateShipTurretGuns().
| void BuildMap | ( | short | showPlayer | ) |
Definition at line 671 of file nav.c.
References achieved(), AddUniqueObjectiveNavLabel(), TextContext::alignment, BuildMap(), PilotProfile::callsign, DrawNavCrossMarker(), DrawNavHazardMarker(), DrawNavMapBriefingBeacons(), DrawNavMapLabels(), DrawNavPlayerMarker(), DrawNavRectangleMarker(), DrawNavSquareMarker(), DrawNavTriangleMarker(), DrawSpriteDefault(), DrawViewportPixel(), g_1_stElapsedCampaignDate, g_5_stNavLabelTextContextInfo, g_6_szDefaultTextBufferText, g_aMissionNavPoints, g_aMissionObjectives, g_aMissionShips, g_aNavMapObjectiveStyles, g_aShipPosition, g_awNavObjectiveLabelIndex, g_bPrimaryViewBufferColour, g_cCurrentObjective, g_cMissionObjectiveCount, g_cRedColour, g_cYellowColour, g_nCurStellarSystem, g_nNavMapLabelCount, g_pNavMapShape, g_stCurrentPilotProfile, g_stSecondaryViewBufferBlock, g_ucAsteroidNavMarkerColour, g_ucPlayerNavLabelColour, g_ucPrimaryTextColour, hidden_objective(), InitializeTextContextFromFont(), IsObjectiveInDisplayedSystem(), NavMapObjectiveStyle::labelColour, NavMapObjectiveStyle::markerColour, NavMapObjectiveStyle::markerSize, NavMapObjectiveStyle::markerType, MissionNavPoint::missionShips, mobile_objective(), nav_getxy(), objective_name(), MissionShipRecord::objectType, PlaceNavMapLabel(), MissionNavPoint::position, MissionShipRecord::position, ResetNavMapLabels(), ResetNavMapReservedAreas(), ScaleNavMapCoordinates(), SetScale(), SetScreenClipRect(), SetTextContext(), MissionShipRecord::speed, TextContext::text, MissionObjective::type, NavMapObjectiveStyle::unvisitedColour, TextContext::viewport, visited(), and CampaignDate::year.
Referenced by BuildMap(), and DrawNavLocationReadout().
Definition at line 1643 of file eventmgr.c.
References BuildObjectDepthOrder(), g_11_anPlacedObjectDepths, g_56_anStoredObjectSortedIndicesData, g_asObjectDistance, g_asObjectScreenX, and SPACE_OBJECT_COUNT.
Referenced by BuildObjectDepthOrder(), DosMemmove(), and DrawSpaceSceneFrame().
| void CachePaletteEntryFromWords | ( | short | index, |
| unsigned short * | rgb ) |
Definition at line 812 of file dib.cpp.
References CachePaletteEntryFromWords(), g_3_abColourShadow, and g_ausPaletteWords.
Referenced by CachePaletteEntryFromWords(), and UpdateShipTurretGuns().
| short CalcRectangleArea | ( | const Viewport * | viewport | ) |
Definition at line 23 of file vpalloc.c.
References Viewport::bottom, CalcRectangleArea(), g_nSpacePaletteFadeMode, Viewport::left, LogDisplayMode(), Viewport::right, and Viewport::top.
Referenced by CalcRectangleArea(), and UpdateShipTurretGuns().
| short calculate_damage_level | ( | void | ) |
Definition at line 1890 of file main.c.
References ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, calculate_damage_level(), ObjectTypeData::damageCapacity, g_aasShipArmor, g_acObjectType, g_acShipDamage, g_aObjectTypeData, and g_asObjectDamage.
Referenced by calculate_damage_level(), ejection_sequence(), gametrack(), RunCampaignGameLoop(), StoreMissionResultsInCampaignGlobals(), update_lights(), and UpdateShipTurretGuns().
| void CalculateRoundedRLEFixedProduct | ( | int | left, |
| int | right, | ||
| int * | result ) |
References CalculateRoundedRLEFixedProduct().
Referenced by CalculateRoundedRLEFixedProduct().
| void CalibrateJoystickInteractive | ( | ) |
Definition at line 10 of file titlemnu.c.
References TextContext::alignment, CalibrateJoystickInteractive(), DIBslamReal(), g_12_nControllerLeftScaleValue, g_12_nJoystickDownScaleWord, g_12_nJoystickMinimumXNumber, g_1_nJoystickCentreXNumber, g_1_nJsRightScaleWord, g_2_nJoystickCentreY, g_2_nJsMinimumY, g_36_apTextGlyphs, g_3_nControllerHorizontalRange, g_3_stDefaultStringContext, g_4_nControllerFailureValue, g_4_nJoystickMaximumXValue, g_59_nJoystickUpScaleWord, g_8_nActiveInputDeviceWord, g_bPrimaryViewBufferColour, g_cSecondaryViewBufferColour, g_nJoystickMaximumY, g_nJoystickVerticalRangeNumber, InitializeTextContextFromFont(), LoadJoystickCalibrationFile(), ReleaseModalTextPanel(), ReleaseTextFont(), SampleJoystickDevice(), ShowModalTextPanel(), WaitForJoystickButtonPress(), WaitForJoystickButtonRelease(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by CalibrateJoystickInteractive(), HandleSpaceFlightControls(), and PollSceneHotspotInput().
| void call_enemy | ( | short | obj | ) |
Definition at line 1056 of file ship.c.
References call_enemy(), g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_asShipSide, OBJECT_CLASS_SHIP, RandomBelow(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by call_enemy(), DrawTextAt(), and internal_damage().
| short CanOpenCommMenu | ( | void | ) |
Definition at line 124 of file comm.c.
References CanOpenCommMenu(), have_target(), and wingman_dead().
Referenced by CanOpenCommMenu(), HandleCommunicationMenuRequest(), and UpdateShipTurretGuns().
| short CanPlayerLand | ( | void | ) |
Definition at line 129 of file orders.c.
References achieved(), CanPlayerLand(), g_36_cPilotKillCountValue, g_aeObjectClass, g_aMissionObjectives, g_asShipSide, g_cMissionObjectiveCount, OBJECT_CLASS_SHIP, SIDE_KILRATHI, and visited().
Referenced by CanPlayerLand(), request(), and UpdateShipTurretGuns().
| signed char CanSetNewShipTurnGoal | ( | short | ship | ) |
Definition at line 303 of file logic.c.
References CanSetNewShipTurnGoal(), g_anPitchGoal, g_anRollGoal, g_anYawGoal, and GetAdaptiveTurnRate().
Referenced by CanSetNewShipTurnGoal(), chase_location(), cruise_home(), cruise_to_destination(), defend_mission(), DrawTextAt(), escort_buddy(), formation_break(), formation_burst(), goto_formation(), goto_location(), Mbuzz_debris(), Mget_distance(), Mline_up_drop(), Mram_missile(), Msit_n_fire(), Mtail_fire(), Mtarget_missile(), Mwabble(), Mzip_past(), orbit_sphere(), patrol_area(), prepare_for_jump(), prevent_collision(), rendezvous_mission(), return_to_buddy(), streak_toward(), and tanker_intelligence().
| short CanShipWeaponDamageTarget | ( | short | ship, |
| short | target ) |
Definition at line 87 of file ship.c.
References CanShipWeaponDamageTarget(), g_aasShipShield, g_aeObjectClass, and OBJECT_CLASS_SHIP.
Referenced by CanShipWeaponDamageTarget(), DrawTextAt(), fire(), inflict_damage(), request(), target_locking(), and target_valid().
| void capital_ship_intelligence | ( | short | obj | ) |
Definition at line 1292 of file brains.c.
References approach_cruise_speed(), approach_full_speed(), capital_ship_intelligence(), capital_ship_strike_mission(), coming_home(), destroyer_intelligence(), fire_turrets(), g_acShipTarget, g_asObjectType, g_asShipMissionType, g_asShipSide, g_asShipTactic, g_nTargetShip, launch_carrier_fighter(), MISSION_TYPE_COME_HOME, MISSION_TYPE_GOTO_WARP, MISSION_TYPE_NONE, MISSION_TYPE_ROUT, MISSION_TYPE_STRIKE, MISSION_TYPE_WARP_ARRIVE, reach_warp(), regulate_turn(), reset_tactic(), run_away(), scan_for_enemy(), select_target(), SIDE_KILRATHI, stationary_intelligence(), TACTIC_NONE, TACTIC_SELF_DEFENSE, tanker_intelligence(), unactive(), and warp_arrival().
Referenced by capital_ship_intelligence(), and object_intelligence().
| void capital_ship_strike_mission | ( | short | obj | ) |
Definition at line 1025 of file brains.c.
References AddFixedVectors(), approach_speed(), approach_zero_speed(), capital_ship_strike_mission(), ComputeVectorDelta(), ObjectTypeData::damageCapacity, destroyer_intelligence(), distance_from_object(), find_ship_index(), fire_turrets(), FixedToShortSaturating(), g_2_asFlakCooldownTable, g_acObjectOwner, g_acObjectType, g_acShipSequence, g_acShipTarget, g_aeObjectClass, g_aObjectTypeData, g_aShipPosition, g_aShipVelocity, g_aShipWeapons, g_asObjectCollisionRadius, g_asObjectCounter, g_asObjectDamage, g_asShipMaximumVelocity, g_asShipMissionParameter, g_asShipSide, g_asSpikeriCooldown, g_asSpikeriLaunchCountdown, g_nFacingToTarget, g_vToTarget, get_facing_range_from_object(), ObjectTypeData::lifetime, ObjectTypeData::maximumVelocity, new_object(), NormalizeFixedVector(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, PlaySfxWaveFileByNumber(), point_capital_ship_at_object(), point_ship_at_object(), RandomBelowOrEqual(), RandomInRange(), RecordCannedSceneObjectEvent(), ScaleFixedVector(), send_at_point(), SpawnCapitalFlakProjectile(), ShipWeaponSlot::type, unactive(), Vector_magnitude(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by capital_ship_intelligence(), and capital_ship_strike_mission().
Definition at line 1063 of file eventmgr.c.
References CaptureMouseCursorBackground(), CaptureSpriteBackground(), QueuedMouseState::frame, g_101_stScrViewInfo, g_10_nSavedPointerY, g_138_nCursorDirtyRightValue, g_146_nInputCursorDirtyTop, g_148_nPointerDirtyLeft, g_15_nPointerDirtyBottom, g_16_stEventQueuePointerData, g_26_bPointerDirtyValue, g_4_nCapturedInputCursorX, g_6_bCurrentInputCursorBackgroundCapturedState, g_abInputCursorBehind, g_nMouseCursorDrawDepth, QueuedMouseState::shape, QueuedMouseState::viewport, QueuedMouseState::x, and QueuedMouseState::y.
Referenced by CaptureMouseCursorBackground(), DIBslamReal(), DosMemmove(), and RefreshMouseCursorDisplay().
| void CaptureSpriteBackground | ( | Viewport * | viewport, |
| unsigned char * | background, | ||
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 705 of file gr.c.
References Viewport::bottom, CaptureSpriteBackground(), HasValidShapeAllocationSignature(), Viewport::left, Viewport::pixels, Viewport::right, Viewport::rowOffsets, Viewport::top, and void().
Referenced by CaptureMouseCursorBackground(), CaptureSpriteBackground(), cockpit_explosion(), CollectRasterClipColours(), draw_3d_scanner(), EnableMouseCursorDrawing(), fire_computer_graphic_missile(), overlay_head_up_display(), RestoreTransientCockpitGraphics(), ResumeMouseCursorHook(), ShowHudTextLine(), UpdateDamageDisplay(), and UpdateTargetLeadIndicator().
| void celerate | ( | short | ship, |
| int | delta ) |
Definition at line 668 of file ship.c.
References celerate(), g_anShipSpeed, and g_asShipMaximumVelocity.
Referenced by accelerate(), approach_speed(), celerate(), control_speed(), DrawTextAt(), and recalc_max_velocity().
Definition at line 1035 of file nav.c.
References CentreMouseOnCurrentNavObjective(), g_abFlightPath, g_aMissionObjectives, g_cCurrentNavPointIndex, ScaleNavMapCoordinates(), and SetPersonnelMousePosition().
Referenced by CentreMouseOnCurrentNavObjective(), and InflightComputer().
| void chaff_intelligence | ( | short | obj | ) |
Definition at line 1523 of file brains.c.
References chaff_intelligence(), distance_from_object(), explode(), g_acShipTarget, g_aeObjectClass, g_asObjectType, OBJECT_CLASS_MISSILE, OBJECT_DATA_CHAFF_POD, OBJECT_DATA_JAVELIN_HEAT_SEEKING_MISSILE, OBJECT_DATA_PILUM_FRIEND_OR_FOE_MISSILE, and OBJECT_DATA_SPICULUM_IMAGE_RECOGNITION_MISSILE.
Referenced by chaff_intelligence(), and object_intelligence().
| unsigned int change_mission_type | ( | short | obj, |
| short | missionType ) |
Definition at line 436 of file logic.c.
References change_mission_type(), g_aeShipObjective, g_asShipMissionType, OBJECTIVE_ENGAGE_ENEMY, and reset_mission_type().
Referenced by change_mission_type(), defend_mission(), DrawTextAt(), escort_mission(), kilrathi_wingman(), rendezvous_mission(), and strike_mission().
| int changetrack | ( | void | ) |
Definition at line 233 of file music.c.
References changetrack(), g_aMissionObjectives, g_asShipMissionType, g_cCurrentObjective, MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, MISSION_TYPE_PATROL, MISSION_TYPE_RENDEZVOUS, MISSION_TYPE_STRIKE, OBJECTIVE_HOME_BASE, and triumph().
Referenced by changetrack(), gametrack(), and UpdateShipTurretGuns().
| void chase_location | ( | short | obj, |
| const FixedVector * | destination, | ||
| short | reference ) |
Definition at line 278 of file smart.c.
References AddFixedVectors(), approach_speed(), CanSetNewShipTurnGoal(), chase_location(), control_speed(), copy_frame(), FixedToShortSaturating(), g_anRollGoal, g_anShipSpeed, g_aShipForwardVector, g_nFacingToTarget, g_nTargetRange, g_vToTarget, get_facing_range_from_point(), match_roll_orientation(), MaxShort(), point_ship(), ScaleFixedVector(), steady_object(), and trim_goals().
Referenced by chase_location(), and UpdateShipTurretGuns().
| void chase_speed | ( | short | obj, |
| short | range ) |
Definition at line 112 of file fl.c.
References approach_full_speed(), approach_speed(), approach_zero_speed(), chase_speed(), fire_afterburner(), g_acShipTarget, g_anShipSpeed, and g_nTargetRange.
Referenced by chase_speed(), intelligence_events(), and Mtail_fire().
Definition at line 1239 of file ship.c.
References check_computer_damage(), and damage_your_component().
Referenced by check_computer_damage(), DrawTextAt(), and your_internal_damage().
| short check_destroy_target | ( | short | obj | ) |
Definition at line 143 of file brains.c.
References check_destroy_target(), check_engage_target(), evaluate_damage(), find_ship_index(), g_acShipTarget, g_aeObjectClass, g_asPilotLevel, g_asShipMissionParameter, g_asShipSide, gone_ship(), MaxShort(), MinShort(), OBJECT_CLASS_FUTURION, RandomBelow(), and target_valid().
Referenced by check_destroy_target(), imperial_wingman(), and strike_mission().
| short check_engage_target | ( | short | obj | ) |
Definition at line 131 of file brains.c.
References check_engage_target(), detect_enemy_tail(), g_acShipTarget, select_target(), and target_valid().
Referenced by check_destroy_target(), check_engage_target(), defend_mission(), escort_mission(), imperial_wingman(), kilrathi_patrol(), kilrathi_wingman(), and rendezvous_mission().
| short check_for_collision | ( | short | obj | ) |
Definition at line 769 of file geom.c.
References check_for_collision(), ComputeVectorDelta(), g_aeObjectClass, g_aShipPosition, g_asObjectCollisionRadius, g_vCollisionDelta, IsVectorWithinRange(), OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, and SPACE_LAST_MOVING_OBJECT.
Referenced by check_for_collision(), and object_collision().
| void check_for_lost_control | ( | short | obj | ) |
Definition at line 629 of file ship.c.
References check_for_lost_control(), g_acObjectType, g_aeObjectClass, g_aeSpecialManeuver, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_aObjectTypeData, g_asObjectCounter, g_asShipSide, GetAdaptiveTurnRate(), MaxShort(), MinShort(), OBJECT_CLASS_SHIP, RandomBelowOrEqual(), set_special(), skill_check(), SPECIAL_MANEUVER_BLOWING_UP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by apply_force_to_object(), check_for_lost_control(), DrawTextAt(), and rotational_acceleration().
| void check_futurion | ( | short | i | ) |
Definition at line 68 of file mission.c.
References check_futurion(), g_aeObjectClass, g_asObjectCounter, g_asShipMissionType, MISSION_TYPE_WARP_ARRIVE, and OBJECT_CLASS_FUTURION.
Referenced by check_futurion(), and init_ship().
| void check_goal | ( | short | obj | ) |
Definition at line 647 of file brains.c.
References check_goal(), g_asShipMissionParameter, gone_ship(), MISSION_TYPE_PATROL, MISSION_TYPE_ROUT, and reset_mission_type().
Referenced by check_goal(), and strike_mission().
Definition at line 428 of file fields.c.
References check_hazards(), g_aHazardFields, g_aShipPosition, g_bUseEyePositionForHazards, g_nHazardFieldCount, g_pActiveHazardField, near_field(), remove_all_hazards(), and start_hazard_field().
Referenced by auto_pilot_sequence(), check_hazards(), and house_keep().
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 1491 of file ship.c.
References check_next_wave(), flag_objective(), g_aeObjectClass, g_aMissionObjectives, g_asShipSide, g_cMissionObjectiveCount, g_nCurrentNavPoint, g_nEscapedEnemyCount, MissionObjective::index, OBJECT_CLASS_SHIP, SIDE_KILRATHI, and MissionObjective::type.
Referenced by check_next_wave(), DrawTextAt(), and ProcessEnemyWaveCompletion().
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().
Definition at line 801 of file winmain.c.
References CheckAllGuardedAllocations().
Referenced by CheckAllGuardedAllocations(), and Update_3Space().
Definition at line 79 of file taperec.c.
References CheckCannedSceneBufferCapacity(), g_3_nCannedSceneWriteIndex, g_nCannedSceneBufferNearCapacityFlag, g_wHighMemoryBlockBytes, and ReportFatalErrorCode().
Referenced by CheckCannedSceneBufferCapacity(), RecordCannedSceneBriefingCharacter(), RecordCannedSceneObjectEvent(), RecordCannedSceneObjectState(), RecordMusicCommandHook(), and UpdateShipTurretGuns().
Definition at line 1057 of file eventmgr.c.
References CheckCursor().
Referenced by CheckCursor(), and DosMemmove().
| void CheckHeapBlockSignature | ( | unsigned char * | shape | ) |
Definition at line 112 of file gr.c.
References CheckHeapBlockSignature(), exit_squadron(), and IsFreedHeapBlockTracked().
Referenced by CheckHeapBlockSignature(), CollectRasterClipColours(), get_right_shape(), GetShapeFrameCorners(), GetShapeFrameCount(), GetTransformedShapeBounds(), and PrepareShapeRLEData().
Definition at line 24 of file winmain.c.
References CheckLauncherAndConfig(), g_bConfigMemoryOption, g_bConfigQuickModeEnabled, g_bDebugBreakEnabled, g_bPlayerCollisionEnabled, g_bPlayerDamageEnabled, g_bShowFrameRate, g_bSkipCampaignVideo, g_bUseHardwarePalette, g_nDebugFileLoggingEnabled, g_nOriginDevUnlock, and ReadCheaterFlagFromRegistry().
Referenced by CheckLauncherAndConfig(), and WinMain().
| void CheckPoint | ( | short | x, |
| short | y ) |
Definition at line 119 of file nav.c.
References CheckPoint(), g_2_nNavMapMinimumYValue, g_nNavmapMapMaximumY, g_nNavmapMapMinimumX, g_nNavPlotMaxX, MaxShort(), and MinShort().
Referenced by CheckPoint(), IncludeNavMapWorldPoint(), and SetScale().
| 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().
| void child_object | ( | short | hardpoint, |
| short | child, | ||
| short | parent ) |
Definition at line 822 of file geom.c.
References child_object(), g_acObjectOwner, g_aShipPosition, and position_child().
Referenced by child_object(), and fire_weapon().
| short ChooseRandomSignedMagnitude | ( | short | minimum, |
| short | maximum, | ||
| short | allowNegative ) |
Definition at line 253 of file geom.c.
References ChooseRandomSignedMagnitude(), and RandomInRange().
Referenced by ChooseRandomSignedMagnitude(), and MakeRandomVectorFixed().
| void Chosen_communicate_option | ( | short | choice | ) |
Definition at line 378 of file comm.c.
References Chosen_communicate_option(), CloseCommChoiceMenu(), g_abCommMenuChoiceCommand, g_acShipTarget, g_cCommMenuRecipient, g_cPendingCommMenuAction, g_nEnemyTauntCommandBase, g_nYourWingman, PlaySfxWaveFileByNumber(), RefreshCommunicationMenu(), request(), and SelectCommRecipient().
Referenced by Chosen_communicate_option(), HandleSpaceFlightControls(), and UpdateShipTurretGuns().
| void ClampTo30 | ( | short * | p | ) |
Definition at line 1011 of file geom.c.
References ClampTo30().
Referenced by apply_force_to_object(), ClampTo30(), and rotational_acceleration().
| void ClampVectorTo30 | ( | short * | p | ) |
Definition at line 1001 of file geom.c.
References ClampVectorTo30().
Referenced by ClampVectorTo30(), and rotate_object().
Definition at line 121 of file jump.c.
References clean_up_cockpit(), ClearHudGunReadouts(), g_acShipTarget, g_bTargetLockMode, g_nAutoEngageTimer, g_nYourWingman, OBJECTIVE_HOLD_FORMATION, and reset_objective().
Referenced by auto_pilot_sequence(), clean_up_cockpit(), set_up_action_sphere(), and UpdateShipTurretGuns().
Definition at line 11 of file orders.c.
References achieved(), affect_mission_score(), cleanup_objectives(), distance_from_object(), MissionHeader::entryNavPoint, find_ship_index(), flag_objective(), g_13_stMissionHeaderBlock, g_aMissionNavPoints, g_aMissionObjectives, g_aMissionShips, MissionObjective::index, MISSION_TYPE_COME_HOME, MISSION_TYPE_GOTO_WARP, MISSION_TYPE_WARP_ARRIVE, MissionNavPoint::proximityRadius, sighted(), MissionShipRecord::state, visited(), and MissionHeader::wingmanMissionShip.
Referenced by cleanup_objectives(), request(), and UpdateShipTurretGuns().
| void clear_alert | ( | short | obj | ) |
Definition at line 37 of file logic.c.
References clear_alert(), g_acShipAlertSource, g_anShipAlertFlags, and g_asShipAlertCountdown.
Referenced by clear_alert(), DrawTextAt(), init_intelligence_data(), prevent_collision(), remove_object(), and try2end_collision_alert().
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().
| unsigned int clear_view_buffer | ( | void | ) |
Definition at line 277 of file main.c.
References clear_view_buffer(), ClearViewport(), g_27_stViewScratchInfo, and g_cPrimaryViewBufferColour.
Referenced by clear_view_buffer(), close_behind(), death_sequence(), and Draw_3Space_Frame().
Definition at line 220 of file gameflow.c.
References ClearActiveCutscenePixelAlias(), g_13_pActiveCutscenePixelsAddress, g_cCutsceneVideoMode, g_stSecondaryViewBufferBlock, Viewport::pixels, and Viewport::rowOffsets.
Referenced by ClearActiveCutscenePixelAlias(), DosMemmove(), and RunLoadedCutscene().
Definition at line 1224 of file gameflow.c.
References TextContext::backgroundColour, ClearCutsceneTextViewport(), ClearCutsceneViewport(), TextContext::cursorX, TextContext::cursorY, g_29_pCurrentTextContext, Viewport::left, Viewport::top, and TextContext::viewport.
Referenced by ClearCutsceneTextViewport(), DosMemmove(), ExecuteCutsceneSequence(), RunCutsceneScript(), and UpdateMap().
Definition at line 1195 of file gameflow.c.
References ClearCutsceneViewport(), ClearViewport(), g_abCutscenePaletteTranslation, and g_cCutsceneVideoMode.
Referenced by ClearCutsceneTextViewport(), ClearCutsceneViewport(), DosMemmove(), RestoreCutsceneTextBacking(), RunCutsceneScript(), RunLoadedCutscene(), and UpdateMap().
Definition at line 76 of file console.cpp.
References DebugOverlayConsole::Clear(), ClearDebugOverlay(), and g_pDiagnosticOverlay.
Referenced by ClearDebugOverlay(), and close_behind().
Definition at line 82 of file console.cpp.
References ClearDebugPauseFlags(), DebugOverlayConsole::ClearPauseFlags(), and g_pDiagnosticOverlay.
Referenced by ClearDebugPauseFlags(), ClearInputKeyState(), ClearInputKeyStatePreservingModifiers(), close_behind(), DrawTextString(), LogDisplayMode(), PacketLoad(), RunTitleMenuInputLoop(), RunTitleScreen(), SetInputKeyState(), and ShowOnScreenMessage().
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 1606 of file eventmgr.c.
References ClearDebugPauseFlags(), ClearInputKeyState(), and g_77_abKeyboardEventStates.
Referenced by ClearInputKeyState(), and DosMemmove().
Definition at line 1593 of file eventmgr.c.
References ClearDebugPauseFlags(), ClearInputKeyStatePreservingModifiers(), and g_77_abKeyboardEventStates.
Referenced by ClearInputKeyStatePreservingModifiers(), DosMemmove(), and FlushBiosKeys().
Definition at line 2100 of file eventmgr.c.
References ClearInputPump(), and ConfigureInputPump().
Referenced by ClearInputPump(), DosMemmove(), InitializeSpaceFlightInput(), PromptToContinueCampaign(), and RunCampaignGameLoop().
Definition at line 11 of file memapi.c.
References ClearMemoryHeaps(), and TimerResetHook().
Referenced by ClearMemoryHeaps(), and DosMemmove().
Definition at line 924 of file turret.c.
References ClearSavedTorpedoTargetLock(), g_bSavedPlayerTarget, and g_bSavedTargetLockAcquired.
Referenced by ClearSavedTorpedoTargetLock(), DrawTextAt(), and UpdateSavedTorpedoTargetLock().
Definition at line 718 of file turret.c.
References ClearTargetCameraView(), FlushSoundEffectsAndLog(), g_acShipTarget, g_aShipVelocity, g_nFleetOverviewPitchVelocity, g_nFleetOverviewYawVelocity, g_nTargetCameraEffectObjectA, g_nTargetCameraEffectObjectB, g_nTargetCameraFrame, g_nTargetCameraObject, g_nTargetCameraSoundHandle, g_nTargetCameraZoom, remove_object(), and zero_vector().
Referenced by ClearTargetCameraView(), DrawTextAt(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), new_view(), ToggleTargetCameraTracking(), UpdateTargetCameraObject(), and UpdateTargetCameraTracking().
| void ClearTextInputCharacter | ( | char | character | ) |
Definition at line 84 of file optmenu.c.
References TextContext::backgroundColour, Viewport::bottom, ClearTextInputCharacter(), ClearViewport(), TextContext::cursorX, TextContext::cursorY, TextContext::font, g_29_pCurrentTextContext, GetFontCharWidth(), Viewport::left, ReadWord(), Viewport::right, Viewport::top, and TextContext::viewport.
Referenced by ClearTextInputCharacter(), close_behind(), and EraseCharacterAfterTextCursor().
Definition at line 11 of file midscene.c.
References ClearTransientObjectsForEjection(), FetchDiskPacketRetrying(), g_aeObjectClass, g_aObjectTypeData, g_apObjectShape, g_asObjectType, OBJECT_CLASS_DEBRIS, OBJECT_CLASS_EXPLOSION, OBJECT_CLASS_FUTURION, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_DATA_EJECTION_POD, remove_object(), ObjectTypeData::shapeSet, and SPACE_OBJECT_COUNT.
Referenced by ClearTransientObjectsForEjection(), and ejection_sequence().
Definition at line 1027 of file gr.c.
References ClearViewport(), ClipViewportToScreen(), FillRasterClip(), g_stScreenLimits, Viewport::left, Viewport::pixels, and Viewport::rowOffsets.
Referenced by AllocateViewport(), ApplyCannedSceneObjectEventRecord(), BarracksScreen(), clear_view_buffer(), ClearCutsceneViewport(), ClearTextInputCharacter(), ClearViewport(), CollectRasterClipColours(), CompleteStarSystemJump(), death_sequence(), DrawCinematicMemoryStatus(), DrawNavLocationReadout(), ejection_sequence(), EraseCockpitReadoutRegion(), EraseLastTextInputCharacter(), EraseTextContextBackground(), house_keep_objects(), InflightComputer(), initialize_cockpit(), InitializeConversationViewport(), InitializeDIBScreenViewport(), PromptToContinueCampaign(), ReadTextInput(), RenderSpaceViewFrame(), RunCampaignChalkboardMenu(), RunCampaignScript(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), set_new_vdu(), Title_Sequence(), unwarp(), UpdateSpacePaletteFade(), and warp().
Definition at line 346 of file gr.c.
References ClipViewportToScreen(), g_1_stRasterBitmap, g_stScreenLimits, and ValidateViewportBounds().
Referenced by ClearViewport(), ClipViewportToScreen(), CollectRasterClipColours(), DrawFilledViewportRect(), DrawSpriteTransformed(), DrawViewportBorder(), DrawViewportEllipse(), DrawViewportEllipseShadow(), DrawViewportLine(), DrawViewportPixel(), FillViewportEllipse(), and GetViewportPixel().
| short close_behind | ( | ) |
References abandoned(), AdjustSpaceFramePeriod(), AllocateApplicationScratchBuffer(), any_enemy(), attacker_in_range(), build_target_list(), clear_view_buffer(), ClearDebugOverlay(), ClearDebugPauseFlags(), ClearTextInputCharacter(), close_behind(), CreateDebugOverlayConsole(), dead_ship(), DestroyGlobalDebugOverlayConsole(), DisableMouseCursorDrawing(), DrawPersonnelFileSlot(), DrawPersonnelMenuBackdrop(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawTextInputCursor(), DrawTransferredPilotRow(), dump_buffer_to_screen(), EnableMouseCursorDrawing(), engage(), EraseCharacterAfterTextCursor(), EraseLastTextInputCharacter(), EraseTextContextBackground(), evaluate_damage(), exit_squadron(), FadeFlightPaletteEntry(), find_ratio(), find_ships_sphere(), fire_players_lasers(), FireTargetCameraGuns(), free_3Space(), free_3Space_objects(), free_cockpit(), free_constellation(), free_inflight_music(), free_view_buffer(), FreeConstellationObject(), FreeShapeSet(), get_first_follow_point(), get_follow_point(), get_player_input(), GetAvailableMainMemory(), GetInputCursorShape(), GetLargestMainMemoryBlock(), GetLegacyGameDataPath(), gone_ship(), HandleFleetOverviewInput(), has_opposing_ship(), HighlightTransferredPilot(), hostile_sphere(), house_keep(), in_danger(), inherit_leader(), inherit_leader_mission(), init_3Space_objects(), init_constellation(), init_inflight_music(), init_vdus(), initialize_cockpit(), initialize_view_buffer(), InitializeCockpitResources(), InitializeConstellationObject(), InitializeConversationText(), InitializeConversationViewport(), launch_carrier_fighter(), load_common_3Space_objects(), LoadPacketResourceList(), LoadSelectedPilotCampaign(), LoadShapeSet(), locate_ship(), LocateLegacySaveGame(), LogMemoryUsage(), main(), MapCutsceneSoundEffectNumber(), OffsetSceneHotspotBounds(), OutputDebugPrintf(), PersonnelDriveHook(), player_input(), players_flight_dynamics(), PollPersonnelMenuInput(), PreloadMusicTrack(), process_player_input(), PumpMessagesDuringWait(), ReadPersonnelTextField(), ReadTextInput(), RefreshMemoryStatusOverlay(), RefreshObjectiveShipNavPoints(), ReleaseApplicationScratchBuffer(), ReleaseMusicTrack(), remove_all_3d_objects(), ReportFatalErrorCode(), ResetCockpitPaletteEntries(), ResetDebugOverlay(), ResetScreenClipToFullHeight(), RestorePersonnelMenuBackground(), RunGameApplication(), RunPilotDatabaseMenu(), scan_for_enemy(), SelectLegacyGameSource(), SelectNextExternalViewObject(), SelectTransferredPilot(), SetDebugCursorPosition(), SetDebugTextPosition(), SetPersonnelMousePosition(), ships_within_range(), ShowMemoryStatusDebug(), ShowNoTransferablePilots(), skill_check(), SplitGameClockTicksForNav(), SystemDebugPrintf(), TakeDebugStepFlag(), target_valid(), target_within_range(), TriggerPlayerHitPaletteFlash(), triumph(), Update_3Space(), UpdateFleetOverviewCameraRotation(), UpdateSpacePaletteFade(), and WaitForQueuedInputPress().
Referenced by close_behind(), close_behind(), and Mzip_past().
Definition at line 105 of file comm.c.
References CloseCommChoiceMenu(), get_mode(), and pop_mode().
Referenced by BuildCommunicationCommandMenu(), Chosen_communicate_option(), CloseCommChoiceMenu(), HandleCommunicationMenuRequest(), HandleSpaceFlightControls(), and UpdateShipTurretGuns().
| void CloseDataFile | ( | unsigned short | fd | ) |
Definition at line 22 of file datafile.c.
References CloseDataFile(), and g_nPacketError.
Referenced by CloseDataFile(), CloseDataFileByHandle(), FlushCannedSceneRecordingBuffer(), LoadCannedScenePlaybackBuffer(), LoadSelectedPilotCampaign(), LoadWholeDataFile(), OpenDiskDataFile(), OpenPacketSection(), ReadTapeInitialState(), SaveAndFreeTemporaryCampaignGlobals(), and WriteTapeInitialState().
| void CloseDataFileByHandle | ( | unsigned short * | handle | ) |
Definition at line 72 of file packet.c.
References CloseDataFile(), and CloseDataFileByHandle().
Referenced by CloseDataFileByHandle(), GetPacketSize(), PacketLoad(), and UpdateShipTurretGuns().
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().
| short CollectActivePaletteIndices | ( | Viewport * | viewport, |
| unsigned char * | indices, | ||
| short | capacity ) |
Definition at line 11 of file usedcols.c.
References AllocateTaggedMemory(), CollectActivePaletteIndices(), EstablishColors(), and ReleasePacketHandle().
Referenced by CollectActivePaletteIndices(), FadeViewportPaletteToColour(), and PanToScreen().
| int CollectRasterClipColours | ( | RasterClip * | clip, |
| unsigned int * | colours ) |
References __copyline(), __wipeline(), AdvanceViewportWipe(), BlitWipeRadialBands(), CaptureSpriteBackground(), CheckHeapBlockSignature(), ClearViewport(), ClipViewportToScreen(), CollectRasterClipColours(), CopyViewportContents(), CopyViewportRuns(), DecodeShapeFrame(), DestroyAudioStreamer(), DrawFilledViewportRect(), DrawFontGlyph(), DrawShapeFrameScaled(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), DrawSpriteDefault(), DrawSpriteScaled(), DrawSpriteTransformed(), DrawViewportBorder(), DrawViewportEllipse(), DrawViewportEllipseShadow(), DrawViewportLine(), DrawViewportPixel(), EstablishColors(), FillPolygon(), FillViewportEllipse(), FinishViewportWipe(), fizzle_fade(), ForceStreamerTrigger(), GenerateWipeRadialEdges(), GetMusicStreamVolume(), GetPaletteEntry(), GetPreparedShapeData(), GetShapeFrameCorners(), GetShapeFrameCount(), GetShapeFrameExtents(), GetTransformedShapeBounds(), GetViewportPixel(), HasValidShapeAllocationSignature(), InitializeAudioStreamer(), InitializeViewportWipe(), ix_sound_is_playing(), ix_sound_release(), ix_sound_start(), ix_sound_stop(), ix_streamer_audio_play(), ix_streamer_audio_stop(), ix_streamer_close_stream_file(), ix_streamer_configure(), ix_streamer_destroy(), ix_streamer_force_trigger(), ix_streamer_get_volume(), ix_streamer_init(), ix_streamer_open_stream_file(), ix_streamer_set_intensity(), ix_streamer_set_trigger(), ix_streamer_set_volume(), ix_system_configure(), ix_system_delete_all_samples(), ix_system_delete_all_sounds(), ix_system_delete_sound(), ix_system_init(), ix_system_new_sample(), ix_system_new_sound(), ix_system_service_sounds(), ix_system_set_master_volume(), ix_system_set_voice_count(), ix_system_shutdown(), OffsetViewportBounds(), PollCampaignChalkboardMenu(), PrepareShapeRLEData(), RasterLineHook(), ReadCheaterFlagFromRegistry(), ReadPacketSectionData(), ResetGameTextContexts(), RestoreSpriteBackground(), RunTitleScreen(), SetMusicStreamVolume(), SetPaletteEntry(), SetSolidColourTranslation(), SetStreamerIntensity(), SetStreamerTrigger(), SetViewportHorizontalBounds(), SetViewportRectangleBounds(), SetViewportVerticalBounds(), shaded_triangle(), shadow_draw(), SignalAudioMixerWakeEvent(), SignExtendClipCoord(), snow_viewport(), Streamer_close(), Streamer_open(), Streamer_play(), Streamer_stop(), triangle(), UpdateStreamerStoppedFlag(), and ValidateViewportBounds().
Referenced by CollectRasterClipColours().
| int CollectUniqueRLEImageFrames | ( | const unsigned char * | shape, |
| unsigned int * | frames ) |
References CollectUniqueRLEImageFrames().
Referenced by CollectUniqueRLEImageFrames().
| int CollectUniqueRLEPaletteFrames | ( | const unsigned char * | shape, |
| unsigned int * | frames ) |
References CollectUniqueRLEPaletteFrames().
Referenced by CollectUniqueRLEPaletteFrames().
| void coming_home | ( | short | obj | ) |
Definition at line 63 of file brains.c.
References approach_cruise_speed(), approach_ship_speed(), coming_home(), cruise_home(), distance_from_object(), fail(), find_objective(), find_ship_index(), g_13_stMissionHeaderBlock, g_aeObjectClass, g_aMissionObjectives, g_aShipDestination, g_asObjectCollisionRadius, g_asShipMissionType, g_asShipSide, g_asShipTactic, get_first_follow_point(), MissionHeader::homeMissionShip, MISSION_TYPE_ROUT, OBJECT_CLASS_SHIP, point_ship_behind_object(), MissionObjective::position, remove_object(), reset_tactic(), SIDE_IMPERIAL, TACTIC_CRUISE, TACTIC_HEAD_HOME, and TACTIC_NONE.
Referenced by capital_ship_intelligence(), coming_home(), run_away(), and ship_intelligence().
Definition at line 216 of file jump.c.
References ClearViewport(), CompleteStarSystemJump(), FadeViewportPaletteToColour(), g_101_stScrViewInfo, g_1_nSavedPlayerObjectCounter, g_27_stViewScratchInfo, g_78_bHighMemoryBuffersSetState, g_acObjectType, g_aeObjectClass, g_aeShipObjective, g_aMissionNavPoints, g_anShipFuel, g_anShipSpeed, g_aObjectTypeData, g_aShipPosition, g_asObjectCounter, g_asObjectScale, g_asShipManeuver, g_asShipMissionType, g_bAutopilotSequenceActive, g_bJumpSequenceActive, g_bPrimaryViewBufferColour, g_bStarSystemJumpTransition, g_bViewportDirty, g_cSecondaryViewBufferColour, g_nCurStellarSystem, g_nSavedWingmanObjectCounterValue, g_nStarSystemJumpDelay, g_nYourWingman, MANEUVER_NONE, MISSION_TYPE_WINGMAN, new_view(), OBJECT_CLASS_SHIP, OBJECTIVE_HOLD_FORMATION, MissionNavPoint::position, MissionNavPoint::proximityRadius, ResetCannedSceneRecording(), RestoreGamePalette(), ObjectTypeData::scale, set_up_action_sphere(), and FixedVector::x.
Referenced by CompleteStarSystemJump(), and house_keep_objects().
| unsigned int compute_formation_destination | ( | short | leader, |
| const ShortVector * | offset, | ||
| FixedVector * | destination ) |
Definition at line 243 of file smart.c.
References AddFixedVectors(), compute_formation_destination(), g_aShipVelocity, and offset_location().
Referenced by compute_formation_destination(), maintain_formation(), and UpdateShipTurretGuns().
| void ComputePointAheadOfObject | ( | short | obj, |
| unsigned short | distance, | ||
| FixedVector * | point ) |
Definition at line 550 of file logic.c.
References AddFixedVectors(), ComputePointAheadOfObject(), g_aShipForwardVector, g_aShipPosition, and ScaleFixedVector().
Referenced by ComputePointAheadOfObject(), and DrawTextAt().
| void ComputePointBehindObject | ( | short | obj, |
| unsigned short | distance, | ||
| FixedVector * | point ) |
Definition at line 559 of file logic.c.
References AddFixedVectors(), ComputePointBehindObject(), g_aShipForwardVector, g_aShipPosition, and ScaleFixedVector().
Referenced by ComputePointBehindObject(), and DrawTextAt().
| void ComputeVectorDelta | ( | FixedVector * | from, |
| FixedVector * | to, | ||
| FixedVector * | delta ) |
Definition at line 229 of file geom.c.
References ComputeVectorDelta(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by accelerate_and_move_object(), auto_pilot_sequence(), capital_ship_strike_mission(), check_for_collision(), ComputeVectorDelta(), distance_between_points(), distance_from_point(), draw_3d_scanner(), draw_nav_pointer(), explosion_shock_wave(), facing_to_object(), fire(), fire_weapon(), GetShipDistanceToNavPoint(), hemisphere(), init_formation_burst(), IsPointWithinRange(), new_view(), object_collision(), PlaySfxWaveFileByNumber(), point_at(), point_capital_ship_at_object(), point_ship_at_point(), real_crash_time(), room_for_me(), send_at_point(), servicetrack(), set_eye_direction_and_position(), set_objective_range(), SetFleetOverviewView(), ships_within_range(), sound_effect(), SpawnCapitalFlakProjectile(), steer_away_from_object(), steer_away_from_predicted_object(), transform_objects_to_your_view(), update_objective_location(), update_star_field(), and UpdateTargetLeadIndicator().
| void ConfigureDefaultSpacePalette | ( | short | mode | ) |
Definition at line 11 of file palalloc.c.
References ApplySpacePaletteModeHook(), ConfigureDefaultSpacePalette(), g_nSpacePaletteFadeMode, and void().
Referenced by ConfigureDefaultSpacePalette(), DrawTextAt(), LoadOriginFxDrivers(), and LogMemoryUsage().
Definition at line 2112 of file eventmgr.c.
References ConfigureInputPump(), and g_176_pfnCurrentInputPump.
Referenced by AcknowledgeModalMessage(), ClearInputPump(), ConfigureInputPump(), DosMemmove(), InflightComputer(), InitializeSpaceFlightInput(), LoadOriginFxDrivers(), RunSpaceFlight(), SetMenuInputPump(), ShowPlayerEjectionSequence(), and WaitForInputKey().
| void ConsumeCutscenePalettePacket | ( | short | firstColour, |
| short | count, | ||
| signed char | releasePacket ) |
Definition at line 512 of file gameflow.c.
References ConsumeCutscenePalettePacket(), FatalCutsceneError(), g_26_pFilmRgbPacket, ReadNextSceneForm(), ReleasePacketSlot(), and SwapSceneChunkSizeEndian().
Referenced by ConsumeCutscenePalettePacket(), DosMemmove(), ExecuteCutsceneSequence(), PresentCutsceneFrame(), and RunCutsceneScript().
| void control_speed | ( | short | obj, |
| unsigned short | range, | ||
| int | desiredSpeed ) |
Definition at line 257 of file smart.c.
References AbsInt(), approach_speed(), celerate(), control_speed(), FixedToShortSaturating(), g_anShipSpeed, GetShipAccelerationRate(), and MaxShort().
Referenced by chase_location(), control_speed(), goto_formation(), and UpdateShipTurretGuns().
| void ConvertChar_Int | ( | char * | text, |
| short | number, | ||
| short | digits ) |
Definition at line 24 of file suffix.c.
References ConvertChar_Int().
Referenced by ConvertChar_Int(), DosMemmove(), and FillGraphicSuffix().
| void ConvertFixedVectorToShortVector | ( | const FixedVector * | source, |
| ShortVector * | destination ) |
Definition at line 307 of file geom.c.
References ConvertFixedVectorToShortVector(), FixedVector::x, ShortVector::x, FixedVector::y, ShortVector::y, FixedVector::z, and ShortVector::z.
Referenced by ConvertFixedVectorToShortVector().
| void copy_frame | ( | short | source, |
| short | destination ) |
Definition at line 470 of file geom.c.
References copy_frame(), g_aShipForwardVector, g_aShipRightVector, and g_aShipUpVector.
Referenced by auto_pilot_sequence(), chase_location(), copy_frame(), fire_weapon(), FireTargetCameraGuns(), generate_stars(), goto_formation(), new_view(), RunSpaceFlight(), set_eye_direction_and_position(), set_formation_position(), ShipExplosion(), try_far_spot(), and update_star_field().
| void CopyCutsceneSpriteDisplay | ( | unsigned char | destination, |
| unsigned char | source ) |
Definition at line 1033 of file gameflow.c.
References SceneFlicObject::baseFrame, CopyCutsceneSpriteDisplay(), SceneFlicObject::currentFrame, SceneFlicObject::drawType, SceneFlicObject::finalFrame, FindActiveCutsceneObjectResources(), g_apSceneObjects, g_pCutsceneSpriteResources, ReleaseCutsceneSpriteShape(), CutsceneObjectResourceList::scriptSymbolIndices, and SceneFlicObject::shape.
Referenced by CopyCutsceneSpriteDisplay(), DosMemmove(), and RunCutsceneScript().
| void CopyGIFPalette | ( | const unsigned char * | gifData, |
| unsigned char * | palette ) |
References CopyGIFPalette().
Referenced by CopyGIFPalette().
Definition at line 9 of file hugemove.c.
References CopyHugeMemoryOverlapSafe(), DosFarPtrToNear(), DosMemmove(), and DosNearPtrToFar().
Referenced by CopyHugeMemoryOverlapSafe(), RunPilotSaveLoadMenu(), and UpdateShipTurretGuns().
| void CopyILBMPalette | ( | const unsigned char * | iffData, |
| unsigned char * | palette ) |
References CopyILBMPalette().
Referenced by CopyILBMPalette().
| void CopyPCXPaletteFromFileTail | ( | const unsigned char * | fileData, |
| unsigned int | fileSize, | ||
| unsigned char * | palette ) |
References CopyPCXPaletteFromFileTail().
Referenced by CopyPCXPaletteFromFileTail().
| char * CopyRasterDriverName | ( | void *const * | callbacks | ) |
References CopyRasterDriverName().
Referenced by CopyRasterDriverName().
| unsigned int CopyRLEFramePalette | ( | unsigned char * | shape, |
| int | frame, | ||
| unsigned char * | entries ) |
References CopyRLEFramePalette().
Referenced by CopyRLEFramePalette().
| char * CopyStringAndReturnEnd | ( | char * | destination, |
| const char * | source ) |
Definition at line 471 of file eventmgr.c.
References CopyStringAndReturnEnd().
Referenced by CopyStringAndReturnEnd(), ExpandCutsceneText(), and intelligence_events().
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().
Definition at line 995 of file gr.c.
References BlitRasterClip(), CopyViewportContents(), DIBslamReal(), g_bRenderingSpaceFrame, g_bSceneDisplayUpdateActive, g_nCockpitDisplayMode, GetDIBPixelBuffer(), Viewport::left, MarkDibDirty(), Viewport::pixels, and ValidateViewportBounds().
Referenced by AdvanceSceneFlicStream(), AdvanceViewportWipe(), CollectRasterClipColours(), CopyTrainSimPilotViewToVdus(), CopyViewportContents(), DrawNavLocationReadout(), DrawPilotHandFrame(), DrawUnreferencedPilotHandFrame(), dump_buffer_to_screen(), FinishViewportWipe(), initialize_cockpit(), InitializeModalTextPanel(), PanToScreen(), PresentCutsceneFrame(), RefreshMemoryStatusOverlay(), ResetPilotHandAnimation(), RestoreCutsceneTextBacking(), RestoreModalTextPanel(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunCutsceneScript(), RunCutsceneWipeTransition(), and RunTitleScreen().
Definition at line 1614 of file gr.c.
References CopyViewportRuns(), g_101_stScrViewInfo, Viewport::left, MarkDibDirty(), Viewport::pixels, and Viewport::rowOffsets.
Referenced by CollectRasterClipColours(), CopyViewportRuns(), and dump_buffer_to_screen().
| long CosFixed | ( | short | degrees | ) |
Definition at line 91 of file eventmgr.c.
References CosFixed(), and DEG2RAD.
Referenced by CosFixed(), draw_target_box(), intelligence_events(), reposition_fixed_child_objects(), rotate_about_i(), rotate_about_j(), and rotate_about_k().
| short count_down | ( | short | obj | ) |
Definition at line 811 of file spc.c.
References count_down(), and g_asObjectCounter.
Referenced by count_down(), and house_keep_objects().
| short CountAlliesOnSameTarget | ( | short | obj | ) |
Definition at line 563 of file smart.c.
References CountAlliesOnSameTarget(), g_acShipTarget, g_aeObjectClass, g_asIntelligenceEvent, g_asShipSide, and OBJECT_CLASS_SHIP.
Referenced by CountAlliesOnSameTarget(), maintain_formation(), and process_maneuver_node().
| short CountEnemyFighters | ( | void | ) |
Definition at line 154 of file smart.c.
References CountEnemyFighters(), g_aeObjectClass, g_asShipSide, and OBJECT_CLASS_SHIP.
Referenced by CountEnemyFighters(), regulate_turn(), and UpdateShipTurretGuns().
| short CountShipCockpitGunDisplays | ( | short | ship | ) |
Definition at line 659 of file turret.c.
References CountShipCockpitGunDisplays(), and g_aShipWeapons.
Referenced by CountShipCockpitGunDisplays(), DrawTextAt(), InitializeCockpitResources(), new_view(), and UpdateShipTurretGuns().
| short CountShipProjectiles | ( | short | ship | ) |
Definition at line 57 of file ship.c.
References CountShipProjectiles(), g_acObjectOwner, g_aeObjectClass, OBJECT_CLASS_PROJECTILE, and SPACE_OBJECT_COUNT.
Referenced by CountShipProjectiles(), DrawTextAt(), and fire().
| short crash_time | ( | short | obj, |
| short | other ) |
Definition at line 132 of file logic.c.
References crash_time(), g_aeObjectClass, g_asObjectScreenX, OBJECT_CLASS_ASTEROID, and real_crash_time().
Referenced by crash_time(), detect_collisions(), and DrawTextAt().
| void Create_explosion_debris | ( | short | obj | ) |
Definition at line 1557 of file ship.c.
References AddFixedVectors(), Create_explosion_debris(), divide_vector(), ObjectResourceSlot::field_12, FillFixedVectorWithRandomComponents(), find_vacant_3d_object(), g_aaeExplosionDebris, g_acObjectType, g_aeObjectClass, g_aObjectResourceSlots, g_aObjectTypeData, g_apObjectShape, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asObjectScreenAngle, g_asObjectType, OBJECT_CLASS_DUST, OBJECT_DATA_DEBRIS_DUST, OBJECT_DATA_SHIP_WING, ProcessEnemyWaveCompletion(), RandomBelowOrEqual(), RecordCannedSceneObjectEvent(), remove_object(), and set_objects_data().
Referenced by Create_explosion_debris(), DrawTextAt(), and house_keep_objects().
| void Create_ship_hit_debris | ( | short | obj, |
| short | count ) |
Definition at line 1467 of file ship.c.
References AddFixedVectors(), Create_ship_hit_debris(), FillFixedVectorWithRandomComponents(), find_vacant_3d_object(), g_aeShipHitDebrisTypes, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, RandomBelowOrEqual(), RecordCannedSceneObjectEvent(), and set_objects_data().
Referenced by Create_ship_hit_debris(), DrawTextAt(), and inflict_damage().
| short CreateCutsceneResourceInstance | ( | int | formType, |
| CutsceneObjectResourceList * | list, | ||
| short | index ) |
Definition at line 146 of file iffload.c.
References CutscenePlane::active, CutsceneScene::active, CutsceneSequence::active, SceneFlicObject::active, AllocateScenePointerTable(), CreateCutsceneResourceInstance(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), FatalCutsceneError(), SceneFlicObject::field_3, g_apCutscenePlanes, g_apCutsceneScenes, g_apCutsceneSequences, g_apSceneObjects, g_nCutsceneResourceLevel, CutscenePlane::owner, CutsceneScene::owner, CutsceneSequence::owner, SceneFlicObject::owner, CutsceneSequence::planeIndices, SceneFlicObject::scale, CutscenePlane::scriptCursor, CutsceneScene::scriptCursor, CutsceneSequence::scriptCursor, SceneFlicObject::scriptCursor, CutsceneObjectResourceList::scripts, CutscenePlane::scriptStart, CutsceneScene::scriptStart, CutsceneSequence::scriptStart, SceneFlicObject::scriptStart, CutsceneScene::sequenceIndices, CutscenePlane::spriteIndices, UpdateCutscenePlaneObject(), UpdateCutsceneSpriteObject(), CutscenePlane::visible, and SceneFlicObject::visible.
Referenced by CreateCutsceneResourceInstance(), LinkCutsceneObjectResources(), and UpdateShipTurretGuns().
| short CreateDataFile | ( | const char * | path | ) |
Definition at line 46 of file datafile.c.
References CreateDataFile(), g_nPacketError, and g_szCreateBlockFileError.
Referenced by CreateDataFile(), OpenDiskDataFile(), SaveAndFreeTemporaryCampaignGlobals(), and WriteTapeInitialState().
| void CreateDebugOverlayConsole | ( | HINSTANCE | module, |
| HWND | window, | ||
| short | columns, | ||
| short | rows ) |
Definition at line 14 of file console.cpp.
References CreateDebugOverlayConsole(), DebugOverlayConsole::DebugOverlayConsole(), and g_pDiagnosticOverlay.
Referenced by close_behind(), CreateDebugOverlayConsole(), and WinMain().
| int CreateMainWindow | ( | HINSTANCE | instance, |
| HINSTANCE | previous, | ||
| int | showCommand ) |
Definition at line 241 of file winmain.c.
References CreateMainWindow(), DIBinstall(), g_10_hMainWindow, g_16_bMainWindowRunning, g_18_hMainWindowContext, g_1_hMainWndCursor, g_7_hAppCopy, g_szWindowClassName, g_szWindowTitle, GetDC(), MainWindowProc(), SetBkColor(), and SetTextColor().
Referenced by CreateMainWindow(), and WinMain().
| void cruise_home | ( | short | obj | ) |
Definition at line 14 of file brains.c.
References abandoned(), approach_cruise_speed(), CanSetNewShipTurnGoal(), cruise_home(), distance_from_object(), distance_from_point(), equ_vector(), fire_afterburner(), flag_objective(), g_abFlightPath, g_abShipNavPointIndex, g_abShipTurn, g_aeObjectClass, g_aMissionObjectives, g_aShipDestination, g_aShipMissionSpot, g_aShipVelocity, g_asObjectType, g_asShipSide, get_follow_point(), normal_speed(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, point_ship_at_point(), remove_object(), reset_tactic(), set_special(), SPECIAL_MANEUVER_KILL_ENGINES, TACTIC_HEAD_HOME, and zero_vector().
Referenced by coming_home(), and cruise_home().
| void cruise_to_destination | ( | short | obj | ) |
Definition at line 464 of file brains.c.
References abandoned(), approach_cruise_speed(), approach_full_speed(), approach_half_speed(), CanSetNewShipTurnGoal(), cruise_to_destination(), distance_from_point(), equ_vector(), fire_turrets(), flag_reached(), g_abFlightPath, g_abShipNavPointIndex, g_abShipTurn, g_acShipNavPoint, g_acShipTarget, g_aShipDestination, g_aShipMissionSpot, g_asShipMissionParameter, g_asShipSide, g_nCurrentNavPoint, g_nFacingToTarget, get_facing_range_from_object(), get_follow_point(), point_ship_at_point(), reset_tactic(), scan_for_enemy(), set_special(), SIDE_IMPERIAL, SPECIAL_MANEUVER_KILL_ENGINES, and TACTIC_SIT_STILL.
Referenced by cruise_to_destination(), reach_warp(), and strike_mission().
| 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().
| void damage_ion_drive | ( | short | ship, |
| short | amount, | ||
| short | maximum ) |
Definition at line 53 of file geom.c.
References damage_ion_drive(), g_acShipIonDriveDamage, MaxShort(), MinShort(), and recalc_max_velocity().
Referenced by damage_ion_drive(), internal_damage(), repair_internal_damage(), and your_internal_damage().
| 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 dead_ship | ( | short | missionShip | ) |
Definition at line 792 of file logic.c.
References dead_ship(), g_aMissionShips, and MissionShipRecord::state.
Referenced by close_behind(), dead_ship(), locate_ship(), and triumph().
Definition at line 12 of file death.c.
References Viewport::bottom, clear_view_buffer(), ClearViewport(), death_sequence(), Draw_3Space_Frame(), DrawSpriteDefault(), dump_buffer_to_screen(), Explosion(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), free_all_slots(), free_cockpit(), free_view_buffer(), FreePacketAndClear(), g_101_stScrViewInfo, g_1_nResourcePaletteState, g_27_stViewScratchInfo, g_7_szCockpitAssetFilenameText, g_98_nMemConfiguration, g_aObjectTypeData, g_asObjectType, g_bDeathSequenceActive, g_bMissionEndPending, g_bPrimaryViewBufferColour, g_bSceneEscapeRequested, g_cSecondaryViewBufferColour, g_nArcadeState, g_nFrameSkipCountdown, g_nTrainSimActive, load_all_slots(), new_view(), OBJECT_DATA_EJECTED_PILOT, PlaySfxWaveFileByNumber(), remove_nav_pointer(), remove_object(), RestoreGamePalette(), SceneLeaveHook(), ServiceInputDevices(), spacetrack(), StopMusicUnlessSuppressed(), and Viewport::top.
Referenced by death_sequence(), DosMemmove(), and RunCampaignGameLoop().
| LRESULT CALLBACK DebugKeyboardHookProc | ( | int | code, |
| WPARAM | key, | ||
| LPARAM | flags ) |
Definition at line 129 of file debug.cpp.
References DebugKeyboardHookProc(), g_dwDebugOverlayKey, g_dwDebugOverlayKeyLatch, and g_hDebugKeyboardHook.
Referenced by DebugKeyboardHookProc(), and DebugOverlayConsole::DebugOverlayConsole().
| void DebugOverlayPrintf | ( | DebugOverlayConsole * | console, |
| const char * | format, | ||
| ... ) |
Definition at line 147 of file debug.cpp.
References Beep(), DebugOverlayConsole::columns, DebugOverlayConsole::cursorColumn, DebugOverlayConsole::cursorRow, DebugOverlayPrintf(), DebugOverlayConsole::dirtyLines, DebugOverlayConsole::DrawPendingLines(), DebugOverlayConsole::formatBuffer, DebugOverlayConsole::rows, DebugOverlayConsole::Scroll(), and DebugOverlayConsole::textBuffer.
Referenced by DebugOverlayPrintf(), and SystemDebugPrintf().
| DWORD WINAPI DebugOverlayWorkerProc | ( | void * | parameter | ) |
Definition at line 85 of file debug.cpp.
References DebugOverlayConsole::animationState, DebugOverlayConsole::characterHeight, DebugOverlayConsole::characterWidth, DebugOverlayConsole::cursorColumn, DebugOverlayConsole::cursorRow, DebugOverlayWorkerProc(), GetDC(), DebugOverlayConsole::mutex, ReleaseDC(), DebugOverlayConsole::spinnerCharacters, DebugOverlayConsole::spinnerIndex, TextOutA(), and DebugOverlayConsole::window.
Referenced by DebugOverlayWorkerProc().
| void DecodeCutsceneFileResource | ( | CutsceneResourceTable * | resource, |
| unsigned char ** | cursor ) |
Definition at line 383 of file iffload.c.
References AllocateScenePointerTable(), CutsceneResourceTable::count, SceneResourceTable::count, SceneResourceTable::data, DecodeCutsceneFileResource(), DecodeSceneResourceChunk(), CutsceneResourceTable::filenameIndices, g_nCutsceneResourceLevel, HOST_POINTER_SIZE, CutsceneResourceTable::loadedPackets, CutsceneResourceTable::owner, CutsceneResourceTable::packedFilenames, ReleasePacketSlot(), and CutsceneResourceTable::sectionIndices.
Referenced by DecodeCutsceneFileResource(), ParseCutsceneContainer(), and UpdateShipTurretGuns().
| signed char DecodeCutsceneObjectResource | ( | CutsceneObjectResourceList * | resource, |
| unsigned char ** | cursor, | ||
| unsigned char * | end, | ||
| unsigned int | formType ) |
Definition at line 526 of file iffload.c.
References AllocateScenePointerTable(), SceneResourceTable::count, SceneResourceTable::data, CutsceneObjectResourceList::dataEntries, CutsceneObjectResourceList::dataRuntimeIndices, CutsceneObjectResourceList::dataSymbolCount, CutsceneObjectResourceList::dataSymbolIndices, CutsceneObjectResourceList::dataSymbols, DecodeCutsceneObjectResource(), DecodeSceneResourceChunk(), LinkCutsceneObjectResources(), CutsceneObjectResourceList::localDataCount, CutsceneObjectResourceList::localScriptCount, ReadNextSceneForm(), CutsceneObjectResourceList::scriptRuntimeIndices, CutsceneObjectResourceList::scripts, CutsceneObjectResourceList::scriptSymbolCount, CutsceneObjectResourceList::scriptSymbolIndices, CutsceneObjectResourceList::scriptSymbols, SkipCutsceneChunk(), and SceneResourceTable::type.
Referenced by DecodeCutsceneObjectResource(), ParseCutsceneContainer(), and UpdateShipTurretGuns().
| unsigned int DecodeIFFImage | ( | RasterClip * | clip, |
| const unsigned char * | iffData ) |
References DecodeIFFImage().
Referenced by DecodeIFFImage().
| unsigned int DecodePCXImage | ( | RasterClip * | clip, |
| const unsigned char * | pcxData ) |
References DecodePCXImage().
Referenced by DecodePCXImage().
| signed char DecodeSceneFileChunk | ( | unsigned char ** | cursor, |
| SceneResourceTable ** | resource ) |
Definition at line 127 of file iffindex.c.
References DecodeSceneFileChunk(), and SwapSceneChunkSizeEndian().
Referenced by DecodeSceneFileChunk(), DecodeSceneResourceChunk(), and UpdateShipTurretGuns().
| signed char DecodeSceneOffsetChunk | ( | unsigned char ** | cursor, |
| SceneResourceTable ** | resource ) |
Definition at line 44 of file iffindex.c.
References AllocateScenePointerTable(), DecodeSceneOffsetChunk(), HOST_POINTER_SIZE, and SwapSceneChunkSizeEndian().
Referenced by DecodeSceneOffsetChunk(), DecodeSceneResourceChunk(), and UpdateShipTurretGuns().
| signed char DecodeSceneResourceChunk | ( | unsigned char ** | cursor, |
| SceneResourceTable * | resource ) |
Definition at line 335 of file iffload.c.
References DecodeSceneFileChunk(), DecodeSceneOffsetChunk(), DecodeSceneResourceChunk(), DecodeSceneStructChunk(), DecodeSceneSymbolChunk(), and IdentityHandle().
Referenced by DecodeCutsceneFileResource(), DecodeCutsceneObjectResource(), DecodeSceneResourceChunk(), DrawTextAt(), FindSceneHotspotAtPosition(), LoadSceneHotspotBoundsForSelection(), ParseCutsceneContainer(), and WaitForSceneAdvance().
| signed char DecodeSceneStructChunk | ( | unsigned char ** | cursor, |
| SceneResourceTable ** | resource ) |
Definition at line 9 of file iffindex.c.
References AllocateScenePointerTable(), DecodeSceneStructChunk(), HOST_POINTER_SIZE, IdentityHandle(), and SwapSceneChunkSizeEndian().
Referenced by DecodeSceneResourceChunk(), DecodeSceneStructChunk(), and UpdateShipTurretGuns().
| signed char DecodeSceneSymbolChunk | ( | unsigned char ** | cursor, |
| SceneResourceTable ** | resource ) |
Definition at line 82 of file iffindex.c.
References AllocateScenePointerTable(), DecodeSceneSymbolChunk(), DosStrchr(), HOST_POINTER_SIZE, IdentityHandle(), and SwapSceneChunkSizeEndian().
Referenced by DecodeSceneResourceChunk(), DecodeSceneSymbolChunk(), and UpdateShipTurretGuns().
| void DecodeShapeFrame | ( | unsigned char * | shape, |
| short | frame, | ||
| unsigned char * | bitmap, | ||
| int | width, | ||
| int | height, | ||
| int | leftExtent, | ||
| int | topExtent ) |
Definition at line 171 of file gr.c.
References DecodeShapeFrame().
Referenced by CollectRasterClipColours(), DecodeShapeFrame(), and PrepareShapeRLEData().
Definition at line 165 of file ship.c.
References DecreaseAdaptiveDifficulty(), g_nAdaptiveDifficulty, g_nLastAdaptiveDifficultyChangeFrame, and g_nSpaceFrame.
Referenced by DecreaseAdaptiveDifficulty(), DrawTextAt(), inflict_damage(), 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().
| void defend_mission | ( | short | obj | ) |
Definition at line 782 of file brains.c.
References approach_half_speed(), CanSetNewShipTurnGoal(), change_mission_type(), check_engage_target(), defend_mission(), distance_from_object(), engage(), fail(), find_ship_index(), g_abShipTurn, g_acShipTarget, g_aeShipObjective, g_asShipMissionParameter, g_nTargetRange, g_nTargetShip, in_danger(), maneuvering(), MISSION_TYPE_PATROL, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOME_BASE, OBJECTIVE_NONE, OBJECTIVE_WANDER, point_perpendicular(), reset_objective(), return_to_master(), and scan_for_enemy().
Referenced by defend_mission(), and ship_intelligence().
Definition at line 149 of file stream.cpp.
References DestroyAudioStreamer(), g_nAudioEnabled, and ix_streamer_destroy().
Referenced by CollectRasterClipColours(), and DestroyAudioStreamer().
| void destroyer_intelligence | ( | short | obj | ) |
Definition at line 955 of file brains.c.
References approach_cruise_speed(), approach_half_speed(), destroyer_intelligence(), fire_turrets(), g_acShipTarget, and orbit_sphere().
Referenced by capital_ship_intelligence(), capital_ship_strike_mission(), and destroyer_intelligence().
Definition at line 22 of file console.cpp.
References DestroyGlobalDebugOverlayConsole(), and g_pDiagnosticOverlay.
Referenced by close_behind(), DestroyGlobalDebugOverlayConsole(), ShutdownGameWindow(), and WinMain().
| short detect_collisions | ( | short | obj | ) |
Definition at line 143 of file logic.c.
References crash_time(), detect_collisions(), g_5_nCollisionCountdownNumber, g_aeObjectClass, g_pActiveHazardField, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_MISSILE, and OBJECT_CLASS_NULL.
Referenced by detect_collisions(), DrawTextAt(), and handle_collisions().
| short detect_enemy_tail | ( | short | obj | ) |
Definition at line 330 of file logic.c.
References being_tailed(), detect_enemy_tail(), g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_asShipSide, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by check_engage_target(), detect_enemy_tail(), disobey_formation(), DrawTextAt(), and gametrack().
| int DetectDoubleFree | ( | void * | memory | ) |
Definition at line 822 of file winmain.c.
References FreedHeapBlock::block, DetectDoubleFree(), g_pFreedHeapBlockHead, and FreedHeapBlock::next.
Referenced by DetectDoubleFree(), and FreeGuardedAllocation().
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().
| int DIBcascade | ( | int | mode, |
| int * | reportedResult ) |
Definition at line 314 of file dib.cpp.
References DIBcascade(), DIBerror(), g_nDisplayModeCascade, g_pDirectDraw2, g_pDirectDrawPalette, g_pPrimarySurface, g_pSecondarySurface, and WriteDebugString().
Referenced by DIBcascade(), DIBinstall(), DIBreInstall(), and UpdateShipTurretGuns().
Definition at line 503 of file dib.cpp.
References DIBdestroyDIB(), DIBerror(), g_101_nDibOffsetY, g_11_abFrameBackingStore, g_18_pDisplayPixelBuffer, g_28_nDisplayRowBytes, g_38_nDibOriginX, g_38_nSurfaceHeight, g_nDisplayModeCascade, g_pPrimarySurface, and g_pSecondarySurface.
Referenced by DIBdestroyDIB(), DIBunInstall(), and UpdateShipTurretGuns().
| void DIBerror | ( | const char * | tag, |
| int | hr ) |
Definition at line 221 of file dib.cpp.
References COM_RELEASE, DIBerror(), g_2_hFrameHwnd, g_pDirectDraw2, g_pPrimarySurface, g_pSecondarySurface, g_szFrameErrorMessage, and WriteDebugString().
Referenced by DIBcascade(), DIBdestroyDIB(), DIBerror(), DIBinstall(), DIBmakeDIB(), DIBramPalette(), DIBreInstall(), DIBsetPalette(), DIBslamReal(), DIBupdate(), DIBwholePaletteFromTriplets(), DIBwholePaletteFromWords(), and UpdateShipTurretGuns().
| void DIBinstall | ( | HWND | window | ) |
Definition at line 272 of file dib.cpp.
References DIBcascade(), DIBerror(), DIBinstall(), DIBmakeDIB(), g_11_abFrameBackingStore, g_2_hFrameHwnd, g_3_abColourShadow, g_4_bScreenStale, g_4_nDibShowCount, g_bConfigQuickModeEnabled, g_nDisplayModeCascade, g_pDirectDraw2, and IID_IDirectDraw2.
Referenced by CreateMainWindow(), DIBinstall(), and UpdateShipTurretGuns().
Definition at line 435 of file dib.cpp.
References Viewport::allocation, DIBerror(), DIBmakeDIB(), g_101_nDibOffsetY, g_101_stScrViewInfo, g_11_abFrameBackingStore, g_18_pDisplayPixelBuffer, g_28_nDisplayRowBytes, g_36_nDibBitsEachPx, g_38_nDibOriginX, g_38_nSurfaceHeight, g_3_abColourShadow, g_bUseHardwarePalette, g_nDisplayModeCascade, g_pDirectDraw2, g_pDirectDrawPalette, g_pPrimarySurface, g_pSecondarySurface, GetDIBPixelBuffer(), and Viewport::pixels.
Referenced by DIBinstall(), DIBmakeDIB(), and UpdateShipTurretGuns().
Definition at line 786 of file dib.cpp.
References DIBpixelBufferHook().
Referenced by DIBpixelBufferHook(), and UpdateShipTurretGuns().
Definition at line 243 of file dib.cpp.
References COM_RELEASE, DIBpositionWindow(), g_2_hFrameHwnd, g_pDirectDraw2, g_pPrimarySurface, and g_pSecondarySurface.
Referenced by DIBpositionWindow(), ShowNoticeMessageBox(), and UpdateShipTurretGuns().
Definition at line 830 of file dib.cpp.
References DIBerror(), DIBramPalette(), g_3_abColourShadow, g_bUseHardwarePalette, and g_pDirectDrawPalette.
Referenced by DIBramPalette(), and UpdateShipTurretGuns().
Definition at line 254 of file dib.cpp.
References DIBcascade(), DIBerror(), DIBreInstall(), g_2_hFrameHwnd, g_bConfigQuickModeEnabled, g_nDisplayModeCascade, and g_pDirectDraw2.
Referenced by DIBreInstall(), MainWindowProc(), and UpdateShipTurretGuns().
| void DIBsetPalette | ( | short | index, |
| short * | rgb ) |
Definition at line 854 of file dib.cpp.
References DIBerror(), DIBsetPalette(), g_3_abColourShadow, g_ausPaletteWords, g_bUseHardwarePalette, g_pDirectDrawPalette, and g_pPrimarySurface.
Referenced by DIBsetPalette(), DIBsetPalette(), SetPaletteEntry(), SetPaletteEntryFromTriplet(), and UpdateShipTurretGuns().
Definition at line 562 of file dib.cpp.
References CaptureMouseCursorBackground(), DIBerror(), DIBslamReal(), DrawMouseCursor(), g_10_dwLastSurfaceSlamRealNoticeTick, g_18_pDisplayPixelBuffer, g_28_nDisplayRowBytes, g_2_hFrameHwnd, g_38_nSurfaceHeight, g_3_szDibSlamRealDebugBuf, g_4_bScreenStale, g_4_nDibShowCount, g_8_nDibFlipRealCount, g_bDibSlamEnabled, g_nDisplayModeCascade, g_pDirectDraw2, g_pPrimarySurface, g_pSecondarySurface, GetDC(), ReleaseDC(), RestoreMouseCursorBackground(), ServiceSoundSystem(), ThrottleFrameAndDrawFps(), and UpdateStreamerStoppedFlag().
Referenced by CalibrateJoystickInteractive(), CopyViewportContents(), DIBslamReal(), DrawModalTextPanel(), InflightComputer(), ReadPersonnelTextField(), ReadTextInput(), RefreshMemoryStatusOverlay(), ReleaseModalTextPanel(), RestoreModalTextPanel(), RunCutsceneScript(), RunCutsceneWipeTransition(), RunSpaceFlight(), RunTitleScreen(), ShowModalTextPanel(), UpdateShipTurretGuns(), and visit_the_cinema().
Definition at line 424 of file dib.cpp.
References COM_RELEASE, DIBdestroyDIB(), DIBunInstall(), g_pDirectDraw2, g_pPrimarySurface, and g_pSecondarySurface.
Referenced by DIBunInstall(), ShutdownGameWindow(), UpdateShipTurretGuns(), and WinMain().
| void DIBupdate | ( | int | left, |
| int | top, | ||
| int | right, | ||
| int | bottom ) |
Definition at line 708 of file dib.cpp.
References DIBerror(), DIBupdate(), g_18_pDisplayPixelBuffer, g_28_nDisplayRowBytes, g_nDisplayModeCascade, g_pDirectDraw2, and g_pPrimarySurface.
Referenced by DIBupdate(), DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), RefreshMouseCursorDisplay(), ResumeMouseCursorHook(), and UpdateShipTurretGuns().
Definition at line 988 of file dib.cpp.
References DIBwaitForVerticalBlank(), and g_pDirectDraw2.
Referenced by DIBwaitForVerticalBlank(), UpdateShipTurretGuns(), and WaitForVerticalBlankThunk().
| void DIBwholePaletteFromTriplets | ( | unsigned char * | palette | ) |
Definition at line 908 of file dib.cpp.
References DIBerror(), DIBwholePaletteFromTriplets(), g_3_abColourShadow, g_bUseHardwarePalette, g_pDirectDraw2, g_pDirectDrawPalette, and g_pPrimarySurface.
Referenced by DIBwholePaletteFromTriplets(), SetWholePaletteFromTriplets(), and UpdateShipTurretGuns().
| void DIBwholePaletteFromWords | ( | unsigned short * | palette | ) |
Definition at line 948 of file dib.cpp.
References DIBerror(), DIBwholePaletteFromWords(), g_3_abColourShadow, g_bUseHardwarePalette, g_pDirectDraw2, g_pDirectDrawPalette, and g_pPrimarySurface.
Referenced by DIBwholePaletteFromWords(), and UpdateShipTurretGuns().
| short difficulty | ( | void | ) |
Definition at line 98 of file fields.c.
References difficulty(), and g_nHazardReferenceSpeed.
Referenced by difficulty(), and init_hazard().
Definition at line 556 of file dib.cpp.
References DisableDibSlam(), and g_bDibSlamEnabled.
Referenced by DisableDibSlam(), and UpdateShipTurretGuns().
Definition at line 1327 of file eventmgr.c.
References DIBupdate(), DisableMouseCursorDrawing(), QueuedMouseState::frame, g_15_nMouseRenderY, g_16_stEventQueuePointerData, g_4_nDrawnCursorX, g_abInputCursorBehind, g_nMouseCursorDrawDepth, g_pDrawnInputCursorShape, RestoreSpriteBackground(), QueuedMouseState::shape, and QueuedMouseState::viewport.
Referenced by BarracksScreen(), close_behind(), DisableMouseCursorDrawing(), DrawPersonnelMenuBackdrop(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), HighlightPersonnelFileSlot(), HighlightTransferredPilot(), InflightComputer(), InitializeCampaignChalkboardScreen(), LocateLegacySaveGame(), PollCampaignChalkboardMenu(), PollMenuInputDevices(), PromptToContinueCampaign(), RefreshCampaignChalkboardScreen(), RunCampaignChalkboardMenu(), RunCampaignContinuePromptLoop(), RunCampaignScript(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), and ShowConfedNavScan().
Definition at line 408 of file music.c.
References DisableMusicForSceneHook().
Referenced by DisableMusicForSceneHook(), and UpdateShipTurretGuns().
Definition at line 199 of file brains.c.
References disallow_engage(), and g_bEngageAllowed.
Referenced by disallow_engage(), and request().
Definition at line 2756 of file cockpt.c.
References ClearHudMessageDisplay(), DismissHudMessageIfShowing(), message_showing(), and set_message_time().
Referenced by DismissHudMessageIfShowing(), and real_vid_transmit().
| short disobey_formation | ( | short | ship | ) |
Definition at line 102 of file orders.c.
References any_enemy(), detect_enemy_tail(), disobey_formation(), ShipIntelligenceMetadata::formationDisobeyMode, g_nYourWingman, g_stWingmanIntelligence, and report_kilrathi_rout().
Referenced by disobey_formation(), request(), and UpdateShipTurretGuns().
| void DispatchCutsceneSpriteHandler | ( | SceneFlicObject * | sprite, |
| short | handlerType ) |
Definition at line 1442 of file gameflow.c.
References DispatchCutsceneSpriteHandler(), g_apCutsceneSpriteHandlers, and void().
Referenced by DispatchCutsceneSpriteHandler(), DosMemmove(), and UpdateCutsceneSpriteObject().
| short dist_from_home | ( | short | obj | ) |
Definition at line 381 of file brains.c.
References dist_from_home(), distance_from_point(), and g_aShipMissionSpot.
Referenced by dist_from_home(), and patrol_area().
| short distance_between_points | ( | const FixedVector * | from, |
| const FixedVector * | to ) |
Definition at line 528 of file geom.c.
References ComputeVectorDelta(), distance_between_points(), FixedToShortSaturating(), and Vector_magnitude().
Referenced by auto_pilot_sequence(), distance_between_points(), init_hazard(), and UpdateTargetCameraObject().
| short distance_from_object | ( | short | obj, |
| short | other ) |
Definition at line 547 of file geom.c.
References distance_from_object(), distance_from_point(), g_aShipPosition, and g_asObjectCollisionRadius.
Referenced by abandoned(), any_enemy(), approach_and_engage(), attacker_in_range(), auto_pilot_sequence(), build_target_list(), capital_ship_strike_mission(), chaff_intelligence(), cleanup_objectives(), coming_home(), cruise_home(), defend_mission(), distance_from_object(), enemy_within_range(), escort_mission(), FF_missile_intelligence(), FindNearestMissileTargetingObject(), fire_turrets(), fire_weapon(), heat_seeking_missile_intelligence(), house_keep_objects(), imperial_formation(), in_danger(), mine_intelligence(), overlay_head_up_display(), rendezvous_mission(), report_kilrathi_rout(), return_to_buddy(), return_to_master(), room_for_me(), run_away(), scan_for_enemy(), select_target(), update_missile_warning(), UpdateTargetCameraTracking(), and UpdateTargetLeadIndicator().
| short distance_from_point | ( | short | obj, |
| const FixedVector * | point ) |
Definition at line 538 of file geom.c.
References ComputeVectorDelta(), distance_from_point(), FixedToShortSaturating(), g_aShipPosition, g_asObjectCollisionRadius, g_vToTarget, and Vector_magnitude().
Referenced by auto_pilot_sequence(), auto_pilot_valid(), cruise_home(), cruise_to_destination(), dist_from_home(), distance_from_object(), distance_from_point(), get_facing_range_from_point(), orbit_sphere(), scan_for_enemy(), UpdateShipTurretGuns(), and UpdateTargetLeadIndicator().
| void divide_vector | ( | FixedVector * | vector, |
| int | divisor, | ||
| FixedVector * | result ) |
Definition at line 245 of file geom.c.
References divide_vector(), DivideFixed(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by apply_force_to_objects_center(), Create_explosion_debris(), divide_vector(), find_squad_center(), and set_eye_direction_and_position().
| long DivideFixed | ( | int | numerator, |
| int | denominator ) |
Definition at line 64 of file eventmgr.c.
References DivideFixed().
Referenced by accelerate_and_move_object(), apply_force_to_object(), divide_vector(), DivideFixed(), draw_nav_pointer(), GetShipAccelerationRate(), intelligence_events(), NormalizeFixedVector(), object_collision(), real_crash_time(), rectangular_to_spherical(), rotational_acceleration(), set_ship_rotation_goals(), transform_objects_to_your_view(), and UpdateTargetLeadIndicator().
| unsigned int DosFarPtrToNear | ( | void * | v | ) |
Definition at line 441 of file eventmgr.c.
References DosFarPtrToNear().
Referenced by CopyHugeMemoryOverlapSafe(), DosFarPtrToNear(), FreeNearHeapBlock(), GetNearHeapBlockSize(), InitializeNearHeap(), intelligence_events(), PopCutsceneScriptValue(), and PushCutsceneScriptValue().
References AddCutsceneMusicNode(), AddCutsceneSoundEffect(), AdvanceSceneFlicStream(), AllocateCutsceneViewportOrFatal(), AllocateDefaultMemory(), AllocateInputEvent(), AllocateZeroedRecords(), AnimateCutsceneSpeakerMouth(), ApplyPackedMousePosition(), BeginShipDestructionSequence(), BuildObjectDepthOrder(), CaptureMouseCursorBackground(), CheckCursor(), ClearActiveCutscenePixelAlias(), ClearCutsceneTextViewport(), ClearCutsceneViewport(), ClearInputKeyState(), ClearInputKeyStatePreservingModifiers(), ClearInputPump(), ClearMemoryHeaps(), ConfigureInputPump(), ConsumeCutscenePalettePacket(), ConvertChar_Int(), CopyCutsceneSpriteDisplay(), death_sequence(), DispatchCutsceneSpriteHandler(), DosMemmove(), DosMemset(), draw_sorted_objects_to_buffer(), DrawCinematicMemoryStatus(), DrawCutsceneCockpitOverlay(), DrawCutscenePlane(), DrawCutsceneSprite(), DrawCutsceneTextAt(), DrawMouseCursor(), EmsRestoreMapping(), EmsSaveMapping(), EnableHighMemoryResources(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), ExitCleanupHook(), ExpandCutsceneText(), FatalCutsceneError(), FillGraphicSuffix(), FinalizeInputDriverHook(), FinalizeInputManagerHook(), FindActiveCutsceneFileResources(), FindActiveCutsceneObjectResources(), FindCutsceneSoundEffect(), FindLoadedCutsceneMusic(), FindQueuedInputEvent(), FlushInputEvents(), FlushPendingInputEvents(), FormatCinematicMemoryStatus(), FreeIfNotNull(), GetAvailableFarMemory(), GetCurrentDiskDriveHook(), GetLargestFreeMemoryBlock(), GetNavRangeSentinel(), GetNextInputEvent(), GetOriginalFreeMemory(), GetPackedStringByIndex(), GetShutdownErrorCode(), GetSoundHardwareFlag(), GetStartupErrorCode(), HasCutsceneMusicNode(), HasSavedPilotCampaign(), IdentityDword(), IdentityWord(), InitializeCutsceneRuntimeResources(), InitializeCutsceneViewports(), InitializeInputDriverHook(), InitializeMouseCursorDepth(), InitializeSceneFlicStream(), intro_drawbackgroundships(), IsCutsceneSpeechLoaded(), IsFrameTickElapsed(), IsInputEventQueued(), IsVectorWithinRange(), JoystickEdgeHook(), LinkCutsceneSpriteScript(), LoadCachedCutsceneResource(), LoadCutsceneCockpitOverlay(), LoadCutsceneSpeechSlot(), LoadInputCursorShape(), MouseIdleHook(), PanToScreen(), PeekInputEvent(), PollInputEvent(), PopCutsceneScriptValue(), PresentCutsceneFrame(), PushCutsceneScriptValue(), QueueInputEvent(), QueueInputEventAtCursor(), RecordCannedSceneBriefingCharacter(), RefreshMouseCursorDisplay(), ReleaseActiveCutscenePacket(), ReleaseCutsceneFontPacket(), ReleaseCutsceneMusicNodes(), ReleaseCutsceneSoundEffects(), ReleaseCutsceneSpeechPackets(), ReleaseCutsceneSpriteShape(), ReleaseCutsceneViewport(), ReleaseInputEvent(), ReleaseInputEventQueue(), ReleaseLoadedCutsceneResource(), ReleaseSceneFlicPackets(), RemoveCutsceneMemberIndex(), RemoveInputEvent(), ReportCutscenePacketAllocationFailure(), ResetCutsceneSpriteDrawTicks(), RestoreCutsceneTextBacking(), RestoreMouseCursorBackground(), ResumeMouseCursorHook(), RetainInputEventsOfType(), RouteCutsceneViewportToDisplay(), RunCutsceneScript(), RunCutsceneWipeTransition(), RunLoadedCutscene(), SelectDiskDriveHook(), ServiceCutsceneRuntimeHook(), ServiceInputDevices(), set_up_screen_viewport(), SetFrameTimerAndWait(), SetFrameTimerPeriod(), SetFrameTimerPeriodDirect(), SetInputKeyState(), SetInputViewport(), SetMenuInputPump(), SetMouseCursorShape(), SetMouseHomePosition(), SetMusicTickRateHook(), SetPaletteEntryFromTriplet(), SetViewportRect(), shrink(), shrink_vector(), ShutdownEventManager(), SpawnMissionEjectionPod(), StartupHook(), TimerResetHook(), TimerStopHook(), TranslatePolledInputEvent(), UpdateCutscenePlaneObject(), UpdateCutsceneSpriteObject(), VideoReleaseHook(), WaitForCutsceneInputEvent(), and WaitForFrameTick().
Referenced by CopyHugeMemoryOverlapSafe(), DosMemmove(), DosMemmove(), initialize_cockpit(), InitializeNearHeap(), LoadMissionData(), RemoveCutsceneMemberIndex(), and ShutdownNearHeap().
Definition at line 492 of file eventmgr.c.
References DosMemset().
Referenced by DosMemmove(), DosMemset(), ExpandCutsceneText(), and RunCutsceneScript().
| void * DosNearPtrToFar | ( | unsigned int | v | ) |
Definition at line 447 of file eventmgr.c.
References DosNearPtrToFar().
Referenced by AllocateNearHeapBlockByFlags(), AllocateNearHeapBlockFromEnd(), CopyHugeMemoryOverlapSafe(), DosNearPtrToFar(), FreeNearHeapBlock(), GetAvailableMainMemory(), GetLargestMainMemoryBlock(), GetNearHeapBlockSize(), InitializeNearHeap(), intelligence_events(), MergeAdjacentNearHeapBlocks(), PurgeNearHeapBlocks(), ReleaseNearHeapBlock(), and ShutdownNearHeap().
| char * DosStrcat | ( | char * | destination, |
| const char * | source ) |
Definition at line 9 of file fstrcat.c.
References DosStrcat(), DosStrchr(), and DosStrcpy().
Referenced by DosStrcat(), and ExpandCommMessageTokens().
| char * DosStrchr | ( | const char * | s, |
| short | c ) |
Definition at line 459 of file eventmgr.c.
References DosStrchr().
Referenced by DecodeSceneSymbolChunk(), DosStrcat(), DosStrchr(), ExpandCommMessageTokens(), FillGraphicSuffix(), FindSceneHotspotAtPosition(), GetPackedStringByIndex(), intelligence_events(), ParseHexNumber(), RewriteCutsceneMusicExtensionForDriver(), RewriteCutsceneMusicExtensionForRetry(), RewriteDiskFileGraphicsExtensions(), and RewritePacketFilenameForInstalledData().
| char * DosStrcpy | ( | char * | dst, |
| const char * | src ) |
Definition at line 465 of file eventmgr.c.
References DosStrcpy().
Referenced by AdvanceSceneFlicStream(), DosStrcat(), DosStrcpy(), intelligence_events(), LoadCachedCutsceneResource(), ParseNumber(), print_message_text(), ReadTextInput(), ShowCentredPrompt(), ShowComponentHitHudMessage(), and ShowOnScreenMessage().
| short DosStrlen | ( | const char * | s | ) |
Definition at line 479 of file eventmgr.c.
References DosStrlen().
Referenced by AreCutsceneResourceNamesEqual(), DosStrlen(), EraseLastTextInputCharacter(), ExpandCommMessageTokens(), intelligence_events(), ParseHexNumber(), ParseNumber(), and ReadTextInput().
| char * DosStrrchr | ( | char * | s, |
| short | c ) |
Definition at line 453 of file eventmgr.c.
References DosStrrchr().
Referenced by DosStrrchr(), and intelligence_events().
| int dot_product | ( | const FixedVector * | left, |
| const FixedVector * | right ) |
Definition at line 316 of file geom.c.
References dot_product(), MultiplyFixed(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by accelerate_and_move_object(), dot_product(), facing_to_object(), get_facing_range_from_object(), get_facing_range_from_point(), get_right_shape(), inflict_damage(), match_roll_orientation(), servicetrack(), set_background_objects_rotation(), sound_effect(), transform_to_objects_frame(), UpdateShipTurretGuns(), vector_angle(), and vector_length_in_dir().
| void drain_fuel | ( | short | ship, |
| short | amount ) |
Definition at line 45 of file geom.c.
References drain_fuel(), g_anShipFuel, and recalc_max_velocity().
Referenced by accelerate_and_move_object(), drain_fuel(), housekeep_power_plant_and_fuel(), internal_damage(), and your_internal_damage().
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().
| short Draw_3Space_Frame | ( | void | ) |
Definition at line 1732 of file main.c.
References clear_view_buffer(), Draw_3Space_Frame(), DrawSpaceSceneFrame(), g_nArcadeState, g_nFrameSkipCountdown, and Update_3Space().
Referenced by death_sequence(), Draw_3Space_Frame(), and UpdateShipTurretGuns().
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().
Definition at line 1700 of file eventmgr.c.
References draw_sorted_objects_to_buffer(), DrawSpriteDefault(), DrawSpriteScaled(), g_15_nStoredScreenViewCentreX, g_27_stViewScratchInfo, g_37_nViewCenterY, g_56_anStoredObjectSortedIndicesData, g_aeObjectClass, g_apObjectShape, g_asObjectDrawX, g_asObjectDrawY, g_asObjectFlip, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectScreenX, g_asObjectScreenY, g_asObjectType, g_asObjectViewFrame, g_nNavPointerObject, g_pConstellationSprite, OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_STAR, and SPACE_OBJECT_COUNT.
Referenced by DosMemmove(), draw_sorted_objects_to_buffer(), and DrawSpaceSceneFrame().
| 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 DrawCampaignChalkboardFrame | ( | unsigned short | frame | ) |
Definition at line 196 of file personnel.c.
References DrawCampaignChalkboardFrame(), DrawSpriteDefault(), g_128_nShotHotspotLeft, g_15_nSceneAreaLowestWord, g_27_nSceneHotspotTopValue, g_8_nSceneRegionRightWord, g_bNewPilotCampaignInitialized, g_pCampaignChalkboardShape, g_stSecondaryViewBufferBlock, LoadSceneHotspotBoundsForSelection(), RefreshMemoryStatusOverlay(), and SetPersonnelMousePosition().
Referenced by DrawCampaignChalkboardFrame(), and RefreshCampaignChalkboardScreen().
| void DrawCinematicFontCharacter | ( | char | character | ) |
Definition at line 9 of file text.c.
References TextContext::cursorX, TextContext::cursorY, DrawCinematicFontCharacter(), DrawSpriteDefault(), TextContext::font, g_29_pCurrentTextContext, GetShapeFrameBounds(), IsCinematicFontCharacterPrintable(), ShortRect::left, ShortRect::right, and TextContext::viewport.
Referenced by DrawCinematicFontCharacter(), DrawFormattedText(), DrawWrappedCinematicText(), and InitializeCinematicTextRenderer().
| void DrawCinematicMemoryStatus | ( | const char * | message | ) |
Definition at line 1732 of file gameflow.c.
References Viewport::bottom, ClearViewport(), TextContext::cursorX, TextContext::cursorY, DrawCinematicMemoryStatus(), FormatTextBufferFromStart(), g_10_stCutsceneStringViewportBlock, g_15_stSceneFlicScratchViewport, g_16_stCutsceneDrawingTextSettingsInfo, g_28_nCutsceneInitialAvailableMemoryWord, g_29_pCurrentTextContext, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_47_nCutsceneMemDelta, g_9_stCutsceneTextBackingPort, g_bCutsceneSkipFrame, g_bCutsceneTextRestorePending, g_cCutsceneVideoMode, g_cShowMemoryStatus, GetAvailableFarMemory(), GetAvailableMainMemory(), GetLargestMainMemoryBlock(), Viewport::left, PresentCutsceneFrame(), SetTextContext(), Viewport::top, TextContext::viewport, and WaitForCutsceneInputEvent().
Referenced by DosMemmove(), DrawCinematicMemoryStatus(), FormatCinematicMemoryStatus(), and RunCutsceneScript().
| unsigned int DrawClippedLine | ( | RasterClip * | clip, |
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | mode, | ||
| int | colour ) |
References DrawClippedLine().
Referenced by DrawClippedLine(), DrawFilledViewportRect(), DrawViewportBorder(), and DrawViewportLine().
| 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().
Definition at line 108 of file starfld.c.
References Viewport::bottom, ConstellationParticle::deltaX, ConstellationParticle::deltaY, DrawConstellationField(), DrawSpriteDefault(), ConstellationParticle::frame, g_14_nConstellationParticleTotal, g_aConstellationParticlesTable, g_asConstellationFrame, g_asConstellationVelocity, g_nConstellationDirection, g_pConstellationSprite, g_pConstellationWindow, IsConstellationParticleOutsideViewport(), Viewport::left, RandomInRange(), Viewport::right, Viewport::top, ConstellationParticle::x, and ConstellationParticle::y.
Referenced by DrawConstellationField(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunTitleMenuInputLoop(), RunTitleScreen(), and UpdateShipTurretGuns().
| void DrawCutsceneCockpitOverlay | ( | short | unused, |
| short | verticalOffset ) |
Definition at line 332 of file gameflow.c.
References DrawCutsceneCockpitOverlay(), DrawSpriteDefault(), g_69_asCockpitDmgStateList, g_aCockpitDamagePositions, g_pCutsceneCockpitPacket, g_stSecondaryViewBufferBlock, void(), and ShortPoint::x.
Referenced by DosMemmove(), DrawCutsceneCockpitOverlay(), and RunCutsceneScript().
| void DrawCutscenePlane | ( | CutscenePlane * | plane | ) |
Definition at line 1175 of file gameflow.c.
References CutscenePlane::active, DrawCutscenePlane(), DrawCutsceneSprite(), FatalCutsceneError(), g_apSceneObjects, g_bCutsceneDrawingEnabled, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_pCutsceneSpriteParentPlane, CutscenePlane::spriteCount, CutscenePlane::spriteIndices, and CutscenePlane::visible.
Referenced by DosMemmove(), DrawCutscenePlane(), ExecuteCutsceneSequence(), and RunCutsceneScript().
| void DrawCutsceneSprite | ( | SceneFlicObject * | sprite | ) |
Definition at line 1083 of file gameflow.c.
References SceneFlicObject::active, AdvanceSceneFlicStream(), SceneFlicObject::baseFrame, SceneFlicObject::currentFrame, SceneFlicObject::decoderState, DrawCutsceneSprite(), CutscenePlane::drawFlags, SceneFlicObject::drawFlags, DrawSpriteScaled(), SceneFlicObject::drawType, FatalCutsceneError(), g_11_pWatchedSceneSpriteB, g_26_pFilmRgbPacket, g_7_pWatchedSceneSpriteA, g_bCutsceneDrawingEnabled, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_nCutsceneSpritesDrawn, g_nFrameSkipCountdown, g_pCutsceneSpriteParentPlane, g_stSecondaryViewBufferBlock, CutscenePlane::rotation, SceneFlicObject::rotation, CutscenePlane::scale, SceneFlicObject::scale, SceneFlicObject::segmentStartFrame, SceneFlicObject::shape, SceneFlicObject::tick, SceneFlicObject::visible, CutscenePlane::x, SceneFlicObject::x, CutscenePlane::y, and SceneFlicObject::y.
Referenced by DosMemmove(), DrawCutscenePlane(), DrawCutsceneSprite(), and RunCutsceneScript().
| void DrawCutsceneTextAt | ( | short | x, |
| short | y, | ||
| short | viewportIndex, | ||
| const char * | text ) |
Definition at line 247 of file gameflow.c.
References ShortRect::bottom, Viewport::bottom, TextContext::cursorX, TextContext::cursorY, DrawCutsceneTextAt(), FormatTextBufferFromStart(), g_10_stCutsceneStringViewportBlock, g_15_stSceneFlicScratchViewport, g_16_stCutsceneDrawingTextSettingsInfo, g_27_pszCutsceneFormattedText, g_29_pCurrentTextContext, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_9_bCinematicSpriteTextEnableStatus, g_9_stCutsceneTextBackingPort, g_bCutsceneTextBoundsOverride, g_bCutsceneTextRestorePending, g_nAudioEnabled, g_stCutsceneTextBounds, g_stSecondaryViewBufferBlock, IsCutsceneSpeechLoaded(), ShortRect::left, Viewport::left, MaxShort(), MinShort(), ShortRect::right, Viewport::right, SetTextContext(), ShortRect::top, Viewport::top, and TextContext::viewport.
Referenced by DosMemmove(), DrawCutsceneTextAt(), and RunCutsceneScript().
| void DrawFilledViewportRect | ( | Viewport * | viewport, |
| short | left, | ||
| short | top, | ||
| short | right, | ||
| short | bottom, | ||
| short | colour ) |
Definition at line 1339 of file gr.c.
References ClipViewportToScreen(), DrawClippedLine(), DrawFilledViewportRect(), g_stScreenLimits, Viewport::left, and Viewport::top.
Referenced by CollectRasterClipColours(), DrawFilledViewportRect(), and update_VDUs().
| void DrawFontGlyph | ( | char | character, |
| TextContext * | context, | ||
| int | height, | ||
| int | width, | ||
| int | y ) |
Definition at line 540 of file gr.c.
References TextContext::backgroundColour, TextContext::colour, TextContext::cursorX, DrawFontGlyph(), TextContext::font, TextContext::fontWorkspace, g_abPaletteTranslation, Viewport::pixels, Viewport::rowOffsets, Viewport::top, and TextContext::viewport.
Referenced by CollectRasterClipColours(), DrawFontGlyph(), and DrawTextCharacter().
| void DrawFormattedText | ( | const char * | format, |
| ... ) |
Definition at line 103 of file textfmt.c.
References DrawCinematicFontCharacter(), DrawFormattedText(), DrawTextCharacter(), FormatTextTokens(), g_101_stScrViewInfo, g_29_pCurrentTextContext, g_9_bCinematicSpriteTextEnableStatus, MarkDibDirty(), Viewport::pixels, and TextContext::viewport.
Referenced by DrawCockpitReadout(), DrawFormattedText(), DrawNavMapLabels(), DrawPersonnelFileSlot(), DrawPersonnelMenuBackdrop(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), DrawTextInputCursor(), DrawTransferredPilotRow(), LocateLegacySaveGame(), PollCampaignChalkboardMenu(), PresentCutsceneFrame(), ReadPersonnelTextField(), ReadTextInput(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectTransferredPilot(), show_communications_disp(), show_navigation_disp(), show_target_disp(), show_weapon_disp(), ShowMemoryStatusDebug(), ShowNoTransferablePilots(), and UpdateInflightNavText().
| 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().
| void DrawModalTextPanel | ( | ModalTextPanel * | panel, |
| short | x, | ||
| short | y, | ||
| unsigned char | alignment, | ||
| const char * | format, | ||
| ... ) |
Definition at line 133 of file optmenu.c.
References TextContext::alignment, ModalTextPanel::context, DIBslamReal(), DrawModalTextPanel(), FormatTextBufferFromStart(), ModalTextPanel::left, MarkDibDirty(), SetTextCursor(), and ModalTextPanel::top.
Referenced by DrawModalTextPanel(), and ShowModalTextPanel().
Definition at line 1099 of file eventmgr.c.
References DrawMouseCursor(), DrawSpriteDefault(), QueuedMouseState::frame, g_101_stScrViewInfo, g_138_nCursorDirtyRightValue, g_146_nInputCursorDirtyTop, g_148_nPointerDirtyLeft, g_15_nPointerDirtyBottom, g_16_stEventQueuePointerData, g_26_bPointerDirtyValue, g_nMouseCursorDrawDepth, QueuedMouseState::shape, QueuedMouseState::viewport, QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DIBslamReal(), DosMemmove(), DrawMouseCursor(), and RefreshMouseCursorDisplay().
| void DrawNavCrossMarker | ( | short | x, |
| short | y, | ||
| short | size, | ||
| short | shadow, | ||
| unsigned short | colour, | ||
| short | reserve ) |
Definition at line 560 of file nav.c.
References DrawNavCrossMarker(), DrawViewportLine(), g_5_stNavLabelTextContextInfo, ReserveNavMapArea(), TextContext::viewport, and void().
Referenced by BuildMap(), and DrawNavCrossMarker().
| void DrawNavHazardMarker | ( | FixedVector | navPosition, |
| FixedVector | offset, | ||
| short | size, | ||
| unsigned short | markerColour, | ||
| unsigned short | textColour, | ||
| const char * | text ) |
Definition at line 614 of file nav.c.
References AddFixedVectors(), DrawNavHazardMarker(), DrawNavRectangleMarker(), nav_getxy(), PlaceNavMapLabel(), ScaleNavMapMarkerSize(), FixedVector::x, and FixedVector::z.
Referenced by BuildMap(), and DrawNavHazardMarker().
| void DrawNavLocationReadout | ( | const char * | title, |
| short | showFlightData ) |
Definition at line 885 of file nav.c.
References TextContext::alignment, AllocateTaggedMemory(), BuildMap(), ClearViewport(), CopyViewportContents(), TextContext::cursorX, TextContext::cursorY, DrawNavLocationReadout(), DrawNavMapLegend(), DrawNavTextLine(), g_101_stScrViewInfo, g_13_stMissionHeaderBlock, g_5_abMissionAuxBlockBytes, g_6_szDefaultTextBufferText, g_abSeriesAuxData, g_aMissionShips, g_apszShipMissionTypeNames, g_aShipPosition, g_cCurrentObjective, g_cSecondaryViewBufferColour, g_nSelectedCampaignSlot, g_pNavLocationText, g_stNavMapTextCtx, g_stSecondaryViewBufferBlock, g_ucDefaultTextColour, g_ucPrimaryTextColour, InitializeTextContextFromFont(), nav_note(), OpenDataFileOrDie(), ReadDataFileAtOffset(), SetScreenClipRect(), SetTextContext(), TextContext::text, and TextContext::viewport.
Referenced by BriefingMap_DisplayMap(), DrawNavLocationReadout(), and ShowConfedNavScan().
Definition at line 646 of file nav.c.
References NavMapBeacon::active, AddUniqueObjectiveNavLabel(), DrawNavMapBriefingBeacons(), DrawNavSquareMarker(), DrawViewportPixel(), g_abMissionBriefingData, g_stSecondaryViewBufferBlock, g_ucDefaultTextColour, g_ucNavObjectiveMarkerColour, g_ucPrimaryTextColour, NavMapBeacon::name, nav_getxy(), NavMapBeacon::position, ScaleNavMapCoordinates(), FixedVector::x, and FixedVector::z.
Referenced by BuildMap(), and DrawNavMapBriefingBeacons().
Definition at line 458 of file nav.c.
References DrawFormattedText(), DrawNavMapLabels(), g_1_aNavMapLabels, and g_nNavMapLabelCount.
Referenced by BuildMap(), and DrawNavMapLabels().
Definition at line 855 of file nav.c.
References DrawNavMapLegend(), DrawSelectedNavLegendEntry(), g_cMissionObjectiveCount, g_stSecondaryViewBufferBlock, hidden_objective(), Viewport::left, SetTextCursor(), and visited().
Referenced by DrawNavLocationReadout(), and DrawNavMapLegend().
| void DrawNavPlayerMarker | ( | short | colour, |
| short | reserve ) |
Definition at line 629 of file nav.c.
References DrawNavPlayerMarker(), DrawNavSquareMarker(), DrawViewportPixel(), g_5_stNavLabelTextContextInfo, g_aShipPosition, Viewport::left, nav_getxy(), Viewport::top, and TextContext::viewport.
Referenced by BuildMap(), DrawNavPlayerMarker(), and InflightComputer().
| void DrawNavRectangleMarker | ( | short | x, |
| short | y, | ||
| short | size, | ||
| short | shadow, | ||
| unsigned short | colour, | ||
| short | reserve ) |
Definition at line 472 of file nav.c.
References DrawNavRectangleMarker(), DrawViewportEllipse(), DrawViewportEllipseShadow(), g_5_stNavLabelTextContextInfo, ReserveNavMapArea(), and TextContext::viewport.
Referenced by BuildMap(), DrawNavHazardMarker(), and DrawNavRectangleMarker().
| void DrawNavSquareMarker | ( | short | x, |
| short | y, | ||
| short | size, | ||
| short | shadow, | ||
| short | colour, | ||
| short | reserve ) |
Definition at line 503 of file nav.c.
References DrawNavSquareMarker(), DrawNavSquareOutline(), DrawViewportPixel(), g_5_stNavLabelTextContextInfo, ReserveNavMapArea(), TextContext::viewport, and void().
Referenced by BuildMap(), DrawNavMapBriefingBeacons(), DrawNavPlayerMarker(), and DrawNavSquareMarker().
Definition at line 494 of file nav.c.
References DrawNavSquareOutline(), and DrawViewportBorder().
Referenced by DrawNavSquareMarker(), and DrawNavSquareOutline().
| void DrawNavTextLine | ( | unsigned char | alignment, |
| unsigned short | colour, | ||
| const char * | format, | ||
| ... ) |
Definition at line 69 of file nav.c.
References TextContext::alignment, AppendTextCharacter(), TextContext::colour, DrawNavTextLine(), DrawTextString(), FormatTextTokens(), g_29_pCurrentTextContext, TextContext::text, and TextContext::textCursor.
Referenced by DrawNavLocationReadout(), DrawNavTextLine(), and DrawSelectedNavLegendEntry().
| void DrawNavTriangleMarker | ( | short | x, |
| short | y, | ||
| short | size, | ||
| short | shadow, | ||
| unsigned short | colour, | ||
| short | reserve ) |
Definition at line 543 of file nav.c.
References DrawNavTriangleMarker(), DrawNavTriangleOutline(), g_5_stNavLabelTextContextInfo, ReserveNavMapArea(), TextContext::viewport, and void().
Referenced by BuildMap(), and DrawNavTriangleMarker().
| void DrawNavTriangleOutline | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | size, | ||
| signed char | colour ) |
Definition at line 531 of file nav.c.
References DrawNavTriangleOutline(), and DrawViewportLine().
Referenced by DrawNavTriangleMarker(), and DrawNavTriangleOutline().
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().
| void DrawPersonnelFileSlot | ( | short | slot | ) |
Definition at line 497 of file personnel.c.
References DrawFormattedText(), DrawPersonnelFileSlot(), g_apPersonnelFileSlots, g_apPersonnelPilotProfiles, g_apszPilotRankNames, g_apszShortPilotRankNames, and SetTextCursor().
Referenced by close_behind(), DrawPersonnelFileSlot(), HighlightPersonnelFileSlot(), and SelectPersonnelFileSlot().
Definition at line 220 of file personnel.c.
References DisableMouseCursorDrawing(), DrawFormattedText(), DrawPersonnelMenuBackdrop(), DrawSpriteDefault(), g_3_stDefaultStringContext, g_bPrimaryViewBufferColour, g_pPersonnelMenuBackdrop, g_pszPersonnelFooter, g_stSecondaryViewBufferBlock, InitializeTextContextFromFont(), MeasureTextPixelWidthClamped(), PollSceneHotspotInput(), SetMenuInputPump(), and SetTextCursor().
Referenced by close_behind(), DrawPersonnelMenuBackdrop(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), and SelectTransferredPilot().
| void DrawPersonnelMenuChoices | ( | short | choice | ) |
Definition at line 464 of file personnel.c.
References DisableMouseCursorDrawing(), DrawFormattedText(), DrawPersonnelMenuChoices(), EnableMouseCursorDrawing(), g_10_nMenuDarkColour, g_3_stDefaultStringContext, g_nMenuSelectedCol, g_nPersonnelMenuHighlight, InitializeTextContextFromFont(), PERSONNEL_KEY_C, PERSONNEL_KEY_T, and SetTextCursor().
Referenced by close_behind(), DrawPersonnelMenuChoices(), and RunPilotDatabaseMenu().
| void DrawPersonnelSourceChoices | ( | short | choice | ) |
Definition at line 430 of file personnel.c.
References DisableMouseCursorDrawing(), DrawFormattedText(), DrawPersonnelSourceChoices(), EnableMouseCursorDrawing(), g_10_nMenuDarkColour, g_3_stDefaultStringContext, g_nMenuSelectedCol, g_nPersonnelMenuHighlight, InitializeTextContextFromFont(), PERSONNEL_KEY_D, PERSONNEL_KEY_W, and SetTextCursor().
Referenced by close_behind(), DrawPersonnelSourceChoices(), and SelectLegacyGameSource().
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 DrawPilotSaveMenuChoices | ( | short | choice | ) |
Definition at line 385 of file personnel.c.
References DisableMouseCursorDrawing(), DrawFormattedText(), DrawPilotSaveMenuChoices(), EnableMouseCursorDrawing(), g_10_nMenuDarkColour, g_3_stDefaultStringContext, g_nMenuSelectedCol, g_nPersonnelMenuHighlight, InitializeTextContextFromFont(), PERSONNEL_KEY_D, PERSONNEL_KEY_L, PERSONNEL_KEY_S, and SetTextCursor().
Referenced by DrawPilotSaveMenuChoices(), DrawTextAt(), and RunPilotSaveLoadMenu().
| unsigned int DrawRasterEllipse | ( | RasterClip * | clip, |
| int | x, | ||
| int | y, | ||
| int | horizontalRadius, | ||
| int | verticalRadius, | ||
| int | colour ) |
References DrawRasterEllipse().
Referenced by DrawRasterEllipse(), DrawViewportEllipse(), and DrawViewportEllipseShadow().
| int DrawRLEImage | ( | RasterClip * | clip, |
| unsigned char * | shape, | ||
| int | frame, | ||
| int | x, | ||
| int | y ) |
References DrawRLEImage().
Referenced by DrawRLEImage().
| int DrawRLEImageColor | ( | RasterClip * | clip, |
| unsigned char * | shape, | ||
| int | frame, | ||
| int | x, | ||
| int | y ) |
References DrawRLEImageColor().
Referenced by DrawRLEImageColor().
| int DrawRLEImageColorUnclipped | ( | RasterClip * | clip, |
| RLEFrameHeader * | frameHeader, | ||
| int | x, | ||
| int | y, | ||
| int | strideScratch ) |
References DrawRLEImageColorUnclipped().
Referenced by DrawRLEImageColorUnclipped().
| int DrawRLEImageUnclipped | ( | RasterClip * | clip, |
| RLEFrameHeader * | frameHeader, | ||
| int | x, | ||
| int | y, | ||
| int | strideScratch ) |
References DrawRLEImageUnclipped().
Referenced by DrawRLEImageUnclipped().
| void DrawScaledTitleLogo | ( | short | y, |
| short | scale ) |
Definition at line 336 of file intro.c.
References DrawScaledTitleLogo(), DrawSpriteScaled(), g_apTitleSections, g_stSecondaryViewBufferBlock, and GetTransformedShapeBounds().
Referenced by DrawScaledTitleLogo(), RevealTitleLogo(), and ShowVictoryScreen().
| void DrawSelectedNavLegendEntry | ( | const char * | text, |
| short | navPoint ) |
Definition at line 845 of file nav.c.
References DrawNavTextLine(), DrawSelectedNavLegendEntry(), g_cCurrentNavPointIndex, and g_cYellowColour.
Referenced by DrawNavMapLegend(), and DrawSelectedNavLegendEntry().
| void DrawShapeFrameScaled | ( | Viewport * | viewport, |
| unsigned char * | shape, | ||
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| int | angle, | ||
| int | scale ) |
Definition at line 1445 of file gr.c.
References DrawShapeFrameScaled(), DrawSpriteTransformed(), and Viewport::left.
Referenced by CollectRasterClipColours(), and DrawShapeFrameScaled().
| void DrawSolidColourSprite | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame, | ||
| unsigned short | colour ) |
Definition at line 981 of file gr.c.
References DrawSolidColourSprite(), DrawSpriteTransformed(), HasValidShapeAllocationSignature(), Viewport::left, and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), draw_target_box(), DrawSolidColourSprite(), and intro_drawbackgroundships().
| void DrawSolidColourSpriteScaled | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip, | ||
| unsigned short | colour ) |
Definition at line 1505 of file gr.c.
References DrawSolidColourSpriteScaled(), DrawSpriteTransformed(), HasValidShapeAllocationSignature(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), DrawSolidColourSpriteScaled(), and intro_drawbackgroundships().
| unsigned int DrawSpaceSceneFrame | ( | void | ) |
Definition at line 1645 of file main.c.
References BuildObjectDepthOrder(), draw_sorted_objects_to_buffer(), DrawSpaceSceneFrame(), g_1_asSpacePaletteFade, g_aeObjectClass, g_aSpaceExplosionFlashPalette, g_asShipManeuver, g_bJumpSequenceActive, g_cPrimaryViewBufferColour, g_nCurrentView, g_nFrameSkip, g_nFrameSkipCountdown, g_nRenderedSpaceFrame, g_nSpaceBlastFlashIncrement, g_nSpaceExplosionFlashActive, g_nSpacePaletteFadeMode, MANEUVER_WARPING_OUT, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, overlay_head_up_display(), place_exhaust_on_ships(), reposition_fixed_child_objects(), SetPaletteEntry(), transform_objects_to_your_view(), update_star_field(), and UpdateSpacePaletteFade().
Referenced by Draw_3Space_Frame(), DrawSpaceSceneFrame(), RenderSpaceViewFrame(), and UpdateShipTurretGuns().
| void DrawSpriteDefault | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 682 of file gr.c.
References DrawSpriteDefault(), DrawSpriteTransformed(), HasValidShapeAllocationSignature(), and Viewport::left.
Referenced by AnimateTitleOrchestra(), BuildMap(), cockpit_explosion(), CollectRasterClipColours(), death_sequence(), draw_3d_scanner(), draw_cockpit_lights(), draw_sorted_objects_to_buffer(), draw_target_box(), DrawCampaignChalkboardFrame(), DrawCinematicFontCharacter(), DrawConstellationField(), DrawCutsceneCockpitOverlay(), DrawMouseCursor(), DrawPendingCockpitDamage(), DrawPersonnelMenuBackdrop(), DrawPilotHandFrame(), DrawSpriteDefault(), DrawTitleOrchestra(), DrawTitleSky(), DrawUnreferencedPilotHandFrame(), EnableMouseCursorDrawing(), explosion_draw(), fire_computer_graphic_missile(), InflightComputer(), initialize_cockpit(), InitializeCampaignChalkboardScreen(), overlay_head_up_display(), PlayTitleConductorCue(), PollCampaignChalkboardMenu(), real_vid_transmit(), RestorePersonnelMenuBackground(), RestoreTransientCockpitGraphics(), ResumeMouseCursorHook(), RevealTitleLogo(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleMenuInputLoop(), RunTitleScreen(), show_damage_disp(), show_target_disp(), show_weapon_disp(), ShowVictoryScreen(), TheEndFireWorks(), ToggleTargetCameraOverlay(), update_status_text(), UpdateDamageDisplay(), UpdateTargetLeadIndicator(), vdu_polygon(), and vid_transmit().
| void DrawSpriteScaled | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip ) |
Definition at line 1494 of file gr.c.
References DrawSpriteScaled(), DrawSpriteTransformed(), and HasValidShapeAllocationSignature().
Referenced by CollectRasterClipColours(), draw_sorted_objects_to_buffer(), DrawCutsceneSprite(), DrawScaledTitleLogo(), DrawSpriteScaled(), and PushTitleOrchestraAway().
| void DrawSpriteTransformed | ( | Viewport * | viewport, |
| int | x, | ||
| int | y, | ||
| unsigned char * | shape, | ||
| int | frame, | ||
| int | angle, | ||
| int | scaleX, | ||
| int | scaleY, | ||
| int | flip, | ||
| int | blendMode ) |
Definition at line 476 of file gr.c.
References ClipViewportToScreen(), DrawSpriteTransformed(), exit_squadron(), g_101_stScrViewInfo, g_1_nShapeClipTicksValue, g_abShapeTransformScratch, g_nShapeDrawTicks, g_nShapePrepareTicks, g_stScreenLimits, GetPreparedShapeData(), GetShapeFrameCount(), Viewport::left, MarkDibDirty(), Viewport::pixels, PrepareShapeRLEData(), ReadPerformanceCounter(), RotateRLEImage(), Viewport::rowOffsets, and Viewport::top.
Referenced by CollectRasterClipColours(), DrawShapeFrameScaled(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), DrawSpriteDefault(), DrawSpriteScaled(), and DrawSpriteTransformed().
| void DrawTargetCameraAttitudeIndicators | ( | unsigned short | colour | ) |
Definition at line 995 of file turret.c.
References CockpitScannerGeometry::centerX, CockpitScannerGeometry::centerY, DrawTargetCameraAttitudeIndicators(), DrawViewportPixel(), g_101_stScrViewInfo, g_1_nTargetCameraYawIndicatorX, g_1_nTargetLensYawIndicatorYWord, g_4_nTargetCameraPitchPipX, g_8_nGunDisplaySlot, g_abGunDisplayConfiguration, g_asAimCameraYawIndicatorBackground, g_asTargetCameraPitchIndicatorBackgroundTable, g_nFleetOverviewPitch, g_nFleetOverviewYaw, g_nTargetLensPitchIndicatorY, and GetViewportPixel().
Referenced by draw_3d_scanner(), DrawTargetCameraAttitudeIndicators(), and DrawTextAt().
Definition at line 131 of file target.c.
References Viewport::bottom, DrawCockpitReadout(), DrawTargetRangeReadout(), EraseCockpitReadoutRegion(), g_16_szTextBufferBuffer, g_4_stRightVduView, g_acShipTarget, g_aeObjectClass, g_anShipCloakState, g_asObjectDistance, g_asObjectScreenX, g_asShipCloakElapsedFrames, g_bDisplayWingmanTargetData, g_bTargetLockAcquired, g_bTargetLockReadoutDirty, g_cSecondaryViewBufferColour, g_cTargetDisplayObject, g_nRenderedSpaceFrame, g_nTargetLockCountdown, g_nYourWingman, InvalidateVduMode(), Viewport::left, OBJECT_CLASS_SHIP, Viewport::right, set_new_vdu(), show_target_disp(), SPECIAL_MANEUVER_OF, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by DrawTargetRangeReadout(), update_VDUs(), and UpdateShipTurretGuns().
| void DrawTextAt | ( | TextContext * | context, |
| int | x, | ||
| int | y, | ||
| const char * | text, | ||
| unsigned char | alignment ) |
References accelerate(), affect_mission_score(), alert_flag(), AllocateScenePointerTable(), alter_objective(), alter_tactic(), analyze_kill(), any_selected(), ApplySpacePaletteModeHook(), approach_cruise_speed(), approach_full_speed(), approach_half_speed(), approach_min_speed(), approach_ship_speed(), approach_speed(), approach_zero_speed(), are_alive(), being_tailed(), borrow_dust(), build_squad_list(), call_enemy(), CanSetNewShipTurnGoal(), CanShipWeaponDamageTarget(), celerate(), change_mission_type(), check_computer_damage(), check_for_lost_control(), check_next_wave(), clear_alert(), ClearSavedTorpedoTargetLock(), ClearTargetCameraView(), ComputePointAheadOfObject(), ComputePointBehindObject(), ConfigureDefaultSpacePalette(), CountShipCockpitGunDisplays(), CountShipProjectiles(), crash_time(), Create_explosion_debris(), Create_ship_hit_debris(), DecodeSceneResourceChunk(), DecreaseAdaptiveDifficulty(), detect_collisions(), detect_enemy_tail(), DrawPilotSaveMenuChoices(), DrawTargetCameraAttitudeIndicators(), DrawTextAt(), EMShutDown(), EMStartUp(), explode(), Explosion(), explosion_shock_wave(), FinalizeTargetCameraViewHook(), find_child_object(), find_child_ship(), find_ship_index(), find_squad_center(), find_weapon(), FindMissileTargetingObject(), FindSceneHotspotAtPosition(), fire(), fire_afterburner(), fire_fixed_projectile_weapon(), fire_flack(), fire_missile(), fire_super_brake(), fire_turrets(), fire_weapon(), fix_velocity(), flip_angle(), FlushPendingInputPresses(), FxDriverInitHook(), GetAdaptiveTurnRate(), HasShipActiveMissile(), HasShipCockpitGunDisplay(), hemisphere(), HighlightPersonnelFileSlot(), housekeep_power_plant_and_fuel(), IncreaseAdaptiveDifficulty(), inflict_damage(), init_formation_burst(), initialize_direction_view_frame(), initialize_direction_view_frames(), initialize_object(), initialize_ship(), InitializeCampaignConstellationState(), InitializeGameTextContexts(), InitializeHighMemoryGraphicsBuffers(), InitializeInputManagerMemory(), InitializeMusicResources(), InitializePostPaletteState(), InitializeShipWeaponTypeIndices(), InitializeSoundBlaster(), internal_damage(), is_ship_tailing_player_target(), IsCapitalShipObject(), IsOnlyShipGun(), launch_object(), LoadAndPlaySpeechPacket(), LoadGamePaletteFile(), LoadGraphicsDriver(), LoadOriginFxDrivers(), LoadSceneHotspotBoundsForSelection(), LoadSpaceflightResources(), LoadSpeechPacketIntoBuffer(), LoadTemporaryCampaignGlobals(), LoadWholeDataFile(), LogChangedCutsceneWorkBuffers(), LogMemoryStateToFile(), match_rotation_goal(), new_object(), no_goal(), normal_speed(), onboard_explosion(), OpenDiskDataFile(), pilot_hit(), place_exhaust_on_ships(), PlaySpeechPacketBuffer(), PollSceneHotspotInput(), ProcessEnemyWaveCompletion(), QueryCurrentGraphicsMode(), RandomFixedAimComponent(), RandomSign(), ReadNextSceneForm(), real_crash_time(), real_velocity(), remove_weapon(), repair_internal_damage(), replenish_shields(), replenish_weapon_energy_bank(), report_kilrathi_rout(), ReportComponentRepaired(), reposition_fixed_child_objects(), reset_maneuver(), reset_mission_type(), reset_objective(), reset_tactic(), ResetTargetCameraView(), ResolveObjectDestruction(), RestoreTargetCameraAttitudeIndicators(), revise_shields(), rotate_object_to_goal(), RunPilotSaveLoadMenu(), SaveAndFreeTemporaryCampaignGlobals(), score_for_kill(), SelectPersonnelFileSlot(), send_appropriate_message(), send_at_point(), SendKilrathiAceGreetingOnce(), set_alert(), set_objects_data(), set_special(), SetTargetCameraEyePosition(), ShipExplosion(), ShipHasCloakingDevice(), ShipHasTorpedo(), ShutdownNearHeap(), ShutdownSoundBlaster(), signed_random(), SortViableTargetsByDistance(), SoundBlasterDspInterrupt(), SoundBlasterEndOfInterrupt(), SoundBlasterIn(), SoundBlasterOut(), SoundBlasterWaitWrite(), SpawnFlakBurst(), start_collision_alert(), steady_object(), StopDigiPlayback(), StopMusicIfDriverActive(), SwapSceneChunkSizeEndian(), ToggleTargetCameraOverlay(), ToggleTargetCameraTracking(), trim_goals(), try2end_collision_alert(), try2reset_maneuver(), try2rout(), unactive(), UpdateSavedTorpedoTargetLock(), UpdateTargetCameraCockpitHook(), UpdateTargetCameraTracking(), WaitForAnyInputPress(), WaitForInputKey(), WaitForSceneAdvance(), WriteDetailedMemoryStateReport(), WriteMemoryStateReportHook(), your_afterburner(), and your_internal_damage().
Referenced by DrawHudMessageSlot(), DrawTextAt(), DrawTextAt(), print_message_text(), show_communications_disp(), show_damage_disp(), show_navigation_disp(), show_target_disp(), show_weapon_disp(), and UpdateDamageDisplay().
| void DrawTextCharacter | ( | char | character | ) |
Definition at line 348 of file eventmgr.c.
References TextContext::cursorX, TextContext::cursorY, DrawFontGlyph(), DrawTextCharacter(), TextContext::font, g_29_pCurrentTextContext, Viewport::left, and TextContext::viewport.
Referenced by DrawFormattedText(), DrawTextCharacter(), DrawTextString(), and intelligence_events().
| void DrawTextInputCursor | ( | char | character | ) |
Definition at line 56 of file optmenu.c.
References TextContext::backgroundColour, TextContext::colour, TextContext::cursorX, DrawFormattedText(), DrawTextInputCursor(), and g_29_pCurrentTextContext.
Referenced by close_behind(), DrawTextInputCursor(), and ReadTextInput().
| void DrawTextString | ( | const char * | text | ) |
Definition at line 262 of file eventmgr.c.
References TextContext::alignment, ClearDebugPauseFlags(), TextContext::cursorX, TextContext::cursorY, DrawTextCharacter(), DrawTextString(), TextContext::font, g_29_pCurrentTextContext, Viewport::left, PumpMessagesDuringWait(), Viewport::right, SystemDebugPrintf(), and TextContext::viewport.
Referenced by DrawNavTextLine(), DrawTextAt(), DrawTextString(), FormatTextTokens(), and intelligence_events().
Definition at line 128 of file intro.c.
References DrawSpriteDefault(), DrawTitleOrchestra(), DrawTitleSky(), g_101_stScrViewInfo, g_apTitleSections, g_aTitleActorMotion, g_stSecondaryViewBufferBlock, and PanToScreen().
Referenced by DrawTitleOrchestra(), and Title_Sequence().
| void DrawTitleSky | ( | short | planetY | ) |
Definition at line 119 of file intro.c.
References DrawSpriteDefault(), DrawTitleSky(), g_apTitleSections, g_pTitleFieldShape, and g_stSecondaryViewBufferBlock.
Referenced by AnimateTitleOrchestra(), DrawTitleOrchestra(), DrawTitleSky(), PlayTitleConductorCue(), and PushTitleOrchestraAway().
| void DrawTransferredPilotRow | ( | short | row | ) |
Definition at line 675 of file personnel.c.
References DrawFormattedText(), DrawTransferredPilotRow(), g_3_apszPersonnelImportCaptionsTable, and SetTextCursor().
Referenced by close_behind(), DrawTransferredPilotRow(), HighlightTransferredPilot(), and SelectTransferredPilot().
| void DrawUnreferencedPilotHandFrame | ( | Viewport * | viewport, |
| unsigned char * | shape, | ||
| BarracksAnimationState * | state ) |
Definition at line 1194 of file turret.c.
References CopyViewportContents(), DrawSpriteDefault(), DrawUnreferencedPilotHandFrame(), 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 DrawUnreferencedPilotHandFrame().
| void DrawViewportBorder | ( | Viewport * | viewport, |
| short | left, | ||
| short | top, | ||
| short | right, | ||
| short | bottom, | ||
| short | colour ) |
Definition at line 1360 of file gr.c.
References ClipViewportToScreen(), DrawClippedLine(), DrawViewportBorder(), g_stScreenLimits, Viewport::left, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_target_box(), DrawNavSquareOutline(), DrawViewportBorder(), and InitializeModalTextPanel().
| void DrawViewportEllipse | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1385 of file gr.c.
References ClipViewportToScreen(), DrawRasterEllipse(), DrawViewportEllipse(), g_101_stScrViewInfo, g_stScreenLimits, Viewport::left, MarkDibDirty(), and Viewport::pixels.
Referenced by CollectRasterClipColours(), DrawNavRectangleMarker(), and DrawViewportEllipse().
| void DrawViewportEllipseShadow | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1415 of file gr.c.
References ClipViewportToScreen(), DrawRasterEllipse(), DrawViewportEllipseShadow(), g_101_stScrViewInfo, g_stScreenLimits, Viewport::left, MarkDibDirty(), and Viewport::pixels.
Referenced by CollectRasterClipColours(), DrawNavRectangleMarker(), and DrawViewportEllipseShadow().
Definition at line 1060 of file gr.c.
References ClipViewportToScreen(), DrawClippedLine(), DrawViewportLine(), g_stScreenLimits, Viewport::left, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_target_box(), DrawNavCrossMarker(), DrawNavTriangleOutline(), DrawViewportLine(), show_damage_disp(), show_weapon_disp(), and UpdateDamageDisplay().
Definition at line 1038 of file gr.c.
References ClipViewportToScreen(), DrawViewportPixel(), g_stScreenLimits, Viewport::left, SetRasterClipPixel(), and Viewport::top.
Referenced by BuildMap(), clear_head_up_display(), CollectRasterClipColours(), draw_3d_scanner(), DrawNavMapBriefingBeacons(), DrawNavPlayerMarker(), DrawNavSquareMarker(), DrawTargetCameraAttitudeIndicators(), DrawViewportPixel(), and RestoreTargetCameraAttitudeIndicators().
| void DrawWrappedCinematicText | ( | char * | text | ) |
Definition at line 40 of file text.c.
References advance(), TextContext::alignment, TextContext::cursorX, TextContext::cursorY, DrawCinematicFontCharacter(), DrawWrappedCinematicText(), g_29_pCurrentTextContext, Viewport::left, MeasureCinematicFontCharacterWidth(), MeasureCinematicFontLineHeight(), Viewport::right, and TextContext::viewport.
Referenced by DrawWrappedCinematicText(), FormatTextTokens(), and InitializeCinematicTextRenderer().
Definition at line 232 of file main.c.
References CopyViewportContents(), CopyViewportRuns(), dump_buffer_to_screen(), g_101_stScrViewInfo, g_15_pScreenViewportGeometry, g_1_cStoredViewDisplayModeValue, g_27_stViewScratchInfo, g_nCockpitDisplayMode, g_nShowMemoryStatus, ShowMemoryStatusDebug(), and Viewport::top.
Referenced by close_behind(), death_sequence(), dump_buffer_to_screen(), and RenderSpaceViewFrame().
| short easy2see | ( | short | obj | ) |
Definition at line 25 of file fields.c.
References easy2see(), g_15_nStoredScreenViewCentreX, g_27_stViewScratchInfo, g_37_nViewCenterY, g_apObjectShape, g_asObjectFlip, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectScreenX, g_asObjectScreenY, g_asObjectViewFrame, and GetTransformedShapeBounds().
Referenced by easy2see(), and object_collision().
| void ejection_sequence | ( | short | outcome, |
| signed char | restoreCockpit ) |
Definition at line 63 of file midscene.c.
References CampaignGlobals::arcadeState, calculate_damage_level(), ClearTransientObjectsForEjection(), ClearViewport(), CampaignGlobals::damageLevel, ejection_sequence(), FadeViewportPaletteToColour(), FlagCurrentNavObjectivesReached(), force_view(), g_1_cStoredViewDisplayModeValue, g_1_nResourcePaletteState, g_2_stModalSourceWindow, g_3_cOverlayMessageView, g_78_bHighMemoryBuffersSetState, g_acShipPortrait, g_asShipIntelState, g_b3SpaceObjectsActive, g_bAutopilotDebugEnabled, g_bMissionEndPending, g_bSpaceViewBufferEnabled, g_nArcadeState, g_nSelectedCampaignSlot, g_nShowMemoryStatus, g_nYourWingman, g_pCampaignGlobals, g_pPilotStatus, g_stCurrentPilotProfile, GetAvailableFarMemory(), GetAvailableMainMemory(), GetLargestFreeMemoryBlock(), GetLargestMainMemoryBlock(), init_constellation(), initialize_view_buffer(), InitializeCampaignConstellationState(), InitializeCockpitResources(), InitializeSpaceFlightInput(), load_all_slots(), load_common_3Space_objects(), LoadTemporaryCampaignGlobals(), LogMemoryStateToFile(), CampaignGlobals::mission, PilotProfile::mission, PilotProfile::playerShipType, CampaignGlobals::previousMission, CampaignGlobals::previousSeries, ReleasePacketSlot(), ReleaseSceneMusicPacket(), ReleaseSpaceflightResources(), remove_object(), ReportFatalErrorCode(), ResetCannedSceneRecording(), ResetGameTextContexts(), RestoreGamePalette(), RunCampaignScript(), CampaignGlobals::series, PilotProfile::series, StoreMissionResultsInCampaignGlobals(), and WaitForAnyInputPress().
Referenced by auto_pilot_sequence(), check_message(), ejection_sequence(), house_keep(), ProcessEnemyWaveCompletion(), ProcessMissionWaveCommands(), request(), RunCampaignGameLoop(), ShowPlayerEjectionSequence(), ShowPlayerStrandingSequence(), TryBeginStarSystemJump(), and UpdateTargetCameraObject().
References EmitGIFDecodedPixel().
Referenced by EmitGIFDecodedPixel().
| void EmitRLEScanlineRun | ( | int | runType, |
| int | trailingCount, | ||
| int | sourceX ) |
References EmitRLEScanlineRun().
Referenced by EmitRLEScanlineRun().
Definition at line 9 of file textfmt.c.
References EmitTextString().
Referenced by EmitTextString(), and FormatTextTokens().
Definition at line 38 of file startup.c.
References EMShutDown(), g_18_bEventManagerInitializationState, and ShutdownEventManager().
Referenced by DrawTextAt(), EMShutDown(), and LogMemoryUsage().
| short EmsRestoreMapping | ( | void | ) |
Definition at line 1578 of file eventmgr.c.
References EmsRestoreMapping().
Referenced by DosMemmove(), EmsRestoreMapping(), and SoundBlasterEndOfInterrupt().
| short EmsSaveMapping | ( | void | ) |
Definition at line 1571 of file eventmgr.c.
References EmsSaveMapping().
Referenced by DosMemmove(), EmsSaveMapping(), and SoundBlasterDspInterrupt().
Definition at line 45 of file startup.c.
References EMStartUp(), FinalizeInputDriverHook(), g_101_stScrViewInfo, g_26_bMouseCursorEnabled, g_59_pfnEventShutdownCallback, g_86_nCurrentInputTickInterval, g_88_nEventRepeatDelayState, g_bRewritePacketExtensions, g_cKeypadMouseSpeedValue, g_szInputCursorPacketName, InitializeInputDriverHook(), InitializeInputManagerMemory(), LoadInputCursorShape(), LogMemoryUsage(), ReportFatalErrorCode(), RewritePacketFilenameForInstalledData(), SetInputViewport(), and void().
Referenced by DrawTextAt(), EMStartUp(), and LoadOriginFxDrivers().
Definition at line 550 of file dib.cpp.
References EnableDibSlam(), and g_bDibSlamEnabled.
Referenced by EnableDibSlam(), and UpdateShipTurretGuns().
| unsigned short EnableHighMemoryResources | ( | void | ) |
Definition at line 1456 of file eventmgr.c.
References EnableHighMemoryResources(), g_19_bStoredHighMemoryEnabled, g_96_nHighMemoryInitValue, and g_9_nStoredHighMemoryResourceSetupWord.
Referenced by DosMemmove(), EnableHighMemoryResources(), and IsSoundHardwarePresent().
Definition at line 1254 of file eventmgr.c.
References CaptureSpriteBackground(), DIBupdate(), DrawSpriteDefault(), EnableMouseCursorDrawing(), QueuedMouseState::frame, g_15_nMouseRenderY, g_16_stEventQueuePointerData, g_4_nDrawnCursorX, g_abInputCursorBehind, g_nMouseCursorDrawDepth, g_pDrawnInputCursorShape, RestoreSpriteBackground(), QueuedMouseState::shape, QueuedMouseState::shapeChanged, QueuedMouseState::viewport, QueuedMouseState::x, and QueuedMouseState::y.
Referenced by BarracksScreen(), close_behind(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), EnableMouseCursorDrawing(), HighlightPersonnelFileSlot(), HighlightTransferredPilot(), InflightComputer(), LocateLegacySaveGame(), PollCampaignChalkboardMenu(), PollMenuInputDevices(), PromptToContinueCampaign(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), and ShowConfedNavScan().
Definition at line 413 of file music.c.
References EnableMusicForScene(), g_nWaitForMusicEnabled, and SetMusicOn().
Referenced by EnableMusicForScene(), and UpdateShipTurretGuns().
| int EncodeRasterClipToRLEFrame | ( | RasterClip * | clip, |
| unsigned char | transparentColour, | ||
| int | originX, | ||
| int | originY, | ||
| unsigned char * | output ) |
References EncodeRasterClipToRLEFrame().
Referenced by EncodeRasterClipToRLEFrame().
| void EncodeRLEScanline | ( | int | pixelCount, |
| unsigned char | transparentColour, | ||
| int | sourceX ) |
References EncodeRLEScanline().
Referenced by EncodeRLEScanline().
Definition at line 441 of file comm.c.
References clear_message_time(), EndCommMenu(), EndCommSessionWithWingman(), g_pszPendingHudMessage, get_mode(), and RestoreHudMessageBackground().
Referenced by check_message(), ClearHudMessageDisplay(), EndCommMenu(), free_view_buffer(), HandleSpaceFlightControls(), InflightComputer(), initialize_cockpit(), UpdateShipTurretGuns(), vdu_pop_all(), and vid_transmit().
Definition at line 430 of file comm.c.
References EndCommSessionWithWingman(), FreeCommDisplayResources(), g_cDarkGreenColour, g_pCommPortraitResource, get_mode(), malf_noise(), and pop_mode().
Referenced by EndCommMenu(), EndCommSessionWithWingman(), UpdateShipTurretGuns(), and vid_transmit().
| short enemy_within_range | ( | short | obj, |
| short | range ) |
Definition at line 635 of file logic.c.
References distance_from_object(), enemy_within_range(), g_aeObjectClass, g_aeSpecialManeuver, g_asShipSide, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by enemy_within_range().
| void engage | ( | short | obj, |
| short | target, | ||
| short | objective ) |
Definition at line 952 of file logic.c.
References engage(), g_acShipTarget, g_aeShipObjective, g_asPilotLevel, g_asShipSide, reset_objective(), SendKilrathiAceGreetingOnce(), and SIDE_KILRATHI.
Referenced by approach_and_engage(), close_behind(), defend_mission(), engage(), escort_mission(), formation_break(), formation_burst(), imperial_formation(), kilrathi_wingman(), rendezvous_mission(), and request().
| short equ_vector | ( | const FixedVector * | left, |
| const FixedVector * | right ) |
Definition at line 182 of file geom.c.
References equ_vector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by auto_pilot_sequence(), auto_pilot_valid(), cruise_home(), cruise_to_destination(), equ_vector(), RecordCannedSceneObjectState(), and TryBeginStarSystemJump().
| void EraseCharacterAfterTextCursor | ( | char | character | ) |
Definition at line 73 of file optmenu.c.
References ClearTextInputCharacter(), TextContext::cursorX, EraseCharacterAfterTextCursor(), and g_29_pCurrentTextContext.
Referenced by close_behind(), EraseCharacterAfterTextCursor(), and ReadTextInput().
| 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().
Definition at line 17 of file optmenu.c.
References TextContext::backgroundColour, Viewport::bottom, ClearViewport(), TextContext::cursorX, TextContext::cursorY, DosStrlen(), EraseLastTextInputCharacter(), TextContext::font, g_29_pCurrentTextContext, GetFontCharWidth(), Viewport::left, MeasureTextPixelWidthClamped(), ReadWord(), Viewport::right, TextContext::text, Viewport::top, and TextContext::viewport.
Referenced by close_behind(), EraseLastTextInputCharacter(), and ReadTextInput().
| void EraseTextContextBackground | ( | TextContext * | context | ) |
Definition at line 45 of file optmenu.c.
References TextContext::backgroundColour, ClearViewport(), EraseTextContextBackground(), g_cSecondaryViewBufferColour, and TextContext::viewport.
Referenced by close_behind(), EraseTextContextBackground(), and InitializeModalTextPanel().
| void escort_buddy | ( | short | obj, |
| short | buddy ) |
Definition at line 603 of file brains.c.
References approach_ship_speed(), CanSetNewShipTurnGoal(), escort_buddy(), and point_parallel().
Referenced by escort_buddy(), and escort_mission().
| void escort_mission | ( | short | obj | ) |
Definition at line 611 of file brains.c.
References change_mission_type(), check_engage_target(), distance_from_object(), engage(), escort_buddy(), escort_mission(), fail(), find_ship_index(), g_abShipTurn, g_aeShipObjective, g_asShipMissionParameter, g_nTargetRange, g_nTargetShip, in_danger(), maneuvering(), MISSION_TYPE_PATROL, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOME_BASE, OBJECTIVE_NONE, OBJECTIVE_WANDER, reset_objective(), return_to_buddy(), and unactive().
Referenced by escort_mission(), and ship_intelligence().
| 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().
Definition at line 663 of file gr.c.
References EstablishColors(), and RasterLineHook().
Referenced by CollectActivePaletteIndices(), CollectRasterClipColours(), and EstablishColors().
| short evaluate_damage | ( | short | obj | ) |
Definition at line 1027 of file logic.c.
References ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, ObjectTypeData::damageCapacity, evaluate_damage(), g_aasShipArmor, g_acObjectType, g_acShipDamage, g_aeObjectClass, g_aObjectTypeData, and OBJECT_CLASS_SHIP.
Referenced by approach_and_engage(), check_destroy_target(), close_behind(), evaluate_damage(), handle_stress(), intelligence_events(), and reset_stress().
| void ExecuteCutsceneScene | ( | CutsceneScene * | scene | ) |
Definition at line 1006 of file gameflow.c.
References ExecuteCutsceneScene(), FatalCutsceneError(), g_196_nInputTimerTicks, g_bCutsceneSkipAll, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_nActiveCutsceneResourceLevel, g_nCutsceneFrameDelay, g_nNextCutsceneFrameClock, g_pCurrentCutscenePlane, g_pCurrentCutsceneSprite, InitializeCutsceneViewports(), CutsceneScene::owner, PumpWindowMessages(), RunCutsceneScript(), and CutsceneScene::scriptCursor.
Referenced by CreateCutsceneResourceInstance(), DosMemmove(), ExecuteCutsceneScene(), LinkCutsceneObjectResources(), RunCutsceneScript(), and RunLoadedCutscene().
| void ExecuteCutsceneSequence | ( | CutsceneSequence * | sequence, |
| unsigned char * | text, | ||
| signed char | draw ) |
Definition at line 1284 of file gameflow.c.
References ClearCutsceneTextViewport(), ConsumeCutscenePalettePacket(), DrawCutscenePlane(), ExecuteCutsceneSequence(), ExpandCutsceneText(), FatalCutsceneError(), FormatTextBufferFromStart(), g_15_stSceneFlicScratchViewport, g_196_nInputTimerTicks, g_4_pszFilmWorkScratch, g_apCutscenePlanes, g_bCutsceneSkipFrame, g_bCutsceneTextRestorePending, g_bCutsceneViewportPreallocated, g_bMovieFramePresented, g_nActiveCutsceneResourceLevel, g_nAudioEnabled, g_nCutsceneFrameDelay, g_nFrameSkipCountdown, g_nNextCutsceneFrameClock, g_pCurrentCutsceneSequence, g_pszCurrentCutsceneText, g_stSecondaryViewBufferBlock, IsCutsceneSpeechLoaded(), CutsceneSequence::owner, CutsceneSequence::planeCount, CutsceneSequence::planeIndices, PresentCutsceneFrame(), PumpWindowMessages(), RestoreCutsceneTextBacking(), RunCutsceneScript(), CutsceneSequence::scriptCursor, and UpdateCutscenePlaneObject().
Referenced by CreateCutsceneResourceInstance(), DosMemmove(), ExecuteCutsceneSequence(), LinkCutsceneObjectResources(), and RunCutsceneScript().
| void exit_squadron | ( | const char * | msg, |
| ... ) |
Definition at line 44 of file message.c.
References exit_squadron(), g_szCannedSceneTapeFile, LogMemoryUsage(), ShowNoticeMessageBox(), and ShutdownGameWindow().
Referenced by CheckHeapBlockSignature(), close_behind(), DrawSpriteTransformed(), exit_squadron(), FatalCutsceneError(), FatalErrorAndExit(), LoadOriginFxDrivers(), LoadPacketAllocated(), MonoDebug_install(), MonoDebug_print(), PacketLoad(), PrepareShapeRLEData(), ProcessMusicScriptCommand(), PushMemoryStackFrame(), RunCampaignChalkboardMenu(), and ValidateViewportBounds().
Definition at line 2009 of file eventmgr.c.
References ExitCleanupHook().
Referenced by DosMemmove(), and ExitCleanupHook().
| char * ExpandCommMessageTokens | ( | const char * | text | ) |
Definition at line 459 of file comm.c.
References PilotProfile::callsign, DosStrcat(), DosStrchr(), DosStrlen(), ExpandCommMessageTokens(), g_16_szTextBufferBuffer, g_apszPilotRankNames, g_stCurrentPilotProfile, PilotProfile::lastName, and PilotProfile::rank.
Referenced by ExpandCommMessageTokens(), real_vid_transmit(), and UpdateShipTurretGuns().
| void ExpandCutsceneText | ( | const unsigned char * | source, |
| char * | destination ) |
Definition at line 1235 of file gameflow.c.
References PilotNameVariables::callsign, CopyStringAndReturnEnd(), DosMemset(), ExpandCutsceneText(), PilotNameVariables::firstName, g_117_nCutsceneFormatValueWord, g_pCampaignGlobals, g_stPilotNameVariables, and PilotNameVariables::lastName.
Referenced by DosMemmove(), ExecuteCutsceneSequence(), ExpandCutsceneText(), RunCutsceneScript(), and UpdateMap().
| unsigned int ExpandGIFLZWImage | ( | RasterClip * | clip, |
| const unsigned char * | gifData, | ||
| void * | workspace ) |
References ExpandGIFLZWImage().
Referenced by ExpandGIFLZWImage().
| short explode | ( | short | attacker, |
| short | victim ) |
Definition at line 1915 of file ship.c.
References explode(), g_10_abExplosionEntityDoneBytes, g_anShipCloakState, g_bExplosionTraversalIdle, ResolveObjectDestruction(), and SPACE_OBJECT_COUNT.
Referenced by abandoned(), chaff_intelligence(), DrawTextAt(), explode(), fire_weapon(), HandleSpaceFlightControls(), heat_seeking_missile_intelligence(), hit_asteroid(), house_keep_objects(), inflict_damage(), internal_damage(), mine_intelligence(), object_collision(), set_up_action_sphere(), and your_internal_damage().
| short Explosion | ( | short | obj | ) |
Definition at line 1826 of file ship.c.
References Explosion(), explosion_shock_wave(), find_ship_index(), g_13_stMissionHeaderBlock, g_7_asShipBurstStageCountdown, g_9_nScreenMessageTimeNumber, g_acMissionShipStatusFlagsBytes, g_acObjectOwner, g_acObjectType, g_aeObjectClass, g_aMissionShips, g_aObjectTypeData, g_asObjectCounter, g_asObjectScale, g_asObjectScreenX, g_asObjectType, g_asPilotLevel, g_asShipMissionIndex, g_asShipMissionParameter, g_asShipSide, g_nYourWingman, MissionHeader::initialMissionShips, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, OBJECT_DATA_EXPLOSION_LARGE, OBJECT_DATA_EXPLOSION_SMALL, OBJECT_DATA_TORPEDO, onboard_explosion(), PlaySfxWaveFileByNumber(), RandomBelow(), RecordCannedSceneObjectEvent(), send_message(), set_objects_data(), set_special(), ShipExplosion(), SPECIAL_MANEUVER_UNKNOWN_9, and MissionShipRecord::state.
Referenced by death_sequence(), DrawTextAt(), Explosion(), and ResolveObjectDestruction().
| 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 explosion_shock_wave | ( | short | obj, |
| short | blastDamage ) |
Definition at line 1729 of file ship.c.
References apply_force_to_objects_center(), ComputeVectorDelta(), explosion_shock_wave(), find_ratio(), FixedToShortSaturating(), g_aeObjectClass, g_aShipPosition, g_asMissileProximityFuseValues, g_asObjectCollisionRadius, g_asObjectType, g_asShipTactic, inflict_damage(), MaxShort(), MinShort(), NormalizeFixedVector(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_DATA_TORPEDO, ScaleFixedVector(), and Vector_magnitude().
Referenced by BeginShipDestructionSequence(), DrawTextAt(), Explosion(), explosion_shock_wave(), house_keep_objects(), and SpawnFlakBurst().
| void extra_hazard | ( | short | obj | ) |
Definition at line 317 of file fields.c.
References extra_hazard(), g_aeObjectClass, OBJECT_CLASS_DUST, and OBJECT_CLASS_NULL.
Referenced by extra_hazard(), and update_star_field().
| short facing_to_object | ( | short | obj, |
| FixedVector * | point ) |
Definition at line 591 of file geom.c.
References ComputeVectorDelta(), dot_product(), facing_to_object(), g_aShipForwardVector, g_aShipPosition, g_nFacingToTarget, and NormalizeFixedVector().
Referenced by facing_to_object(), and imperial_formation().
| void FadeFlightPaletteEntry | ( | short * | entry | ) |
Definition at line 316 of file main.c.
References FadeFlightPaletteEntry().
Referenced by close_behind(), FadeFlightPaletteEntry(), and house_keep().
| void FadeMusic | ( | short | duration | ) |
Definition at line 75 of file music.c.
References FadeMusic().
Referenced by FadeMusic(), InitializeMusicResources(), RunCutsceneScript(), and UpdateShipTurretGuns().
| void FadeRasterPaletteToPalette | ( | RasterSurface * | surface, |
| const unsigned char * | targetPalette, | ||
| unsigned int | duration ) |
References FadeRasterPaletteToPalette().
Referenced by FadeRasterPaletteToPalette().
Definition at line 10 of file palfade.c.
References AllocateTaggedMemory(), CollectActivePaletteIndices(), FadeViewportPaletteToColour(), g_nSpacePaletteFadeMode, GetPaletteEntry(), ReleasePacketHandle(), SetPaletteEntry(), StepPaletteTransition(), and WaitForVerticalBlankThunk().
Referenced by CompleteStarSystemJump(), death_sequence(), ejection_sequence(), FadeViewportPaletteToColour(), InitializeNewPilotCampaign(), RunCutsceneScript(), Title_Sequence(), and UpdateShipTurretGuns().
| void fail | ( | short | obj | ) |
Definition at line 57 of file brains.c.
References fail(), OBJECTIVE_NONE, and reset_objective().
Referenced by coming_home(), defend_mission(), escort_mission(), fail(), imperial_wingman(), kilrathi_patrol(), kilrathi_wingman(), patrol_area(), reach_warp(), ship_intelligence(), and strike_mission().
| void FatalCutsceneError | ( | const char * | format, |
| ... ) |
Definition at line 455 of file gameflow.c.
References exit_squadron(), FatalCutsceneError(), and g_4_pszFilmWorkScratch.
Referenced by AddCutsceneMusicNode(), AddCutsceneSoundEffect(), AllocateCutsceneViewportOrFatal(), AllocateScenePointerTable(), ConsumeCutscenePalettePacket(), CreateCutsceneResourceInstance(), DosMemmove(), DrawCutscenePlane(), DrawCutsceneSprite(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), FatalCutsceneError(), FindActiveCutsceneFileResources(), FindActiveCutsceneObjectResources(), InitializeCutsceneRuntimeResources(), LoadCachedCutsceneResource(), PopCutsceneScriptValue(), PushCutsceneScriptValue(), RunCutsceneScript(), UpdateCutscenePlaneObject(), and UpdateCutsceneSpriteObject().
| 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().
| void * FetchDiskPacketRetrying | ( | char * | fileName, |
| short | section, | ||
| short | flags ) |
Definition at line 187 of file disk.c.
References AllocateViewport(), AppendPacketLoadDebugLog(), FetchDiskPacketRetrying(), free_viewport(), FreePacketAndClear(), g_27_stViewScratchInfo, g_bRewritePacketExtensions, g_cPrimaryViewBufferColour, g_cSecondaryViewBufferColour, g_nOriginDevUnlock, g_nPacketError, g_stSecondaryViewBufferBlock, GetAvailableMainMemory(), GetLargestMainMemoryBlock(), LoadNamedPacket(), Viewport::pixels, ReportPacketLoadError(), and RewritePacketFilenameForInstalledData().
Referenced by BarracksScreen(), BriefingMap_LoadShapes(), ClearTransientObjectsForEjection(), death_sequence(), FetchDiskPacketRetrying(), get_right_shape(), InflightComputer(), init_constellation(), initialize_cockpit(), InitializeCampaignChalkboardScreen(), InitializeCockpitResources(), InitializeConstellationObject(), InitializeMusicResources(), InitializeTextContextFromFont(), load_common_3Space_objects(), load_ship(), LoadCommPortraitResources(), LoadGamePaletteFile(), LoadMissionData(), LoadPacketResourceList(), LoadShapeSet(), PreloadMusicTrack(), PromptToContinueCampaign(), RunCampaignScript(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), SpawnMissionEjectionPod(), and Title_Sequence().
| void FF_missile_intelligence | ( | short | obj | ) |
Definition at line 1463 of file brains.c.
References distance_from_object(), FF_missile_intelligence(), g_acObjectOwner, g_acShipCommunicator, g_acShipTarget, g_acViableTarget, g_aeObjectClass, g_anShipSpeed, g_asObjectType, g_asShipSide, g_asShipTactic, g_asViableTargetDistance, g_cViableTargetCount, g_nTargetRange, g_vToTarget, get_ship_max_velocity(), OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, OBJECT_DATA_CHAFF_POD, point_ship(), point_ship_at_object(), SortViableTargetsByDistance(), and TACTIC_RAM.
Referenced by FF_missile_intelligence(), and object_intelligence().
| void FillFixedVectorWithRandomComponents | ( | short | limit, |
| FixedVector * | vector ) |
Definition at line 272 of file geom.c.
References FillFixedVectorWithRandomComponents(), and MakeRandomVectorFixed().
Referenced by animate_object(), Create_explosion_debris(), Create_ship_hit_debris(), FillFixedVectorWithRandomComponents(), random_radial(), and start_dust().
| void FillGraphicSuffix | ( | char * | path, |
| short | number, | ||
| short | digits ) |
Definition at line 9 of file suffix.c.
References ConvertChar_Int(), DosStrchr(), and FillGraphicSuffix().
Referenced by DosMemmove(), and FillGraphicSuffix().
| void FillPolygon | ( | Viewport * | viewport, |
| ShortPoint * | points, | ||
| int | count, | ||
| char | colour ) |
Definition at line 1082 of file gr.c.
References Viewport::bottom, FillPolygon(), g_101_stScrViewInfo, g_anPolyExtents, Viewport::left, MarkDibDirty(), Viewport::pixels, Viewport::right, Viewport::rowOffsets, Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by CollectRasterClipColours(), FillPolygon(), and triangle().
| int FillRasterClip | ( | RasterClip * | clip, |
| int | colour ) |
References FillRasterClip().
Referenced by ClearViewport(), and FillRasterClip().
| int FillRasterClipCheckerboard | ( | RasterClip * | clip, |
| int | left, | ||
| int | top, | ||
| int | right, | ||
| int | bottom, | ||
| unsigned char | colour ) |
References FillRasterClipCheckerboard().
Referenced by FillRasterClipCheckerboard().
| unsigned int FillRasterEllipse | ( | RasterClip * | clip, |
| int | x, | ||
| int | y, | ||
| int | horizontalRadius, | ||
| int | verticalRadius, | ||
| int | colour ) |
References FillRasterEllipse().
Referenced by FillRasterEllipse(), and FillViewportEllipse().
| void FillViewportEllipse | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1400 of file gr.c.
References ClipViewportToScreen(), FillRasterEllipse(), FillViewportEllipse(), g_101_stScrViewInfo, g_stScreenLimits, Viewport::left, MarkDibDirty(), and Viewport::pixels.
Referenced by CollectRasterClipColours(), and FillViewportEllipse().
Definition at line 2144 of file eventmgr.c.
References FinalizeInputDriverHook().
Referenced by DosMemmove(), EMStartUp(), and FinalizeInputDriverHook().
Definition at line 1896 of file eventmgr.c.
References FinalizeInputManagerHook().
Referenced by DosMemmove(), FinalizeInputManagerHook(), and LogMemoryUsage().
Definition at line 1228 of file turret.c.
References FinalizeTargetCameraViewHook().
Referenced by DrawTextAt(), FinalizeTargetCameraViewHook(), and initialize_cockpit().
| short find_child_object | ( | short | parent, |
| short | objectClass ) |
Definition at line 2017 of file ship.c.
References find_child_object(), g_acObjectOwner, g_aeObjectClass, and SPACE_OBJECT_COUNT.
Referenced by DrawTextAt(), and find_child_object().
| short find_child_ship | ( | short | parent, |
| short | objectClass, | ||
| short | target ) |
Definition at line 2030 of file ship.c.
References find_child_ship(), g_acObjectOwner, g_acShipTarget, and g_aeObjectClass.
Referenced by DrawTextAt(), find_child_ship(), and fire().
| short find_next_gun | ( | short | obj, |
| short | currentGun ) |
Definition at line 9 of file select.c.
References find_next_gun(), g_aObjectTypeData, g_aShipWeapons, OBJECT_CLASS_PROJECTILE, OBJECT_DATA_TURRET_GUN, ObjectTypeData::objectClass, and ShipWeaponSlot::type.
Referenced by find_next_gun(), select_new_gun(), and UpdateShipTurretGuns().
| void find_next_ship_turn_slot | ( | short | obj | ) |
Definition at line 1231 of file mission.c.
References find_next_ship_turn_slot(), g_acTurnInterval, g_acTurnRegulator, g_aeObjectClass, g_anPilotTurnInterval, g_asPilotLevel, and OBJECT_CLASS_SHIP.
Referenced by find_next_ship_turn_slot(), and init_ship().
| short find_objective | ( | short | type, |
| short | index ) |
Definition at line 14 of file jump.c.
References find_objective(), g_aMissionObjectives, and g_cMissionObjectiveCount.
Referenced by arrive_from_warp(), coming_home(), find_objective(), RunSpaceFlight(), and UpdateShipTurretGuns().
| short find_ratio | ( | short | inputMinimum, |
| short | inputMaximum, | ||
| short | input, | ||
| short | outputMinimum, | ||
| short | outputMaximum ) |
Definition at line 1013 of file logic.c.
References find_ratio().
Referenced by close_behind(), explosion_shock_wave(), find_ratio(), rear_sphere(), reset_stress(), and try_far_spot().
| short find_ship_index | ( | short | missionShip | ) |
Definition at line 251 of file logic.c.
References find_ship_index(), g_aeObjectClass, g_aeSpecialManeuver, g_asShipMissionIndex, g_nLastFoundShip, OBJECT_CLASS_FUTURION, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by capital_ship_strike_mission(), check_destroy_target(), cleanup_objectives(), coming_home(), defend_mission(), DrawTextAt(), escort_mission(), Explosion(), find_ship_index(), flag_reached(), get_follow_point(), hidden_objective(), init_ship(), locate_ship(), rendezvous_mission(), set_formation_position(), Set_up_ship_info(), SetScale(), and strike_mission().
| short find_ships_sphere | ( | short | missionShip | ) |
Definition at line 816 of file logic.c.
References find_ships_sphere(), g_aMissionNavPoints, MISSION_NAV_POINT_COUNT, MissionNavPoint::missionShips, and MissionNavPoint::type.
Referenced by close_behind(), find_ships_sphere(), FollowSelectedObjectiveSystem(), IsMissionObjectiveOutOfSystem(), IsObjectiveInDisplayedSystem(), locate_ship(), prepare_mission(), and RefreshObjectiveShipNavPoints().
| unsigned int find_squad_center | ( | FixedVector * | center | ) |
Definition at line 387 of file logic.c.
References AddFixedVectors(), divide_vector(), find_squad_center(), g_acShipList, g_aShipPosition, and zero_vector().
Referenced by DrawTextAt(), find_squad_center(), and init_formation_burst().
| short find_vacant_3d_object | ( | void | ) |
Definition at line 841 of file geom.c.
References find_vacant_3d_object(), g_aeObjectClass, g_asObjectScreenX, OBJECT_CLASS_NULL, and SPACE_LAST_MOVING_OBJECT.
Referenced by animate_object(), Create_explosion_debris(), Create_ship_hit_debris(), draw_nav_pointer(), find_vacant_3d_object(), init_constellation(), make_hazard(), make_shard(), new_object(), onboard_explosion(), place_exhaust_on_ships(), ShipExplosion(), ToggleTargetCameraTracking(), unwarp(), and warp().
| short find_weapon | ( | short | obj, |
| short | weaponType ) |
Definition at line 2666 of file ship.c.
References find_weapon(), and g_aShipWeapons.
Referenced by DrawTextAt(), find_weapon(), and perform_maneuver().
| CutsceneResourceTable * FindActiveCutsceneFileResources | ( | CutsceneResourceTable * | resources | ) |
Definition at line 414 of file gameflow.c.
References FatalCutsceneError(), FindActiveCutsceneFileResources(), g_nActiveCutsceneResourceLevel, CutsceneResourceTable::next, and CutsceneResourceTable::owner.
Referenced by AddCutsceneMusicNode(), DosMemmove(), FindActiveCutsceneFileResources(), LoadCutsceneSpeechSlot(), ReleaseActiveCutscenePacket(), ReleaseCutsceneMusicNodes(), and RunCutsceneScript().
| CutsceneObjectResourceList * FindActiveCutsceneObjectResources | ( | CutsceneObjectResourceList * | resources | ) |
Definition at line 427 of file gameflow.c.
References FatalCutsceneError(), FindActiveCutsceneObjectResources(), g_nActiveCutsceneResourceLevel, CutsceneObjectResourceList::next, and CutsceneObjectResourceList::owner.
Referenced by CopyCutsceneSpriteDisplay(), DosMemmove(), FindActiveCutsceneObjectResources(), LinkCutsceneSpriteScript(), RunCutsceneScript(), and RunLoadedCutscene().
| ActiveSoundEntry * FindActiveSoundEntryBySample | ( | IxSample * | sample | ) |
Definition at line 169 of file sound.c.
References FindActiveSoundEntryBySample(), g_pActiveSoundHead, ix_sound_get_sample(), ActiveSoundEntry::next, and ActiveSoundEntry::sound.
Referenced by FindActiveSoundEntryBySample(), StopSoundsUsingWave(), and UpdateShipTurretGuns().
| char FindCdRomDriveByVolumeLabel | ( | const char * | label, |
| const char * | directory ) |
Definition at line 1251 of file winmain.c.
References FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().
Referenced by FindCdRomDriveByVolumeLabel(), and LocateStreamsDirOnDisc().
| short FindCutsceneResourceSymbolIndex | ( | CutsceneObjectResourceList * | list, |
| short | scriptHalf, | ||
| const char * | symbol ) |
Definition at line 103 of file iffload.c.
References AreCutsceneResourceNamesEqual(), FindCutsceneResourceSymbolIndex(), CutsceneObjectResourceList::next, CutsceneObjectResourceHalf::symbolCount, CutsceneObjectResourceHalf::symbolIndices, and CutsceneObjectResourceHalf::symbols.
Referenced by FindCutsceneResourceSymbolIndex(), LinkCutsceneObjectResources(), and UpdateShipTurretGuns().
| CutsceneSoundEffect * FindCutsceneSoundEffect | ( | short | resourceIndex | ) |
Definition at line 546 of file gameflow.c.
References FindCutsceneSoundEffect(), FlushSoundEffect(), g_pCutsceneSoundEffects, CutsceneSoundEffect::next, CutsceneSoundEffect::resourceIndex, CutsceneSoundEffect::sound, and void().
Referenced by AddCutsceneSoundEffect(), DosMemmove(), and FindCutsceneSoundEffect().
| unsigned char * FindIFFChunkData | ( | const char * | chunkId, |
| const unsigned char * | iffData ) |
References FindIFFChunkData().
Referenced by FindIFFChunkData().
| void * FindLoadedCutsceneMusic | ( | short | resourceIndex | ) |
Definition at line 790 of file gameflow.c.
References FindLoadedCutsceneMusic(), g_pCutsceneMusicPackets, HasCutsceneMusicNode(), CutsceneMusicNode::next, CutsceneMusicNode::packet, CutsceneMusicNode::previous, and CutsceneMusicNode::resourceIndex.
Referenced by DosMemmove(), FindLoadedCutsceneMusic(), and RunCutsceneScript().
| short FindMissileTargetingObject | ( | short | obj | ) |
Definition at line 357 of file logic.c.
References FindMissileTargetingObject(), g_acShipTarget, g_aeObjectClass, and OBJECT_CLASS_MISSILE.
Referenced by DrawTextAt(), FindMissileTargetingObject(), gametrack(), intelligence_events(), Mkill_missile(), and update_missile_warning().
| 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().
| short FindNearestNavPoint | ( | short | ship | ) |
Definition at line 1753 of file main.c.
References FindNearestNavPoint(), g_aMissionNavPoints, g_nCurrentNavPoint, g_nCurStellarSystem, GetShipDistanceToNavPoint(), MissionNavPoint::proximityRadius, MissionNavPoint::systemIndex, and MissionNavPoint::type.
Referenced by abandoned(), FindNearestNavPoint(), ReleaseStaleNavTarget(), and UpdateShipTurretGuns().
| short FindObjectResourceSlot | ( | short | resourceType | ) |
Definition at line 401 of file mission.c.
References FindObjectResourceSlot(), and g_aObjectResourceSlots.
Referenced by FindObjectResourceSlot(), and LoadAlternateShipType().
| InputEventState * FindQueuedInputEvent | ( | int | type | ) |
Definition at line 969 of file eventmgr.c.
References InputEvent::field_14, InputEvent::field_18, FindQueuedInputEvent(), g_16_stEventQueuePointerData, g_196_nInputTimerTicks, g_1_stFoundInputEvent, g_nNextInputQueueFlushTick, g_pInputEventHead, InputEvent::modifiers, InputEventState::modifiers, InputEvent::primaryButton, InputEvent::secondaryButton, InputEvent::status, InputEventState::status, InputEventState::timestamp, InputEvent::type, InputEventState::type, InputEventState::value, InputEvent::x, InputEventState::x, QueuedMouseState::x, InputEvent::y, InputEventState::y, and QueuedMouseState::y.
Referenced by DosMemmove(), FindQueuedInputEvent(), IsInputEventQueued(), PollSceneHotspotInput(), RunCutsceneScript(), UpdateMap(), WaitForCutsceneInputEvent(), and WaitForInputKey().
| short FindSceneHotspotAtPosition | ( | void * | scenePacket, |
| short | offsetX, | ||
| short | offsetY, | ||
| short | x, | ||
| short | y ) |
Definition at line 105 of file hotspot.c.
References SceneResourceTable::count, SceneResourceTable::data, DecodeSceneResourceChunk(), DosStrchr(), FindSceneHotspotAtPosition(), g_pActiveScenePacket, g_pszPersonnelFooter, g_stSceneTextList, g_stSceneZoneTable, IsPointInRect(), ShortRect::left, OffsetSceneHotspotBounds(), ReadNextSceneForm(), ReleasePacketSlot(), SceneHotspot::selection, and SceneResourceTable::type.
Referenced by DrawTextAt(), FindSceneHotspotAtPosition(), and PollSceneHotspotInput().
| WaveTableEntry * FindWaveTableEntryByName | ( | const char * | name | ) |
Definition at line 72 of file sound.c.
References FindWaveTableEntryByName(), g_pWaveTableHead, WaveTableEntry::name, and WaveTableEntry::next.
Referenced by FindWaveTableEntryByName(), playWAVE(), StopSoundsUsingWave(), and UpdateShipTurretGuns().
Definition at line 25 of file replay.c.
References CANNED_SCENE_SNAPSHOT_BYTES, FinishCannedScenePlayback(), force_view(), g_1_pCannedSceneStateBlockRef, g_78_bHighMemoryBuffersSetState, g_cRedColour, g_dwCannedSceneSnapshotStart, g_nArcadeState, g_pHighMemoryBlockB, g_szCannedSceneTapeFile, IdentityDword(), and SetHudMessageText().
Referenced by FinishCannedScenePlayback(), RunSpaceFlight(), and UpdateShipTurretGuns().
Definition at line 902 of file wipe.c.
References BlitWipeRadialBands(), Viewport::bottom, CopyViewportContents(), FinishViewportWipe(), g_105_nFadePreviousVerticalEdge, g_11_pWipeFrontEdges, g_139_nDissolveProgress, g_17_nFadeType, g_18_nWipeTotalStages, g_19_stFadeToView, g_1_stWipeScratchSourcePort, g_26_stWipeTempDestinationViewport, g_2_nWipePreviousAcrossEdge, g_3_nFadeCurrentHorizontalEdge, g_3_nWipeRoundFlags, g_3_stDissolveSourceViewport, g_9_pWipeRearEdges, g_nWipeCurrentVerticalEdges, GenerateWipeRadialEdges(), Viewport::left, Viewport::right, SetViewportHorizontalBounds(), SetViewportRectangleBounds(), SetViewportVerticalBounds(), Viewport::top, and void().
Referenced by CollectRasterClipColours(), FinishViewportWipe(), RunCutsceneWipeTransition(), and RunTitleScreen().
| void fire | ( | short | obj, |
| short | target ) |
Definition at line 2059 of file ship.c.
References CanShipWeaponDamageTarget(), ComputeVectorDelta(), CountShipProjectiles(), find_child_ship(), fire(), fire_weapon(), g_aeObjectClass, g_anShipCloakState, g_aObjectTypeData, g_aShipPosition, g_aShipWeapons, g_asObjectCounter, g_asShipFriendlyFireCooldown, g_asShipSide, g_bAiMissileFiringEnabled, g_nAdaptiveDifficulty, g_nFacingToTarget, g_nTargetFacing, g_nTargetRange, g_nYourWingman, get_facing_range_from_object(), IsCapitalShipObject(), launch_object(), ObjectTypeData::lifetime, ObjectTypeData::maximumVelocity, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, ObjectTypeData::objectClass, RandomBelowOrEqual(), RandomInRange(), real_velocity(), ResetShipCloakState(), and SIDE_KILRATHI.
Referenced by DrawTextAt(), fire(), Mkill_missile(), Msit_n_fire(), Msit_n_spin(), Mstrafe_enemy(), Mtail_fire(), process_maneuver_node(), and tanker_intelligence().
| void fire_afterburner | ( | short | obj, |
| short | time ) |
Definition at line 2733 of file ship.c.
References fire_afterburner(), g_aeSpecialManeuver, g_aShipVelocity, g_asObjectType, g_asShipAfterburnerTimer, get_ship_max_velocity(), set_special(), SPECIAL_MANEUVER_AFTERBURNER, and Vector_magnitude().
Referenced by chase_speed(), cruise_home(), DrawTextAt(), fire_afterburner(), general_zig(), goto_formation(), imperial_formation(), Mburnout(), Mbuzz_debris(), Mfish_hook(), Mget_distance(), Mkickit(), Msplit_left(), Msplit_right(), Mstrafe_enemy(), Msuicide_run(), Mtarget_missile(), Mtry2tail(), Mturn_n_kick(), Mveer_away(), Mwabble(), Mzip_past(), prepare_for_jump(), prevent_collision(), process_maneuver_node(), run_away(), ShipAiState45(), ShipAiState46(), streak_toward(), and your_afterburner().
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 fire_fixed_projectile_weapon | ( | short | obj | ) |
Definition at line 2714 of file ship.c.
References ShipWeaponSlot::disabled, fire_fixed_projectile_weapon(), fire_weapon(), g_aObjectTypeData, g_aShipWeapons, OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, ShipWeaponSlot::type, and ShipWeaponSlot::weaponType.
Referenced by DrawTextAt(), fire_fixed_projectile_weapon(), and fire_players_lasers().
| void fire_flack | ( | short | owner, |
| short | explosion, | ||
| short | range, | ||
| FixedVector * | aim, | ||
| short | burstMode ) |
Definition at line 2234 of file ship.c.
References fire_flack(), g_aObjectTypeData, g_asObjectCounter, ObjectTypeData::maximumVelocity, MaxShort(), MinShort(), RandomBelowOrEqual(), RecordCannedSceneObjectEvent(), send_at_point(), and set_objects_data().
Referenced by DrawTextAt(), fire_flack(), and SpawnFlakBurst().
| short fire_missile | ( | short | ship | ) |
Definition at line 2681 of file ship.c.
References ShipWeaponSlot::disabled, fire_missile(), fire_weapon(), g_acShipTarget, g_aObjectTypeData, g_aShipWeapons, g_cYellowColour, g_nTargetLockCountdown, get_mode(), IsCapitalShipObject(), OBJECT_CLASS_MISSILE, ObjectTypeData::objectClass, ShowComponentHitHudMessage(), ShipWeaponSlot::type, and ShipWeaponSlot::weaponType.
Referenced by DrawTextAt(), fire_missile(), HandleSpaceFlightControls(), and Mram_missile().
| unsigned int fire_players_lasers | ( | void | ) |
Definition at line 608 of file main.c.
References fire_fixed_projectile_weapon(), fire_players_lasers(), g_acShipTarget, g_asObjectCounter, g_asShipWeaponEnergy, get_mode(), and SelectCockpitVduMode().
Referenced by close_behind(), fire_players_lasers(), HandleSpaceFlightControls(), and player_input().
| void fire_super_brake | ( | short | ship | ) |
Definition at line 2750 of file ship.c.
References fire_super_brake(), g_asShipAfterburnerTimer, set_special(), and SPECIAL_MANEUVER_SUPER_BRAKE.
Referenced by DrawTextAt(), fire_super_brake(), Mfish_hook(), and Mhard_break().
| short fire_turrets | ( | short | obj | ) |
Definition at line 2352 of file ship.c.
References build_target_list(), distance_from_object(), fire_turrets(), fire_weapon(), g_acShipList, g_acShipTarget, g_aeObjectClass, g_aShipPosition, g_aShipWeapons, g_asMissileProximityFuseValues, g_asObjectCounter, g_asObjectType, g_asShipListRange, g_asShipSide, GetAdaptiveTurnRate(), HasShipActiveMissile(), hemisphere(), IsCapitalShipObject(), OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, position_child(), RandomBelowOrEqual(), RandomInRange(), SIDE_IMPERIAL, SIDE_KILRATHI, SpawnFlakBurst(), and ShipWeaponSlot::type.
Referenced by capital_ship_intelligence(), capital_ship_strike_mission(), cruise_to_destination(), destroyer_intelligence(), DrawTextAt(), fire_turrets(), and stationary_intelligence().
| short fire_weapon | ( | short | obj, |
| short | weapon ) |
Definition at line 2465 of file ship.c.
References AddFixedVectors(), ObjectTypeData::animationDelay, child_object(), ComputeVectorDelta(), copy_frame(), ObjectTypeData::damageCapacity, distance_from_object(), explode(), fire_weapon(), g_abShipEjectionSequenceEnabled, g_acGunRefireDelay, g_acObjectCollisionGraceTicks, g_acObjectOwner, g_acObjectType, g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_anShipSpeed, g_aObjectTypeData, g_aShipForwardVector, g_aShipPosition, g_aShipUpVector, g_aShipVelocity, g_aShipWeapons, g_asMissileProximityFuseValues, g_asObjectCounter, g_asObjectDamage, g_asObjectType, g_asPilotLevel, g_asShipManeuver, g_asShipTactic, g_asShipWeaponEnergy, g_bMissileLockAcquired, g_bTargetLockActive, g_nAdaptiveDifficulty, g_nCurrentView, g_nSavedPlayerTarget, g_nYourWingman, get_ship_max_velocity(), get_ship_slot(), initialize_ship(), ObjectTypeData::lifetime, ObjectTypeData::maximumVelocity, new_object(), OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, PlaySfxWaveFileByNumber(), point_at(), RandomInRange(), RecordCannedSceneObjectEvent(), remove_weapon(), RemovePlayerReleaseWeapon(), ScaleFixedVector(), steady_object(), SubtractFixedVectors(), vector_component_in_dir(), and Vector_magnitude().
Referenced by DrawTextAt(), fire(), fire_fixed_projectile_weapon(), fire_missile(), fire_turrets(), fire_weapon(), and perform_maneuver().
Definition at line 327 of file turret.c.
References AddFixedVectors(), ObjectTypeData::animationDelay, copy_frame(), ObjectTypeData::damageCapacity, EYE_OBJECT, FireTargetCameraGuns(), g_1_nGunShowEnergyPercent, g_8_nGunDisplaySlot, g_abGunDisplayConfiguration, g_abProjectileCollisionBonus, g_acGunRefireDelay, g_acObjectType, g_aObjectTypeData, g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_aShipVelocity, g_asObjectCounter, g_asObjectDamage, g_nTargetCameraGunCooldown, ObjectTypeData::lifetime, ObjectTypeData::maximumVelocity, new_object(), NormalizeFixedVector(), PlaySfxWaveFileByNumber(), point_at(), RecordCannedSceneObjectEvent(), ScaleFixedVector(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by close_behind(), FireTargetCameraGuns(), HandleFleetOverviewInput(), and HandleSpaceFlightControls().
| void fix_objects_ijk | ( | short | obj | ) |
Definition at line 481 of file geom.c.
References fix_objects_ijk(), g_aShipForwardVector, g_aShipRightVector, g_aShipUpVector, NormalizeFixedVector(), and vector_cross_product().
Referenced by alter_pitch(), alter_roll(), alter_yaw(), fix_objects_ijk(), make_shard(), new_view(), point_at(), set_eye_direction_and_position(), update_objects_in_space(), and UpdateFleetOverviewCameraRotation().
| unsigned int fix_velocity | ( | short | obj | ) |
Definition at line 712 of file ship.c.
References fix_velocity(), g_anShipSpeed, g_aShipForwardVector, g_aShipVelocity, and ScaleFixedVector().
Referenced by arrive_from_warp(), DrawTextAt(), fix_velocity(), and set_speed().
| short FixedToShortSaturating | ( | int | value | ) |
Definition at line 122 of file geom.c.
References FixedToShortSaturating().
Referenced by capital_ship_strike_mission(), chase_location(), control_speed(), distance_between_points(), distance_from_point(), explosion_shock_wave(), FixedToShortSaturating(), GetShipDistanceToNavPoint(), GetVectorMagnitude(), goto_location(), real_crash_time(), real_velocity(), and update_objective_location().
Definition at line 1654 of file gr.c.
References fizzle_fade(), g_101_stScrViewInfo, Viewport::left, MarkDibDirty(), Viewport::pixels, and RasterLineHook().
Referenced by CollectRasterClipColours(), and fizzle_fade().
| 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().
Definition at line 45 of file midscene.c.
References flag_reached(), FlagCurrentNavObjectivesReached(), g_aMissionObjectives, g_cMissionObjectiveCount, and g_nCurrentNavPoint.
Referenced by ejection_sequence(), and FlagCurrentNavObjectivesReached().
| short flip_angle | ( | short | ship, |
| short | angle ) |
Definition at line 2757 of file ship.c.
References flip_angle(), g_asObjectFlip, and g_asObjectScreenAngle.
Referenced by DrawTextAt(), flip_angle(), and place_exhaust_on_ships().
Definition at line 297 of file taperec.c.
References CloseDataFile(), FlushCannedSceneRecordingBuffer(), g_3_nCannedSceneWriteIndex, g_4_nCannedSceneFileOffset, g_nSpaceFrame, g_pHighMemoryBlockA, g_szCannedSceneTapeFile, OpenDataFileOrDie(), ReportFatalErrorCode(), and WriteDataFileAtOffset().
Referenced by FlushCannedSceneRecordingBuffer(), HandleCannedSceneBufferBoundary(), and UpdateShipTurretGuns().
Definition at line 1014 of file eventmgr.c.
References FlushInputEvents(), g_196_nInputTimerTicks, g_nNextInputQueueFlushTick, and ReleaseInputEventQueue().
Referenced by DosMemmove(), FlushInputEvents(), FlushPendingInputEvents(), GetNextInputEvent(), HandleSpaceFlightControls(), PollCampaignChalkboardMenu(), PollMenuInputDevices(), RunCutsceneScript(), RunPilotDatabaseMenu(), RunSpaceFlight(), RunTitleScreen(), ServiceInputDevices(), ShowOnScreenMessage(), and WaitForInputKey().
Definition at line 2157 of file eventmgr.c.
References FlushInputEvents(), and FlushPendingInputEvents().
Referenced by AcknowledgeModalMessage(), DosMemmove(), FlushPendingInputEvents(), and RunCutsceneScript().
Definition at line 305 of file disk.c.
References FlushPendingInputPresses(), PumpWindowMessages(), ServiceInputDevices(), TakeInputPressCount(), and void().
Referenced by DrawTextAt(), FlushPendingInputPresses(), ShowOnScreenMessage(), and WaitForInputKey().
Definition at line 61 of file music.c.
References FlushSoundEffect(), SoundDebugPrintf(), and stop_all_sounds().
Referenced by FindCutsceneSoundEffect(), FlushSoundEffect(), FlushSoundEffectsAndLog(), ReleaseCutsceneSoundEffects(), ShowVictoryScreen(), and UpdateShipTurretGuns().
Definition at line 68 of file music.c.
References FlushSoundEffects(), SoundDebugPrintf(), and stop_all_sounds().
Referenced by FlushSoundEffects(), ResetSoundState(), RunCutsceneScript(), RunLoadedCutscene(), ShowVictoryScreen(), and UpdateShipTurretGuns().
Definition at line 439 of file music.c.
References FlushSoundEffect(), FlushSoundEffectsAndLog(), SoundDebugPrintf(), and void().
Referenced by ClearTargetCameraView(), FlushSoundEffectsAndLog(), house_keep(), RunTitleScreen(), TheEndFireWorks(), update_lights(), UpdateShipTurretGuns(), and UpdateTargetCameraObject().
Definition at line 1068 of file nav.c.
References find_ships_sphere(), FollowSelectedObjectiveSystem(), g_1_stElapsedCampaignDate, g_aMissionNavPoints, g_aMissionObjectives, g_cCurrentObjective, g_nCurStellarSystem, MissionObjective::index, MissionNavPoint::systemIndex, and CampaignDate::year.
Referenced by FollowSelectedObjectiveSystem(), and InflightComputer().
| void force_view | ( | int | view, |
| short | obj ) |
Definition at line 423 of file spc.c.
References force_view(), g_nCurrentView, IsCockpitExplosionActive(), and new_view().
Referenced by auto_pilot_sequence(), ejection_sequence(), FinishCannedScenePlayback(), force_view(), HandleSpaceFlightControls(), InflightComputer(), ProcessCannedSceneInput(), RunSpaceFlight(), TryBeginStarSystemJump(), and visit_the_cinema().
| void ForceStreamerTrigger | ( | int | trigger | ) |
Definition at line 127 of file stream.cpp.
References ForceStreamerTrigger(), g_nAudioEnabled, g_nStreamerAudioPlaying, ix_streamer_force_trigger(), and Streamer_play().
Referenced by CollectRasterClipColours(), ForceStreamerTrigger(), ProcessMusicScriptCommand(), and SetStreamerTrigger().
| void FormatCinematicMemoryStatus | ( | const char * | format, |
| ... ) |
Definition at line 1785 of file gameflow.c.
References DrawCinematicMemoryStatus(), and FormatCinematicMemoryStatus().
Referenced by DosMemmove(), FormatCinematicMemoryStatus(), ReportCutscenePacketAllocationFailure(), and RunCutsceneScript().
| void formation_break | ( | short | obj | ) |
Definition at line 289 of file brains.c.
References CanSetNewShipTurnGoal(), engage(), formation_break(), g_acShipSequence, g_acShipTarget, g_anPitchGoal, g_anRollGoal, g_anYawGoal, OBJECTIVE_ENGAGE_ENEMY, and steady_object().
Referenced by formation_break(), and imperial_wingman().
| void formation_burst | ( | short | obj | ) |
Definition at line 182 of file brains.c.
References approach_full_speed(), CanSetNewShipTurnGoal(), engage(), formation_burst(), g_acShipTarget, g_aShipDestination, g_asShipCount, g_asShipMissionType, MISSION_TYPE_STRIKE, OBJECTIVE_DESTROY_SHIP, OBJECTIVE_ENGAGE_ENEMY, and point_ship().
Referenced by formation_burst(), kilrathi_patrol(), kilrathi_wingman(), and strike_mission().
| void FormatNavCoordinates | ( | unsigned char * | out | ) |
Definition at line 833 of file nav.c.
References FormatNavCoordinates(), g_1_stElapsedCampaignDate, and SplitGameClockTicksForNav().
Referenced by FormatNavCoordinates(), and InflightComputer().
| void FormatTextBufferFromStart | ( | const char * | format, |
| ... ) |
Definition at line 123 of file textfmt.c.
References AppendTextCharacter(), FormatTextBufferFromStart(), FormatTextTokens(), g_101_stScrViewInfo, g_29_pCurrentTextContext, MarkDibDirty(), Viewport::pixels, TextContext::text, TextContext::textCursor, and TextContext::viewport.
Referenced by DrawCinematicMemoryStatus(), DrawCutsceneTextAt(), DrawModalTextPanel(), ExecuteCutsceneSequence(), FormatTextBufferFromStart(), and UpdateMap().
Definition at line 18 of file textfmt.c.
References TextContext::alignment, TextContext::backgroundColour, TextContext::colour, TextContext::cursorX, TextContext::cursorY, DrawTextString(), DrawWrappedCinematicText(), EmitTextString(), FormatTextTokens(), g_29_pCurrentTextContext, g_9_bCinematicSpriteTextEnableStatus, and TextContext::text.
Referenced by AppendFormattedText(), DrawFormattedText(), DrawNavTextLine(), FormatTextBufferFromStart(), and FormatTextTokens().
| void CALLBACK FrameTimerCallback | ( | UINT | timerId, |
| UINT | message, | ||
| DWORD | user, | ||
| DWORD | first, | ||
| DWORD | second ) |
Definition at line 9 of file timer.c.
References FrameTimerCallback(), g_5_nFrameTimerWaitTicksValue, and void().
Referenced by FrameTimerCallback(), SetMultimediaTimerCallback(), and UpdateShipTurretGuns().
Definition at line 890 of file fltsetup.c.
References free_3Space(), free_3Space_objects(), free_constellation(), free_view_buffer(), FreeShapeSet(), g_aMissionResourceDescriptors, g_b3SpaceObjectsActive, g_bSpaceViewBufferEnabled, g_pNavLocationText, ReleasePacketHandle(), and remove_all_hazards().
Referenced by close_behind(), free_3Space(), and ReleaseSpaceflightResources().
Definition at line 909 of file fltsetup.c.
References ObjectTypeData::animation, free_3Space_objects(), free_ship(), FreePacketAndClear(), FreeShapeSet(), g_1_nResourcePaletteState, g_aCommon3SpaceResources, g_aObjectTypeData, g_pGenericMissileExhaustShape, g_pGenericMissileShape, OBJECT_DATA_BURNING_DEBRIS, OBJECT_DATA_DART_DF, OBJECT_DATA_EJECTED_PILOT, OBJECT_DATA_GIRDER_CHUNK, OBJECT_DATA_O_RING, OBJECT_DATA_PILUM_FF, OBJECT_DATA_PIPE, OBJECT_DATA_SHIP_TUBING, OBJECT_DATA_SPICULUM_IR, and ObjectTypeData::shapeSet.
Referenced by close_behind(), free_3Space(), and free_3Space_objects().
Definition at line 703 of file mission.c.
References free_all_slots(), free_ship(), g_aObjectResourceSlots, and release_all_capital_ship_shapes().
Referenced by death_sequence(), free_all_slots(), and ReleaseSpaceflightResources().
Definition at line 742 of file fltsetup.c.
References free_cockpit(), free_view_buffer(), free_viewport(), FreeCommDisplayResources(), FreePacketAndClear(), FreeShapeSet(), g_1_nResourcePaletteState, g_48_apCommunicationTextPacketsTable, g_4_pScannerBlipUnderlayPointer, g_7_szCockpitAssetFilenameText, g_acObjectType, g_aCockpitCommonShapeResources, g_aCockpitShipShapeResources, g_aCockpitViewShapeResources, g_aObjectTypeData, g_apCockpitVduOverlayShapes, g_bCockpitResourcesActive, g_nLoadedCommPortraitPilot, g_nObjectType62Index, g_nObjectType63Index, g_pCockpitBackgroundPacket, g_pCockpitExplosionBackground, g_pCockpitHudBackground, g_pCommPortraitResource, g_pCommVduFrameResource, g_pDamageDisplayBackground, g_pHudMessageBackground, g_pHudMessageFrameShape, g_pPendingCockpitDamageShape, g_pPilotHandAnimationShapePtr, g_pReleaseWeaponDisplayBackground, g_stPilotHandBackgroundViewportBlock, g_stPilotHandViewportRecord, ReleasePacketHandle(), and ReleaseTextFont().
Referenced by close_behind(), death_sequence(), free_cockpit(), and ReleaseSpaceflightResources().
Definition at line 460 of file fltsetup.c.
References free_constellation(), FreeConstellationObject(), FreePacketAndClear(), g_asConstellationObjectIndices, and g_pConstellationSprite.
Referenced by close_behind(), free_3Space(), and free_constellation().
Definition at line 944 of file fltsetup.c.
References free_inflight_music(), g_aLimitedMusicBuffers, g_aTuneResources, g_nInFlightMusicActive, MusicResource::packet, and StopMusicUnlessSuppressed().
Referenced by close_behind(), free_inflight_music(), and RunSpaceFlight().
| void free_ship | ( | short | slot | ) |
Definition at line 604 of file mission.c.
References ObjectTypeData::animation, free_ship(), FreePacketAndClear(), g_19_bStoredHighMemoryEnabled, g_1_nResourcePaletteState, g_acObjectType, g_aeObjectClass, g_aObjectResourceSlots, g_aObjectTypeData, g_apObjectShape, g_apPacketReferenceGroups, g_asObjectType, g_bExpandedShipGraphicsEnabled, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, release_capital_ship_shapes(), ReleasePacketHandle(), remove_object(), ObjectResourceSlot::resourceType, ObjectTypeData::shape, ObjectTypeData::shapeSet, SPACE_LAST_MOVING_OBJECT, and SPACE_OBJECT_COUNT.
Referenced by free_3Space_objects(), free_all_slots(), free_ship(), load_common_3Space_objects(), and new_sphere_shapes().
Definition at line 208 of file main.c.
References EndCommMenu(), free_view_buffer(), free_viewport(), g_27_stViewScratchInfo, message_showing(), and Viewport::pixels.
Referenced by auto_pilot_sequence(), close_behind(), death_sequence(), free_3Space(), free_cockpit(), free_view_buffer(), get_right_shape(), HandleSpaceFlightControls(), InflightComputer(), initialize_cockpit(), InitializeCockpitResources(), load_all_slots(), new_sphere_shapes(), PromptToContinueCampaign(), RunSpaceFlight(), set_eye_direction_and_position(), and SetFleetOverviewView().
Definition at line 10 of file vpfree.c.
References Viewport::allocation, free_viewport(), g_101_stScrViewInfo, g_2_nFreeViewportCalls, g_apViewportAllocations, g_nSpacePaletteFadeMode, g_nViewportAllocationCount, g_stSecondaryViewBufferBlock, Viewport::pixels, ReleasePacketHandle(), and Viewport::rowOffsets.
Referenced by BarracksScreen(), BriefingMap_DisplayMap(), FetchDiskPacketRetrying(), free_cockpit(), free_view_buffer(), free_viewport(), InflightComputer(), initialize_cockpit(), InitializeConversationViewport(), PromptToContinueCampaign(), ReleaseCutsceneViewport(), ResetScreenClipToFullHeight(), RestoreModalTextPanel(), RunCampaignChalkboardMenu(), RunPilotDatabaseMenu(), and RunTitleScreen().
Definition at line 422 of file comm.c.
References FreeCommDisplayResources(), g_nCommPortraitIndex, g_nCommSpeakerObject, and g_nCommSpeakerRating.
Referenced by EndCommSessionWithWingman(), free_cockpit(), FreeCommDisplayResources(), and UpdateShipTurretGuns().
| void FreeConstellationObject | ( | short | object | ) |
Definition at line 418 of file fltsetup.c.
References FreeConstellationObject(), FreePacketAndClear(), g_apObjectShape, and remove_object().
Referenced by close_behind(), free_constellation(), and FreeConstellationObject().
Definition at line 908 of file winmain.c.
References GuardedAllocation::block, DetectDoubleFree(), FreeGuardedAllocation(), g_9_pGuardedAllocationLastRef, g_pGuardedAllocationHead, g_szGuardedHeapDiagnosticMessage, GuardedAllocation::next, ReportHeapGuardCorruption(), GuardedAllocation::size, TrackFreedHeapBlock(), and WriteDebugString().
Referenced by FreeGuardedAllocation(), and ReleasePacketHandle().
Definition at line 1955 of file eventmgr.c.
References FreeIfNotNull().
Referenced by DosMemmove(), FreeIfNotNull(), InitializeNearHeap(), and ShutdownNearHeap().
Definition at line 319 of file nearheap.c.
References NearHeapBlock::address, DosFarPtrToNear(), DosNearPtrToFar(), FreeNearHeapBlock(), g_1_nNearHeapBase, g_nNearArenaSize, g_nNearHeapFirstDescriptor, ReleaseNearHeapBlock(), and NearHeapBlock::sizeAndFlags.
Referenced by FreeNearHeapBlock(), and UpdateShipTurretGuns().
Definition at line 45 of file disk.c.
References FreePacketAndClear(), and ReleasePacketHandle().
Referenced by BarracksScreen(), cockpit_explosion(), death_sequence(), DrawPendingCockpitDamage(), explosion_draw(), FetchDiskPacketRetrying(), free_3Space_objects(), free_cockpit(), free_constellation(), free_ship(), FreeConstellationObject(), FreePacketAndClear(), FreeShapeSet(), get_right_shape(), InitializeCockpitResources(), InitializeHighMemoryGraphicsBuffers(), load_ship(), LoadCommPortraitResources(), PromptToContinueCampaign(), release_all_capital_ship_shapes(), release_capital_ship_shapes(), ReleaseHighMemoryGraphicsBuffers(), ReleaseMusicTrack(), remove_object(), RunCampaignChalkboardMenu(), RunCampaignGameLoop(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), set_up_action_sphere(), ShipExplosion(), ShutdownSoundBlaster(), StoreMissionResultsInCampaignGlobals(), and Title_Sequence().
| void FreeShapeSet | ( | PacketResourceDescriptor * | resources, |
| unsigned short | releaseFlags ) |
Definition at line 38 of file fltsetup.c.
References FreePacketAndClear(), FreeShapeSet(), and PacketResourceDescriptor::resource.
Referenced by close_behind(), free_3Space(), free_3Space_objects(), free_cockpit(), FreeShapeSet(), and load_common_3Space_objects().
Definition at line 114 of file sound.c.
References FreeWaveTable(), g_pWaveTableHead, g_pWaveTableTail, WaveTableEntry::name, and WaveTableEntry::next.
Referenced by FreeWaveTable(), ServiceAudioStream(), stop_all_sounds(), and UpdateShipTurretGuns().
| void futurion_intelligence | ( | short | obj | ) |
Definition at line 1370 of file brains.c.
References futurion_intelligence(), g_aeObjectClass, g_asActionCount, g_asObjectCounter, g_nFacingToTarget, g_nTargetRange, and get_facing_range_from_object().
Referenced by futurion_intelligence(), object_intelligence(), and update_objects_in_space().
Definition at line 376 of file startup.c.
References FxDriverInitHook().
Referenced by DrawTextAt(), and FxDriverInitHook().
Definition at line 266 of file music.c.
References calculate_damage_level(), changetrack(), detect_enemy_tail(), FindMissileTargetingObject(), g_bJumpSequenceActive, g_nCombatMusicActive, g_nInFlightMusicActive, g_nInitialFlightMusicPending, g_nMissionMusicTrackOverride, g_nMusicTrackComplete, g_nSpaceFrame, gametrack(), is_ship_tailing_player_target(), report_kilrathi_rout(), and spacetrack().
Referenced by gametrack(), servicetrack(), and UpdateShipTurretGuns().
| void general_zig | ( | short | ship, |
| unsigned int | target, | ||
| short | pitch ) |
Definition at line 849 of file fl.c.
References advance(), fire_afterburner(), g_acShipSequence, g_aeSpecialManeuver, g_anPitchGoal, g_anYawGoal, g_asShipCount, general_zig(), maneuver_complete(), no_goal(), SPECIAL_MANEUVER_NONE, and void().
Referenced by general_zig(), Mzig_zag(), and Mzig_zag_pitch().
| unsigned int generate_stars | ( | void | ) |
Definition at line 674 of file spc.c.
References copy_frame(), EYE_OBJECT, g_1_nStarFieldIRotation, g_aeObjectClass, g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_asObjectViewFrame, g_nStarFieldJRotationNumber, generate_stars(), OBJECT_CLASS_STAR, RandomInRange(), rotate_about_i(), rotate_about_j(), ScaleFixedVector(), signed_random(), start_dust(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by generate_stars(), new_view(), and set_eye_direction_and_position().
| void GenerateWipeRadialEdges | ( | short * | edges, |
| int | radius ) |
Definition at line 1201 of file wipe.c.
References g_nWipeRadialRowCount, and GenerateWipeRadialEdges().
Referenced by AdvanceViewportWipe(), CollectRasterClipColours(), FinishViewportWipe(), and GenerateWipeRadialEdges().
| 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().
| void get_facing_range_from_object | ( | short | obj, |
| short | other ) |
Definition at line 578 of file geom.c.
References dot_product(), g_2_vNormalizedToTgt, g_aShipForwardVector, g_aShipPosition, g_asObjectCollisionRadius, g_nTargetFacing, g_nTargetRange, get_facing_range_from_object(), get_facing_range_from_point(), and negate_vector().
Referenced by being_tailed(), BuildCommunicationCommandMenu(), capital_ship_strike_mission(), cruise_to_destination(), fire(), futurion_intelligence(), get_facing_range_from_object(), heat_seeking_missile_intelligence(), intelligence_events(), Mkill_missile(), object_intelligence(), patrol_area(), prepare_for_jump(), scan_for_enemy(), tanker_intelligence(), target_locking(), and UpdateSavedTorpedoTargetLock().
| void get_facing_range_from_point | ( | short | obj, |
| const FixedVector * | point ) |
Definition at line 562 of file geom.c.
References distance_from_point(), dot_product(), g_2_vNormalizedToTgt, g_aShipForwardVector, g_asObjectCollisionRadius, g_nFacingRangeQueryCount, g_nFacingToTarget, g_nTargetRange, g_vToTarget, get_facing_range_from_point(), and NormalizeFixedVector().
Referenced by chase_location(), get_facing_range_from_object(), get_facing_range_from_point(), goto_formation(), goto_location(), patrol_area(), and prevent_collision().
| unsigned int get_first_follow_point | ( | short | obj, |
| FixedVector * | point ) |
Definition at line 907 of file logic.c.
References g_abShipNavPointIndex, g_asShipSide, g_cCurrentNavPointIndex, get_first_follow_point(), get_follow_point(), and SIDE_IMPERIAL.
Referenced by close_behind(), coming_home(), get_first_follow_point(), reach_warp(), and strike_mission().
| void get_follow_point | ( | short | obj, |
| FixedVector * | point ) |
Definition at line 872 of file logic.c.
References find_ship_index(), g_abFlightPath, g_abShipNavPointIndex, g_aMissionNavPoints, g_aMissionObjectives, g_aShipPosition, g_asShipMissionParameter, g_asShipSide, get_follow_point(), MISSION_OBJECTIVE_COUNT, MissionNavPoint::position, MissionObjective::position, and SIDE_KILRATHI.
Referenced by close_behind(), cruise_home(), cruise_to_destination(), get_first_follow_point(), and get_follow_point().
| 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().
Definition at line 389 of file main.c.
References g_12_wInputDeviceButtonStatus, g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, g_bFlightButtonOneHeld, g_bFlightButtonTwoHeld, g_stCurrentFlightInput, g_wFlightInputButtonState, g_wSavedInputDeviceButtonState, get_player_input(), ReadCalibratedJoystick(), TranslatePolledInputEvent(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by AcknowledgeModalMessage(), close_behind(), get_player_input(), InflightComputer(), and InitializeSpaceFlightInput().
| void get_right_shape | ( | short | obj, |
| FixedVector * | direction ) |
Definition at line 1181 of file geom.c.
References ArcCos(), CheckHeapBlockSignature(), DIRECTION_VIEW_COUNT, dot_product(), EYE_OBJECT, FetchDiskPacketRetrying(), free_view_buffer(), FreePacketAndClear(), g_137_aDirectionViewUpVectorArray, g_27_stViewScratchInfo, g_9_aDirectionLookRightVector, g_abObjectShapeOwned, g_acDirectionShapeFlip, g_acDirectionShapeFrame, g_acObjectType, g_aeObjectClass, g_aObjectResourceSlots, g_aObjectTypeData, g_apObjectShape, g_apPacketReferenceGroups, g_aShipUpVector, g_asLoadedShipViewFrame, g_asObjectFlip, g_asObjectScreenAngle, g_asObjectType, g_asObjectViewFrame, g_bExpandedShipGraphicsEnabled, get_right_shape(), IdentityWord(), initialize_view_buffer(), MaxShort(), MinShort(), negate_vector(), NormalizeFixedVector(), OBJECT_CLASS_BASE, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, SphericalVector::pitch, Viewport::pixels, rectangular_to_spherical(), ObjectTypeData::resourceType, rotate_about_i(), rotate_about_j(), transform_to_objects_frame(), FixedVector::x, FixedVector::y, SphericalVector::yaw, and FixedVector::z.
Referenced by get_right_shape(), and transform_objects_to_your_view().
| short get_shape_slot | ( | void | ) |
Definition at line 751 of file mission.c.
References g_aObjectResourceSlots, and get_shape_slot().
Referenced by get_shape_slot(), and new_sphere_shapes().
| short get_ship_max_velocity | ( | short | obj | ) |
Definition at line 9 of file geom.c.
References g_acObjectType, g_aeObjectClass, g_aObjectTypeData, g_asPilotLevel, g_asShipSide, get_ship_max_velocity(), GetAdaptiveTurnRate(), ObjectTypeData::maximumVelocity, MaxShort(), MinShort(), OBJECT_CLASS_SHIP, RATING_ACE_SPIRIT, and SIDE_KILRATHI.
Referenced by FF_missile_intelligence(), fire_afterburner(), fire_weapon(), get_ship_max_velocity(), heat_seeking_missile_intelligence(), object_intelligence(), and recalc_max_velocity().
| short get_ship_slot | ( | void | ) |
Definition at line 829 of file geom.c.
References g_aeObjectClass, get_ship_slot(), and OBJECT_CLASS_NULL.
Referenced by fire_weapon(), get_ship_slot(), and initialize_ship().
| short GetAdaptiveTurnRate | ( | void | ) |
Definition at line 137 of file ship.c.
References g_asDifficultyLevels, g_nAdaptiveDifficulty, g_nCurrentLevel, g_nCurSeries, and GetAdaptiveTurnRate().
Referenced by CanSetNewShipTurnGoal(), check_for_lost_control(), DrawTextAt(), fire_turrets(), get_ship_max_velocity(), GetAdaptiveTurnRate(), GetShipAccelerationRate(), intelligence_events(), object_collision(), process_maneuver_node(), regulate_turn(), and rotate_object_to_goal().
| HINSTANCE GetApplicationInstance | ( | void | ) |
Definition at line 734 of file winmain.c.
References g_7_hAppCopy, and GetApplicationInstance().
Referenced by GetApplicationInstance().
| unsigned int GetAvailableFarMemory | ( | void | ) |
Definition at line 1509 of file eventmgr.c.
References GetAvailableFarMemory().
Referenced by DosMemmove(), DrawCinematicMemoryStatus(), ejection_sequence(), GetAvailableFarMemory(), GetAvailableFarMemoryByType(), ReportPacketLoadError(), RunCampaignScript(), ShowMemoryStatusDebug(), and WriteDetailedMemoryStateReport().
| unsigned int GetAvailableFarMemoryByType | ( | short | memoryType | ) |
Definition at line 132 of file memapi.c.
References GetAvailableFarMemory(), GetAvailableFarMemoryByType(), and void().
Referenced by GetAvailableFarMemoryByType(), LoadOriginFxDrivers(), ReportPacketLoadError(), and UpdateShipTurretGuns().
| unsigned int GetAvailableMainMemory | ( | void | ) |
Definition at line 13 of file memfree.c.
References DosNearPtrToFar(), g_1_nNearHeapBase, g_nNearArenaSize, g_nNearHeapFirstDescriptor, GetAvailableMainMemory(), and NearHeapBlock::sizeAndFlags.
Referenced by AppendPacketLoadDebugLog(), close_behind(), DrawCinematicMemoryStatus(), ejection_sequence(), FetchDiskPacketRetrying(), GetAvailableMainMemory(), InitializeCutsceneRuntimeResources(), LoadCachedCutsceneResource(), ReleaseActiveCutscenePacket(), ReleaseLoadedCutsceneResource(), ReportPacketLoadError(), RunCampaignGameLoop(), RunCampaignScript(), RunLoadedCutscene(), ShowMemoryStatusDebug(), and WriteDetailedMemoryStateReport().
| int GetCannedSceneObjectMode | ( | short | obj | ) |
Definition at line 92 of file taperec.c.
References g_aeObjectClass, g_aeSpecialManeuver, g_anShipCloakState, g_asShipCloakCooldown, g_asShipCloakElapsedFrames, g_asShipTactic, GetCannedSceneObjectMode(), OBJECT_CLASS_SHIP, TACTIC_WARP_IN, and TACTIC_WARP_OUT.
Referenced by GetCannedSceneObjectMode(), RecordCannedSceneObjectState(), and UpdateShipTurretGuns().
| int GetControlKeyState | ( | void | ) |
Definition at line 1136 of file winmain.c.
References GetControlKeyState().
Referenced by GetControlKeyState(), HandleSpaceFlightControls(), PollSceneHotspotInput(), and QueueInputEvent().
| short GetCurrentDiskDriveHook | ( | void | ) |
Definition at line 1990 of file eventmgr.c.
References GetCurrentDiskDriveHook().
Referenced by DosMemmove(), and GetCurrentDiskDriveHook().
| unsigned int GetDIBHeight | ( | void | ) |
Definition at line 806 of file dib.cpp.
References g_38_nSurfaceHeight, and GetDIBHeight().
Referenced by GetDIBHeight(), and UpdateShipTurretGuns().
| unsigned char * GetDIBPixelBuffer | ( | void | ) |
Definition at line 779 of file dib.cpp.
References g_18_pDisplayPixelBuffer, and GetDIBPixelBuffer().
Referenced by CopyViewportContents(), DIBmakeDIB(), GetDIBPixelBuffer(), InitializeDIBScreenViewport(), ReleaseCutsceneViewport(), and UpdateShipTurretGuns().
| unsigned int GetDIBWidth | ( | void | ) |
Definition at line 800 of file dib.cpp.
References g_28_nDisplayRowBytes, and GetDIBWidth().
Referenced by GetDIBWidth(), and UpdateShipTurretGuns().
| HWND GetDIBWindowHandle | ( | void | ) |
Definition at line 793 of file dib.cpp.
References g_2_hFrameHwnd, and GetDIBWindowHandle().
Referenced by GetDIBWindowHandle(), and UpdateShipTurretGuns().
| int GetDownArrowKeyState | ( | void | ) |
Definition at line 1082 of file winmain.c.
References GetDownArrowKeyState().
Referenced by GetDownArrowKeyState(), and KeyboardMousePump().
| int GetEndKeyState | ( | void | ) |
Definition at line 1076 of file winmain.c.
References GetEndKeyState().
Referenced by GetEndKeyState(), and KeyboardMousePump().
| unsigned int GetF1KeyLatch | ( | void | ) |
Definition at line 17 of file winmain.c.
References g_bF1KeyDown, and GetF1KeyLatch().
Referenced by GetF1KeyLatch(), and HandleSpaceFlightControls().
| short GetFontCharWidth | ( | char | i | ) |
Definition at line 216 of file eventmgr.c.
References TextContext::font, g_29_pCurrentTextContext, and GetFontCharWidth().
Referenced by ClearTextInputCharacter(), EraseLastTextInputCharacter(), GetFontCharWidth(), intelligence_events(), and MeasureTextPixelWidthClamped().
| unsigned int GetGameClockTicks | ( | void | ) |
Definition at line 1148 of file winmain.c.
References g_128_dwGameClockBase, and GetGameClockTicks().
Referenced by GetGameClockTicks(), SplitGameClockTicks(), and SplitGameClockTicksForNav().
| unsigned int GetGIFImageSize | ( | const unsigned char * | gifData | ) |
References GetGIFImageSize().
Referenced by GetGIFImageSize().
| int GetHomeKeyState | ( | void | ) |
Definition at line 1046 of file winmain.c.
References GetHomeKeyState().
Referenced by GetHomeKeyState(), and KeyboardMousePump().
| unsigned int GetILBMImageSize | ( | const unsigned char * | iffData | ) |
References GetILBMImageSize().
Referenced by GetILBMImageSize().
| short GetInitialMissionShipPilotSaveIndex | ( | short | initialShip | ) |
Definition at line 35 of file campglob.c.
References g_13_stMissionHeaderBlock, GetInitialMissionShipPilotSaveIndex(), GetMissionShipPilotSaveIndex(), and MissionHeader::initialMissionShips.
Referenced by GetInitialMissionShipPilotSaveIndex(), and StoreMissionResultsInCampaignGlobals().
| unsigned char * GetInputCursorShape | ( | void | ) |
Definition at line 2413 of file eventmgr.c.
References g_16_stEventQueuePointerData, GetInputCursorShape(), and QueuedMouseState::shape.
Referenced by close_behind(), GetInputCursorShape(), overlay_head_up_display(), and RestoreTransientCockpitGraphics().
| int GetJKeyState | ( | void | ) |
Definition at line 1142 of file winmain.c.
References GetJKeyState().
Referenced by GetJKeyState(), and PollSceneHotspotInput().
| short GetJoystickButtons | ( | void | ) |
Definition at line 706 of file winmain.c.
References g_1_aJoystickInfoArray, and GetJoystickButtons().
Referenced by GetJoystickButtons(), and ReadJoystickButtons().
| void GetJoystickDevCaps | ( | short | joystick, |
| short * | xMin, | ||
| short * | xMax, | ||
| short * | yMin, | ||
| short * | yMax ) |
Definition at line 716 of file winmain.c.
References GetJoystickDevCaps().
Referenced by GetJoystickDevCaps(), and LoadJoystickCalibrationFile().
| void GetJoystickPosition | ( | unsigned int * | x, |
| unsigned int * | y, | ||
| int * | buttons, | ||
| unsigned short | joystick, | ||
| unsigned int | fallback ) |
Definition at line 657 of file winmain.c.
References g_1_aJoystickInfoArray, g_bJoystickPrimaryButtonLatched, g_bJoystickSecondaryButtonLatched, g_nInputPressCount, and GetJoystickPosition().
Referenced by GetJoystickPosition(), SampleBothJoysticks(), and SampleJoystickDevice().
| unsigned int GetKeyboardModifiers | ( | void | ) |
Definition at line 1130 of file winmain.c.
References g_69_dwSysKeyValue, and GetKeyboardModifiers().
Referenced by GetKeyboardModifiers(), HandleSpaceFlightControls(), and QueueInputEvent().
| unsigned int GetLargestFreeMemoryBlock | ( | void | ) |
Definition at line 1515 of file eventmgr.c.
References GetLargestFreeMemoryBlock().
Referenced by DosMemmove(), ejection_sequence(), GetLargestFreeMemoryBlock(), GetLargestFreeMemoryBlockByType(), RunCampaignScript(), and WriteDetailedMemoryStateReport().
| unsigned int GetLargestFreeMemoryBlockByType | ( | short | memoryType | ) |
Definition at line 139 of file memapi.c.
References GetLargestFreeMemoryBlock(), GetLargestFreeMemoryBlockByType(), and void().
Referenced by GetLargestFreeMemoryBlockByType(), LoadOriginFxDrivers(), LogMemoryUsage(), ReportPacketLoadError(), SetFleetOverviewView(), ShowMemoryStatusDebug(), and UpdateShipTurretGuns().
| unsigned int GetLargestMainMemoryBlock | ( | void | ) |
Definition at line 35 of file memfree.c.
References DosNearPtrToFar(), g_1_nNearHeapBase, g_nNearArenaSize, g_nNearHeapFirstDescriptor, GetLargestMainMemoryBlock(), and NearHeapBlock::sizeAndFlags.
Referenced by AppendPacketLoadDebugLog(), close_behind(), DrawCinematicMemoryStatus(), ejection_sequence(), FetchDiskPacketRetrying(), GetLargestMainMemoryBlock(), InitializeCutsceneRuntimeResources(), RunCampaignScript(), and WriteDetailedMemoryStateReport().
| int GetLeftArrowKeyState | ( | void | ) |
Definition at line 1064 of file winmain.c.
References GetLeftArrowKeyState().
Referenced by GetLeftArrowKeyState(), and KeyboardMousePump().
| char * GetLegacyGameDataPath | ( | void | ) |
Definition at line 188 of file stream.cpp.
References g_15_szLegacyGameDataPath, g_szInstalledToValueName, g_szOriginRegistryKey, g_szWing1InstalledValueName, and GetLegacyGameDataPath().
Referenced by close_behind(), GetLegacyGameDataPath(), and LocateLegacySaveGame().
| HDC GetMainWindowDeviceContext | ( | void | ) |
Definition at line 750 of file winmain.c.
References g_18_hMainWindowContext, and GetMainWindowDeviceContext().
Referenced by GetMainWindowDeviceContext().
| HWND GetMainWindowHandle | ( | void | ) |
Definition at line 742 of file winmain.c.
References g_10_hMainWindow, and GetMainWindowHandle().
Referenced by GetMainWindowHandle().
| short GetMissionShipPilotSaveIndex | ( | short | missionShip | ) |
Definition at line 11 of file campglob.c.
References g_aMissionShips, GetMissionShipPilotSaveIndex(), MissionShipRecord::pilot, and MissionShipRecord::portrait.
Referenced by GetInitialMissionShipPilotSaveIndex(), and GetMissionShipPilotSaveIndex().
| short GetMissionShipVelocityState | ( | short | missionShip | ) |
Definition at line 24 of file campglob.c.
References g_aMissionShips, and GetMissionShipVelocityState().
Referenced by GetMissionShipVelocityState(), and StoreMissionResultsInCampaignGlobals().
| unsigned int GetMusicStreamVolume | ( | void | ) |
Definition at line 255 of file stream.cpp.
References GetMusicStreamVolume(), and ix_streamer_get_volume().
Referenced by CollectRasterClipColours(), and GetMusicStreamVolume().
| long GetNamedPacketSize | ( | const char * | filename, |
| short | section ) |
Definition at line 2164 of file eventmgr.c.
References GetNamedPacketSize(), and GetPacketSize().
Referenced by AppendPacketLoadDebugLog(), GetNamedPacketSize(), InitializeCockpitResources(), LoadAndPlaySpeechPacket(), LoadCachedCutsceneResource(), LoadCutsceneSpeechSlot(), LoadPacketAllocated(), LoadPacketResourceList(), real_vid_transmit(), ReportPacketLoadError(), and UpdateShipTurretGuns().
| short GetNavRangeSentinel | ( | void | ) |
Definition at line 1908 of file eventmgr.c.
References GetNavRangeSentinel().
Referenced by DosMemmove(), GetNavRangeSentinel(), and InitializeNearHeap().
| int GetNearHeapBlockSize | ( | void * | pointer | ) |
Definition at line 341 of file nearheap.c.
References NearHeapBlock::address, DosFarPtrToNear(), DosNearPtrToFar(), g_1_nNearHeapBase, g_nNearArenaSize, g_nNearHeapFirstDescriptor, GetNearHeapBlockSize(), and NearHeapBlock::sizeAndFlags.
Referenced by GetNearHeapBlockSize(), and UpdateShipTurretGuns().
| int GetNextInputEvent | ( | InputEventState * | event | ) |
Definition at line 800 of file eventmgr.c.
References Viewport::bottom, InputEvent::field_14, InputEvent::field_18, FlushInputEvents(), g_16_stEventQueuePointerData, g_196_nInputTimerTicks, g_nNextInputQueueFlushTick, g_pInputEventHead, GetNextInputEvent(), Viewport::left, InputEvent::modifiers, InputEventState::modifiers, InputEvent::primaryButton, QueuedMouseState::primaryButton, ReleaseInputEventQueue(), RemoveInputEvent(), Viewport::right, InputEvent::secondaryButton, QueuedMouseState::secondaryButton, InputEvent::status, InputEventState::status, Viewport::top, InputEvent::type, InputEvent::value, InputEventState::value, QueuedMouseState::viewport, InputEvent::x, InputEventState::x, QueuedMouseState::x, InputEvent::y, InputEventState::y, and QueuedMouseState::y.
Referenced by DosMemmove(), GetNextInputEvent(), HandleFleetOverviewInput(), player_input(), PollInputEvent(), PollPersonnelMenuInput(), PollSceneHotspotInput(), and ProcessCannedSceneInput().
| int GetNumLockKeyState | ( | void | ) |
Definition at line 1094 of file winmain.c.
References GetNumLockKeyState().
Referenced by GetNumLockKeyState(), and KeyboardMousePump().
| int GetNumpadMinusKeyState | ( | void | ) |
Definition at line 1106 of file winmain.c.
References GetNumpadMinusKeyState().
Referenced by GetNumpadMinusKeyState(), and KeyboardMousePump().
| int GetNumpadPlusKeyState | ( | void | ) |
Definition at line 1100 of file winmain.c.
References GetNumpadPlusKeyState().
Referenced by GetNumpadPlusKeyState(), and KeyboardMousePump().
| short GetOriginalFreeMemory | ( | void | ) |
Definition at line 1914 of file eventmgr.c.
References GetOriginalFreeMemory().
Referenced by AddCutsceneMusicNode(), AddCutsceneSoundEffect(), DosMemmove(), GetOriginalFreeMemory(), InitializeCutsceneRuntimeResources(), ReleaseCutsceneMusicNodes(), ReleaseCutsceneSoundEffects(), RunLoadedCutscene(), ShowMemoryStatusDebug(), and WriteDetailedMemoryStateReport().
| char * GetPackedStringByIndex | ( | CutsceneResourceTable * | resources, |
| short | index ) |
Definition at line 3487 of file gameflow.c.
References DosStrchr(), GetPackedStringByIndex(), and CutsceneResourceTable::packedFilenames.
Referenced by DosMemmove(), GetPackedStringByIndex(), InitializeSceneFlicStream(), LoadCachedCutsceneResource(), and LoadCutsceneSpeechSlot().
| unsigned int GetPacketSize | ( | const char * | filename, |
| short | section ) |
Definition at line 9 of file pktsize.c.
References CloseDataFileByHandle(), PacketSectionHandle::compression, PacketSectionHandle::dataSize, g_nPacketError, GetPacketSize(), OpenPacketSection(), and ReadPacketSectionData().
Referenced by GetNamedPacketSize(), GetPacketSize(), and UpdateShipTurretGuns().
| int GetPageDownKeyState | ( | void | ) |
Definition at line 1088 of file winmain.c.
References GetPageDownKeyState().
Referenced by GetPageDownKeyState(), and KeyboardMousePump().
| int GetPageUpKeyState | ( | void | ) |
Definition at line 1058 of file winmain.c.
References GetPageUpKeyState().
Referenced by GetPageUpKeyState(), and KeyboardMousePump().
| void GetPaletteEntry | ( | short | index, |
| unsigned short * | rgb ) |
Definition at line 670 of file gr.c.
References GetPaletteEntry(), and GetPaletteEntryAsWords().
Referenced by CollectRasterClipColours(), FadeViewportPaletteToColour(), GetPaletteEntry(), PanToScreen(), and SaveGamePalette().
| void GetPaletteEntryAsWords | ( | short | i, |
| unsigned short * | rgb ) |
Definition at line 900 of file dib.cpp.
References g_3_abColourShadow, and GetPaletteEntryAsWords().
Referenced by GetPaletteEntry(), GetPaletteEntryAsWords(), and UpdateShipTurretGuns().
| unsigned int GetPCXImageSize | ( | const unsigned char * | header | ) |
References GetPCXImageSize().
Referenced by GetPCXImageSize().
| unsigned char * GetPreparedShapeData | ( | unsigned char * | shape | ) |
Definition at line 131 of file gr.c.
References GetPreparedShapeData().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), GetPreparedShapeData(), and PrepareShapeRLEData().
| unsigned short GetRandomWord | ( | void | ) |
Definition at line 25 of file eventmgr.c.
References GetRandomWord().
Referenced by GetRandomWord(), and intelligence_events().
| unsigned int GetRawFrameWidth | ( | unsigned char * | shape, |
| int | frame ) |
References GetRawFrameWidth().
Referenced by GetRawFrameWidth().
| unsigned int GetRawImageHeight | ( | unsigned char * | shape | ) |
References GetRawImageHeight().
Referenced by GetRawImageHeight().
| 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().
| int GetReturnKeyState | ( | void | ) |
Definition at line 1112 of file winmain.c.
References GetReturnKeyState().
Referenced by GetReturnKeyState(), and KeyboardMousePump().
| int GetRightArrowKeyState | ( | void | ) |
Definition at line 1070 of file winmain.c.
References GetRightArrowKeyState().
Referenced by GetRightArrowKeyState(), and KeyboardMousePump().
| unsigned int GetRLEFrameBounds | ( | unsigned char * | shape, |
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| unsigned int | flags, | ||
| int * | bounds ) |
References GetRLEFrameBounds().
Referenced by GetRLEFrameBounds().
| unsigned int GetRLEFrameCount | ( | const unsigned char * | shape | ) |
References GetRLEFrameCount().
Referenced by GetRLEFrameCount().
| unsigned int GetRLEFrameDimensions | ( | unsigned char * | shape, |
| int | frame ) |
References GetRLEFrameDimensions().
Referenced by GetRLEFrameDimensions().
| unsigned int GetRLEFrameExtents | ( | unsigned char * | shape, |
| int | frame ) |
References GetRLEFrameExtents().
Referenced by GetRLEFrameExtents().
| unsigned int GetRLEImageOrigin | ( | unsigned char * | shape, |
| int | frame ) |
References GetRLEImageOrigin().
Referenced by GetRLEImageOrigin().
| unsigned int GetRLEImageSize | ( | unsigned char * | shape, |
| int | frame ) |
References GetRLEImageSize().
Referenced by GetRLEImageSize().
| void GetRLETransformTrig | ( | int | angleTenths, |
| int * | cosine, | ||
| int * | sine ) |
References GetRLETransformTrig().
Referenced by GetRLETransformTrig().
| short GetShapeFrameBounds | ( | short * | bounds, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 228 of file eventmgr.c.
References GetShapeFrameBounds().
Referenced by DrawCinematicFontCharacter(), GetShapeFrameBounds(), GetShapeFrameExtent(), intelligence_events(), IsSpriteFrameOverlappingRect(), MeasureCinematicFontCharacterWidth(), and MeasureCinematicFontLineHeight().
| void GetShapeFrameCorners | ( | unsigned char * | shape, |
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| short * | points, | ||
| int * | count ) |
Definition at line 1461 of file gr.c.
References CheckHeapBlockSignature(), and GetShapeFrameCorners().
Referenced by CollectRasterClipColours(), and GetShapeFrameCorners().
| short GetShapeFrameCount | ( | unsigned char * | shape | ) |
Definition at line 137 of file gr.c.
References CheckHeapBlockSignature(), and GetShapeFrameCount().
Referenced by AdvanceSceneFlicStream(), CollectRasterClipColours(), DrawSpriteTransformed(), GetShapeFrameCount(), and PrepareShapeRLEData().
| short GetShapeFrameExtent | ( | short | x, |
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame, | ||
| short | extent ) |
Definition at line 9 of file shpext.c.
References GetShapeFrameBounds(), and GetShapeFrameExtent().
Referenced by GetShapeFrameExtent().
| void GetShapeFrameExtents | ( | unsigned char * | shape, |
| short | frame, | ||
| short * | width, | ||
| short * | height, | ||
| short * | leftExtent, | ||
| short * | topExtent ) |
Definition at line 144 of file gr.c.
References GetShapeFrameExtents().
Referenced by CollectRasterClipColours(), GetShapeFrameExtents(), and PrepareShapeRLEData().
| int GetShiftKeyState | ( | void | ) |
Definition at line 1124 of file winmain.c.
References GetShiftKeyState().
Referenced by GetShiftKeyState(), KeyboardMousePump(), process_player_input(), and QueueInputEvent().
| int GetShipAccelerationRate | ( | short | ship | ) |
Definition at line 62 of file geom.c.
References ObjectTypeData::acceleration, DivideFixed(), g_acObjectType, g_aeObjectClass, g_aObjectTypeData, g_asPilotLevel, g_asShipSide, GetAdaptiveTurnRate(), GetShipAccelerationRate(), MaxShort(), MinShort(), MultiplyFixed(), OBJECT_CLASS_SHIP, RATING_ACE_SPIRIT, and SIDE_KILRATHI.
Referenced by accelerate_and_move_object(), approach_speed(), control_speed(), and GetShipAccelerationRate().
| short GetShipDistanceToNavPoint | ( | short | ship, |
| MissionNavPoint * | navPoint ) |
Definition at line 1743 of file main.c.
References ComputeVectorDelta(), FixedToShortSaturating(), g_aShipPosition, GetShipDistanceToNavPoint(), MissionNavPoint::position, and Vector_magnitude().
Referenced by FindNearestNavPoint(), GetShipDistanceToNavPoint(), and UpdateShipTurretGuns().
| unsigned short GetShutdownErrorCode | ( | unsigned char * | driveState | ) |
Definition at line 1996 of file eventmgr.c.
References GetShutdownErrorCode(), and void().
Referenced by DosMemmove(), and GetShutdownErrorCode().
| int GetSoundHardwareFlag | ( | void | ) |
Definition at line 1471 of file eventmgr.c.
References GetSoundHardwareFlag().
Referenced by DosMemmove(), and GetSoundHardwareFlag().
| int GetSpaceKeyState | ( | void | ) |
Definition at line 1118 of file winmain.c.
References GetSpaceKeyState().
Referenced by GetSpaceKeyState(), and KeyboardMousePump().
| unsigned int GetStartupErrorCode | ( | int | vector | ) |
Definition at line 1963 of file eventmgr.c.
References GetStartupErrorCode(), and void().
Referenced by DosMemmove(), and GetStartupErrorCode().
| short GetTransformedShapeBounds | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip, | ||
| short * | bounds ) |
Definition at line 1518 of file gr.c.
References ShortRect::bottom, Viewport::bottom, CheckHeapBlockSignature(), g_awAbsoluteCosine, g_awAbsoluteSine, GetTransformedShapeBounds(), HasValidShapeAllocationSignature(), ShortRect::left, Viewport::left, ShortRect::right, Viewport::right, ShortRect::top, Viewport::top, and void().
Referenced by build_your_target_list(), CollectRasterClipColours(), draw_target_box(), DrawScaledTitleLogo(), easy2see(), GetTransformedShapeBounds(), and RevealTitleLogo().
| int GetUpArrowKeyState | ( | void | ) |
Definition at line 1052 of file winmain.c.
References GetUpArrowKeyState().
Referenced by GetUpArrowKeyState(), and KeyboardMousePump().
| 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 GetVectorMagnitude | ( | const FixedVector * | vector | ) |
Definition at line 66 of file spc.c.
References FixedToShortSaturating(), GetVectorMagnitude(), and Vector_magnitude().
Referenced by GetVectorMagnitude().
| short GetViewportIntersection | ( | ShortRect * | intersection, |
| const ShortRect * | first, | ||
| const ShortRect * | second ) |
Definition at line 2277 of file eventmgr.c.
References ShortRect::bottom, GetViewportIntersection(), ShortRect::left, MaxShort(), MinShort(), ShortRect::right, and ShortRect::top.
Referenced by CopyTrainSimPilotViewToVdus(), and GetViewportIntersection().
| short GetViewportPixel | ( | Viewport * | viewport, |
| short | x, | ||
| short | y ) |
Definition at line 1049 of file gr.c.
References ClipViewportToScreen(), g_stScreenLimits, GetViewportPixel(), Viewport::left, ReadRasterClipPixel(), and Viewport::top.
Referenced by CollectRasterClipColours(), draw_3d_scanner(), DrawTargetCameraAttitudeIndicators(), GetViewportPixel(), and PanToScreen().
| short gone_ship | ( | short | missionShip | ) |
Definition at line 798 of file logic.c.
References g_aMissionShips, gone_ship(), and MissionShipRecord::state.
Referenced by check_destroy_target(), check_goal(), close_behind(), and gone_ship().
| void goto_formation | ( | short | obj, |
| const FixedVector * | destination, | ||
| short | leader ) |
Definition at line 348 of file smart.c.
References AddFixedVectors(), approach_full_speed(), approach_min_speed(), approach_ship_speed(), CanSetNewShipTurnGoal(), control_speed(), copy_frame(), fire_afterburner(), g_anRollGoal, g_anShipSpeed, g_aShipForwardVector, g_aShipPosition, g_nFacingToTarget, g_nTargetRange, g_vToTarget, get_facing_range_from_point(), goto_formation(), match_roll_orientation(), normal_speed(), point_parallel(), point_ship(), steady_object(), and trim_goals().
Referenced by goto_formation(), maintain_formation(), and UpdateShipTurretGuns().
| void goto_location | ( | short | obj, |
| const FixedVector * | destination ) |
Definition at line 329 of file smart.c.
References approach_cruise_speed(), approach_full_speed(), approach_half_speed(), CanSetNewShipTurnGoal(), FixedToShortSaturating(), g_anShipSpeed, g_nFacingToTarget, g_nTargetRange, get_facing_range_from_point(), goto_location(), MaxShort(), and point_ship_at_point().
Referenced by goto_location(), and UpdateShipTurretGuns().
| short handle_collisions | ( | short | obj | ) |
Definition at line 141 of file smart.c.
References alert_flag(), detect_collisions(), handle_collisions(), prevent_collision(), and start_collision_alert().
Referenced by handle_collisions(), regulate_turn(), UpdateSavedTorpedoTargetLock(), and UpdateShipTurretGuns().
| void handle_stress | ( | short | obj, |
| short | event ) |
Definition at line 654 of file smart.c.
References evaluate_damage(), g_acPilotAggression, g_acPilotRecovery, g_acShipStress, g_asPilotLevel, handle_stress(), and MinShort().
Referenced by handle_stress(), intelligence_events(), and maintain_formation().
Definition at line 48 of file taperec.c.
References EYE_OBJECT, FlushCannedSceneRecordingBuffer(), g_78_bHighMemoryBuffersSetState, g_aShipForwardVector, g_aShipPosition, g_aShipUpVector, g_aShipVelocity, g_nCannedSceneBufferNearCapacityFlag, g_nCannedSceneMode, g_nCurrentView, HandleCannedSceneBufferBoundary(), InitializeCannedSceneFrameIndex(), LoadCannedScenePlaybackBuffer(), and ResetCannedScenePlaybackBuffer().
Referenced by HandleCannedSceneBufferBoundary(), update_objects_in_space(), and UpdateShipTurretGuns().
Definition at line 342 of file comm.c.
References CanOpenCommMenu(), CloseCommChoiceMenu(), HandleCommunicationMenuRequest(), IsCommChoiceMenuOpen(), message_showing(), OpenCommRecipientMenu(), RefreshCommunicationMenu(), and ResetCommMenuChoices().
Referenced by HandleCommunicationMenuRequest(), show_communications_disp(), and UpdateShipTurretGuns().
| short HandleFleetOverviewInput | ( | void | ) |
Definition at line 33 of file turret.c.
References Viewport::bottom, InputDeviceSample::buttons, ClearTargetCameraView(), cycle_onscreen_targets(), FireTargetCameraGuns(), MouseCursorState::frame, g_10_stPrevFlightControls, g_12_wInputDeviceButtonStatus, g_19_bPolledFlightInputQueued, g_1_bDiscreteFlightInputWaiting, g_27_stViewScratchInfo, g_2_bFleetMouseMovePosted, g_37_stPersonnelMousePointerState, g_6_stHostMouseTextBlock, g_6_wQueuedButtonsState, g_asFleetMousePitchThresholds, g_asFleetMouseYawThresholds, g_bFleetButtonInputActive, g_bFleetPolledInputActive, g_bMapPrimaryInputQueued, g_bTargetLockMode, g_cCurrentKey, g_cPreviousKey, g_nAimCameraMode, g_nCockpitControlGoal, g_nCockpitControlState, g_nCurrentView, g_nFleetMousePitchVelocity, g_nFleetMouseYawVelocity, g_nFleetOverviewPitchVelocity, g_nFleetOverviewYawVelocity, g_nTargetCameraFrame, g_nTargetCameraGunCooldown, g_nTargetCameraZoom, g_stCurrentFlightInput, GetNextInputEvent(), HandleFleetOverviewInput(), IsInputEventQueued(), Viewport::left, PlaySfxWaveFileByNumber(), HostMouseMessage::primaryButton, Viewport::right, ServiceInputDevices(), SetPersonnelMousePosition(), ShowGamePausedBanner(), InputEventState::status, ToggleTargetCameraTracking(), Viewport::top, InputDeviceSample::x, InputEventState::x, MouseCursorState::x, InputDeviceSample::y, InputEventState::y, and MouseCursorState::y.
Referenced by close_behind(), HandleFleetOverviewInput(), and HandleSpaceFlightControls().
| short HandleSpaceFlightControls | ( | void | ) |
Definition at line 912 of file main.c.
References accelerate(), AdjustSpaceFramePeriod(), any_enemy(), auto_pilot_sequence(), BeginInflightReplayHook(), CalibrateJoystickInteractive(), Chosen_communicate_option(), ClearTargetCameraView(), CloseCommChoiceMenu(), EndCommMenu(), explode(), fire_missile(), fire_players_lasers(), FireTargetCameraGuns(), FlushInputEvents(), force_view(), free_view_buffer(), g_128_abPauseInputState, g_13_abPreviousPauseKeyStatuses, g_1_cStoredViewDisplayModeValue, g_26_bMouseCursorEnabled, g_27_nLastAltCommandScanNumberWord, g_27_stViewScratchInfo, g_2_bAltFHotkeyFlag, g_2_bAltHHotkey, g_39_bAltNumpadAddHotkeySwitch, g_4_bMenuBHotkey, g_6_bAltDChordState, g_6_bMenuTHotkeySwitch, g_78_bHighMemoryBuffersSetState, g_88_nEventRepeatDelayState, g_acPlayerComponentDamage, g_acShipTarget, g_aeObjectClass, g_aeShipObjective, g_anShipSpeed, g_anVolumeLevels, g_asObjectType, g_asShipSide, g_bAltNumpadSubtractShortcut, g_bDebugBreakEnabled, g_bDisplayWingmanTargetData, g_bFullScreenSpaceView, g_bJoystickCalibrationHotkey, g_bMenuAHotkey, g_bMissileCameraEnabled, g_bPauseInputActive, g_bSceneEscapeRequested, g_bTargetLockMode, g_bVideoImagesSuppressed, g_cCurrentKey, g_cPreviousKey, g_cRedColour, g_nArcadeState, g_nCockpitControlGoal, g_nCockpitControlState, g_nCockpitDisplayMode, g_nCommMenuChoiceCount, g_nCurrentView, g_nEnemyTauntCommandBase, g_nExternalViewShip, g_nMusicVolumeSetting, g_nOriginDevUnlock, g_nScreenHeight, g_nScreenWidth, g_nSelectedReleaseWeaponIndex, g_nSfxVolumeSetting, g_nTargetCameraFrame, g_nYourWingman, g_ucPrimaryTextColour, get_mode(), GetControlKeyState(), GetF1KeyLatch(), GetKeyboardModifiers(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), initialize_cockpit(), initialize_view_buffer(), InvalidateVduMode(), IsCockpitWeaponShapeLoaded(), IssueQuickCommCommand(), malf_sound(), message_showing(), new_view(), OBJECT_CLASS_SHIP, OBJECTIVE_HOLD_FORMATION, player_input(), players_flight_dynamics(), PlaySfxWaveFileByNumber(), RandomInRange(), ReportFramesSkipped(), SaveVolumeSettingsToRegistry(), SelectCockpitVduMode(), SelectNextExternalViewObject(), ServiceInputDevices(), SetFrameTimerPeriodDirect(), SetHudMessageText(), SetMessageDisplaySpeed(), SetMusicStreamVolume(), SetSoundEffectsVolume(), SetViewportRect(), ShowGamePausedBanner(), ShowOnScreenMessage(), ShowVersionBanner(), SIDE_KILRATHI, ToggleTargetCameraOverlay(), TryBeginStarSystemJump(), and your_afterburner().
Referenced by HandleSpaceFlightControls(), RunSpaceFlight(), and UpdateShipTurretGuns().
| void HandleUnsupportedManeuver | ( | short | maneuver, |
| short | ship, | ||
| short | target ) |
Definition at line 84 of file fl.c.
References g_nOriginDevUnlock, HandleUnsupportedManeuver(), and Mzip_past().
Referenced by HandleUnsupportedManeuver(), Mchill(), Mdrop_a_mine(), Mfull_ahead(), Mtarget_laser(), Mthink(), ShipAiState28(), ShipAiState3(), and ShipAiState35().
| short has_opposing_ship | ( | short | side | ) |
Definition at line 9 of file carrier.c.
References g_aeObjectClass, g_asShipSide, has_opposing_ship(), and OBJECT_CLASS_SHIP.
Referenced by close_behind(), has_opposing_ship(), and launch_carrier_fighter().
| signed char HasCutsceneMusicNode | ( | CutsceneMusicNode * | node | ) |
Definition at line 119 of file gameflow.c.
References HasCutsceneMusicNode().
Referenced by AddCutsceneMusicNode(), DosMemmove(), FindLoadedCutsceneMusic(), HasCutsceneMusicNode(), and ReleaseCutsceneMusicNodes().
| 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().
| unsigned short HasSavedPilotCampaign | ( | void | ) |
Definition at line 276 of file personnel.c.
References g_pCampaignGlobals, g_szPersonnelFileName, HasSavedPilotCampaign(), LoadTemporaryCampaignGlobals(), ReleasePacketSlot(), and CampaignGlobals::wordCount.
Referenced by DosMemmove(), HasSavedPilotCampaign(), and RunTitleScreen().
| short HasShipActiveMissile | ( | short | obj | ) |
Definition at line 2339 of file ship.c.
References g_acObjectOwner, g_aeObjectClass, HasShipActiveMissile(), and OBJECT_CLASS_MISSILE.
Referenced by DrawTextAt(), fire_turrets(), and HasShipActiveMissile().
| short HasShipCockpitGunDisplay | ( | short | ship | ) |
Definition at line 106 of file ship.c.
References g_aShipWeapons, and HasShipCockpitGunDisplay().
Referenced by ApplyAlternateShipType(), DrawTextAt(), HasShipCockpitGunDisplay(), InitializeCockpitResources(), new_view(), replenish_weapon_energy_bank(), and set_objects_data().
| int HasValidShapeAllocationSignature | ( | unsigned char * | shape | ) |
Definition at line 123 of file gr.c.
References HasValidShapeAllocationSignature().
Referenced by CaptureSpriteBackground(), CollectRasterClipColours(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), DrawSpriteDefault(), DrawSpriteScaled(), GetTransformedShapeBounds(), HasValidShapeAllocationSignature(), and RestoreSpriteBackground().
| short have_target | ( | void | ) |
Definition at line 118 of file comm.c.
References g_acShipTarget, have_target(), and unactive().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), CanOpenCommMenu(), have_target(), and UpdateShipTurretGuns().
| void heat_seeking_missile_intelligence | ( | short | obj | ) |
Definition at line 1389 of file brains.c.
References distance_from_object(), explode(), g_acShipExhaustHeat, g_acShipTarget, g_acViableTarget, g_aeObjectClass, g_anShipSpeed, g_asObjectType, g_asViableTargetDistance, g_cViableTargetCount, g_nFacingToTarget, g_nTargetFacing, g_nTargetRange, g_vToTarget, get_facing_range_from_object(), get_ship_max_velocity(), heat_seeking_missile_intelligence(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, OBJECT_DATA_CHAFF_POD, point_ship(), point_ship_at_object(), and SortViableTargetsByDistance().
Referenced by heat_seeking_missile_intelligence(), and object_intelligence().
| short hemisphere | ( | FixedVector * | target, |
| FixedVector * | parent, | ||
| FixedVector * | hardpoint ) |
Definition at line 2222 of file ship.c.
References ComputeVectorDelta(), hemisphere(), and vector_angle().
Referenced by DrawTextAt(), fire_turrets(), and hemisphere().
| 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().
| void HighlightPersonnelFileSlot | ( | short | choice | ) |
Definition at line 547 of file personnel.c.
References DisableMouseCursorDrawing(), DrawPersonnelFileSlot(), EnableMouseCursorDrawing(), g_10_nMenuDarkColour, g_3_stDefaultStringContext, g_nMenuSelectedCol, g_nPersonnelMenuHighlight, HighlightPersonnelFileSlot(), InitializeTextContextFromFont(), and PERSONNEL_KEY_0.
Referenced by DrawTextAt(), HighlightPersonnelFileSlot(), and SelectPersonnelFileSlot().
| void HighlightTransferredPilot | ( | short | choice | ) |
Definition at line 694 of file personnel.c.
References DisableMouseCursorDrawing(), DrawTransferredPilotRow(), EnableMouseCursorDrawing(), g_10_nMenuDarkColour, g_3_stDefaultStringContext, g_nMenuSelectedCol, g_nPersonnelMenuHighlight, HighlightTransferredPilot(), InitializeTextContextFromFont(), and PERSONNEL_KEY_0.
Referenced by close_behind(), HighlightTransferredPilot(), and SelectTransferredPilot().
| void hit_asteroid | ( | short | asteroid, |
| short | destructionChance ) |
Definition at line 1361 of file spc.c.
References explode(), g_aShipVelocity, g_vCollisionDelta, hit_asteroid(), make_shard(), and RandomBelowOrEqual().
Referenced by hit_asteroid(), and object_collision().
| short hostile_sphere | ( | short | obj, |
| short | navPoint ) |
Definition at line 916 of file logic.c.
References g_aMissionNavPoints, g_aMissionShips, g_asShipSide, hostile_sphere(), and MissionNavPoint::missionShips.
Referenced by abandoned(), close_behind(), and hostile_sphere().
Definition at line 349 of file main.c.
References check_hazards(), ejection_sequence(), FadeFlightPaletteEntry(), FlushSoundEffectsAndLog(), g_12_abCockpitLightGoalTable, g_4_nSevereDmgWarningSfxHandle, g_9_aasCockpitHitPaletteFades, g_nCannedSceneMode, g_nCurrentView, g_nEjectionSequenceState, g_nHazardFieldCount, g_nPendingEjectionSequenceCount, g_nSpaceFrame, g_nTrainSimActive, g_ucPendingEjectionTransition, house_keep(), ReleaseStaleNavTarget(), SetPaletteEntry(), and void().
Referenced by close_behind(), house_keep(), and Update_3Space().
Definition at line 819 of file spc.c.
References ClearViewport(), CompleteStarSystemJump(), count_down(), Create_explosion_debris(), distance_from_object(), explode(), explosion_shock_wave(), g_1_asSpacePaletteFade, g_27_aasGunCooldown, g_27_stViewScratchInfo, g_2_asFlakCooldownTable, g_6_nHomeOperationShipIndexValue, g_7_asShipBurstStageCountdown, g_abShipNavPointIndex, g_acObjectCollisionGraceTicks, g_acObjectOwner, g_acObjectType, g_acShipExhaustHeat, g_acShipLastAttacker, g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_aMissionShips, g_anShipCloakState, g_aObjectTypeData, g_aShipForwardVector, g_aShipVelocity, g_asMissileProximityFuseValues, g_asObjectAnimationIndex, g_asObjectCounter, g_asObjectScale, g_asObjectScreenX, g_asObjectType, g_aSpaceExplosionFlashPalette, g_asPlayerHitsCreditValues, g_asProjectileEvasionTicks, g_asShipCloakCooldown, g_asShipCloakElapsedFrames, g_asShipFriendlyFireCooldown, g_asShipManeuver, g_asShipMissionIndex, g_asShipSide, g_asShipTactic, g_asSpikeriCooldown, g_bCarrierLandingEnabled, g_bLandingCommRequestPending, g_bMissionDeathSequencePending, g_bPrimaryViewBufferColour, g_bViewportDirty, g_cPrimaryViewBufferColour, g_nArcadeState, g_nCannedSceneMode, g_nPendingEjectionShip, g_nPlayerCollisionObject, g_nSpaceBlastFlashIncrement, g_nSpaceExplosionFlashActive, g_nSpaceFrame, g_nSpacePaletteFadeMode, g_nYourWingman, house_keep_objects(), MANEUVER_WARPING_IN, MANEUVER_WARPING_OUT, normal_speed(), OBJECT_CLASS_BASE, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_DEBRIS, OBJECT_CLASS_DUST, OBJECT_CLASS_EXPLOSION, OBJECT_CLASS_FIXED_OBJECT, OBJECT_CLASS_MINE, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, OBJECT_DATA_CHAFF_POD, OBJECT_DATA_DART_DUMB_FIRE_MISSILE, OBJECT_DATA_EJECTION_POD, OBJECT_DATA_INDEX, OBJECT_DATA_TORPEDO, OBJECT_TYPE_EXPLOSION2, onboard_explosion(), RandomBelowOrEqual(), RandomInRange(), RecordCannedSceneObjectEvent(), remove_object(), reset_maneuver(), send_message(), set_objects_data(), SetPaletteEntry(), ShipExplosion(), SIDE_KILRATHI, SIDE_NEUTRAL, SPACE_LAST_MOVING_OBJECT, SpawnMissionEjectionPod(), SPECIAL_MANEUVER_UNKNOWN_9, MissionShipRecord::state, TACTIC_RAM, TACTIC_SIT_STILL, TACTIC_WARP_IN, and vector_component_in_dir().
Referenced by house_keep_objects(), and Update_3Space().
| void housekeep_power_plant_and_fuel | ( | short | ship | ) |
Definition at line 2939 of file ship.c.
References drain_fuel(), g_anShipSpeed, and housekeep_power_plant_and_fuel().
Referenced by DrawTextAt(), housekeep_power_plant_and_fuel(), and update_objects_in_space().
Definition at line 1491 of file eventmgr.c.
References IdentityDword().
Referenced by ApplyCannedSceneFrameEvents(), DosMemmove(), FinishCannedScenePlayback(), IdentityDword(), initialize_cockpit(), InitializeCannedSceneFrameIndex(), InitializeHighMemoryGraphicsBuffers(), InitializeSoundBlaster(), PlaySpeechPacketBuffer(), RecordCannedSceneBriefingCharacter(), RecordCannedSceneObjectEvent(), RecordCannedSceneObjectState(), RecordMusicCommandHook(), and SoundBlasterDspInterrupt().
Definition at line 196 of file eventmgr.c.
References IdentityHandle().
Referenced by DecodeSceneResourceChunk(), DecodeSceneStructChunk(), DecodeSceneSymbolChunk(), IdentityHandle(), intelligence_events(), ParseCutsceneContainer(), ReadNextSceneForm(), and SkipCutsceneChunk().
| unsigned int IdentityWord | ( | unsigned int | v | ) |
Definition at line 1497 of file eventmgr.c.
References IdentityWord().
Referenced by DosMemmove(), get_right_shape(), and IdentityWord().
| void imperial_formation | ( | short | obj | ) |
Definition at line 244 of file brains.c.
References any_enemy(), approach_ship_speed(), attacker_in_range(), distance_from_object(), engage(), facing_to_object(), fire_afterburner(), g_aeSpecialManeuver, g_aShipPosition, g_asShipWingLeader, g_bEngageAllowed, g_nAutoEngageTimer, g_nCurrentView, g_nCurrentWave, g_nEnemySighting, g_nTargetShip, g_nYourWingman, imperial_formation(), maintain_formation(), message_showing(), OBJECTIVE_ENGAGE_ENEMY, point_ship_at_object(), real_velocity(), send_message(), SPECIAL_MANEUVER_NONE, and try2allow_engage().
Referenced by imperial_formation(), and imperial_wingman().
| void imperial_wingman | ( | short | obj | ) |
Definition at line 310 of file brains.c.
References check_destroy_target(), check_engage_target(), fail(), formation_break(), g_aeShipObjective, imperial_formation(), imperial_wingman(), maneuvering(), OBJECTIVE_BREAK_FORMATION, OBJECTIVE_DESTROY_SHIP, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOLD_FORMATION, OBJECTIVE_NONE, and reset_objective().
Referenced by imperial_wingman(), split_patrol_mission(), and wingman_mission().
| short in_danger | ( | short | obj | ) |
Definition at line 688 of file logic.c.
References distance_from_object(), g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_asShipSide, g_nTargetRange, g_nTargetShip, in_danger(), OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by close_behind(), defend_mission(), escort_mission(), and in_danger().
| void IncludeNavMapWorldPoint | ( | int | worldX, |
| int | worldZ ) |
Definition at line 132 of file nav.c.
References CheckPoint(), IncludeNavMapWorldPoint(), and nav_getxy().
Referenced by IncludeNavMapWorldPoint(), and SetScale().
Definition at line 152 of file ship.c.
References g_nAdaptiveDifficulty, g_nLastAdaptiveDifficultyChangeFrame, g_nSpaceFrame, and IncreaseAdaptiveDifficulty().
Referenced by DrawTextAt(), IncreaseAdaptiveDifficulty(), inflict_damage(), and internal_damage().
| short inflict_damage | ( | short | attacker, |
| short | victim, | ||
| short | damage, | ||
| const FixedVector * | impactDirection ) |
Definition at line 804 of file ship.c.
References CanShipWeaponDamageTarget(), Create_ship_hit_debris(), DecreaseAdaptiveDifficulty(), dot_product(), explode(), g_1_asObjectCreationFrameTable, g_aasShipArmor, g_aasShipShield, g_acObjectOwner, g_acObjectType, g_acShipTarget, g_aeObjectClass, g_aeShipObjective, g_aeSpecialManeuver, g_anShipCloakState, g_aObjectTypeData, g_aShipForwardVector, g_aShipRightVector, g_asObjectDamage, g_asObjectScreenX, g_asObjectType, g_asPlayerHitsCreditValues, g_asShipFriendlyFireCooldown, g_asShipMissionIndex, g_asShipMissionParameter, g_asShipMissionType, g_asShipSide, g_asShipTactic, g_asWingmanDamageCredit, g_bApplyingCollisionDamage, g_bFriendlyFireWarningIssued, g_bPlayerDamageEnabled, g_nLastFriendlyFireObjectFrame, g_nYourWingman, IncreaseAdaptiveDifficulty(), inflict_damage(), internal_damage(), kilrathi_near(), MISSION_TYPE_NONE, MISSION_TYPE_STRIKE, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, OBJECTIVE_DESTROY_SHIP, PlaySfxWaveFileByNumber(), RandomBelowOrEqual(), send_appropriate_message(), send_message(), SIDE_IMPERIAL, SIDE_KILRATHI, SPECIAL_MANEUVER_UNKNOWN_9, TACTIC_SELF_DEFENSE, and TriggerPlayerHitPaletteFlash().
Referenced by DrawTextAt(), explosion_shock_wave(), inflict_damage(), and object_collision().
Definition at line 1096 of file nav.c.
References BriefingMap_LoadShapes(), CentreMouseOnCurrentNavObjective(), ClearViewport(), ConfigureInputPump(), InputManagerState::cursorShape, cycle_next_objective(), DIBslamReal(), DisableMouseCursorDrawing(), DrawNavPlayerMarker(), DrawSpriteDefault(), EnableMouseCursorDrawing(), EndCommMenu(), FetchDiskPacketRetrying(), FollowSelectedObjectiveSystem(), force_view(), FormatNavCoordinates(), free_view_buffer(), free_viewport(), g_101_stScrViewInfo, g_18_nInterfaceEventMode, g_18_pEventManager, g_196_nInputTimerTicks, g_1_cStoredViewDisplayModeValue, g_1_stElapsedCampaignDate, g_26_bMouseCursorEnabled, g_37_stPersonnelMousePointerState, g_3_stDefaultStringContext, g_4_pElapsedCampaignDatePointer, g_5_stNavLabelTextContextInfo, g_6_stHostMouseTextBlock, g_88_nEventRepeatDelayState, g_bInflightComputerActive, g_bPrimaryViewBufferColour, g_bSceneEscapeRequested, g_cCurrentNavPointIndex, g_cCurrentObjective, g_cMissionObjectiveCount, g_cSecondaryViewBufferColour, g_nCurStellarSystem, g_pNavMapShape, g_stNavMapTextCtx, g_stSecondaryViewBufferBlock, g_ucHomeCarrierScannerColour, get_player_input(), hidden_objective(), InflightComputer(), InitializeSpaceFlightInput(), IsObjectiveInDisplayedSystem(), MarkDibDirty(), message_showing(), PlaySfxWaveFileByNumber(), PollInputEvent(), PollJoystickButtonEvents(), ReleasePacketHandle(), SelectNavObjectiveAtPoint(), set_new_objective(), SetFrameTimerAndWait(), SetInputViewport(), SetMenuInputPump(), SetMouseCursorShape(), SetPersonnelMousePosition(), SetRectBounds(), SetTextContext(), ShowConfedNavScan(), InputEventState::status, UpdateInflightNavText(), TextContext::viewport, WaitForAnyInputPress(), HostMouseMessage::x, MouseCursorState::x, HostMouseMessage::y, MouseCursorState::y, and CampaignDate::year.
Referenced by InflightComputer(), and SelectCockpitVduMode().
| void inherit_leader | ( | short | obj | ) |
Definition at line 775 of file logic.c.
References g_aeObjectClass, g_asShipWingLeader, inherit_leader(), inherit_leader_mission(), and OBJECT_CLASS_SHIP.
Referenced by close_behind(), inherit_leader(), and kilrathi_wingman().
| void inherit_leader_mission | ( | short | obj | ) |
Definition at line 758 of file logic.c.
References g_aeObjectClass, g_aShipMissionSpot, g_asShipMissionParameter, g_asShipMissionType, g_asShipWingLeader, inherit_leader_mission(), and OBJECT_CLASS_SHIP.
Referenced by close_behind(), inherit_leader(), inherit_leader_mission(), and ship_intelligence().
| void init_3Space_objects | ( | short | scene | ) |
Definition at line 810 of file fltsetup.c.
References g_1_cStoredViewDisplayModeValue, g_6_nPendingAfterburnerSfxFrame, g_aObjectResourceSlots, g_b3SpaceObjectsActive, g_bMissileCameraEnabled, g_nExternalViewShip, g_nPassingShipSndCooldown, g_nPlayerCollisionObject, g_nRenderedSpaceFrame, g_nSpaceFrame, init_3Space_objects(), init_constellation(), load_common_3Space_objects(), and remove_all_3d_objects().
Referenced by close_behind(), init_3Space_objects(), and init_mission().
| void init_constellation | ( | short | scene | ) |
Definition at line 425 of file fltsetup.c.
References FetchDiskPacketRetrying(), find_vacant_3d_object(), g_13_pStartupStellarPacket, g_asConstellationObjectIndices, g_nAvailableGameMemoryNumber, g_pConstellationSprite, init_constellation(), and InitializeConstellationObject().
Referenced by BarracksScreen(), close_behind(), ejection_sequence(), init_3Space_objects(), init_constellation(), PromptToContinueCampaign(), and RunTitleScreen().
| void init_formation_burst | ( | short | obj | ) |
Definition at line 403 of file logic.c.
References AddFixedVectors(), build_squad_list(), ComputeVectorDelta(), find_squad_center(), g_acShipList, g_aShipDestination, g_aShipPosition, init_formation_burst(), OBJECTIVE_BREAK_FORMATION, reset_objective(), ScaleFixedVector(), and steady_object().
Referenced by approach_and_engage(), DrawTextAt(), init_formation_burst(), and patrol_area().
| void init_hazard | ( | short | obj, |
| FixedVector | position, | ||
| short | moving ) |
Definition at line 140 of file fields.c.
References AddFixedVectors(), align(), asteroid_velocity(), HazardField::center, difficulty(), distance_between_points(), g_acObjectCollisionGraceTicks, g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_bUseEyePositionForHazards, g_cHazardBaseTravelTime, g_nActiveHazards, g_pActiveHazardField, init_hazard(), kilrathi_near(), MaxShort(), OBJECT_DATA_ASTEROID1, OBJECT_DATA_ASTEROID_FIELD, OBJECT_DATA_SPACE_MINE, point_at(), RandomBelow(), RandomBelowOrEqual(), ScaleFixedVector(), set_objects_data(), skew_randomly(), SubtractFixedVectors(), and HazardField::type.
Referenced by init_hazard(), and make_hazard().
| void init_ijk | ( | short | obj | ) |
Definition at line 453 of file geom.c.
References g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_aShipForwardVector, g_aShipRightVector, g_aShipUpVector, init_ijk(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by ApplyAlternateShipType(), init_ijk(), InitializeConstellationObject(), set_background_objects_rotation(), and set_objects_data().
Definition at line 935 of file fltsetup.c.
References g_nCombatMusicActive, g_nInFlightMusicActive, g_nInitialFlightMusicPending, and init_inflight_music().
Referenced by close_behind(), init_inflight_music(), and RunSpaceFlight().
| void init_intelligence_data | ( | short | obj | ) |
Definition at line 1316 of file mission.c.
References AllocateTaggedMemory(), clear_alert(), ShipIntelligenceMetadata::enemyCommCommandBase, g_13_stMissionHeaderBlock, g_1_nEnemyCommCommandBase, g_abShipTurn, g_acObjectType, g_acShipPortrait, g_acShipStress, g_aeObjectClass, g_aeSpecialManeuver, g_aMissionNavPoints, g_aObjectTypeData, g_aShipIntelligenceData, g_aShipMissionSpot, g_asPilotLevel, g_asShipIntelResourceKey, g_asShipIntelSlot, g_asShipIntelState, g_asShipManeuver, g_asShipMissionParameter, g_asShipMissionType, g_asShipSide, g_asShipTactic, g_nCurrentNavPoint, g_nEnemyCommPilotIndex, g_nLoadedCommPortraitPilot, g_nMissionMusicTrackOverride, g_nYourWingman, g_pCommPortraitResource, g_stWingmanIntelligence, MissionHeader::homeMissionShip, init_intelligence_data(), LoadCommPortraitResources(), LoadPacketIntoBuffer(), locate_ship(), MANEUVER_WARPING_IN, MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, MISSION_TYPE_GOTO_WARP, MISSION_TYPE_STRIKE, MISSION_TYPE_WARP_ARRIVE, MISSION_TYPE_WINGMAN, ShipIntelligenceMetadata::musicTrack, OBJECT_CLASS_SHIP, MissionNavPoint::position, RATING_ACE_SPIRIT, ReportFatalErrorCode(), ObjectTypeData::resourceType, SIDE_IMPERIAL, SIDE_KILRATHI, SPECIAL_MANEUVER_NONE, and TACTIC_WARP_IN.
Referenced by init_intelligence_data(), and Set_up_ship_info().
| void init_mission | ( | short | series, |
| short | mission ) |
Definition at line 87 of file mission.c.
References ShipIntelligenceMetadata::engagementMode, MissionHeader::entryNavPoint, ShipIntelligenceMetadata::formationDisobeyMode, g_11_nMissionResourceBudget, g_13_stMissionHeaderBlock, g_1_nEnemyCommCommandBase, g_acJumpDriveUsedBySystem, g_aMissionNavPoints, g_aMissionResourceDescriptors, g_asDifficultyLevels, g_asShipIntelResourceKey, g_asShipIntelSlot, g_bCockpitDamageFrame0Shown, g_bCockpitDamageFrame2Shown, g_bDisplayWingmanTargetData, g_bFriendlyFireWarningIssued, g_bFuelGaugeDamaged, g_bMissileLockAcquired, g_bMissionDeathSequencePending, g_bTargetLockActive, g_nAdaptiveDifficulty, g_nAvailableGameMemoryNumber, g_nCommDeathSequenceFrame, g_nCurStellarSystem, g_nEnemyCommPilotIndex, g_nEnemyTauntCommandBase, g_nLastAdaptiveDifficultyChangeFrame, g_stCurrentPilotProfile, g_stWingmanIntelligence, g_ucPendingEjectionTransition, init_3Space_objects(), init_mission(), InitializeCockpitResources(), LoadMissionData(), LoadPacketIntoBuffer(), LoadPacketResourceList(), PilotProfile::playerShipType, prepare_mission(), ResetWeaponDisplayPositions(), ShipIntelligenceMetadata::routDecisionMode, MissionNavPoint::systemIndex, and ShipIntelligenceMetadata::targetingMode.
Referenced by init_mission(), RunCampaignGameLoop(), and RunGameApplication().
| short init_ship | ( | short | missionShip, |
| short | navPoint ) |
Definition at line 1255 of file mission.c.
References add_hazard_field(), AddFixedVectors(), ApplyAlternateShipType(), check_futurion(), MissionShipRecord::field_13, find_next_ship_turn_slot(), find_ship_index(), g_aMissionNavPoints, g_aMissionShips, g_aShipPosition, g_asShipMissionIndex, g_asShipSide, g_nYourWingman, init_ship(), initialize_ship(), is_alive(), is_team_member(), LoadAlternateShipType(), MissionShipRecord::navPoint, MissionShipRecord::objectType, MissionShipRecord::pilot, MissionShipRecord::position, Set_up_ship_info(), MissionShipRecord::side, MissionShipRecord::speed, MissionShipRecord::state, and MissionShipRecord::type.
Referenced by init_ship(), prepare_mission(), set_up_action_sphere(), and set_up_next_wave().
Definition at line 476 of file fltsetup.c.
References g_101_stScrViewInfo, g_1_stRightVduTextContextBlock, g_2_stLeftwardVduPortBlock, g_4_stRightVduView, g_5_stLeftVduStringContextRecord, g_6_szDefaultTextBufferText, g_anLastDrawnVduMode, g_cSecondaryViewBufferColour, g_ucPrimaryTextColour, init_vdus(), InitializeTextContextFromFont(), set_mode(), TextContext::text, and TextContext::viewport.
Referenced by close_behind(), init_vdus(), and InitializeCockpitResources().
Definition at line 41 of file screen.c.
References AllocateViewport(), Viewport::bottom, g_19_pFullScreenViewport, InitFullScreenViewport(), Viewport::left, Viewport::right, and Viewport::top.
Referenced by InitFullScreenViewport(), and UpdateShipTurretGuns().
Definition at line 1154 of file winmain.c.
References g_128_dwGameClockBase, g_13_lGameClockStartData, and InitGameClockRandomEpoch().
Referenced by InitGameClockRandomEpoch(), and WinMain().
| void initialize_cockpit | ( | signed char | mode | ) |
Definition at line 100 of file fltsetup.c.
References AllocateViewport(), Viewport::allocation, Viewport::bottom, clear_head_up_display(), ClearViewport(), COCKPIT_VIEW_COPY_BYTES, CopyViewportContents(), DosMemmove(), DrawSpriteDefault(), EndCommMenu(), explosion_draw(), FetchDiskPacketRetrying(), FinalizeTargetCameraViewHook(), free_view_buffer(), free_viewport(), g_101_stScrViewInfo, g_19_bStoredHighMemoryEnabled, g_1_cStoredViewDisplayModeValue, g_27_stViewScratchInfo, g_2_apCockpitShipShapes, g_2_apCockpitViewShapes, g_2_stModalSourceWindow, g_7_szCockpitAssetFilenameText, g_8_nGunDisplaySlot, g_9_nTargetCameraOverlayMode, g_acObjectType, g_aObjectTypeData, g_bCockpitDamageFrame0Shown, g_bSpaceViewBufferEnabled, g_cPrimaryViewBufferColour, g_cSecondaryViewBufferColour, g_nCockpitDisplayMode, g_nCurrentView, g_nScreenHeight, g_nScreenWidth, g_pCockpitBackgroundPacket, g_pCockpitViewFrameInfo, g_stCockpitBackgroundViewportRecord, IdentityDword(), initialize_cockpit(), initialize_view_buffer(), InvalidateVduMode(), Viewport::left, LoadNamedPacket(), LoadPacketIntoBuffer(), message_showing(), Viewport::pixels, ReleasePacketHandle(), reset_cockpit(), ResetCockpitPaletteEntries(), ResetPilotHandAnimation(), ResetTargetCameraView(), Viewport::right, Viewport::rowOffsets, set_up_screen_viewport(), SetViewportRect(), Viewport::top, update_VDUs(), and WaitForVerticalBlankThunk().
Referenced by close_behind(), HandleSpaceFlightControls(), initialize_cockpit(), new_view(), RunSpaceFlight(), and SetFleetOverviewView().
| void initialize_direction_view_frame | ( | short | yaw, |
| short | pitch, | ||
| signed char | frame ) |
Definition at line 309 of file startup.c.
References g_137_aDirectionViewUpVectorArray, g_2_aDirectionViewForwardAxisTable, g_9_aDirectionLookRightVector, initialize_direction_view_frame(), rotate_about_i(), and rotate_about_j().
Referenced by DrawTextAt(), initialize_direction_view_frame(), and initialize_direction_view_frames().
Definition at line 324 of file startup.c.
References initialize_direction_view_frame(), initialize_direction_view_frames(), SphericalVector::pitch, and SphericalVector::yaw.
Referenced by DrawTextAt(), initialize_direction_view_frames(), and LoadOriginFxDrivers().
| short initialize_object | ( | short | obj, |
| short | type, | ||
| short | owner, | ||
| short | matchLoadedType ) |
Definition at line 178 of file ship.c.
References g_aShipPosition, g_aShipVelocity, initialize_object(), set_objects_data(), and zero_vector().
Referenced by DrawTextAt(), initialize_object(), initialize_ship(), and new_object().
| short initialize_ship | ( | short | type, |
| short | owner, | ||
| short | matchLoadedType ) |
Definition at line 251 of file ship.c.
References g_asShipSide, get_ship_slot(), initialize_object(), initialize_ship(), and SIDE_NEUTRAL.
Referenced by DrawTextAt(), fire_weapon(), init_ship(), initialize_ship(), and launch_carrier_fighter().
Definition at line 217 of file main.c.
References AllocateViewport(), g_27_stViewScratchInfo, g_bSpaceViewBufferEnabled, g_cPrimaryViewBufferColour, initialize_view_buffer(), Viewport::pixels, and ReportOutOfMemoryAndExit().
Referenced by auto_pilot_sequence(), close_behind(), ejection_sequence(), get_right_shape(), HandleSpaceFlightControls(), initialize_cockpit(), initialize_view_buffer(), new_sphere_shapes(), RunSpaceFlight(), and set_eye_direction_and_position().
| void InitializeAudioStreamer | ( | HWND | window | ) |
Definition at line 32 of file stream.cpp.
References g_nAudioEnabled, InitializeAudioStreamer(), ix_streamer_configure(), ix_streamer_init(), and ix_streamer_set_intensity().
Referenced by CollectRasterClipColours(), InitializeAudioStreamer(), and WinMain().
| void InitializeAudioSystem | ( | HWND | window | ) |
Definition at line 26 of file sound.c.
References g_bAudioSystemInitialized, g_nAudioEnabled, InitializeAudioSystem(), ix_system_configure(), ix_system_init(), and ix_system_set_voice_count().
Referenced by InitializeAudioSystem(), UpdateShipTurretGuns(), and WinMain().
| void InitializeCampaignChalkboardScreen | ( | short | cockpitVariant | ) |
Definition at line 115 of file personnel.c.
References AdvanceViewportWipe(), AllocateTaggedMemory(), AllocateViewport(), Viewport::bottom, DisableMouseCursorDrawing(), DrawSpriteDefault(), FetchDiskPacketRetrying(), CampaignGlobals::field_08, CampaignGlobals::field_0a, CampaignGlobals::field_0e, g_101_stScrViewInfo, g_128_nShotHotspotLeft, g_15_nSceneAreaLowestWord, g_1_nCockpitArchiveVariantNumber, g_27_nSceneHotspotTopValue, g_2_stModalSourceWindow, g_8_nSceneRegionRightWord, g_bNewPilotCampaignInitialized, g_bRoomTransitionAnimationEnabled, g_cSecondaryViewBufferColour, g_pCampaignChalkboardShape, g_pCampaignGlobals, g_stSecondaryViewBufferBlock, InitializeCampaignChalkboardScreen(), InitializeGameTextContexts(), InitializeViewportWipe(), Viewport::left, LoadSceneHotspotBoundsForSelection(), Viewport::pixels, RefreshMemoryStatusOverlay(), ReleasePacketHandle(), ReportFatalErrorCode(), Viewport::right, SetPersonnelMousePosition(), and Viewport::top.
Referenced by InitializeCampaignChalkboardScreen(), RunCampaignChalkboardMenu(), and RunCampaignGameLoop().
| void InitializeCampaignConstellationState | ( | CampaignGlobals * | globals, |
| short | copyPosition ) |
Definition at line 98 of file campglob.c.
References CampaignGlobals::arcadeState, g_nArcadeState, g_pPilotStatus, g_stCurrentPilotProfile, InitializeCampaignConstellationState(), CampaignGlobals::mission, PilotProfile::mission, CampaignGlobals::pilotCount, CampaignGlobals::pilotStatus, ReportFatalErrorCode(), CampaignGlobals::series, and PilotProfile::series.
Referenced by DrawTextAt(), ejection_sequence(), InitializeCampaignConstellationState(), LoadSelectedPilotCampaign(), RunCampaignGameLoop(), and RunGameApplication().
Definition at line 33 of file taperec.c.
References CannedSceneBufferHeader::byteCount, g_1_asCannedSceneFrameStarts, g_3_nCannedSceneWriteIndex, g_pHighMemoryBlockA, IdentityDword(), InitializeCannedSceneFrameIndex(), and CannedSceneBufferHeader::nextFrame.
Referenced by HandleCannedSceneBufferBoundary(), InitializeCannedSceneFrameIndex(), ResetCannedSceneRecording(), and UpdateShipTurretGuns().
Definition at line 132 of file text.c.
References DrawCinematicFontCharacter(), DrawWrappedCinematicText(), g_36_pfnRenderSceneFontCharacterHandler, g_3_pfnRenderSceneTextStringHandler, and InitializeCinematicTextRenderer().
Referenced by InitializeCinematicTextRenderer(), and InitializeCutsceneRuntimeResources().
| 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 InitializeCockpitResources | ( | short | shipType | ) |
Definition at line 507 of file fltsetup.c.
References AllocateTaggedMemory(), AllocateViewport(), CockpitResourceLayout::bars, ShortRect::bottom, clear_cockpit_damage(), ClearHudGunReadouts(), CountShipCockpitGunDisplays(), CockpitResourceLayout::damagePositions, FetchDiskPacketRetrying(), CockpitResourceLayout::field_f6, CockpitResourceLayout::field_f7, free_view_buffer(), FreePacketAndClear(), g_101_stScrViewInfo, g_12_nGunDisplayCount, g_16_stCockpitTextSettingsRecord, g_19_bStoredHighMemoryEnabled, g_1_nGunShowEnergyPercent, g_1_nResourcePaletteState, g_1_pDashWeaponPicture, g_2_stLeftwardVduPortBlock, g_3_stDashViewport, g_48_apCommunicationTextPacketsTable, g_4_pScannerBlipUnderlayPointer, g_4_stRightVduView, g_66_pCabinHudImage, g_7_szCockpitAssetFilenameText, g_9_stCockpitMeterPort, g_abGunDisplayConfiguration, g_acCockpitLightOffFrame, g_acCockpitLightOnFrame, g_acObjectType, g_aCockpitBarDefinitions, g_aCockpitCommonShapeResources, g_aCockpitDamagePositions, g_aCockpitReadoutOrigins, g_aCockpitShipShapeResources, g_aCockpitViewShapeResources, g_aDefaultWeaponDisplayPositions, g_aObjectTypeData, g_apCockpitVduOverlayShapes, g_asCockpitLightX, g_asCockpitLightY, g_bCockpitResourcesActive, g_bRadioSilence, g_bTargetLockDisplayEnabled, g_cHazardBaseTravelTime, g_cSecondaryViewBufferColour, g_nCockpitBackgroundBytes, g_nCockpitExplosionFrame, g_nHazardPitchRange, g_nHudMessageBackgroundDepth, g_nObjectType62Index, g_nObjectType63Index, g_pCockpitBackgroundPacket, g_pCockpitExplosionBackground, g_pCockpitExplosionShape, g_pCockpitHudBackground, g_pDamageDisplayBackground, g_pHudMessageBackground, g_pHudMessageFrameShape, g_pPilotHandAnimationShapePtr, g_pReleaseWeaponDisplayBackground, g_stCockpitScannerGeometry, g_stHudMessageOrigin, g_stLeftVduBounds, g_stPilotHandBackgroundViewportBlock, g_stPilotHandBounds, g_stPilotHandOrigin, g_stPilotHandViewportRecord, g_stRightVduBounds, g_ucPrimaryTextColour, GetNamedPacketSize(), HasShipCockpitGunDisplay(), CockpitResourceLayout::hudMessageOrigin, init_vdus(), InitializeCockpitReadout(), InitializeCockpitResources(), InitializeTextContextFromFont(), ShortRect::left, Viewport::left, CockpitResourceLayout::leftVduBounds, CockpitResourceLayout::lightOffFrame, CockpitResourceLayout::lightOnFrame, CockpitResourceLayout::lightX, CockpitResourceLayout::lightY, LoadNamedPacket(), LoadPacketIntoBuffer(), LoadShapeSet(), MaxShort(), MeasureShapeFrameStorage(), CockpitResourceLayout::pilotHandBounds, CockpitResourceLayout::pilotHandOrigin, CockpitResourceLayout::readoutOrigins, ReportFatalErrorCode(), reset_cockpit(), ResetScannerContacts(), ShortRect::right, CockpitResourceLayout::rightVduBounds, CockpitResourceLayout::scanner, SetTextContext(), SetTextCursor(), SetViewportRect(), ObjectTypeData::shapeSet, CockpitResourceLayout::targetLockDisplayEnabled, ShortRect::top, TextContext::viewport, and CockpitResourceLayout::weaponDisplayPositions.
Referenced by close_behind(), ejection_sequence(), init_mission(), and InitializeCockpitResources().
Definition at line 55 of file starfld.c.
References Viewport::bottom, ConstellationParticle::deltaX, ConstellationParticle::frame, g_14_nConstellationParticleTotal, g_aConstellationParticlesTable, g_asConstellationFrame, g_asConstellationVelocity, g_nConstellationDirection, g_pConstellationWindow, InitializeConstellationField(), Viewport::left, RandomInRange(), Viewport::right, Viewport::top, ConstellationParticle::x, and ConstellationParticle::y.
Referenced by BarracksScreen(), InitializeConstellationField(), PromptToContinueCampaign(), RunTitleScreen(), and UpdateShipTurretGuns().
| void InitializeConstellationObject | ( | const ConstellationObjectDefinition * | definition, |
| short | object ) |
Definition at line 388 of file fltsetup.c.
References alter_pitch(), alter_roll(), alter_yaw(), FetchDiskPacketRetrying(), g_aeObjectClass, g_apObjectShape, g_aShipForwardVector, g_aShipPosition, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectType, g_asObjectViewFrame, g_nSelectedCampaignSlot, init_ijk(), InitializeConstellationObject(), OBJECT_CLASS_PLANET, ConstellationObjectDefinition::pitch, ConstellationObjectDefinition::roll, ScaleFixedVector(), ConstellationObjectDefinition::shapePacket, and ConstellationObjectDefinition::yaw.
Referenced by close_behind(), init_constellation(), and InitializeConstellationObject().
Definition at line 133 of file message.c.
References TextContext::alignment, g_2_stConversationTextCtx, g_2_stModalSourceWindow, g_6_stConversationTextViewport, g_6_szDefaultTextBufferText, g_bPrimaryViewBufferColour, g_cSecondaryViewBufferColour, InitializeConversationText(), InitializeTextContextFromFont(), SetTextContext(), TextContext::text, Viewport::top, and TextContext::viewport.
Referenced by close_behind(), and InitializeConversationText().
Definition at line 108 of file message.c.
References AllocateViewport(), Viewport::bottom, ClearViewport(), free_viewport(), g_101_stScrViewInfo, g_2_stModalSourceWindow, g_cSecondaryViewBufferColour, g_stSecondaryViewBufferBlock, InitializeConversationViewport(), Viewport::left, Viewport::pixels, ReportPacketLoadError(), Viewport::right, and Viewport::top.
Referenced by close_behind(), InitializeConversationViewport(), and Title_Sequence().
Definition at line 808 of file gameflow.c.
References AllocateScenePointerTable(), FatalCutsceneError(), g_116_pszFilmPrintStore, g_17_nSceneInitialLargestBlockWord, g_28_nCutsceneInitialAvailableMemoryWord, g_4_pszFilmWorkScratch, g_apCutscenePlanes, g_apCutsceneScenes, g_apCutsceneSequences, g_apSceneObjects, g_bAutopilotDebugEnabled, g_bCutsceneDrawingEnabled, g_bMemoryLogToFile, g_bSceneCockpitLoaded, g_bSpeechEnabledFlag, g_nCutsceneFrameDelay, g_nCutsceneFrameTick, g_nCutsceneResourceLevel, g_pMemoryLogFile, GetAvailableMainMemory(), GetLargestMainMemoryBlock(), GetOriginalFreeMemory(), HOST_POINTER_SIZE, InitializeCinematicTextRenderer(), InitializeCutsceneRuntimeResources(), and WriteDetailedMemoryStateReport().
Referenced by DosMemmove(), InitializeCutsceneRuntimeResources(), and ParseCutsceneContainer().
Definition at line 873 of file gameflow.c.
References TextContext::alignment, TextContext::backgroundColour, TextContext::colour, g_10_stCutsceneStringViewportBlock, g_15_stSceneFlicScratchViewport, g_16_szTextBufferBuffer, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_9_stCutsceneTextBackingPort, InitializeCutsceneViewports(), Viewport::pixels, SetTextContext(), TextContext::text, and TextContext::viewport.
Referenced by DosMemmove(), ExecuteCutsceneScene(), and InitializeCutsceneViewports().
| unsigned short InitializeDIBScreenViewport | ( | Viewport * | viewport, |
| unsigned short | colour ) |
Definition at line 9 of file screen.c.
References Viewport::bottom, ClearViewport(), g_2_awDibScreenRowOffsetsData, g_nDibScreenChunkState, g_nSpacePaletteFadeMode, g_pDibScreenAllocationStatePointer, g_pDibScreenViewport, g_pDibScreenViewportMirrorRef, GetDIBPixelBuffer(), InitializeDIBScreenViewport(), Viewport::left, Viewport::pixels, Viewport::right, Viewport::rowOffsets, SystemDebugPrintf(), and Viewport::top.
Referenced by InitializeDIBScreenViewport(), InitializeGameTextContexts(), and UpdateShipTurretGuns().
Definition at line 17 of file starfld.c.
References g_16_aFireworks, and InitializeFireworks().
Referenced by InitializeFireworks(), ShowVictoryScreen(), and UpdateShipTurretGuns().
Definition at line 269 of file startup.c.
References TextContext::alignment, g_101_stScrViewInfo, g_168_stFlightTextContext, g_27_stViewScratchInfo, g_2_stModalSourceWindow, g_3_stDefaultStringContext, g_6_szDefaultTextBufferText, g_cRedColour, g_cSecondaryViewBufferColour, g_ucPrimaryTextColour, InitializeDIBScreenViewport(), InitializeGameTextContexts(), InitializeTextContextFromFont(), SetTextContext(), TextContext::text, and TextContext::viewport.
Referenced by DrawTextAt(), InitializeCampaignChalkboardScreen(), InitializeGameTextContexts(), and LoadOriginFxDrivers().
Definition at line 220 of file startup.c.
References AllocateDefaultMemory(), CANNED_SCENE_SNAPSHOT_BYTES, FreePacketAndClear(), g_78_bHighMemoryBuffersSetState, g_dwHighMemoryParagraphValue, g_pHighMemoryBlockA, g_pHighMemoryBlockB, g_wHighMemoryBlockBytes, IdentityDword(), and InitializeHighMemoryGraphicsBuffers().
Referenced by DrawTextAt(), InitializeHighMemoryGraphicsBuffers(), and LoadOriginFxDrivers().
Definition at line 2138 of file eventmgr.c.
References InitializeInputDriverHook().
Referenced by DosMemmove(), EMStartUp(), InitializeInputDriverHook(), and InitializeSpaceFlightInput().
| short InitializeInputManagerMemory | ( | short | eventQueueSize | ) |
Definition at line 512 of file eventmgr.c.
References AllocateTaggedMemory(), g_18_bEventManagerInitializationState, g_18_pEventManager, and InitializeInputManagerMemory().
Referenced by DrawTextAt(), EMStartUp(), and InitializeInputManagerMemory().
| short InitializeModalTextPanel | ( | ModalTextPanel * | panel, |
| short | fontIndex, | ||
| ModalPanelBounds | bounds, | ||
| short | clearColour, | ||
| short | backgroundColour, | ||
| short | borderColour ) |
Definition at line 101 of file optmenu.c.
References AllocateViewport(), ModalTextPanel::bottom, ModalTextPanel::context, CopyViewportContents(), DrawViewportBorder(), EraseTextContextBackground(), g_16_szTextBufferBuffer, g_29_pCurrentTextContext, g_2_stModalSourceWindow, g_3_stDefaultStringContext, InitializeModalTextPanel(), InitializeTextContextFromFont(), ModalTextPanel::left, Viewport::left, ModalTextPanel::previousContext, ResetStringBuilder(), ModalTextPanel::right, ModalTextPanel::savedBackground, TextContext::text, ModalTextPanel::top, ModalTextPanel::viewport, and TextContext::viewport.
Referenced by InitializeModalTextPanel(), and ShowModalTextPanel().
| short InitializeMouseCursorDepth | ( | ) |
Definition at line 1022 of file eventmgr.c.
References g_nMouseCursorDrawDepth, and InitializeMouseCursorDepth().
Referenced by DosMemmove(), InitializeMouseCursorDepth(), and LoadOriginFxDrivers().
Definition at line 388 of file startup.c.
References AllocateTaggedMemory(), FadeMusic(), FetchDiskPacketRetrying(), g_19_bStoredHighMemoryEnabled, g_98_nMemConfiguration, g_acMusicResourcePresent, g_aLimitedMusicBuffers, g_aTuneResources, g_nMusicDriverMode, InitializeMusicResources(), MusicResource::loaded, and MusicResource::packet.
Referenced by DrawTextAt(), InitializeMusicResources(), and LoadOriginFxDrivers().
| unsigned short InitializeNearHeap | ( | void | ) |
Definition at line 86 of file nearheap.c.
References AllocateTaggedMemory(), DosFarPtrToNear(), DosMemmove(), DosNearPtrToFar(), FreeIfNotNull(), g_1_nNearHeapBase, g_1_pNearHeapAllocationPtr, g_nNearArenaSize, g_nNearHeapActive, g_nNearHeapMaxDescriptors, g_nNearHeapRelocationBytes, GetNavRangeSentinel(), InitializeNearHeap(), and PurgeNearHeapBlocks().
Referenced by InitializeNearHeap().
| void InitializeNewPilotCampaign | ( | short | campaignSlot | ) |
Definition at line 14 of file campaign.c.
References FadeViewportPaletteToColour(), g_2_stModalSourceWindow, g_bNewPilotCampaignInitialized, g_nSelectedCampaignSlot, g_nSelectedStartingCampaign, g_pCampaignGlobals, InitializeNewPilotCampaign(), LoadStartingCampaignGlobals(), LoadTemporaryCampaignGlobals(), CampaignGlobals::mission, ReleasePacketSlot(), ReportFatalErrorCode(), ResetGameTextContexts(), RestoreGamePalette(), RunCampaignScript(), SaveAndFreeTemporaryCampaignGlobals(), and CampaignGlobals::series.
Referenced by InitializeNewPilotCampaign(), and RunGameApplication().
| short InitializePostPaletteState | ( | void | ) |
Definition at line 499 of file eventmgr.c.
References InitializePostPaletteState().
Referenced by DrawTextAt(), InitializePostPaletteState(), and LoadOriginFxDrivers().
| void InitializeSceneFlicStream | ( | CutsceneResourceTable * | resources, |
| short | index, | ||
| SceneFlicObject * | object ) |
Definition at line 1463 of file gameflow.c.
References AdvanceSceneFlicStream(), CutsceneResourceTable::filenameIndices, g_nSceneFlicContext, GetPackedStringByIndex(), InitializeSceneFlicStream(), and CutsceneResourceTable::sectionIndices.
Referenced by DosMemmove(), InitializeSceneFlicStream(), and RunCutsceneScript().
| void InitializeShipWeaponTypeIndices | ( | short | obj | ) |
Definition at line 328 of file ship.c.
References g_acObjectType, g_aObjectTypeData, g_aShipWeapons, InitializeShipWeaponTypeIndices(), and ObjectTypeData::weaponLoadout.
Referenced by ApplyAlternateShipType(), DrawTextAt(), InitializeShipWeaponTypeIndices(), and set_objects_data().
| short InitializeSoundBlaster | ( | short | port, |
| short | irq ) |
Definition at line 205 of file speech.c.
References AllocateTaggedMemory(), g_1_ucDmaPageValue, g_4_pDmaBufferPointer, g_nDigiSampleBytes, g_pDigiSample, g_wDmaAddressA, g_wDmaAddressB, g_wDmaHalfBytes, g_wSoundBlasterIrq, g_wSoundBlasterPort, IdentityDword(), InitializeSoundBlaster(), PumpWindowMessages(), ReleasePacketHandle(), and ReportFatalErrorCode().
Referenced by DrawTextAt(), InitializeSoundBlaster(), and LoadOriginFxDrivers().
Definition at line 16 of file message.c.
References ClearInputPump(), ConfigureInputPump(), g_18_nInterfaceEventMode, g_26_bMouseCursorEnabled, g_27_stViewScratchInfo, g_3_nFlightControlCommandValue, g_88_nEventRepeatDelayState, get_player_input(), InitializeInputDriverHook(), InitializeSpaceFlightInput(), and SetInputViewport().
Referenced by ejection_sequence(), InflightComputer(), InitializeSpaceFlightInput(), RunSpaceFlight(), and UpdateShipTurretGuns().
| void InitializeTextContextFromFont | ( | TextContext * | context, |
| short | fontIndex, | ||
| unsigned char | colour, | ||
| signed char | background ) |
Definition at line 254 of file disk.c.
References TextContext::backgroundColour, TextContext::colour, FetchDiskPacketRetrying(), TextContext::font, g_36_apTextGlyphs, InitializeTextContextFromFont(), and SetTextContext().
Referenced by BuildMap(), CalibrateJoystickInteractive(), DrawNavLocationReadout(), DrawPersonnelMenuBackdrop(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), HighlightPersonnelFileSlot(), HighlightTransferredPilot(), init_vdus(), InitializeCockpitResources(), InitializeConversationText(), InitializeGameTextContexts(), InitializeModalTextPanel(), InitializeTextContextFromFont(), LocateLegacySaveGame(), PollCampaignChalkboardMenu(), ResetGameTextContexts(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), and ShowMemoryStatusDebug().
| signed char InitializeViewportWipe | ( | Viewport * | source, |
| Viewport * | destination, | ||
| int | wipeType, | ||
| short | duration, | ||
| short | passFlags, | ||
| void * | workspace ) |
Definition at line 12 of file wipe.c.
References Viewport::bottom, g_105_nFadePreviousVerticalEdge, g_108_nTransitionVertSum, g_11_nWipeRadialAccumulator, g_11_pWipeFrontEdges, g_139_nDissolveProgress, g_14_nBlendHorizontalTotal, g_15_nFadeWidth, g_16_nRevealVerticalDelta, g_17_nFadeType, g_18_nBlendRadialStep, g_18_nWipeAcrossStride, g_18_nWipeTotalStages, g_19_stFadeToView, g_1_bWipeWidthAtLeastHeight, g_1_nFadeRadialThreshold, g_1_stWipeScratchSourcePort, g_26_stWipeTempDestinationViewport, g_2_nWipePreviousAcrossEdge, g_3_asWipeRadialLeadingEdge, g_3_nWipeRoundFlags, g_3_stDissolveSourceViewport, g_5_nBlendHeight, g_5_nWipeAcrossThreshold, g_5_nWipeMinorExtent, g_9_pWipeRearEdges, g_asWipeRadialTrailingEdges, g_bBlendWidthLessThanHeight, g_nBlendMaximumStep, g_nRevealVertThreshold, g_nWipeRadialRowCount, InitializeViewportWipe(), Viewport::left, Viewport::right, SetViewportHorizontalBounds(), SetViewportVerticalBounds(), Viewport::top, and void().
Referenced by CollectRasterClipColours(), InitializeCampaignChalkboardScreen(), InitializeViewportWipe(), RunCutsceneWipeTransition(), and RunTitleScreen().
References InstallRasterDriverCallbacks().
Referenced by InstallRasterDriverCallbacks().
| void intelligence_events | ( | int | obj | ) |
References AppendTextCharacter(), ArcCos(), ArcSin(), chase_speed(), CopyStringAndReturnEnd(), CosFixed(), DivideFixed(), DosFarPtrToNear(), DosNearPtrToFar(), DosStrchr(), DosStrcpy(), DosStrlen(), DosStrrchr(), DrawTextCharacter(), DrawTextString(), GetFontCharWidth(), GetRandomWord(), GetShapeFrameBounds(), IdentityHandle(), intelligence_events(), IsPointInRect(), Magnitude(), MeasureShapeFrameStorage(), MultiplyFixed(), ParseHexNumber(), PlanarMagnitude(), RandomBelow(), RandomBelowOrEqual(), RandomInRange(), ReadWord(), SeedRandomFromClock(), SetTextContext(), SetTextCursor(), SetWholePaletteFromTriplets(), SinFixed(), SplitPackedPoint(), Vector_magnitude(), and WaitForVerticalBlankThunk().
Referenced by intelligence_events(), intelligence_events(), and maneuvering().
| short internal_damage | ( | short | attacker, |
| short | owner, | ||
| short | victim, | ||
| short | damage, | ||
| short | quadrant ) |
Definition at line 1077 of file ship.c.
References any_enemy(), call_enemy(), damage_ion_drive(), ObjectTypeData::damageCapacity, drain_fuel(), explode(), g_aasShipMaximumShield, g_aasShipShield, g_acObjectType, g_acShipCommunicator, g_acShipComputerDamage, g_acShipDamage, g_acShipPortrait, g_aeObjectClass, g_anShipFuel, g_aObjectTypeData, g_asCapitalHitDamageStepTable, g_aShipWeapons, g_asObjectDamage, g_asObjectType, g_asPilotLevel, g_asShipSide, IncreaseAdaptiveDifficulty(), internal_damage(), MaxShort(), MinShort(), OBJECT_CLASS_CAPITAL_SHIP, onboard_explosion(), pilot_hit(), RandomBelowOrEqual(), RandomInRange(), remove_weapon(), send_message(), SIDE_KILRATHI, and your_internal_damage().
Referenced by DrawTextAt(), inflict_damage(), and internal_damage().
Definition at line 1768 of file eventmgr.c.
References DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), g_27_stViewScratchInfo, g_aeObjectClass, g_apObjectShape, g_asObjectDrawX, g_asObjectDrawY, g_asObjectFlip, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectType, g_asObjectViewFrame, g_cPrimaryViewBufferColour, g_nNavPointerObject, g_pConstellationSprite, intro_drawbackgroundships(), OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_STAR, and SPACE_OBJECT_COUNT.
Referenced by DosMemmove(), and intro_drawbackgroundships().
| 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_alive | ( | signed char | pilot | ) |
Definition at line 61 of file mission.c.
References g_pPilotStatus, and is_alive().
Referenced by init_ship(), is_alive(), and prepare_mission().
| 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 is_ship_tailing_player_target | ( | short | obj | ) |
Definition at line 347 of file logic.c.
References being_tailed(), g_acShipTarget, is_ship_tailing_player_target(), and unactive().
Referenced by DrawTextAt(), gametrack(), and is_ship_tailing_player_target().
| short is_team_member | ( | short | missionShip | ) |
Definition at line 1217 of file mission.c.
References g_13_stMissionHeaderBlock, MissionHeader::initialMissionShips, is_team_member(), and MissionHeader::playerMissionShip.
Referenced by auto_pilot_sequence(), hidden_objective(), init_ship(), is_team_member(), and strike_mission().
| short IsCapitalShipObject | ( | short | obj | ) |
Definition at line 98 of file ship.c.
References g_aeObjectClass, IsCapitalShipObject(), and OBJECT_CLASS_CAPITAL_SHIP.
Referenced by DrawTextAt(), fire(), fire_missile(), fire_turrets(), IsCapitalShipObject(), and target_locking().
| short IsCinematicFontCharacterPrintable | ( | short | character | ) |
Definition at line 32 of file text.c.
References IsCinematicFontCharacterPrintable().
Referenced by DrawCinematicFontCharacter(), IsCinematicFontCharacterPrintable(), and MeasureCinematicFontCharacterWidth().
| 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 IsCommChoiceMenuOpen | ( | void | ) |
Definition at line 92 of file comm.c.
References get_mode(), and IsCommChoiceMenuOpen().
Referenced by BuildCommunicationCommandMenu(), HandleCommunicationMenuRequest(), IsCommChoiceMenuOpen(), RefreshCommunicationMenu(), show_communications_disp(), and UpdateShipTurretGuns().
| short IsCommMenuIdle | ( | void | ) |
Definition at line 54 of file comm.c.
References g_nCommMenuChoiceCount, and IsCommMenuIdle().
Referenced by BuildCommunicationCommandMenu(), IsCommMenuIdle(), and UpdateShipTurretGuns().
| signed char IsConstellationParticleOutsideViewport | ( | ConstellationParticle | particle | ) |
Definition at line 96 of file starfld.c.
References Viewport::bottom, g_pConstellationWindow, IsConstellationParticleOutsideViewport(), Viewport::left, Viewport::right, Viewport::top, ConstellationParticle::x, and ConstellationParticle::y.
Referenced by DrawConstellationField(), IsConstellationParticleOutsideViewport(), and UpdateShipTurretGuns().
| signed char IsCutsceneSpeechLoaded | ( | void | ) |
Definition at line 234 of file gameflow.c.
References g_12_apszMovieSpeechFiles, and IsCutsceneSpeechLoaded().
Referenced by DosMemmove(), DrawCutsceneTextAt(), ExecuteCutsceneSequence(), IsCutsceneSpeechLoaded(), and UpdateMap().
| short IsEngagementTargetDisallowed | ( | short | ship, |
| short | target ) |
Definition at line 121 of file orders.c.
References g_asShipSide, IsEngagementTargetDisallowed(), and IsShipRouting().
Referenced by IsEngagementTargetDisallowed(), request(), and UpdateShipTurretGuns().
| short IsFrameTickElapsed | ( | void | ) |
Definition at line 1430 of file eventmgr.c.
References g_5_nFrameTimerWaitTicksValue, and IsFrameTickElapsed().
Referenced by DosMemmove(), and IsFrameTickElapsed().
| int IsFreedHeapBlockTracked | ( | void * | memory | ) |
Definition at line 806 of file winmain.c.
References FreedHeapBlock::block, g_pFreedHeapBlockHead, IsFreedHeapBlockTracked(), and FreedHeapBlock::next.
Referenced by CheckHeapBlockSignature(), and IsFreedHeapBlockTracked().
| short IsInputEventQueued | ( | int | type | ) |
Definition at line 657 of file main.c.
References FindQueuedInputEvent(), and IsInputEventQueued().
Referenced by DosMemmove(), HandleFleetOverviewInput(), IsInputEventQueued(), player_input(), and PollPersonnelMenuInput().
| short IsMissionObjectiveOutOfSystem | ( | short | objective | ) |
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().
| unsigned int IsMusicTrackComplete | ( | void | ) |
Definition at line 168 of file music.c.
References g_nMusicDriverMode, g_nMusicTrackComplete, and IsMusicTrackComplete().
Referenced by IsMusicTrackComplete(), and UpdateShipTurretGuns().
| short IsObjectiveInDisplayedSystem | ( | short | objective | ) |
Definition at line 580 of file nav.c.
References find_ships_sphere(), g_1_stElapsedCampaignDate, g_aMissionNavPoints, g_aMissionObjectives, IsObjectiveInDisplayedSystem(), and CampaignDate::year.
Referenced by BuildMap(), InflightComputer(), IsObjectiveInDisplayedSystem(), nav_note(), SelectNavObjectiveAtPoint(), and update_objective_location().
| short IsOnlyShipGun | ( | short | ship, |
| short | weapon ) |
Definition at line 1245 of file ship.c.
References g_aObjectTypeData, g_aShipWeapons, IsOnlyShipGun(), and OBJECT_CLASS_PROJECTILE.
Referenced by DrawTextAt(), IsOnlyShipGun(), and your_internal_damage().
| short IsPairEqualityDifferentFromFlag | ( | const unsigned int * | values | ) |
Definition at line 191 of file geom.c.
References IsPairEqualityDifferentFromFlag().
Referenced by IsPairEqualityDifferentFromFlag().
| short IsPointInNavMapLabel | ( | short | label, |
| short | x, | ||
| short | y ) |
Definition at line 442 of file nav.c.
References g_1_aNavMapLabels, IsPointInNavMapLabel(), and NavMapLabel::x.
Referenced by IsPointInNavMapLabel(), and SelectNavObjectiveAtPoint().
| short IsPointInRect | ( | short | x, |
| short | y, | ||
| const short * | rect ) |
Definition at line 246 of file eventmgr.c.
References IsPointInRect().
Referenced by FindSceneHotspotAtPosition(), intelligence_events(), IsPointInRect(), and SplitPackedPoint().
| short IsPointWithinRange | ( | FixedVector * | from, |
| FixedVector * | to, | ||
| short | range ) |
Definition at line 760 of file geom.c.
References ComputeVectorDelta(), IsPointWithinRange(), and IsVectorWithinRange().
Referenced by IsPointWithinRange(), kilrathi_near(), near_field(), ok_hazard_spot(), try_far_spot(), and within_field().
| int IsPushedPacketHandle | ( | void * | handle | ) |
Definition at line 53 of file memapi.c.
References g_9_apPacketHandlesTable, g_aiPacketHandleOffsets, g_nPacketHandleCount, and IsPushedPacketHandle().
Referenced by IsPushedPacketHandle(), PacketLoad(), and UpdateShipTurretGuns().
| short IsShipRouting | ( | short | ship | ) |
Definition at line 75 of file orders.c.
References g_asShipMissionType, IsShipRouting(), and MISSION_TYPE_ROUT.
Referenced by IsEngagementTargetDisallowed(), IsShipRouting(), request(), and UpdateShipTurretGuns().
| unsigned short IsSoundHardwarePresent | ( | short | device | ) |
Definition at line 17 of file memapi.c.
References EnableHighMemoryResources(), and IsSoundHardwarePresent().
Referenced by IsSoundHardwarePresent(), LoadOriginFxDrivers(), and UpdateShipTurretGuns().
| short IsSpriteFrameOverlappingRect | ( | const ShortRect * | rectangle, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 2235 of file eventmgr.c.
References ShortRect::bottom, GetShapeFrameBounds(), IsSpriteFrameOverlappingRect(), ShortRect::left, ShortRect::right, and ShortRect::top.
Referenced by build_your_target_list(), IsSpriteFrameOverlappingRect(), overlay_head_up_display(), and UpdateShipTurretGuns().
| void IssueQuickCommCommand | ( | short | recipient, |
| short | command ) |
Definition at line 413 of file comm.c.
References g_nEnemyTauntCommandBase, IssueQuickCommCommand(), and request().
Referenced by HandleSpaceFlightControls(), IssueQuickCommCommand(), and UpdateShipTurretGuns().
| short IsVectorWithinRange | ( | FixedVector * | vector, |
| short | range ) |
Definition at line 2023 of file eventmgr.c.
References IsVectorWithinRange(), and Vector_magnitude().
Referenced by check_for_collision(), DosMemmove(), IsPointWithinRange(), IsVectorWithinRange(), room_for_me(), and ships_within_range().
Definition at line 501 of file sound.c.
References ix_sound_get_sample(), and IxSound::sample.
Referenced by FindActiveSoundEntryBySample(), ix_sound_get_sample(), and UpdateShipTurretGuns().
| int __fastcall ix_sound_is_playing | ( | IxSound * | sound | ) |
Definition at line 361 of file sound.cpp.
References IxSound::flags, ix_sound_is_playing(), and IX_SOUND_PLAYING.
Referenced by CollectRasterClipColours(), ix_sound_is_playing(), PlaySnowStaticSound(), ReleaseFinishedSoundEntries(), and ServiceSoundSystem().
Definition at line 189 of file sound.cpp.
References IxSound::flags, ix_dspv_clear_flag4(), ix_log_printf(), IX_SOUND_FILE, IX_SOUND_HAS_VOICE, IX_SOUND_LOOPING, IX_SOUND_PLAYING, ix_sound_release(), IX_SOUND_RELEASE_PENDING, ix_sound_stop(), and IxSound::voice.
Referenced by CollectRasterClipColours(), ix_sound_release(), PlayRawSpeechBuffer(), and stop_all_sounds().
Definition at line 103 of file sound.cpp.
References IxSample::flags, IxSound::flags, IxSample::frequency, g_1_pActiveSoundList, g_1_pFreeSoundHead, g_1_pWaitingSoundList, g_nActiveVoices, g_nSystemVoiceCount, ix_dsp_get_tick(), ix_log_printf(), IX_SAMPLE_LOOPING, IX_SOUND_FILE, IX_SOUND_LOOPING, IX_SOUND_PLAYING, IX_SOUND_RELEASE_PENDING, ix_sound_start(), ix_system_assign_voice(), ix_system_find_free_voice(), ix_system_find_lowest_playing(), ix_system_release_voice(), IxSound::next, IxSound::pitchOffset, IxSound::previous, IxSound::priority, IxSound::sample, IxSample::sampleCount, IxSound::startTime, and IxSound::stopTime.
Referenced by CollectRasterClipColours(), ix_sound_start(), PlayRawSpeechBuffer(), PlaySnowStaticSound(), and playWAVE().
Definition at line 211 of file sound.cpp.
References IxSound::flags, g_1_pActiveSoundList, g_1_pFreeSoundHead, g_1_pWaitingSoundList, ix_log_printf(), IX_SOUND_DELETE_ON_STOP, IX_SOUND_FILE, IX_SOUND_HAS_VOICE, IX_SOUND_PLAYING, ix_sound_stop(), ix_system_assign_voice(), ix_system_delete_sound(), ix_system_find_highest_waiting(), ix_system_release_voice(), IxSound::next, and IxSound::previous.
Referenced by CollectRasterClipColours(), ix_sound_release(), ix_sound_stop(), ix_system_delete_sound(), ix_system_service_sounds(), PlayRawSpeechBuffer(), and stop_all_sounds().
Definition at line 333 of file streamer.cpp.
References g_1_hStreamRouseEvent, g_dwStreamerMode, ix_log_printf(), IX_STREAMER_AUDIO_PAUSED, ix_streamer_audio_play(), IX_STREAMER_AUDIO_PLAYING, IX_STREAMER_FILE, and IX_STREAMER_HAS_AUDIO.
Referenced by CollectRasterClipColours(), ix_streamer_audio_play(), and Streamer_play().
Definition at line 346 of file streamer.cpp.
References g_1_hStreamRouseEvent, g_dwStreamerMode, ix_log_printf(), IX_STREAMER_AUDIO_PLAYING, ix_streamer_audio_stop(), IX_STREAMER_FILE, IX_STREAMER_HAS_AUDIO, and ix_streamer_seek_chunk().
Referenced by CollectRasterClipColours(), ix_streamer_audio_stop(), and Streamer_stop().
Definition at line 294 of file streamer.cpp.
References g_126_pReaderCompressedBuf, g_15_pStreamerSoundChunks, g_17_pStreamerFileParts, g_1_csStreamer, g_1_hStreamRouseEvent, g_1_pFeederPackageDisk, g_3_pReaderFileEntries, g_48_pPumpIdleFiles, g_6_pFeederTriggers, g_7_pStreamBranches, g_7_pStreamerPacketOffsets, g_dwStreamerMode, g_pStreamerFileStore, g_pStreamPrologue, ix_dsps_free(), ix_file_close(), ix_log_printf(), ix_streamer_close_file(), ix_streamer_close_stream_file(), IX_STREAMER_FILE, IX_STREAMER_FILE_OPEN, IX_STREAMER_INITIALIZED, and IxStreamFile::previous.
Referenced by CollectRasterClipColours(), ix_streamer_close_stream_file(), ix_streamer_destroy(), ix_streamer_open_stream_file(), and Streamer_close().
Definition at line 99 of file streamer.cpp.
References ix_dsp_configure(), and ix_streamer_configure().
Referenced by CollectRasterClipColours(), InitializeAudioStreamer(), ix_streamer_configure(), and SignalAudioMixerWakeEvent().
Definition at line 78 of file streamer.cpp.
References g_1_csStreamer, g_1_hStreamRouseEvent, g_49_csStreamWorker, g_csStreamerFileFifo, g_dwStreamerMode, ix_dsp_shutdown(), ix_log_printf(), ix_streamer_close_stream_file(), ix_streamer_destroy(), IX_STREAMER_FILE, IX_STREAMER_FILE_OPEN, IX_STREAMER_INITIALIZED, and IX_STREAMER_SHUTDOWN.
Referenced by CollectRasterClipColours(), DestroyAudioStreamer(), and ix_streamer_destroy().
| void ix_streamer_force_trigger | ( | char | trigger | ) |
Definition at line 420 of file streamer.cpp.
References IxStreamerTrigger::audioChunk, IxStreamerHeader::audioChunkCount, IxStreamerAudioChunk::firstTrigger, g_13_adwPlayerBranchingStack, g_15_pStreamerSoundChunks, g_1_csStreamer, g_1_hStreamRouseEvent, g_6_dwStreamSoundChunk, g_6_pFeederTriggers, g_dwStreamerMode, g_nStreamerBranchStackIndex, g_pStreamPrologue, ix_dsps_stop(), ix_log_printf(), IX_STREAMER_DSP_PLAYING, IX_STREAMER_FILE, ix_streamer_force_trigger(), IX_STREAMER_HAS_AUDIO, and IxStreamerAudioChunk::triggerCount.
Referenced by CollectRasterClipColours(), ForceStreamerTrigger(), and ix_streamer_force_trigger().
| unsigned short ix_streamer_get_volume | ( | void | ) |
Definition at line 487 of file streamer.cpp.
References g_nStreamerVolume, and ix_streamer_get_volume().
Referenced by CollectRasterClipColours(), GetMusicStreamVolume(), and ix_streamer_get_volume().
| int ix_streamer_init | ( | void | ) |
Definition at line 48 of file streamer.cpp.
References g_1_csStreamer, g_1_hStreamRouseEvent, g_49_csStreamWorker, g_4_hStreamerWorker, g_csStreamerFileFifo, g_dwStreamerMode, g_dwStreamThreadId, ix_dsp_init(), ix_log_printf(), IX_STREAMER_DEVELOPER_MODE, IX_STREAMER_FILE, ix_streamer_init(), IX_STREAMER_INITIALIZED, and ix_streamer_thread_proc().
Referenced by CollectRasterClipColours(), InitializeAudioStreamer(), and ix_streamer_init().
| int ix_streamer_open_stream_file | ( | char * | path | ) |
Definition at line 120 of file streamer.cpp.
References IxStreamerHeader::audioBufferSize, IxStreamerHeader::audioChunkCount, IxStreamerHeader::audioChunkTableOffset, IxStreamerHeader::bitsPerSample, IxStreamerHeader::branchCount, IxStreamerHeader::branchTableOffset, IxStreamerHeader::channels, IxStreamerHeader::dspConfigValue, IxStreamerHeader::fileBufferSize, IxStreamerHeader::fileChunkCount, IxStreamerHeader::fileChunkTableOffset, IxStreamerHeader::fileEntryCount, IxStreamerHeader::fileEntryTableOffset, IxStreamerHeader::frequency, g_126_pReaderCompressedBuf, g_15_pStreamerSoundChunks, g_16_nStreamerBytesEachSecond, g_17_pStreamerFileParts, g_1_hStreamRouseEvent, g_1_pFeederPackageDisk, g_3_pReaderFileEntries, g_48_pPumpIdleFiles, g_49_nStreamerAudioBufferSize, g_6_dwStreamSoundChunk, g_6_pFeederTriggers, g_7_pStreamBranches, g_7_pStreamerPacketOffsets, g_dwStreamerMode, g_nSpoolerDiskChunk, g_nStreamerBranchStackIndex, g_nStreamerVolume, g_pIxMalloc(), g_pStreamerFileStore, g_pStreamPrologue, IxStreamerHeader::id, ix_dsp_configure(), ix_dsps_alloc(), ix_dsps_set_volume(), ix_file_open(), ix_file_read(), ix_file_seek(), ix_log_printf(), ix_streamer_close_stream_file(), IX_STREAMER_FILE, IX_STREAMER_FILE_OPEN, IX_STREAMER_HAS_AUDIO, IX_STREAMER_INITIALIZED, ix_streamer_open_stream_file(), IxStreamerHeader::packetCount, IxStreamerHeader::packetTableOffset, IxStreamerHeader::triggerCount, IxStreamerHeader::triggerTableOffset, and IxStreamerHeader::version.
Referenced by CollectRasterClipColours(), ix_streamer_open_stream_file(), and Streamer_open().
| void ix_streamer_set_intensity | ( | unsigned char | intensity | ) |
Definition at line 383 of file streamer.cpp.
References g_6_bFeederLevel, and ix_streamer_set_intensity().
Referenced by CollectRasterClipColours(), InitializeAudioStreamer(), ix_streamer_set_intensity(), and SetStreamerIntensity().
| void ix_streamer_set_trigger | ( | char | trigger | ) |
Definition at line 399 of file streamer.cpp.
References g_cStreamerBranchTag, and ix_streamer_set_trigger().
Referenced by CollectRasterClipColours(), ix_streamer_set_trigger(), and SetStreamerTrigger().
| void ix_streamer_set_volume | ( | unsigned short | volume | ) |
Definition at line 471 of file streamer.cpp.
References g_1_csStreamer, g_dwStreamerMode, g_nStreamerVolume, ix_dsps_set_volume(), and ix_streamer_set_volume().
Referenced by CollectRasterClipColours(), ix_streamer_set_volume(), and SetMusicStreamVolume().
Definition at line 104 of file system.cpp.
References ix_dsp_configure(), and ix_system_configure().
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_configure().
Definition at line 159 of file system.cpp.
References g_7_pSampleList, ix_system_delete_all_samples(), ix_system_delete_sample(), and IxSample::next.
Referenced by CollectRasterClipColours(), ix_system_delete_all_samples(), ix_system_shutdown(), ServiceAudioStream(), and stop_all_sounds().
Definition at line 197 of file system.cpp.
References g_1_pActiveSoundList, g_1_pFreeSoundHead, g_1_pWaitingSoundList, ix_system_delete_all_sounds(), ix_system_delete_sound(), and IxSound::next.
Referenced by CollectRasterClipColours(), ix_system_delete_all_sounds(), ix_system_shutdown(), ServiceAudioStream(), and stop_all_sounds().
Definition at line 184 of file system.cpp.
References IxSound::flags, IX_SOUND_DELETE_ON_STOP, IX_SOUND_PLAYING, ix_sound_stop(), IxSound::ix_sound_unlink_from_free_list(), and ix_system_delete_sound().
Referenced by CollectRasterClipColours(), ix_sound_stop(), ix_system_delete_all_sounds(), ix_system_delete_sound(), ReleaseFinishedSoundEntries(), and StopSoundsUsingWave().
| int ix_system_init | ( | void | ) |
Definition at line 25 of file system.cpp.
References g_1_pActiveSoundList, g_1_pFreeSoundHead, g_1_pWaitingSoundList, g_7_pSampleList, g_dwIxSystemBits, g_nActiveVoices, g_nSystemVoiceCount, ix_dsp_get_voice_count(), ix_dsp_init(), ix_log_printf(), IX_SYSTEM_FILE, ix_system_init(), and ix_system_set_master_volume().
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_init().
Definition at line 139 of file system.cpp.
References g_pIxMalloc(), IxSample::ix_sample_construct(), and ix_system_new_sample().
Referenced by CollectRasterClipColours(), ix_system_new_sample(), PlayRawSpeechBuffer(), PlaySnowStaticSound(), and playWAVE().
Definition at line 173 of file system.cpp.
References g_pIxMalloc(), ix_system_new_sound(), and IxSound::ix_system_sound_construct_centred().
Referenced by CollectRasterClipColours(), ix_system_new_sound(), PlayRawSpeechBuffer(), PlaySnowStaticSound(), and playWAVE().
Definition at line 46 of file system.cpp.
References IxSound::flags, IxSample::frequency, g_1_pActiveSoundList, g_1_pWaitingSoundList, ix_dsp_get_tick(), ix_dspv_get_flags(), ix_dspv_set_frequency(), ix_dspv_set_pan(), ix_dspv_set_volume(), IX_SOUND_FREQUENCY_DIRTY, IX_SOUND_PAN_DIRTY, ix_sound_stop(), IX_SOUND_VOLUME_DIRTY, ix_system_service_sounds(), IX_VOICE_ACTIVE, IxSound::next, IxSound::pan, IxSound::pitchOffset, IxSound::sample, IxSound::stopTime, IxSound::voice, and IxSound::volume.
Referenced by CollectRasterClipColours(), ix_system_service_sounds(), and ServiceSoundSystem().
| void ix_system_set_master_volume | ( | unsigned short | volume | ) |
Definition at line 116 of file system.cpp.
References ix_dsp_set_master_volume(), and ix_system_set_master_volume().
Referenced by CollectRasterClipColours(), ix_system_init(), ix_system_set_master_volume(), and SetSoundEffectsVolume().
| void ix_system_set_voice_count | ( | int | voiceCount | ) |
Definition at line 128 of file system.cpp.
References g_nActiveVoices, g_nSystemVoiceCount, ix_dsp_get_voice_count(), ix_dsp_set_voice_count(), ix_log_printf(), IX_SYSTEM_FILE, and ix_system_set_voice_count().
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_set_voice_count().
Definition at line 93 of file system.cpp.
References g_dwIxSystemBits, ix_dsp_shutdown(), ix_system_delete_all_samples(), ix_system_delete_all_sounds(), and ix_system_shutdown().
Referenced by CollectRasterClipColours(), ix_system_shutdown(), and ServiceAudioStream().
| unsigned int JoystickEdgeHook | ( | int | button | ) |
Definition at line 1941 of file eventmgr.c.
References JoystickEdgeHook(), and void().
Referenced by DosMemmove(), and JoystickEdgeHook().
Definition at line 69 of file input.c.
References JoystickInputHook().
Referenced by JoystickInputHook(), and UpdateShipTurretGuns().
Definition at line 17 of file kbmouse.c.
References Viewport::bottom, g_101_stScrViewInfo, g_16_stEventQueuePointerData, g_2_bIgnoreNextCursorMoveFlag, g_6_stPersonnelMouseData, g_bKeyboardMouseEnabled, g_cKeypadMouseSpeedValue, g_nKeyboardMouseButtons, GetDownArrowKeyState(), GetEndKeyState(), GetHomeKeyState(), GetLeftArrowKeyState(), GetNumLockKeyState(), GetNumpadMinusKeyState(), GetNumpadPlusKeyState(), GetPageDownKeyState(), GetPageUpKeyState(), GetReturnKeyState(), GetRightArrowKeyState(), GetShiftKeyState(), GetSpaceKeyState(), GetUpArrowKeyState(), KeyboardMousePump(), Viewport::left, Viewport::pixels, QueueInputEvent(), Viewport::right, SetMousePosition(), SetPersonnelCursorPosition(), Viewport::top, PersonnelMouseSample::x, QueuedMouseState::x, PersonnelMouseSample::y, and QueuedMouseState::y.
Referenced by KeyboardMousePump(), and PumpWindowMessages().
| 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().
| void kilrathi_patrol | ( | short | obj | ) |
Definition at line 441 of file brains.c.
References check_engage_target(), fail(), formation_burst(), g_aeShipObjective, g_asShipTactic, kilrathi_patrol(), maneuvering(), OBJECTIVE_BREAK_FORMATION, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOLD_FORMATION, OBJECTIVE_NONE, OBJECTIVE_WANDER, patrol_area(), and TACTIC_APPROACH_TARGET.
Referenced by kilrathi_patrol(), and ship_intelligence().
| void kilrathi_wingman | ( | short | obj | ) |
Definition at line 334 of file brains.c.
References change_mission_type(), check_engage_target(), engage(), fail(), formation_burst(), g_acShipTarget, g_aeShipObjective, g_asShipWingLeader, inherit_leader(), kilrathi_wingman(), maintain_formation(), maneuvering(), MISSION_TYPE_PATROL, OBJECTIVE_BREAK_FORMATION, OBJECTIVE_DESTROY_SHIP, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOLD_FORMATION, OBJECTIVE_NONE, reset_objective(), and unactive().
Referenced by kilrathi_wingman(), and wingman_mission().
| void launch_carrier_fighter | ( | short | carrier | ) |
Definition at line 22 of file carrier.c.
References g_2_asCarrierLaunchTimer, g_abShipEjectionSequenceEnabled, g_acObjectType, g_acShipPortrait, g_acShipTarget, g_aeObjectClass, g_aeShipObjective, g_anShipSpeed, g_aObjectTypeData, g_apShipMissionRecord, g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_asObjectCollisionRadius, g_asObjectType, g_asPilotLevel, g_asShipMissionIndex, g_asShipMissionType, g_asShipSide, g_asShipWingLeader, g_nCarrierLaunchIntervalValue, g_nCurrentNavPoint, has_opposing_ship(), initialize_ship(), launch_carrier_fighter(), MISSION_TYPE_PATROL, OBJECT_CLASS_SHIP, OBJECTIVE_ENGAGE_ENEMY, position_relative(), RandomBelowOrEqual(), ScaleFixedVector(), Set_up_ship_info(), and SIDE_KILRATHI.
Referenced by capital_ship_intelligence(), close_behind(), and launch_carrier_fighter().
| int launch_object | ( | short | parent, |
| short | child, | ||
| FixedVector | direction, | ||
| short | speed ) |
Definition at line 2046 of file ship.c.
References AddFixedVectors(), g_aShipVelocity, launch_object(), NormalizeFixedVector(), ScaleFixedVector(), and vector_component_in_dir().
Referenced by DrawTextAt(), fire(), and launch_object().
| signed char LinkCutsceneObjectResources | ( | CutsceneObjectResourceList * | list, |
| short | scriptHalf, | ||
| int | formType ) |
Definition at line 259 of file iffload.c.
References CutsceneObjectResourceHalf::count, CreateCutsceneResourceInstance(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), FindCutsceneResourceSymbolIndex(), g_apCutscenePlanes, g_apCutsceneScenes, g_apCutsceneSequences, g_apSceneObjects, CutsceneObjectResourceHalf::inheritedCount, LinkCutsceneObjectResources(), CutsceneObjectResourceList::next, CutscenePlane::scriptCursor, CutsceneScene::scriptCursor, CutsceneSequence::scriptCursor, SceneFlicObject::scriptCursor, CutsceneObjectResourceList::scripts, CutscenePlane::scriptStart, CutsceneScene::scriptStart, CutsceneSequence::scriptStart, SceneFlicObject::scriptStart, CutsceneObjectResourceHalf::symbolCount, CutsceneObjectResourceHalf::symbolIndices, CutsceneObjectResourceHalf::symbols, UpdateCutscenePlaneObject(), and UpdateCutsceneSpriteObject().
Referenced by DecodeCutsceneObjectResource(), LinkCutsceneObjectResources(), and UpdateShipTurretGuns().
| void LinkCutsceneSpriteScript | ( | unsigned char | destination, |
| unsigned char | source ) |
Definition at line 1056 of file gameflow.c.
References FindActiveCutsceneObjectResources(), g_apSceneObjects, g_nActiveCutsceneResourceLevel, g_pCutsceneSpriteResources, LinkCutsceneSpriteScript(), SceneFlicObject::linkedOwner, SceneFlicObject::linkedScript, SceneFlicObject::owner, SceneFlicObject::scriptCursor, SceneFlicObject::scriptStart, and CutsceneObjectResourceList::scriptSymbolIndices.
Referenced by DosMemmove(), LinkCutsceneSpriteScript(), and RunCutsceneScript().
Definition at line 715 of file mission.c.
References ObjectTypeData::animation, free_view_buffer(), g_acObjectType, g_aObjectResourceSlots, g_aObjectTypeData, g_apObjectExhaustShape, g_bShipResourceReloadInProgress, load_all_slots(), load_ship(), release_all_capital_ship_shapes(), and ObjectResourceSlot::resourceType.
Referenced by death_sequence(), ejection_sequence(), load_all_slots(), and set_up_action_sphere().
Definition at line 834 of file fltsetup.c.
References ObjectTypeData::animation, FetchDiskPacketRetrying(), free_ship(), FreeShapeSet(), g_19_bStoredHighMemoryEnabled, g_1_nResourcePaletteState, g_aCommon3SpaceResources, g_aObjectTypeData, g_pGenericMissileExhaustShape, g_pGenericMissileShape, load_common_3Space_objects(), load_ship(), LoadShapeSet(), OBJECT_CLASS_MISSILE, and ObjectTypeData::shapeSet.
Referenced by close_behind(), ejection_sequence(), init_3Space_objects(), and load_common_3Space_objects().
| void load_ship | ( | short | resourceType, |
| short | objectType, | ||
| short | objectClass, | ||
| short | slot ) |
Definition at line 415 of file mission.c.
References ObjectResourceSlot::animation, ObjectTypeData::animation, FetchDiskPacketRetrying(), ObjectResourceSlot::field_12, FreePacketAndClear(), g_19_bStoredHighMemoryEnabled, g_1_nResourcePaletteState, g_98_nMemConfiguration, g_acObjectType, g_aeObjectClass, g_aObjectResourceSlots, g_aObjectTypeData, g_apObjectExhaustShape, g_apObjectShape, g_apPacketReferenceGroups, g_asLoadedShipViewFrame, g_asObjectType, g_bExpandedShipGraphicsEnabled, g_bShipResourceReloadInProgress, HOST_POINTER_SIZE, LOAD_OBJECT_TYPE_RECORD, load_ship(), OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, ObjectResourceSlot::objectClass, ObjectResourceSlot::objectType, ReportFatalErrorCode(), ObjectResourceSlot::resourceType, ObjectResourceSlot::shape, ObjectTypeData::shape, ObjectResourceSlot::shapeSet, ObjectTypeData::shapeSet, and SPACE_LAST_MOVING_OBJECT.
Referenced by load_all_slots(), load_common_3Space_objects(), load_ship(), new_sphere_shapes(), and prepare_mission().
| void LoadAlternateShipType | ( | short | resourceType, |
| short | logicalFile ) |
Definition at line 214 of file mission.c.
References ObjectTypeData::animation, FindObjectResourceSlot(), g_aObjectTypeData, g_nSelectedCampaignSlot, LOAD_OBJECT_TYPE_RECORD, LoadAlternateShipType(), ObjectTypeData::resourceType, ObjectTypeData::shape, and ObjectTypeData::shapeSet.
Referenced by init_ship(), LoadAlternateShipType(), and prepare_mission().
| void LoadAndPlaySpeechPacket | ( | char * | fileName, |
| short | section ) |
Definition at line 103 of file speech.c.
References g_pDigiSample, GetNamedPacketSize(), LoadAndPlaySpeechPacket(), LoadSpeechPacketIntoBuffer(), and PlaySpeechPacketBuffer().
Referenced by DrawTextAt(), LoadAndPlaySpeechPacket(), real_vid_transmit(), and RunCutsceneScript().
| void * LoadCachedCutsceneResource | ( | CutsceneResourceTable * | resources, |
| short | index, | ||
| int | resourceType ) |
Definition at line 3539 of file gameflow.c.
References DosStrcpy(), FatalCutsceneError(), CutsceneResourceTable::filenameIndices, g_19_bStoredHighMemoryEnabled, g_nActiveCutsceneResourceLevel, g_nPacketError, g_nSceneFlicContext, g_pMemoryLogFile, GetAvailableMainMemory(), GetNamedPacketSize(), GetPackedStringByIndex(), LoadCachedCutsceneResource(), CutsceneResourceTable::loadedPackets, LoadNamedPacket(), ReportCutscenePacketAllocationFailure(), RewriteCutsceneMusicExtensionForDriver(), RewriteCutsceneMusicExtensionForRetry(), RewriteDiskFileGraphicsExtensions(), and CutsceneResourceTable::sectionIndices.
Referenced by AddCutsceneMusicNode(), DosMemmove(), LoadCachedCutsceneResource(), and RunCutsceneScript().
Definition at line 219 of file replay.c.
References CloseDataFile(), g_3_nCannedSceneWriteIndex, g_4_nCannedSceneFileOffset, g_nCannedSceneSegmentEndFrame, g_pHighMemoryBlockA, g_szCannedSceneTapeFile, LoadCannedScenePlaybackBuffer(), OpenDataFileOrDie(), ReadDataFileAtOffset(), and ReportFatalErrorCode().
Referenced by HandleCannedSceneBufferBoundary(), LoadCannedScenePlaybackBuffer(), and UpdateShipTurretGuns().
| void LoadCommPortraitResources | ( | short | portrait | ) |
Definition at line 25 of file comm.c.
References FetchDiskPacketRetrying(), FreePacketAndClear(), g_19_bStoredHighMemoryEnabled, g_pCommPortraitResource, g_pCommVduFrameResource, and LoadCommPortraitResources().
Referenced by init_intelligence_data(), LoadCommPortraitResources(), real_vid_transmit(), and UpdateShipTurretGuns().
| void LoadCutsceneCockpitOverlay | ( | short | scriptValue | ) |
Definition at line 322 of file gameflow.c.
References g_7_szCockpitAssetFilenameText, g_pCutsceneCockpitPacket, LoadCutsceneCockpitOverlay(), LoadNamedPacket(), and void().
Referenced by DosMemmove(), LoadCutsceneCockpitOverlay(), and RunCutsceneScript().
| void LoadCutsceneSpeechSlot | ( | short | resourceIndex, |
| short | slot ) |
Definition at line 640 of file gameflow.c.
References CutsceneResourceTable::filenameIndices, FindActiveCutsceneFileResources(), g_12_apszMovieSpeechFiles, g_19_asCutsceneSpeechSectionsList, g_1_asCutsceneSpeechChannelsTable, g_3_apSceneSpeechPacketsList, g_bCutsceneSkipAll, g_bCutsceneViewportPreallocated, g_bSpeechEnabledFlag, g_pCutsceneSpeechResources, g_wDigiPlaying, GetNamedPacketSize(), GetPackedStringByIndex(), LoadCutsceneSpeechSlot(), LoadSpeechPacketIntoBuffer(), PumpWindowMessages(), ReleasePacketSlot(), and CutsceneResourceTable::sectionIndices.
Referenced by DosMemmove(), LoadCutsceneSpeechSlot(), and RunCutsceneScript().
Definition at line 11 of file startup.c.
References FetchDiskPacketRetrying(), g_abLegacyVideoModeColours, g_cBlueColour, g_nSpacePaletteFadeMode, LoadGamePaletteFile(), ResetCockpitPaletteEntries(), SaveGamePalette(), and SetPaletteEntryFromTriplet().
Referenced by DrawTextAt(), LoadGamePaletteFile(), and LoadOriginFxDrivers().
| short LoadGraphicsDriver | ( | short | rewritePacketExtensions | ) |
Definition at line 10 of file grdriver.c.
References LoadGraphicsDriver(), and void().
Referenced by DrawTextAt(), LoadGraphicsDriver(), and LoadOriginFxDrivers().
| short LoadInputCursorShape | ( | const char * | filename, |
| short | section, | ||
| short | flags ) |
Definition at line 2120 of file eventmgr.c.
References InputManagerState::cursorShape, g_16_stEventQueuePointerData, g_18_pEventManager, LoadInputCursorShape(), LoadNamedPacket(), SetInputViewport(), QueuedMouseState::shape, and void().
Referenced by DosMemmove(), EMStartUp(), and LoadInputCursorShape().
| short LoadJoystickCalibrationFile | ( | short | horizontalRange, |
| short | verticalRange, | ||
| short | horizontalDeadZone, | ||
| short | verticalDeadZone ) |
Definition at line 15 of file joycal.c.
References g_12_nControllerLeftScaleValue, g_12_nJoystickDownScaleWord, g_12_nJoystickMinimumXNumber, g_1_nJoystickCentreXNumber, g_1_nJsRightScaleWord, g_2_nControllerCalibrationMaximumX, g_2_nJoystickCalibrationMinimumXNumber, g_2_nJoystickCentreY, g_2_nJsMinimumY, g_4_nControllerFailureValue, g_4_nJoystickMaximumXValue, g_59_nJoystickUpScaleWord, g_7_nJoystickTuningTopY, g_8_nActiveInputDeviceWord, g_nControllerVerticalDeadZoneWord, g_nJoystickCalibrationMinimumY, g_nJoystickHorizDeadZone, g_nJoystickMaximumY, g_nJoystickUnavailableSample, GetJoystickDevCaps(), LoadJoystickCalibrationFile(), and SampleBothJoysticks().
Referenced by CalibrateJoystickInteractive(), LoadJoystickCalibrationFile(), LoadOriginFxDrivers(), and UpdateShipTurretGuns().
| void LoadMissionData | ( | short | series, |
| short | mission ) |
Definition at line 10 of file loadmisn.c.
References DosMemmove(), FetchDiskPacketRetrying(), g_13_stMissionHeaderBlock, g_5_abMissionAuxBlockBytes, g_69_aMissionObjectiveSources, g_abMissionBriefingData, g_abSeriesAuxData, g_aMissionNavPoints, g_aMissionShips, g_nSelectedCampaignSlot, LoadMissionData(), and ReleasePacketHandle().
Referenced by init_mission(), LoadMissionData(), and UpdateMap().
| void * LoadNamedPacket | ( | const char * | filename, |
| short | section, | ||
| void * | destination, | ||
| unsigned short | flags, | ||
| void * | decompressionWorkspace, | ||
| int | registerHandle ) |
Definition at line 2170 of file eventmgr.c.
References LoadNamedPacket(), and PacketLoad().
Referenced by AdvanceSceneFlicStream(), BarracksScreen(), FetchDiskPacketRetrying(), initialize_cockpit(), InitializeCockpitResources(), LoadCachedCutsceneResource(), LoadCutsceneCockpitOverlay(), LoadInputCursorShape(), LoadNamedPacket(), LoadPacketAllocated(), LoadPacketIntoBuffer(), and UpdateShipTurretGuns().
Definition at line 70 of file startup.c.
References ConfigureDefaultSpacePalette(), ConfigureInputPump(), EMStartUp(), exit_squadron(), g_13_pStartupStellarPacket, g_14_nCurrentGraphicsModeDetectedValue, g_19_bStoredHighMemoryEnabled, g_2_bPumpMessagesWhileLoadingState, g_3_nAudioBlasterPortSettingValue, g_3_nVoiceBlasterIrqSetting, g_8_nMusicMemoryNeed, g_98_nMemConfiguration, g_acExpectedGraphicsModes, g_bExpandedShipGraphicsEnabled, g_bOriginFxDriverActive, g_bRewritePacketExtensions, g_bSpeechEnabledFlag, g_bSpeechResourcesEnabled, g_dwInitialSpareMemory, g_nAvailableGameMemoryNumber, g_nExpandedShipMemoryKb, g_nFrameSkip, g_nInputDoubleClickInterval, g_nMinimumMemoryAlternate, g_nMinimumMemoryFullMusic, g_nMinimumMemoryNoMusic, g_nMusicDriverMode, g_nNearHeapMaxDescriptors, g_nOriginDevUnlock, g_nSelectedCampaignSlot, g_nShowMemoryStatus, g_szNotEnoughMemoryMessage, GetAvailableFarMemoryByType(), GetLargestFreeMemoryBlockByType(), initialize_direction_view_frames(), InitializeGameTextContexts(), InitializeHighMemoryGraphicsBuffers(), InitializeMouseCursorDepth(), InitializeMusicResources(), InitializePostPaletteState(), InitializeSoundBlaster(), IsSoundHardwarePresent(), LoadGamePaletteFile(), LoadGraphicsDriver(), LoadJoystickCalibrationFile(), LoadOriginFxDrivers(), LoadPacketAllocated(), LoadSpaceflightResources(), LogMemoryStateToFile(), MessagePumpHook(), PollJoystickButtonEvents(), QueryCurrentGraphicsMode(), SetFrameTimerPeriodDirect(), SetMusicTickRateHook(), and void().
Referenced by DrawTextAt(), LoadOriginFxDrivers(), and RunGameApplication().
| void * LoadPacketAllocated | ( | char * | fileName, |
| short | section ) |
Definition at line 157 of file disk.c.
References AllocateTaggedMemory(), AppendPacketLoadDebugLog(), exit_squadron(), g_bRewritePacketExtensions, g_nOriginDevUnlock, g_nPacketError, GetNamedPacketSize(), LoadNamedPacket(), LoadPacketAllocated(), ReportPacketLoadError(), and RewritePacketFilenameForInstalledData().
Referenced by LoadOriginFxDrivers(), LoadPacketAllocated(), and SendCommMenuChoice().
| void * LoadPacketIntoBuffer | ( | char * | fileName, |
| short | section, | ||
| void * | destination, | ||
| int | registerHandle ) |
Definition at line 141 of file disk.c.
References AppendPacketLoadDebugLog(), g_bRewritePacketExtensions, g_nOriginDevUnlock, LoadNamedPacket(), LoadPacketIntoBuffer(), ReportPacketLoadError(), and RewritePacketFilenameForInstalledData().
Referenced by init_intelligence_data(), init_mission(), initialize_cockpit(), InitializeCockpitResources(), LoadPacketIntoBuffer(), LoadSpeechPacketIntoBuffer(), ProcessMissionWaveCommands(), and real_vid_transmit().
| int LoadPacketResourceList | ( | PacketResourceDescriptor * | resources, |
| short | flags, | ||
| int | availableBytes, | ||
| char * | defaultFileName ) |
Definition at line 51 of file fltsetup.c.
References FetchDiskPacketRetrying(), GetNamedPacketSize(), LoadPacketResourceList(), PacketResourceDescriptor::resource, and PacketResourceDescriptor::section.
Referenced by close_behind(), init_mission(), and LoadPacketResourceList().
Definition at line 53 of file hotspot.c.
References SceneHotspot::bottom, SceneResourceTable::count, SceneResourceTable::data, DecodeSceneResourceChunk(), g_128_nShotHotspotLeft, g_15_nSceneAreaLowestWord, g_27_nSceneHotspotTopValue, g_8_nSceneRegionRightWord, g_pActiveScenePacket, g_stSceneTextList, g_stSceneZoneTable, SceneHotspot::left, LoadSceneHotspotBoundsForSelection(), ReadNextSceneForm(), ReleasePacketSlot(), SceneHotspot::right, SceneHotspot::selection, SceneHotspot::top, and SceneResourceTable::type.
Referenced by DrawCampaignChalkboardFrame(), DrawTextAt(), InitializeCampaignChalkboardScreen(), and LoadSceneHotspotBoundsForSelection().
| short LoadSelectedPilotCampaign | ( | void | ) |
Definition at line 244 of file personnel.c.
References PilotNameVariables::callsign, PilotProfile::callsign, CampaignGlobals::campaignSlot, CloseDataFile(), PilotNameVariables::firstName, PilotProfile::firstName, g_pCampaignGlobals, g_stCurrentPilotProfile, g_stPilotNameVariables, g_szPersonnelFileName, InitializeCampaignConstellationState(), PilotNameVariables::lastName, PilotProfile::lastName, LoadSelectedPilotCampaign(), LoadTemporaryCampaignGlobals(), OpenDataFileOrDie(), ReadDataFileAtOffset(), ReportFatalErrorCode(), SaveAndFreeTemporaryCampaignGlobals(), SeekDataFile(), and CampaignGlobals::wordCount.
Referenced by close_behind(), LoadSelectedPilotCampaign(), RunCampaignGameLoop(), and RunGameApplication().
| short LoadShapeSet | ( | PacketResourceDescriptor * | resources, |
| short | flags, | ||
| char * | defaultFileName ) |
Definition at line 15 of file fltsetup.c.
References FetchDiskPacketRetrying(), PacketResourceDescriptor::fileName, LoadShapeSet(), PacketResourceDescriptor::resource, and PacketResourceDescriptor::section.
Referenced by close_behind(), InitializeCockpitResources(), load_common_3Space_objects(), LoadShapeSet(), and LoadSpaceflightResources().
Definition at line 352 of file startup.c.
References g_19_bStoredHighMemoryEnabled, g_aCommon3SpaceResources, g_aHighMemoryCockpitResources, g_aMissionResourceDescriptors, g_aObjectTypeData, LoadShapeSet(), LoadSpaceflightResources(), and ObjectTypeData::shapeSet.
Referenced by DrawTextAt(), LoadOriginFxDrivers(), and LoadSpaceflightResources().
Definition at line 45 of file speech.c.
References AllocateTaggedMemory(), g_nDigiSampleBytes, LoadPacketIntoBuffer(), and LoadSpeechPacketIntoBuffer().
Referenced by DrawTextAt(), LoadAndPlaySpeechPacket(), LoadCutsceneSpeechSlot(), and LoadSpeechPacketIntoBuffer().
| void LoadStartingCampaignGlobals | ( | short | campaign | ) |
Definition at line 337 of file campaign.c.
References g_pCampaignGlobals, g_szStartingCampaignGlobalsFile, LoadStartingCampaignGlobals(), and LoadWholeDataFile().
Referenced by InitializeNewPilotCampaign(), LoadStartingCampaignGlobals(), RunCampaignGameLoop(), and RunPilotDatabaseMenu().
Definition at line 180 of file campglob.c.
References g_pCampaignGlobals, g_szTemporaryCampaignGlobalsFile, LoadTemporaryCampaignGlobals(), LoadWholeDataFile(), and ReleasePacketSlot().
Referenced by DrawTextAt(), ejection_sequence(), HasSavedPilotCampaign(), InitializeNewPilotCampaign(), LoadSelectedPilotCampaign(), LoadTemporaryCampaignGlobals(), OpenDiskDataFile(), RunCampaignGameLoop(), RunGameApplication(), and UpdateTargetCameraObject().
Definition at line 440 of file sound.c.
References g_nMusicVolumeSetting, g_nSfxVolumeSetting, g_szMusicVolumeValueName, g_szSfxVolumeValueName, LoadVolumeSettingsFromRegistry(), RegistryQueryValue(), and RegistryStoreValue().
Referenced by LoadVolumeSettingsFromRegistry(), and UpdateShipTurretGuns().
| void * LoadWholeDataFile | ( | const char * | path | ) |
Definition at line 207 of file campglob.c.
References AllocateTaggedMemory(), CloseDataFile(), LoadWholeDataFile(), OpenDataFileOrDie(), and ReadDataFileAtOffset().
Referenced by DrawTextAt(), LoadStartingCampaignGlobals(), LoadTemporaryCampaignGlobals(), and LoadWholeDataFile().
| short LoadWingCmdrCfgFile | ( | short | argc, |
| char ** | argv ) |
Definition at line 10 of file config.c.
References g_16_szTextBufferBuffer, g_pInitialArguments, and LoadWingCmdrCfgFile().
Referenced by LoadWingCmdrCfgFile(), RunGameApplication(), and UpdateShipTurretGuns().
| short locate_ship | ( | short | missionShip, |
| FixedVector * | point ) |
Definition at line 848 of file logic.c.
References AddFixedVectors(), dead_ship(), find_ship_index(), find_ships_sphere(), g_aMissionNavPoints, g_aMissionShips, g_aShipPosition, locate_ship(), and zero_vector().
Referenced by close_behind(), init_intelligence_data(), locate_ship(), LocateMobileObjective(), and strike_mission().
| short LocateLegacySaveGame | ( | short | source | ) |
Definition at line 1311 of file personnel.c.
References DisableMouseCursorDrawing(), DrawFormattedText(), EnableMouseCursorDrawing(), g_10_nMenuDarkColour, g_1_szLegacySaveFolder, g_3_stDefaultStringContext, g_apszSaveGameFileNames, g_nLegacySaveSource, g_stSecondaryViewBufferBlock, GetLegacyGameDataPath(), InitializeTextContextFromFont(), LocateLegacySaveGame(), PersonnelDriveHook(), ReadPersonnelTextField(), RefreshMemoryStatusOverlay(), RestorePersonnelMenuBackground(), and SetTextCursor().
Referenced by close_behind(), LocateLegacySaveGame(), and RunPilotDatabaseMenu().
| 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().
| char * LocateStreamsDirOnDisc | ( | void | ) |
Definition at line 1222 of file winmain.c.
References FindCdRomDriveByVolumeLabel(), g_9_szStreamsPath, and LocateStreamsDirOnDisc().
Referenced by LocateStreamsDirOnDisc(), PromptInsertCorrectCd(), and Streamer_open().
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().
Definition at line 179 of file gameflow.c.
References g_116_pszFilmPrintStore, g_27_pszCutsceneFormattedText, g_4_pszFilmWorkScratch, g_pMemoryLogFile, g_szLastCutscenePrintBuffer, g_szLastCutsceneWorkBuffer, and LogChangedCutsceneWorkBuffers().
Referenced by DrawTextAt(), LogChangedCutsceneWorkBuffers(), and RunCutsceneScript().
| void LogDisplayMode | ( | const char * | mode | ) |
Definition at line 11 of file vpalloc.c.
References ClearDebugPauseFlags(), LogDisplayMode(), PumpMessagesDuringWait(), and SystemDebugPrintf().
Referenced by AllocateViewport(), CalcRectangleArea(), LogDisplayMode(), and UpdateShipTurretGuns().
| void LogMemoryStateToFile | ( | FILE * | file | ) |
Definition at line 132 of file gameflow.c.
References g_bMemoryLogToFile, g_pMemoryLogFile, LogMemoryStateToFile(), and WriteMemoryStateReportHook().
Referenced by auto_pilot_sequence(), DrawTextAt(), ejection_sequence(), LoadOriginFxDrivers(), LogMemoryStateToFile(), and ReportFatalErrorCode().
| short LogMemoryUsage | ( | void | ) |
Definition at line 24 of file main.c.
References ConfigureDefaultSpacePalette(), EMShutDown(), FinalizeInputManagerHook(), g_14_nCurrentGraphicsModeDetectedValue, g_bParentDirectorySelected, g_bSpeechEnabledFlag, g_dwInitialSpareMemory, g_nCurrentLevel, g_nCurSeries, g_nOriginDevUnlock, g_nShowMemoryStatus, g_pMemoryAdjustment, g_szCannedSceneTapeFile, GetLargestFreeMemoryBlockByType(), LogMemoryUsage(), MessagePumpHook(), ShutdownSoundBlaster(), and StopMusicIfDriverActive().
Referenced by close_behind(), EMStartUp(), exit_squadron(), LogMemoryUsage(), PumpWindowMessages(), RecordCannedSceneObjectEvent(), RecordCannedSceneObjectState(), ReportPacketLoadError(), and RunGameApplication().
| int LogUnknownSoundEffect | ( | const unsigned char * | definition, |
| short | sourceObject, | ||
| short | pan, | ||
| short | volume, | ||
| short | looping, | ||
| short | priority ) |
Definition at line 422 of file music.c.
References g_bFlightSoundEffectsEnabled, LogUnknownSoundEffect(), SoundDebugPrintf(), and StartSoundEffectHook().
Referenced by LogUnknownSoundEffect(), malf_sound(), and UpdateShipTurretGuns().
| void look_at | ( | short | obj | ) |
Definition at line 95 of file geom.c.
References EYE_OBJECT, g_aShipPosition, look_at(), and point_at().
Referenced by look_at(), new_view(), and set_eye_direction_and_position().
| long Magnitude | ( | int | value | ) |
Definition at line 130 of file eventmgr.c.
References Magnitude().
Referenced by intelligence_events(), and Magnitude().
| void main | ( | short | argc, |
| char ** | argv ) |
Definition at line 425 of file startup.c.
References g_2_bPumpMessagesWhileLoadingState, g_3_nAudioBlasterPortSettingValue, g_3_nVoiceBlasterIrqSetting, g_5_nStorageAdjustmentKbValue, g_bAutopilotDebugEnabled, g_bDirectCampaignSelection, g_bExpandedShipGraphicsEnabled, g_bMemoryAdjustmentEnabled, g_bPlayerCollisionEnabled, g_bPlayerDamageEnabled, g_bPumpMessagesDuringLoad, g_bRewritePacketExtensions, g_bRoomTransitionAnimationEnabled, g_bSkipCampaignScenes, g_bSpeechResourcesEnabled, g_nDirectSeries, g_nExpandedShipMemoryKb, g_nOriginDevUnlock, g_nSelectedStartingCampaign, g_nShowMemoryStatus, g_pszGameVersion, g_stDirectMissionSelection, and main().
Referenced by close_behind(), main(), and RunGameApplication().
| unsigned int maintain_formation | ( | int | obj | ) |
References any_defense(), CountAlliesOnSameTarget(), handle_stress(), maintain_formation(), pick_from_list(), pick_kilrathi_maneuver(), pick_regular_maneuver(), process_maneuver_node(), reset_stress(), and stress_morale().
Referenced by imperial_formation(), kilrathi_wingman(), maintain_formation(), maintain_formation(), and run_away().
| LRESULT CALLBACK MainWindowProc | ( | HWND | window, |
| UINT | message, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam ) |
Definition at line 350 of file winmain.c.
References DIBreInstall(), g_102_nStoredWindowCursorYWord, g_10_hMainWindow, g_16_bMainWindowRunning, g_27_nLastAltCommandScanNumberWord, g_2_bAltFHotkeyFlag, g_2_bAltHHotkey, g_2_bIgnoreNextCursorMoveFlag, g_39_bAltNumpadAddHotkeySwitch, g_3_nSavedOwnerCursorX, g_4_bMenuBHotkey, g_69_dwSysKeyValue, g_6_bAltDChordState, g_6_bMenuTHotkeySwitch, g_6_stHostMouseTextBlock, g_bAltNumpadSubtractShortcut, g_bApplicationControllerActive, g_bApplicationShutdownStarted, g_bDebugBreakEnabled, g_bF1KeyDown, g_bJoystickCalibrationHotkey, g_bMenuAHotkey, g_bSceneEscapeRequested, g_bWindowInactive, g_nInputPressCount, g_nPendingMouseX, g_nPendingMouseY, MainWindowProc(), HostMouseMessage::primaryButton, QueueInputEvent(), ReportSpaceFlightMaxFps(), HostMouseMessage::secondaryButton, SetInputKeyState(), SignalAudioMixerWakeEvent(), WriteDebugString(), HostMouseMessage::x, and HostMouseMessage::y.
Referenced by CreateMainWindow(), and MainWindowProc().
| short make_hazard | ( | void | ) |
Definition at line 302 of file fields.c.
References find_vacant_3d_object(), init_hazard(), make_hazard(), RecordCannedSceneObjectEvent(), and try_far_spot().
Referenced by make_hazard(), start_hazard_field(), and update_hazards().
| void make_shard | ( | short | asteroid, |
| FixedVector | direction ) |
Definition at line 46 of file fields.c.
References AddFixedVectors(), alter_pitch(), alter_yaw(), find_vacant_3d_object(), fix_objects_ijk(), g_acObjectOwner, g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_asObjectCollisionRadius, g_asObjectCounter, make_shard(), OBJECT_DATA_ROCK_CHUNK, RandomInRange(), real_velocity(), RecordCannedSceneObjectEvent(), set_objects_data(), SetVectorFixedPoint(), and signed_random().
Referenced by hit_asteroid(), and make_shard().
| void MakeRandomVectorFixed | ( | short | minimum, |
| short | maximum, | ||
| FixedVector * | vector ) |
Definition at line 264 of file geom.c.
References ChooseRandomSignedMagnitude(), MakeRandomVectorFixed(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by FillFixedVectorWithRandomComponents(), MakeRandomVectorFixed(), and onboard_explosion().
| 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().
| void manage_hazard | ( | short | obj, |
| short | slot ) |
Definition at line 340 of file fields.c.
References approach(), g_asObjectDistance, g_asObjectScreenX, g_asObjectType, g_nRenderedSpaceFrame, manage_hazard(), OBJECT_DATA_PORCUPINE_MINE, ok_hazard_spot(), real_velocity(), and remove_hazard().
Referenced by manage_hazard(), and update_hazards().
| void maneuver_complete | ( | short | ship | ) |
Definition at line 134 of file fl.c.
References maneuver_complete(), MANEUVER_NONE, reset_maneuver(), set_special(), and SPECIAL_MANEUVER_NONE.
Referenced by general_zig(), maneuver_complete(), Mburnout(), Mbuzz_debris(), Mcorkscrew(), Mfish_hook(), Mget_distance(), Mgloat(), Mhard_break(), Mhard_turn(), Mkickit(), Mkill_missile(), Mline_up_drop(), Mram_missile(), Mreset(), Mroll_over(), Msplit_left(), Msplit_right(), Mstrafe_enemy(), Mtarget_missile(), Mtight_loop(), Mtry2tail(), Mturn_n_kick(), Mturn_n_spin(), Mveer_away(), Mwabble(), Mzip_past(), perform_maneuver(), ShipAiState44(), ShipAiState45(), ShipAiState46(), ShipAiState47(), and try2rout().
| void maneuvering | ( | short | obj, |
| short | newTarget ) |
Definition at line 174 of file brains.c.
References g_acShipTarget, intelligence_events(), maneuvering(), and perform_maneuver().
Referenced by defend_mission(), escort_mission(), imperial_wingman(), kilrathi_patrol(), kilrathi_wingman(), maneuvering(), rendezvous_mission(), and strike_mission().
| int MapCutsceneSoundEffectNumber | ( | int | soundIndex | ) |
Definition at line 3673 of file gameflow.c.
References MapCutsceneSoundEffectNumber().
Referenced by close_behind(), MapCutsceneSoundEffectNumber(), and RunCutsceneScript().
Definition at line 66 of file memapi.c.
References g_9_apPacketHandlesTable, g_aiPacketHandleOffsets, g_nPacketHandleCount, and MapPacketHandleToBlock().
Referenced by MapPacketHandleToBlock(), ReleasePacketHandle(), and UpdateShipTurretGuns().
Definition at line 532 of file dib.cpp.
References g_2_szDibDebugScratch, g_4_bScreenStale, g_dwLastDibDirtyReportTime, g_nDibDirtyHitTotal, and MarkDibDirty().
Referenced by AppendFormattedText(), CopyViewportContents(), CopyViewportRuns(), DrawFormattedText(), DrawModalTextPanel(), DrawSpriteTransformed(), DrawViewportEllipse(), DrawViewportEllipseShadow(), FillPolygon(), FillViewportEllipse(), fizzle_fade(), FormatTextBufferFromStart(), InflightComputer(), MarkDibDirty(), ReadPersonnelTextField(), ReadTextInput(), RefreshMemoryStatusOverlay(), ReleaseModalTextPanel(), RestoreModalTextPanel(), RestoreSpriteBackground(), RunCutsceneScript(), RunCutsceneWipeTransition(), RunSpaceFlight(), RunTitleScreen(), shaded_triangle(), shadow_draw(), ShowModalTextPanel(), snow_viewport(), triangle(), UpdateShipTurretGuns(), ValidateViewportBounds(), and visit_the_cinema().
| void MarkPilotDead | ( | short | pilot | ) |
Definition at line 115 of file jump.c.
References g_pPilotStatus, and MarkPilotDead().
Referenced by MarkPilotDead().
| short match_roll_orientation | ( | short | obj, |
| short | reference ) |
Definition at line 604 of file geom.c.
References ArcCos(), dot_product(), g_aShipRightVector, g_aShipUpVector, match_roll_orientation(), NormalizeFixedVector(), WrapDegrees(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by chase_location(), goto_formation(), match_roll_orientation(), and set_eye_direction_and_position().
| unsigned int match_rotation_goal | ( | short * | rotation, |
| short * | goal, | ||
| short | totalError, | ||
| short | rate ) |
Definition at line 538 of file ship.c.
References match_rotation_goal(), MaxShort(), and MinShort().
Referenced by DrawTextAt(), match_rotation_goal(), rotate_eye_to_goal(), and rotate_object_to_goal().
Definition at line 356 of file fields.c.
References HazardField::center, EYE_OBJECT, g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_aShipVelocity, g_nHazardReferenceSpeed, g_pActiveHazardField, match_ship_to_eye(), and ScaleFixedVector().
Referenced by match_ship_to_eye(), and update_hazards().
| int MaxInt | ( | int | a, |
| int | b ) |
Definition at line 142 of file geom.c.
References MaxInt().
Referenced by MaxInt(), and object_collision().
| short MaxShort | ( | short | a, |
| short | b ) |
Definition at line 36 of file disk.c.
References MaxShort().
Referenced by AdjustSpaceFramePeriod(), approach_and_engage(), auto_position(), chase_location(), check_destroy_target(), check_for_lost_control(), CheckPoint(), control_speed(), damage_ion_drive(), DrawCutsceneTextAt(), DrawHudMessageSlot(), explosion_shock_wave(), fire_flack(), get_right_shape(), get_ship_max_velocity(), GetShipAccelerationRate(), GetViewportIntersection(), goto_location(), init_hazard(), InitializeCockpitResources(), internal_damage(), match_rotation_goal(), MaxShort(), new_view(), object_collision(), prevent_collision(), real_crash_time(), remove_hazard(), ReportFramesSkipped(), revise_shields(), rotate_object_to_goal(), rotational_pos_to_scanner_pos(), set_eye_direction_and_position(), SetScale(), sound_effect(), SpawnFlakBurst(), start_dust(), transform_objects_to_your_view(), and your_internal_damage().
| void Mbest_strafe | ( | short | ship, |
| short | target ) |
Definition at line 743 of file fl.c.
References g_nTargetFacing, Mbest_strafe(), Mstrafe_enemy(), and Mzip_past().
Referenced by Mbest_strafe().
| void Mburnout | ( | short | ship, |
| short | target ) |
Definition at line 375 of file fl.c.
References advance(), fire_afterburner(), g_acShipSequence, g_anYawGoal, maneuver_complete(), Mburnout(), no_goal(), RandomBelowOrEqual(), and void().
Referenced by Mburnout(), and Mkill_missile().
| void Mbuzz_debris | ( | short | ship | ) |
Definition at line 699 of file fl.c.
References advance(), approach_full_speed(), CanSetNewShipTurnGoal(), fire_afterburner(), g_acShipSequence, g_aeSpecialManeuver, g_nFacingToTarget, maneuver_complete(), Mbuzz_debris(), SPECIAL_MANEUVER_NONE, and veer_random().
Referenced by Mbuzz_debris().
| void Mchill | ( | short | ship, |
| short | target ) |
Definition at line 202 of file fl.c.
References HandleUnsupportedManeuver(), and Mchill().
Referenced by Mchill().
| void Mcorkscrew | ( | short | ship | ) |
Definition at line 898 of file fl.c.
References advance(), approach_full_speed(), g_acShipSequence, g_anRollGoal, g_anYawGoal, g_asShipCount, maneuver_complete(), Mcorkscrew(), and no_goal().
Referenced by Mcorkscrew().
| void Mdrop_a_mine | ( | short | ship, |
| short | target ) |
Definition at line 209 of file fl.c.
References HandleUnsupportedManeuver(), and Mdrop_a_mine().
Referenced by Mdrop_a_mine().
| short MeasureCinematicFontCharacterWidth | ( | short | character | ) |
Definition at line 109 of file text.c.
References TextContext::font, g_29_pCurrentTextContext, GetShapeFrameBounds(), IsCinematicFontCharacterPrintable(), ShortRect::left, MeasureCinematicFontCharacterWidth(), and ShortRect::right.
Referenced by DrawWrappedCinematicText(), and MeasureCinematicFontCharacterWidth().
| short MeasureCinematicFontLineHeight | ( | void | ) |
Definition at line 122 of file text.c.
References ShortRect::bottom, TextContext::font, g_29_pCurrentTextContext, GetShapeFrameBounds(), ShortRect::left, MeasureCinematicFontLineHeight(), and ShortRect::top.
Referenced by DrawWrappedCinematicText(), and MeasureCinematicFontLineHeight().
| short MeasureMessageWidth | ( | const char * | text | ) |
Definition at line 895 of file main.c.
References g_cMessageSpeed, MeasureMessageWidth(), and MinShort().
Referenced by MeasureMessageWidth(), real_vid_transmit(), ShowOnScreenMessage(), and UpdateShipTurretGuns().
| int MeasureShapeFrameStorage | ( | unsigned char * | shape, |
| short | frame ) |
Definition at line 384 of file eventmgr.c.
References MeasureShapeFrameStorage().
Referenced by InitializeCockpitResources(), intelligence_events(), and MeasureShapeFrameStorage().
| short MeasureTextPixelWidthClamped | ( | const char * | text | ) |
Definition at line 10 of file strwidth.c.
References GetFontCharWidth(), and MeasureTextPixelWidthClamped().
Referenced by DrawPersonnelMenuBackdrop(), EraseLastTextInputCharacter(), MeasureTextPixelWidthClamped(), PollCampaignChalkboardMenu(), ReadTextInput(), RunCampaignSelectionFrame(), and ShowModalTextPanel().
| short MergeAdjacentNearHeapBlocks | ( | int | descriptorAddress | ) |
Definition at line 15 of file nearheap.c.
References NearHeapBlock::address, DosNearPtrToFar(), g_nNearHeapFirstDescriptor, MergeAdjacentNearHeapBlocks(), and NearHeapBlock::sizeAndFlags.
Referenced by MergeAdjacentNearHeapBlocks(), and ReleaseNearHeapBlock().
| 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().
| void MessagePumpHook | ( | int | mode | ) |
Definition at line 24 of file memapi.c.
References MessagePumpHook(), and TimerStopHook().
Referenced by LoadOriginFxDrivers(), LogMemoryUsage(), MessagePumpHook(), and UpdateShipTurretGuns().
| void Mfish_hook | ( | short | ship, |
| short | target ) |
Definition at line 477 of file fl.c.
References advance(), approach_full_speed(), ObjectTypeData::cruiseVelocity, fire_afterburner(), fire_super_brake(), g_acObjectType, g_acShipSequence, g_anYawGoal, g_aObjectTypeData, maneuver_complete(), Mfish_hook(), no_goal(), normal_speed(), RandomBelowOrEqual(), real_velocity(), and void().
Referenced by Mfish_hook(), and Mkill_missile().
| void Mfull_ahead | ( | short | ship, |
| short | target ) |
Definition at line 195 of file fl.c.
References HandleUnsupportedManeuver(), and Mfull_ahead().
Referenced by Mfull_ahead().
| void Mget_distance | ( | short | ship, |
| short | target ) |
Definition at line 833 of file fl.c.
References approach_full_speed(), CanSetNewShipTurnGoal(), fire_afterburner(), g_nFacingToTarget, g_nTargetRange, maneuver_complete(), Mget_distance(), MinShort(), normal_speed(), and steer_away_from_object().
Referenced by Mget_distance().
| void Mgloat | ( | short | ship | ) |
Definition at line 580 of file fl.c.
References advance(), g_acShipSequence, g_anPitchGoal, g_asShipCount, maneuver_complete(), Mgloat(), RandomBelow(), set_special(), and SPECIAL_MANEUVER_KILL_ENGINES.
Referenced by Mgloat(), and perform_maneuver().
| void Mhard_break | ( | short | ship | ) |
Definition at line 250 of file fl.c.
References advance(), fire_super_brake(), g_acShipSequence, g_asShipCount, maneuver_complete(), Mhard_break(), set_special(), and SPECIAL_MANEUVER_KILL_ENGINES.
Referenced by Mhard_break().
| void Mhard_turn | ( | short | ship | ) |
Definition at line 461 of file fl.c.
References advance(), approach_full_speed(), g_acShipSequence, g_anYawGoal, maneuver_complete(), Mhard_turn(), no_goal(), and RandomBelowOrEqual().
Referenced by Mhard_turn().
| void mine_intelligence | ( | short | obj | ) |
Definition at line 1550 of file brains.c.
References distance_from_object(), explode(), g_acObjectType, g_aeObjectClass, g_aObjectTypeData, g_asObjectCounter, mine_intelligence(), OBJECT_CLASS_SHIP, and RandomBelowOrEqual().
Referenced by mine_intelligence(), and object_intelligence().
| int MinInt | ( | int | a, |
| int | b ) |
Definition at line 133 of file geom.c.
References MinInt().
Referenced by accelerate_and_move_object(), MinInt(), and object_collision().
| short MinShort | ( | short | a, |
| short | b ) |
Definition at line 27 of file disk.c.
References MinShort().
Referenced by AdjustSpaceFramePeriod(), approach_and_engage(), asteroid_velocity(), auto_pilot_sequence(), check_destroy_target(), check_for_lost_control(), CheckPoint(), damage_ion_drive(), damage_your_component(), determine_pilot_hand(), DetermineFleetOverviewPilotHand(), DrawCutsceneTextAt(), explosion_shock_wave(), fire_flack(), get_right_shape(), get_ship_max_velocity(), GetShipAccelerationRate(), GetViewportIntersection(), handle_stress(), internal_damage(), match_rotation_goal(), MeasureMessageWidth(), Mget_distance(), MinShort(), object_collision(), prevent_collision(), RandomFixedAimComponent(), replenish_weapon_energy_bank(), ReportFramesSkipped(), rotate_object_to_goal(), rotational_pos_to_scanner_pos(), show_target_disp(), and transform_objects_to_your_view().
| void Mkickit | ( | short | ship | ) |
Definition at line 397 of file fl.c.
References advance(), fire_afterburner(), g_acShipSequence, g_aeSpecialManeuver, maneuver_complete(), Mkickit(), and SPECIAL_MANEUVER_NONE.
Referenced by Mkickit().
| void Mkill_missile | ( | short | ship, |
| short | target ) |
Definition at line 803 of file fl.c.
References FindMissileTargetingObject(), fire(), g_acShipTarget, g_nFacingToTarget, g_nTargetRange, g_nTargetShip, get_facing_range_from_object(), MANEUVER_BURNOUT, maneuver_complete(), MANEUVER_FISH_HOOK, Mburnout(), Mfish_hook(), Mkill_missile(), point_ship_at_object(), and reset_maneuver().
Referenced by Mkill_missile().
| void Mline_up_drop | ( | short | ship, |
| short | target ) |
Definition at line 141 of file fl.c.
References CanSetNewShipTurnGoal(), g_aeSpecialManeuver, g_anRollGoal, g_aShipPosition, maneuver_complete(), Mline_up_drop(), point_ship_at_point(), and SPECIAL_MANEUVER_NORMAL.
Referenced by Mline_up_drop(), and perform_maneuver().
| 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 13 of file mono.c.
References exit_squadron(), g_bMonoDebugInstalled, g_hMonoDebugDevice, and MonoDebug_install().
Referenced by MonoDebug_install(), and WinMain().
| void MonoDebug_print | ( | const char * | text | ) |
Definition at line 75 of file mono.c.
References exit_squadron(), g_bMonoDebugInstalled, g_hMonoDebugDevice, MonoDebug_print(), and MonoDebug_remove().
Referenced by MonoDebug_print(), and SoundDebugPrintf().
Definition at line 43 of file mono.c.
References g_bMonoDebugInstalled, g_hMonoDebugDevice, and MonoDebug_remove().
Referenced by MonoDebug_print(), MonoDebug_remove(), and SendMonoDebugCommand3().
Definition at line 1902 of file eventmgr.c.
References MouseIdleHook().
Referenced by DosMemmove(), and MouseIdleHook().
| void Mram_missile | ( | short | ship, |
| short | target ) |
Definition at line 686 of file fl.c.
References approach_full_speed(), CanSetNewShipTurnGoal(), fire_missile(), g_nFacingToTarget, g_nTargetRange, maneuver_complete(), Mram_missile(), and point_ship_at_object().
Referenced by Mram_missile().
| void Mreset | ( | short | ship | ) |
Definition at line 1008 of file fl.c.
References maneuver_complete(), and Mreset().
Referenced by Mreset().
| void Mroll_over | ( | short | ship | ) |
Definition at line 447 of file fl.c.
References advance(), approach_full_speed(), g_acShipSequence, g_anRollGoal, maneuver_complete(), Mroll_over(), and RandomBelowOrEqual().
Referenced by Mroll_over().
| void Mrout_me | ( | short | ship | ) |
Definition at line 973 of file fl.c.
References Mrout_me(), and try2rout().
Referenced by Mrout_me().
| void Msit_n_fire | ( | short | ship, |
| short | target ) |
Definition at line 781 of file fl.c.
References approach_cruise_speed(), approach_zero_speed(), CanSetNewShipTurnGoal(), fire(), g_nTargetRange, Msit_n_fire(), and point_ship_at_object().
Referenced by Msit_n_fire().
| void Msit_n_spin | ( | short | ship, |
| short | target ) |
Definition at line 279 of file fl.c.
References AddFixedVectors(), advance(), approach_speed(), fire(), g_acShipSequence, g_anShipSpeed, g_aShipForwardVector, g_aShipPosition, g_asShipCount, g_nFacingToTarget, g_nTargetRange, MANEUVER_ROLL_OVER, Msit_n_spin(), no_goal(), point_ship_at_object(), point_ship_at_point(), reset_maneuver(), ScaleFixedVector(), set_special(), SPECIAL_MANEUVER_KILL_ENGINES, SPECIAL_MANEUVER_NONE, steady_object(), and veer_random().
Referenced by Msit_n_spin().
| void Msplit_left | ( | short | ship | ) |
Definition at line 538 of file fl.c.
References advance(), approach_full_speed(), fire_afterburner(), g_acShipSequence, g_aeSpecialManeuver, g_anYawGoal, maneuver_complete(), Msplit_left(), no_goal(), and SPECIAL_MANEUVER_NONE.
Referenced by Msplit_left().
| void Msplit_right | ( | short | ship | ) |
Definition at line 559 of file fl.c.
References advance(), approach_full_speed(), fire_afterburner(), g_acShipSequence, g_aeSpecialManeuver, g_anYawGoal, maneuver_complete(), Msplit_right(), no_goal(), and SPECIAL_MANEUVER_NONE.
Referenced by Msplit_right().
| void Mstrafe_enemy | ( | short | ship, |
| short | target ) |
Definition at line 725 of file fl.c.
References approach_cruise_speed(), approach_zero_speed(), fire(), fire_afterburner(), g_aeObjectClass, g_asObjectType, g_asShipMissionType, g_nTargetRange, maneuver_complete(), Mstrafe_enemy(), and point_ship_at_object().
Referenced by Mbest_strafe(), Mstrafe_enemy(), Mstrafe_n_roll(), and Mtarget_missile().
| void Mstrafe_n_roll | ( | short | ship, |
| short | target ) |
Definition at line 793 of file fl.c.
References g_anRollGoal, g_asObjectCounter, Mstrafe_enemy(), and Mstrafe_n_roll().
Referenced by Mstrafe_n_roll().
| void Msuicide_run | ( | short | ship, |
| short | target ) |
Definition at line 826 of file fl.c.
References fire_afterburner(), Msuicide_run(), and point_ship_at_object().
Referenced by Msuicide_run().
| void Mtail_fire | ( | short | ship, |
| short | target ) |
Definition at line 605 of file fl.c.
References CanSetNewShipTurnGoal(), chase_speed(), fire(), g_asObjectCollisionRadius, Mtail_fire(), and point_ship_at_object().
Referenced by Mtail_fire(), and Mzip_past().
| void Mtarget_laser | ( | short | ship, |
| short | target ) |
Definition at line 967 of file fl.c.
References HandleUnsupportedManeuver(), and Mtarget_laser().
Referenced by Mtarget_laser().
| void Mtarget_missile | ( | short | ship, |
| short | target ) |
Definition at line 753 of file fl.c.
References advance(), CanSetNewShipTurnGoal(), fire_afterburner(), g_acShipSequence, g_aeSpecialManeuver, maneuver_complete(), Mstrafe_enemy(), Mtarget_missile(), no_goal(), and point_ship_at_object().
Referenced by Mtarget_missile().
| void Mthink | ( | short | ship, |
| short | target ) |
Definition at line 216 of file fl.c.
References HandleUnsupportedManeuver(), and Mthink().
Referenced by Mthink().
| void Mtight_loop | ( | short | ship | ) |
Definition at line 223 of file fl.c.
References advance(), approach_cruise_speed(), g_acShipSequence, g_anPitchGoal, maneuver_complete(), Mtight_loop(), and no_goal().
Referenced by Mtight_loop().
| void Mtry2tail | ( | short | ship, |
| short | target ) |
Definition at line 518 of file fl.c.
References fire_afterburner(), g_aeSpecialManeuver, g_aShipPosition, g_aShipRightVector, g_asObjectCollisionRadius, g_nTargetRange, maneuver_complete(), Mtry2tail(), point_ship_at_point(), position_relative(), SPECIAL_MANEUVER_NONE, and unactive().
Referenced by Mtry2tail().
| void Mturn_n_kick | ( | short | ship | ) |
Definition at line 412 of file fl.c.
References advance(), approach_full_speed(), fire_afterburner(), g_acShipSequence, g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, maneuver_complete(), Mturn_n_kick(), no_goal(), OBJECT_CLASS_MISSILE, point_perpendicular(), SPECIAL_MANEUVER_NONE, and veer_random().
Referenced by Mturn_n_kick().
| void Mturn_n_spin | ( | short | ship, |
| short | target ) |
Definition at line 343 of file fl.c.
References advance(), g_acShipSequence, g_asShipCount, g_nTargetFacing, maneuver_complete(), Mturn_n_spin(), no_goal(), point_ship_at_object(), set_special(), SPECIAL_MANEUVER_KILL_ENGINES, and veer_random().
Referenced by Mturn_n_spin().
| long MultiplyFixed | ( | int | left, |
| int | right ) |
Definition at line 51 of file eventmgr.c.
References MultiplyFixed().
Referenced by accelerate_and_move_object(), apply_force_to_object(), approach_speed(), dot_product(), draw_nav_pointer(), GetShipAccelerationRate(), intelligence_events(), MultiplyFixed(), object_collision(), reposition_fixed_child_objects(), rotate_about_i(), rotate_about_j(), rotate_about_k(), rotational_acceleration(), ScaleFixedVector(), transform_objects_to_your_view(), update_digital_readouts(), UpdateTargetLeadIndicator(), vector_cross_product(), and vector_length_in_dir().
| void Mveer_away | ( | short | ship, |
| short | target ) |
Definition at line 924 of file fl.c.
References advance(), approach_full_speed(), fire_afterburner(), g_acShipSequence, g_asObjectCollisionRadius, g_nFacingToTarget, g_nShipAiScratchValue, g_nTargetRange, maneuver_complete(), Mveer_away(), no_goal(), normal_speed(), RandomBelowOrEqual(), steer_away_from_object(), and veer_random().
Referenced by Mveer_away(), and perform_maneuver().
| void Mwabble | ( | short | ship | ) |
Definition at line 157 of file fl.c.
References CanSetNewShipTurnGoal(), fire_afterburner(), g_anPitchGoal, g_anRollGoal, g_anYawGoal, g_asShipCount, maneuver_complete(), Mwabble(), RandomBelowOrEqual(), and signed_random().
Referenced by Mwabble().
| void Mzig_zag | ( | short | ship, |
| unsigned int | target ) |
Definition at line 886 of file fl.c.
References general_zig(), and Mzig_zag().
Referenced by Mzig_zag().
| void Mzig_zag_pitch | ( | short | ship, |
| unsigned int | target ) |
Definition at line 892 of file fl.c.
References general_zig(), and Mzig_zag_pitch().
Referenced by Mzig_zag_pitch().
| void Mzip_past | ( | short | ship, |
| short | target ) |
Definition at line 616 of file fl.c.
References approach_full_speed(), CanSetNewShipTurnGoal(), close_behind(), fire_afterburner(), g_asObjectCollisionRadius, g_nFacingToTarget, g_nTargetFacing, g_nTargetRange, maneuver_complete(), Mtail_fire(), Mzip_past(), point_ship_behind_object(), point_ship_below_object(), and unactive().
Referenced by HandleUnsupportedManeuver(), Mbest_strafe(), Mzip_past(), and ShipAiState47().
| void nav_getxy | ( | short * | x, |
| short * | y, | ||
| int | worldX, | ||
| int | worldZ ) |
Definition at line 110 of file nav.c.
References g_nNavMapCoordinateScaling, nav_getxy(), and ScaleNavMapCoordinates().
Referenced by Build_objective_list(), BuildMap(), DrawNavHazardMarker(), DrawNavMapBriefingBeacons(), DrawNavPlayerMarker(), IncludeNavMapWorldPoint(), nav_getxy(), and SetScale().
| char * nav_note | ( | short | objective | ) |
Definition at line 872 of file nav.c.
References g_aMissionObjectives, g_szNoFurtherObjectives, IsObjectiveInDisplayedSystem(), MissionObjective::name, and nav_note().
Referenced by DrawNavLocationReadout(), and nav_note().
| short NavMapLabelFits | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | height ) |
Definition at line 275 of file nav.c.
References NavMapLabelFits().
Referenced by NavMapLabelFits(), NavMapLabelPositionAvailable(), and TryPlaceNavMapLabel().
| short NavMapLabelPositionAvailable | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | height ) |
Definition at line 283 of file nav.c.
References g_nNavMapReservedAreaCount, NavMapLabelFits(), NavMapLabelPositionAvailable(), and NavMapPointInsideReservedArea().
Referenced by NavMapLabelPositionAvailable(), and TryPlaceNavMapLabel().
| short NavMapPointInsideReservedArea | ( | short | area, |
| short | x, | ||
| short | y ) |
Definition at line 266 of file nav.c.
References ShortRect::bottom, g_aNavMapExclusionRects, ShortRect::left, NavMapPointInsideReservedArea(), ShortRect::right, and ShortRect::top.
Referenced by NavMapLabelPositionAvailable(), and NavMapPointInsideReservedArea().
| short near_field | ( | const HazardField * | field, |
| const FixedVector * | point ) |
Definition at line 220 of file fields.c.
References HazardField::center, HazardField::innerRadius, IsPointWithinRange(), and near_field().
Referenced by check_hazards(), and near_field().
| void negate_vector | ( | FixedVector * | vector | ) |
Definition at line 203 of file geom.c.
References negate_vector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by get_facing_range_from_object(), get_right_shape(), negate_vector(), object_collision(), set_background_objects_rotation(), set_eye_direction_and_position(), skew_randomly(), UpdateShipTurretGuns(), and UpdateTargetCameraObject().
| short new_object | ( | short | type, |
| short | owner ) |
Definition at line 240 of file ship.c.
References borrow_dust(), find_vacant_3d_object(), initialize_object(), and new_object().
Referenced by capital_ship_strike_mission(), DrawTextAt(), fire_weapon(), FireTargetCameraGuns(), new_object(), SpawnCapitalFlakProjectile(), SpawnFlakBurst(), and UpdateShipTurretGuns().
| void new_space_music_changes | ( | short | attacker, |
| short | victim ) |
Definition at line 198 of file music.c.
References g_acShipPortrait, g_asShipMissionIndex, g_asShipMissionParameter, g_asShipMissionType, g_asShipSide, g_nInFlightMusicActive, g_nYourWingman, MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, new_space_music_changes(), RandomInRange(), report_kilrathi_rout(), SIDE_IMPERIAL, SIDE_KILRATHI, and spacetrack().
Referenced by analyze_kill(), new_space_music_changes(), and UpdateShipTurretGuns().
| void new_sphere_shapes | ( | MissionNavPoint * | navPoint | ) |
Definition at line 789 of file mission.c.
References free_ship(), free_view_buffer(), g_aObjectResourceSlots, get_shape_slot(), initialize_view_buffer(), load_ship(), new_sphere_shapes(), MissionNavPoint::preloadLogicalFiles, MissionNavPoint::preloadObjectClasses, MissionNavPoint::preloadObjectTypes, release_all_capital_ship_shapes(), ObjectResourceSlot::resourceType, shape_loaded(), and shape_needed().
Referenced by new_sphere_shapes(), set_up_action_sphere(), and set_up_next_wave().
| unsigned int new_view | ( | int | view, |
| short | obj ) |
Definition at line 451 of file spc.c.
References AddFixedVectors(), ClearTargetCameraView(), ComputeVectorDelta(), copy_frame(), CountShipCockpitGunDisplays(), EYE_OBJECT, fix_objects_ijk(), g_1_cStoredViewDisplayModeValue, g_2_nExternalViewDistanceValue, g_7_nExternalViewTimeout, g_acShipTarget, g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_aShipVelocity, g_asObjectCollisionRadius, g_bAlternateChaseView, g_bSavedPlayerTarget, g_bTargetLockActive, g_bTargetLockMode, g_cViewObject, g_nCurrentView, g_nExternalViewShip, g_nEyePitchGoal, g_nEyePitchRate, g_nEyeRollGoal, g_nEyeRollRate, g_nEyeYawGoal, g_nEyeYawRate, g_nSavedPlayerTarget, g_nSavedTargetLockCountdown, g_nTargetCameraFrame, g_nTargetLockCountdown, g_vExternalViewOffset, generate_stars(), HasShipCockpitGunDisplay(), initialize_cockpit(), IsCockpitExplosionActive(), look_at(), MaxShort(), new_view(), NormalizeFixedVector(), position_relative_ijk(), SaveTorpedoTargetLockForViewChange(), ScaleFixedVector(), set_eye_direction_and_position(), SetFleetOverviewView(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by CompleteStarSystemJump(), death_sequence(), force_view(), HandleSpaceFlightControls(), new_view(), ProcessCannedSceneInput(), ResetCannedScenePlaybackBuffer(), RunSpaceFlight(), and set_eye_direction_and_position().
| signed char no_goal | ( | short | ship | ) |
Definition at line 313 of file logic.c.
References g_anPitchGoal, g_anRollGoal, g_anYawGoal, and no_goal().
Referenced by DrawTextAt(), general_zig(), Mburnout(), Mcorkscrew(), Mfish_hook(), Mhard_turn(), Msit_n_spin(), Msplit_left(), Msplit_right(), Mtarget_missile(), Mtight_loop(), Mturn_n_kick(), Mturn_n_spin(), Mveer_away(), no_goal(), and ShipAiState46().
| short normal_speed | ( | short | obj | ) |
Definition at line 68 of file logic.c.
References g_aeSpecialManeuver, g_asShipMaximumVelocity, normal_speed(), real_velocity(), and SPECIAL_MANEUVER_AFTERBURNER.
Referenced by cruise_home(), DrawTextAt(), goto_formation(), house_keep_objects(), Mfish_hook(), Mget_distance(), Mveer_away(), normal_speed(), prevent_collision(), run_away(), and streak_toward().
| void NormalizeAndScaleVector | ( | FixedVector * | vector, |
| int | scale ) |
Definition at line 747 of file geom.c.
References NormalizeAndScaleVector(), NormalizeFixedVector(), and ScaleFixedVector().
Referenced by accelerate_and_move_object(), NormalizeAndScaleVector(), set_eye_direction_and_position(), SetVectorFixedPoint(), and UpdateTargetCameraObject().
| short NormalizeFixedVector | ( | FixedVector * | vector | ) |
Definition at line 347 of file geom.c.
References DivideFixed(), NormalizeFixedVector(), Vector_magnitude(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by auto_pilot_sequence(), capital_ship_strike_mission(), explosion_shock_wave(), facing_to_object(), FireTargetCameraGuns(), fix_objects_ijk(), get_facing_range_from_point(), get_right_shape(), launch_object(), match_roll_orientation(), new_view(), NormalizeAndScaleVector(), NormalizeFixedVector(), object_collision(), position_relative(), set_background_objects_rotation(), set_eye_direction_and_position(), sound_effect(), SpawnCapitalFlakProjectile(), UpdateShipTurretGuns(), vector_angle(), and vector_length_in_dir().
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().
| void object_collision | ( | short | obj | ) |
Definition at line 1377 of file spc.c.
References AddFixedVectors(), apply_force_to_object(), check_for_collision(), COLLISION_MASS_DIFFERENCE_SCALE, COLLISION_MAXIMUM_VELOCITY, ComputeVectorDelta(), DivideFixed(), easy2see(), explode(), EYE_OBJECT, g_9_aasCockpitHitPaletteFades, g_abProjectileCollisionBonus, g_acLastCollisionObject, g_acObjectCollisionGraceTicks, g_acObjectOwner, g_acObjectType, g_acShipCollisionCooldown, g_acShipLastAttacker, g_aeObjectClass, g_anShipSpeed, g_aObjectTypeData, g_aShipPosition, g_aShipVelocity, g_asObjectCollisionRadius, g_asObjectCounter, g_asObjectDamage, g_asObjectScale, g_asObjectScreenX, g_asObjectType, g_asProjectileEvasionTicks, g_asShipSide, g_bApplyingCollisionDamage, g_bPlayerCollisionEnabled, g_nCurrentView, g_vCollisionDelta, GetAdaptiveTurnRate(), hit_asteroid(), inflict_damage(), MaxInt(), MaxShort(), MinInt(), MinShort(), MultiplyFixed(), negate_vector(), NormalizeFixedVector(), OBJECT_CLASS_ASTEROID, OBJECT_CLASS_BASE, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MINE, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, object_collision(), OBJECT_DATA_PROJECTILE_IMPACT_EFFECT, SphericalVector::pitch, PlaySfxWaveFileByNumber(), ObjectTypeData::radarRadius, RecordCannedSceneObjectEvent(), rectangular_to_spherical(), remove_object(), rotational_acceleration(), ScaleFixedVector(), set_objects_data(), SubtractFixedVectors(), transform_to_objects_frame(), vector_component_in_dir(), Vector_magnitude(), SphericalVector::yaw, and zero_vector().
Referenced by object_collision(), and update_objects_in_space().
| void object_intelligence | ( | short | obj | ) |
Definition at line 1659 of file spc.c.
References capital_ship_intelligence(), chaff_intelligence(), FF_missile_intelligence(), futurion_intelligence(), g_acShipTarget, g_aeObjectClass, g_anShipSpeed, g_asObjectType, g_bJumpSequenceActive, g_nExternalViewShip, g_nSpaceFrame, g_nTrainSimActive, g_nYourWingman, g_vToTarget, get_facing_range_from_object(), get_ship_max_velocity(), heat_seeking_missile_intelligence(), mine_intelligence(), OBJECT_CLASS_BASE, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_FUTURION, OBJECT_CLASS_MINE, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, OBJECT_DATA_CHAFF_POD, OBJECT_DATA_DART_DUMB_FIRE_MISSILE, OBJECT_DATA_JAVELIN_HEAT_SEEKING_MISSILE, OBJECT_DATA_PILUM_FRIEND_OR_FOE_MISSILE, OBJECT_DATA_SPICULUM_IMAGE_RECOGNITION_MISSILE, OBJECT_DATA_TORPEDO, object_intelligence(), point_ship(), ship_intelligence(), and stationary_intelligence().
Referenced by object_intelligence(), and update_objects_in_space().
| 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().
| short ObjectivesShareNavLabel | ( | short | objective, |
| short | other ) |
Definition at line 390 of file nav.c.
References g_aMissionObjectives, and ObjectivesShareNavLabel().
Referenced by AddUniqueObjectiveNavLabel(), and ObjectivesShareNavLabel().
| unsigned int offset_location | ( | short | obj, |
| const ShortVector * | offset, | ||
| FixedVector * | location ) |
Definition at line 230 of file smart.c.
References g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, offset_location(), position_relative(), ShortVector::x, ShortVector::y, and ShortVector::z.
Referenced by compute_formation_destination(), offset_location(), set_formation_position(), and UpdateShipTurretGuns().
| short OffsetSceneHotspotBounds | ( | ShortRect * | bounds, |
| const SceneHotspot * | hotspot, | ||
| short | offsetX, | ||
| short | offsetY ) |
Definition at line 2180 of file eventmgr.c.
References SceneHotspot::bottom, ShortRect::bottom, SceneHotspot::left, ShortRect::left, OffsetSceneHotspotBounds(), SceneHotspot::right, ShortRect::right, SceneHotspot::top, and ShortRect::top.
Referenced by close_behind(), FindSceneHotspotAtPosition(), and OffsetSceneHotspotBounds().
Definition at line 882 of file wipe.c.
References Viewport::bottom, Viewport::left, OffsetViewportBounds(), Viewport::right, and Viewport::top.
Referenced by AdvanceViewportWipe(), CollectRasterClipColours(), and OffsetViewportBounds().
| short ok_hazard_spot | ( | short | obj | ) |
Definition at line 286 of file fields.c.
References g_aShipPosition, g_asObjectScreenX, IsPointWithinRange(), ok_hazard_spot(), and rear_sphere().
Referenced by manage_hazard(), and ok_hazard_spot().
| short onboard_explosion | ( | short | obj | ) |
Definition at line 1031 of file ship.c.
References AddFixedVectors(), find_vacant_3d_object(), g_aShipPosition, g_aShipVelocity, g_asObjectCollisionRadius, g_asObjectCounter, g_asObjectScale, MakeRandomVectorFixed(), onboard_explosion(), RecordCannedSceneObjectEvent(), set_objects_data(), and void().
Referenced by DrawTextAt(), Explosion(), house_keep_objects(), internal_damage(), and onboard_explosion().
| void OpenCommMenuForTarget | ( | const char * | heading, |
| const char * | message ) |
Definition at line 85 of file comm.c.
References CockpitMessage(), g_cYellowColour, g_pszCommScreenHeading, and OpenCommMenuForTarget().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), OpenCommMenuForTarget(), and UpdateShipTurretGuns().
Definition at line 98 of file comm.c.
References g_cPendingCommMenuAction, OpenCommRecipientMenu(), and push_mode().
Referenced by HandleCommunicationMenuRequest(), OpenCommRecipientMenu(), and UpdateShipTurretGuns().
| short OpenDataFileOrDie | ( | const char * | path | ) |
Definition at line 13 of file datafile.c.
References g_nPacketError, and OpenDataFileOrDie().
Referenced by DrawNavLocationReadout(), FlushCannedSceneRecordingBuffer(), LoadCannedScenePlaybackBuffer(), LoadSelectedPilotCampaign(), LoadWholeDataFile(), OpenDataFileOrDie(), OpenDiskDataFile(), OpenPacketSection(), and ReadTapeInitialState().
| void OpenDiskDataFile | ( | short | logicalFile | ) |
Definition at line 313 of file personnel.c.
References PilotNameVariables::callsign, PilotProfile::callsign, CloseDataFile(), CreateDataFile(), PilotNameVariables::firstName, PilotProfile::firstName, g_pCampaignGlobals, g_stCurrentPilotProfile, g_stDefaultPilotProfile, g_stPilotNameVariables, g_szPersonnelFileName, g_szSaveSlotSignature, PilotNameVariables::lastName, PilotProfile::lastName, LoadTemporaryCampaignGlobals(), OpenDataFileOrDie(), OpenDiskDataFile(), ReleasePacketSlot(), ReportFatalErrorCode(), SeekDataFile(), CampaignGlobals::wordCount, and WriteDataFileAtOffset().
Referenced by DrawTextAt(), OpenDiskDataFile(), RunCampaignGameLoop(), and RunPilotDatabaseMenu().
| short OpenPacketSection | ( | const char * | filename, |
| short | section, | ||
| PacketSectionHandle * | handle ) |
Definition at line 14 of file packet.c.
References CloseDataFile(), PacketSectionHandle::compression, PacketSectionHandle::dataOffset, PacketSectionHandle::dataSize, PacketSectionHandle::file, PacketSectionHandle::finalSection, g_nPacketError, OpenDataFileOrDie(), OpenPacketSection(), PacketSectionHandle::position, ReadDataFileAtOffset(), PacketSectionHandle::sectionCount, and SeekDataFile().
Referenced by GetPacketSize(), OpenPacketSection(), PacketLoad(), and UpdateShipTurretGuns().
| void orbit_sphere | ( | short | obj | ) |
Definition at line 914 of file brains.c.
References CanSetNewShipTurnGoal(), distance_from_point(), g_aMissionNavPoints, g_nCurrentNavPoint, orbit_sphere(), point_perpendicular_to_point(), point_ship_at_point(), MissionNavPoint::position, MissionNavPoint::proximityRadius, and trim_goals().
Referenced by destroyer_intelligence(), orbit_sphere(), and tanker_intelligence().
| void OutputDebugPrintf | ( | const char * | format, |
| ... ) |
Definition at line 204 of file winmain.c.
References OutputDebugPrintf().
Referenced by AdvanceSceneFlicStream(), close_behind(), and OutputDebugPrintf().
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 * PacketLoad | ( | const char * | filename, |
| short | section, | ||
| void * | destination, | ||
| short | flags, | ||
| void * | decompressionWorkspace, | ||
| int | registerHandle ) |
Definition at line 16 of file pload.c.
References AllocateTaggedMemory(), ClearDebugPauseFlags(), CloseDataFileByHandle(), PacketSectionHandle::compression, PacketSectionHandle::dataSize, exit_squadron(), g_26_pLibraryCurrentLastPacketAllocation, g_nPacketError, IsPushedPacketHandle(), OpenPacketSection(), PacketLoad(), PumpMessagesDuringWait(), ReadPacketSectionData(), and SystemDebugPrintf().
Referenced by LoadNamedPacket(), PacketLoad(), and UpdateShipTurretGuns().
Definition at line 10 of file pan.c.
References AllocateTaggedMemory(), CollectActivePaletteIndices(), CopyViewportContents(), g_nSpacePaletteFadeMode, GetPaletteEntry(), GetViewportPixel(), Viewport::left, PanToScreen(), ReleasePacketHandle(), SetPaletteEntry(), StepPaletteTransition(), Viewport::top, and WaitForVerticalBlankThunk().
Referenced by DosMemmove(), DrawTitleOrchestra(), PanToScreen(), and RunCutsceneScript().
| unsigned char ParseCutsceneContainer | ( | void * | scenePacket | ) |
Definition at line 410 of file iffload.c.
References AllocateScenePointerTable(), SceneResourceTable::data, DecodeCutsceneFileResource(), DecodeCutsceneObjectResource(), DecodeSceneResourceChunk(), CutsceneTextResource::entries, g_nCutsceneResourceLevel, g_nEarlierGlobalCount, g_pCampaignGlobals, g_pCutsceneFilmResources, g_pCutsceneFontResources, g_pCutsceneFxResources, g_pCutsceneMouseResources, g_pCutsceneMusicResources, g_pCutscenePaletteResources, g_pCutscenePlaneResources, g_pCutsceneSceneResources, g_pCutsceneSequenceResources, g_pCutsceneShapeResources, g_pCutsceneSpeechResources, g_pCutsceneSpriteResources, g_pCutsceneTextResources, IdentityHandle(), InitializeCutsceneRuntimeResources(), CutsceneTextResource::next, CutsceneTextResource::owner, ParseCutsceneContainer(), PushCutsceneFileResource(), PushCutsceneObjectResource(), ReadNextSceneForm(), and ReleasePacketSlot().
Referenced by ParseCutsceneContainer(), RunCampaignScript(), RunCutsceneScript(), and UpdateShipTurretGuns().
| short ParseHexNumber | ( | char * | text | ) |
Definition at line 14 of file hexnum.c.
References DosStrchr(), DosStrlen(), g_szHexDigits, and ParseHexNumber().
Referenced by intelligence_events(), ParseHexNumber(), and ParseNumber().
| void patrol_area | ( | short | obj | ) |
Definition at line 396 of file brains.c.
References alter_tactic(), approach_cruise_speed(), approach_full_speed(), CanSetNewShipTurnGoal(), dist_from_home(), fail(), g_acShipTarget, g_aShipMissionSpot, g_asShipTactic, g_nTargetRange, get_facing_range_from_object(), get_facing_range_from_point(), init_formation_burst(), patrol_area(), point_ship_at_object(), point_ship_at_point(), reset_tactic(), scan_and_lock(), TACTIC_APPROACH_TARGET, TACTIC_HEAD_HOME, TACTIC_LOOK_OUT, TACTIC_NONE, trim_goals(), and unactive().
Referenced by kilrathi_patrol(), and patrol_area().
| short PeekInputEvent | ( | InputEventState * | event, |
| short | type ) |
Definition at line 929 of file eventmgr.c.
References InputEvent::field_14, InputEvent::field_18, g_196_nInputTimerTicks, g_nNextInputQueueFlushTick, g_pInputEventHead, InputEvent::modifiers, InputEventState::modifiers, PeekInputEvent(), InputEvent::primaryButton, InputEvent::secondaryButton, InputEvent::status, InputEventState::status, InputEventState::timestamp, InputEvent::type, InputEventState::type, InputEventState::value, InputEventState::x, and InputEventState::y.
Referenced by DosMemmove(), and PeekInputEvent().
| void perform_maneuver | ( | short | obj | ) |
Definition at line 1014 of file fl.c.
References COLLISION_RADIUS_OF, find_weapon(), fire_weapon(), g_acShipTarget, g_apManeuverHandlers, g_asIntelligenceEvent, g_asObjectCollisionRadius, g_asShipIntelSlot, g_asShipManeuver, g_bAiMissileFiringEnabled, g_bCurrentManeuverReroll, g_nOriginDevUnlock, g_nTargetFacing, g_nTargetRange, maneuver_complete(), MANEUVER_GLOAT, MANEUVER_HANDLER_COUNT, MANEUVER_LINE_UP_DROP, MANEUVER_REROLL_CHANCE, MANEUVER_VEER_AWAY, Mgloat(), Mline_up_drop(), Mveer_away(), OBJECT_DATA_CHAFF_POD, perform_maneuver(), RandomBelowOrEqual(), SetShipAiScratchWord(), unactive(), and void().
Referenced by maneuvering(), and perform_maneuver().
| void PersonnelDriveHook | ( | short | drive | ) |
Definition at line 1978 of file eventmgr.c.
References PersonnelDriveHook().
Referenced by close_behind(), LocateLegacySaveGame(), PersonnelDriveHook(), and RunPilotDatabaseMenu().
| short pick_from_list | ( | const ManeuverChoice * | choice, |
| short | obj, | ||
| short | event ) |
Definition at line 506 of file smart.c.
References g_asIntelligenceEvent, g_asShipManeuver, MANEUVER_NONE, MANEUVER_UNKNOWN_48, pick_from_list(), ManeuverChoice::primary, RandomBelow(), RandomBelowOrEqual(), ManeuverChoice::secondary, and ManeuverChoice::threshold.
Referenced by maintain_formation(), pick_from_list(), pick_kilrathi_maneuver(), and process_maneuver_node().
| short pick_kilrathi_maneuver | ( | short | obj, |
| short | event ) |
Definition at line 538 of file smart.c.
References any_defense(), g_aShipIntelligenceData, g_asShipIntelSlot, MANEUVER_STRAFE_ENEMY, MANEUVER_UNKNOWN_48, MANEUVER_UNKNOWN_49, MANEUVER_ZIP_PAST, pick_from_list(), pick_kilrathi_maneuver(), and stress_morale().
Referenced by maintain_formation(), pick_kilrathi_maneuver(), and process_maneuver_node().
| short pick_regular_maneuver | ( | short | obj, |
| short | event ) |
Definition at line 455 of file smart.c.
References any_defense(), g_acShipTarget, g_aeObjectClass, g_asIntelligenceEvent, g_asPilotLevel, g_asShipManeuver, MANEUVER_HARD_TURN, MANEUVER_LINE_UP_DROP, MANEUVER_NONE, MANEUVER_OUTA_HERE, MANEUVER_ROLL_OVER, MANEUVER_STRAFE_ENEMY, MANEUVER_TAIL_FIRE, MANEUVER_TRY2TAIL, MANEUVER_WABBLE, MANEUVER_ZIP_PAST, OBJECT_CLASS_CAPITAL_SHIP, pick_regular_maneuver(), RandomBelow(), RandomBelowOrEqual(), and stress_morale().
Referenced by maintain_formation(), pick_regular_maneuver(), and process_maneuver_node().
| short pilot_hit | ( | short | obj | ) |
Definition at line 1010 of file ship.c.
References g_acPilotHitPoints, g_asObjectCounter, g_bDeathSequenceActive, g_bPlayerDamageEnabled, g_nArcadeState, pilot_hit(), RandomBelowOrEqual(), set_special(), skill_check(), and SPECIAL_MANEUVER_BLOWING_UP.
Referenced by DrawTextAt(), internal_damage(), pilot_hit(), and your_internal_damage().
| 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().
Definition at line 2771 of file ship.c.
References find_vacant_3d_object(), flip_angle(), g_acShipExhaustHeat, g_aeObjectClass, g_aeSpecialManeuver, g_anShipCloakState, g_anShipSpeed, g_apObjectExhaustShape, g_asLoadedShipViewFrame, g_asObjectDistance, g_asObjectFlip, g_asObjectScale, g_asObjectScreenAngle, g_asObjectScreenX, g_asObjectScreenY, g_asObjectType, g_asObjectViewFrame, g_bExpandedShipGraphicsEnabled, g_bJumpSequenceActive, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, place_exhaust_on_ships(), RandomInRange(), set_objects_data(), SPECIAL_MANEUVER_AFTERBURNER, SPECIAL_MANEUVER_KILL_ENGINES, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by DrawSpaceSceneFrame(), DrawTextAt(), and place_exhaust_on_ships().
| void place_ship_near_player_until_valid | ( | short | obj, |
| short | minimum, | ||
| short | maximum ) |
Definition at line 1043 of file mission.c.
References g_aShipPosition, place_ship_near_player_until_valid(), random_radial(), and room_for_me().
Referenced by arrive_from_warp(), place_ship_near_player_until_valid(), and set_up_next_wave().
| void PlaceNavMapLabel | ( | short | x, |
| short | y, | ||
| unsigned short | colour, | ||
| const char * | text ) |
Definition at line 353 of file nav.c.
References NavMapLabel::colour, g_1_aNavMapLabels, g_nNavMapLabelCount, PlaceNavMapLabel(), ReserveNavMapArea(), NavMapLabel::text, and TryPlaceNavMapLabel().
Referenced by AddUniqueObjectiveNavLabel(), BuildMap(), DrawNavHazardMarker(), and PlaceNavMapLabel().
| long PlanarMagnitude | ( | int | x, |
| int | y ) |
Definition at line 144 of file eventmgr.c.
References PlanarMagnitude().
Referenced by apply_force_to_object(), intelligence_events(), PlanarMagnitude(), rectangular_to_spherical(), and set_ship_rotation_goals().
| void PlayCockpitSelectionSfx | ( | short | selectionSound | ) |
Definition at line 3708 of file cockpt.c.
References PlayCockpitSelectionSfx(), PlaySfxWaveFileByNumber(), and void().
Referenced by PlayCockpitSelectionSfx(), and SelectCockpitVduMode().
| short player_input | ( | void | ) |
Definition at line 665 of file main.c.
References accelerate(), Viewport::bottom, InputDeviceSample::buttons, fire_players_lasers(), MouseCursorState::frame, g_10_bPlayerInputActive, g_10_stPrevFlightControls, g_19_bPolledFlightInputQueued, g_1_bDiscreteFlightInputWaiting, g_27_stViewScratchInfo, g_37_stPersonnelMousePointerState, g_6_stHostMouseTextBlock, g_6_wQueuedButtonsState, g_aeSpecialManeuver, g_anFlightInput, g_anPreviousFlightInput, g_asMousePitchThresholds, g_asMouseYawThresholds, g_bMouseFireButtonLatched, g_bMouseMoveEventQueued, g_bSecondaryMouseButtonHeld, g_cCurrentKey, g_cPreviousKey, g_nCockpitControlGoal, g_nCockpitControlState, g_nMousePitchInput, g_nMouseYawInput, g_stCurrentFlightInput, GetNextInputEvent(), IsInputEventQueued(), Viewport::left, InputEventState::modifiers, player_input(), PollKeyboardState(), HostMouseMessage::primaryButton, process_player_input(), Viewport::right, HostMouseMessage::secondaryButton, ServiceInputDevices(), SetPersonnelMousePosition(), SPECIAL_MANEUVER_AFTERBURNER, InputEventState::status, Viewport::top, InputEventState::value, InputDeviceSample::x, InputEventState::x, MouseCursorState::x, InputDeviceSample::y, InputEventState::y, and MouseCursorState::y.
Referenced by close_behind(), HandleSpaceFlightControls(), and player_input().
| short player_wingman | ( | short | obj | ) |
Definition at line 48 of file auto.c.
References g_asShipWingLeader, and player_wingman().
Referenced by auto_pilot_sequence(), auto_position(), and player_wingman().
Definition at line 620 of file main.c.
References g_acObjectType, g_aeSpecialManeuver, g_anFlightInput, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_aObjectTypeData, g_asObjectCounter, players_flight_dynamics(), SPECIAL_MANEUVER_BLOWING_UP, and SPECIAL_MANEUVER_NONE.
Referenced by close_behind(), HandleSpaceFlightControls(), and players_flight_dynamics().
Definition at line 292 of file sound.c.
References AllocateWaveTableEntry(), g_16_nSpeechCompletionDelay, g_1_bSpaceFlightActive, g_1_pVoiceWav, g_bSpeechSoundActive, g_pSpeechSnd, IxSample::ix_sample_load_raw(), ix_sound_release(), IxSound::ix_sound_set_delete_on_stop(), ix_sound_start(), ix_sound_stop(), ix_system_new_sample(), ix_system_new_sound(), IxSound::ix_system_sound_set_volume(), WaveTableEntry::name, PlayRawSpeechBuffer(), WaveTableEntry::sample, SetCinematicFrameTiming(), and SoundDebugPrintf().
Referenced by PlayRawSpeechBuffer(), PlaySpeechPacketBuffer(), and UpdateShipTurretGuns().
| void PlaySfxWaveFileByNumber | ( | int | soundNumber, |
| int | sourceObject, | ||
| int | looping ) |
Definition at line 490 of file music.c.
References ComputeVectorDelta(), EYE_OBJECT, g_aiSoundEffectSourceActiveValue, g_aShipPosition, g_szSfxWavePath, PlaySfxWaveFileByNumber(), playWAVE(), SoundDebugPrintf(), and Vector_magnitude().
Referenced by accelerate(), animate_object(), animate_shape(), ApplyCannedSceneSoundRecord(), BeginShipCloak(), BeginShipDestructionSequence(), capital_ship_strike_mission(), CheckTargetLockMalfunction(), Chosen_communicate_option(), cockpit_explosion(), death_sequence(), decrement_lock_time(), Explosion(), fire_weapon(), FireTargetCameraGuns(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), inflict_damage(), InflightComputer(), malf_noise(), malf_sound(), object_collision(), PlayCockpitSelectionSfx(), PlaySfxWaveFileByNumber(), RunCutsceneScript(), RunTitleScreen(), servicetrack(), ShipExplosion(), TheEndFireWorks(), ToggleTargetCameraTracking(), unwarp(), update_lights(), UpdateShipTurretGuns(), UpdateShipTurretGuns(), UpdateTargetCameraObject(), warp(), and your_afterburner().
Definition at line 347 of file sound.c.
References AllocateWaveTableEntry(), g_9_pSnowStaticAudio, g_nAudioEnabled, g_pSnowStaticClip, IxSample::ix_sample_load_wav(), ix_sound_is_playing(), ix_sound_start(), ix_system_new_sample(), ix_system_new_sound(), IxSound::ix_system_sound_set_volume(), WaveTableEntry::name, PlaySnowStaticSound(), ReleaseFinishedSoundEntries(), and WaveTableEntry::sample.
Referenced by malf_noise(), PlaySnowStaticSound(), and UpdateShipTurretGuns().
Definition at line 67 of file speech.c.
References g_2_wDigiPosition, g_4_pDigiData, g_4_pDmaBufferPointer, g_nDigiLastBlock, g_nDigiSampleBytes, g_nDmaHalfSelect, g_wDigiLeft, g_wDigiPlaying, g_wDmaCountA, g_wDmaCountB, g_wDmaHalfBytes, IdentityDword(), PlayRawSpeechBuffer(), and PlaySpeechPacketBuffer().
Referenced by DrawTextAt(), LoadAndPlaySpeechPacket(), PlaySpeechPacketBuffer(), and RunCutsceneScript().
Definition at line 220 of file intro.c.
References DrawSpriteDefault(), DrawTitleSky(), g_apszTitleActorFrames, g_apTitleSections, g_aTitleActorMotion, g_bSceneEscapeRequested, g_nFrameSkip, g_nFrameSkipCountdown, g_nMusicDriverMode, g_nTitleMusicSequenceStage, g_stSecondaryViewBufferBlock, g_szTitleConductorFrames, PlayTitleConductorCue(), RefreshMemoryStatusOverlay(), and WaitForInputKey().
Referenced by PlayTitleConductorCue(), and Title_Sequence().
| void playWAVE | ( | const char * | filename, |
| int | looping, | ||
| int | volume ) |
Definition at line 217 of file sound.c.
References AllocateActiveSoundEntry(), AllocateWaveTableEntry(), FindWaveTableEntryByName(), g_9_nNextSfx16PlaybackFrame, g_nAudioEnabled, g_nSpaceFrame, IxSample::ix_sample_load_wav(), IxSample::ix_sample_set_looping(), IxSound::ix_sound_set_delete_on_stop(), ix_sound_start(), ix_system_new_sample(), ix_system_new_sound(), IxSound::ix_system_sound_set_volume(), WaveTableEntry::name, playWAVE(), ReleaseFinishedSoundEntries(), WaveTableEntry::sample, ActiveSoundEntry::sound, and SoundDebugPrintf().
Referenced by PlaySfxWaveFileByNumber(), playWAVE(), and UpdateShipTurretGuns().
| void point_at | ( | short | obj, |
| FixedVector | point ) |
Definition at line 84 of file geom.c.
References ComputeVectorDelta(), fix_objects_ijk(), g_aShipForwardVector, g_aShipPosition, point_at(), and shrink_vector().
Referenced by approach(), auto_pilot_sequence(), fire_weapon(), FireTargetCameraGuns(), init_hazard(), look_at(), point_at(), SetFleetOverviewView(), and UpdateShipTurretGuns().
| void point_capital_ship_at_object | ( | short | obj, |
| short | other ) |
Definition at line 692 of file geom.c.
References ComputeVectorDelta(), g_aShipPosition, point_capital_ship_at_object(), and point_ship().
Referenced by capital_ship_strike_mission(), point_capital_ship_at_object(), and tanker_intelligence().
| void point_parallel | ( | short | obj, |
| short | other ) |
Definition at line 740 of file geom.c.
References g_aShipForwardVector, point_parallel(), and point_ship().
Referenced by escort_buddy(), goto_formation(), point_parallel(), and return_to_buddy().
| void point_perpendicular | ( | short | obj, |
| short | other ) |
Definition at line 734 of file geom.c.
References g_aShipPosition, point_perpendicular(), and point_perpendicular_to_point().
Referenced by defend_mission(), Mturn_n_kick(), point_perpendicular(), and return_to_master().
| void point_perpendicular_to_point | ( | short | obj, |
| const FixedVector * | point ) |
Definition at line 702 of file geom.c.
References g_anYawGoal, point_perpendicular_to_point(), and point_ship_at_point().
Referenced by orbit_sphere(), point_perpendicular(), and point_perpendicular_to_point().
| void point_ship | ( | short | obj, |
| short | turnRate, | ||
| const FixedVector * | direction ) |
Definition at line 667 of file geom.c.
References g_anPitchGoal, g_anYawGoal, point_ship(), and set_ship_rotation_goals().
Referenced by chase_location(), FF_missile_intelligence(), formation_burst(), goto_formation(), heat_seeking_missile_intelligence(), object_intelligence(), point_capital_ship_at_object(), point_parallel(), point_ship(), point_ship_at_point(), and run_away().
| void point_ship_at_object | ( | short | obj, |
| short | other ) |
Definition at line 686 of file geom.c.
References g_aShipPosition, point_ship_at_object(), and point_ship_at_point().
Referenced by capital_ship_strike_mission(), FF_missile_intelligence(), heat_seeking_missile_intelligence(), imperial_formation(), Mkill_missile(), Mram_missile(), Msit_n_fire(), Msit_n_spin(), Mstrafe_enemy(), Msuicide_run(), Mtail_fire(), Mtarget_missile(), Mturn_n_spin(), patrol_area(), point_ship_at_object(), rendezvous_mission(), return_to_buddy(), ShipAiState45(), streak_toward(), UpdateSavedTorpedoTargetLock(), and UpdateTargetCameraObject().
| void point_ship_at_point | ( | short | obj, |
| const FixedVector * | point ) |
Definition at line 676 of file geom.c.
References ComputeVectorDelta(), g_aShipPosition, point_ship(), and point_ship_at_point().
Referenced by cruise_home(), cruise_to_destination(), goto_location(), Mline_up_drop(), Msit_n_spin(), Mtry2tail(), orbit_sphere(), patrol_area(), point_perpendicular_to_point(), point_ship_at_object(), point_ship_at_point(), point_ship_behind_object(), and point_ship_below_object().
| void point_ship_behind_object | ( | short | obj, |
| short | other ) |
Definition at line 712 of file geom.c.
References g_aShipForwardVector, g_aShipPosition, g_asObjectCollisionRadius, point_ship_at_point(), point_ship_behind_object(), and position_relative().
Referenced by coming_home(), Mzip_past(), and point_ship_behind_object().
| void point_ship_below_object | ( | short | obj, |
| short | other ) |
Definition at line 723 of file geom.c.
References g_aShipPosition, g_aShipUpVector, g_asObjectCollisionRadius, point_ship_at_point(), point_ship_below_object(), and position_relative().
Referenced by Mzip_past(), and point_ship_below_object().
| short PollCampaignChalkboardMenu | ( | unsigned char * | scene | ) |
Definition at line 362 of file optmenu.c.
References DisableMouseCursorDrawing(), DrawFormattedText(), DrawSpriteDefault(), EnableMouseCursorDrawing(), FlushInputEvents(), g_101_stScrViewInfo, g_3_stDefaultStringContext, g_bPrimaryViewBufferColour, g_pCampaignChalkboardShape, g_pszPersonnelFooter, g_stSecondaryViewBufferBlock, InitializeTextContextFromFont(), MeasureTextPixelWidthClamped(), PollCampaignChalkboardMenu(), PollSceneHotspotInput(), RefreshMemoryStatusOverlay(), SetMenuInputPump(), SetTextCursor(), and TextContext::viewport.
Referenced by CollectRasterClipColours(), PollCampaignChalkboardMenu(), and RunCampaignChalkboardMenu().
| int PollInputEvent | ( | InputEventState * | event, |
| short | deviceMask ) |
Definition at line 922 of file eventmgr.c.
References GetNextInputEvent(), PollInputEvent(), and PumpWindowMessages().
Referenced by DosMemmove(), InflightComputer(), PollInputEvent(), and WaitForAnyInputPress().
Definition at line 74 of file input.c.
References g_3_asControlsButton1ChangedValues, g_3_bInputPollingGuard, g_6_stPersonnelMouseData, g_7_asInputButton2DoubleClickValues, g_8_nActiveInputDeviceWord, g_9_asInputButton2ChangedList, g_aInputDeviceSamplesList, g_asControlsButton1DoubleClickTable, PollJoystickButtonEvents(), PersonnelMouseSample::primaryButton, QueueInputEventAtCursor(), PersonnelMouseSample::secondaryButton, and UpdateInputDeviceTransitions().
Referenced by AcknowledgeModalMessage(), InflightComputer(), LoadOriginFxDrivers(), PollJoystickButtonEvents(), UpdateShipTurretGuns(), and WaitForInputKey().
| unsigned int PollKeyboardState | ( | void | ) |
Definition at line 991 of file winmain.c.
References g_102_nLeftDirKeyboardState, g_13_nUpDirKeyState, g_15_nDownArrowKeyState, g_18_nEndKeyState, g_1_nPageDownKeyboardMode, g_2_nClearedKeyboardState, g_3_nBeginKeyboardState, g_3_nOemPeriodKeyState, g_nClearKeyMode, g_nDeleteKeyState, g_nInsertKeyStatus, g_nOemCommaKeyState, g_nPgUpwardKeyMode, g_nRightDirKeyboardState, and PollKeyboardState().
Referenced by player_input(), and PollKeyboardState().
Definition at line 115 of file input.c.
References DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), PersonnelMouseSample::flags, QueuedMouseState::flags, FlushInputEvents(), g_16_stEventQueuePointerData, g_3_asControlsButton1ChangedValues, g_3_bInputPollingGuard, g_6_stPersonnelMouseData, g_8_nActiveInputDeviceWord, g_9_asInputButton2ChangedList, g_aInputDeviceSamplesList, g_asControlsButton1DoubleClickTable, g_bSceneDisplayUpdateActive, g_nMenuPointerSpeed, PollMenuInputDevices(), PersonnelMouseSample::primaryButton, QueuedMouseState::primaryButton, QueueInputEventAtCursor(), PersonnelMouseSample::secondaryButton, QueuedMouseState::secondaryButton, SetMousePosition(), UpdateInputDeviceTransitions(), InputDeviceSample::x, PersonnelMouseSample::x, QueuedMouseState::x, InputDeviceSample::y, PersonnelMouseSample::y, and QueuedMouseState::y.
Referenced by PollMenuInputDevices(), SetMenuInputPump(), and UpdateShipTurretGuns().
Definition at line 61 of file personnel.c.
References g_37_stPersonnelMousePointerState, g_bPersonnelPrimaryInputDown, g_cCurrentKey, g_cPreviousKey, g_sPersonnelPreviousInput, GetNextInputEvent(), IsInputEventQueued(), InputEventState::modifiers, PollPersonnelMenuInput(), ServiceInputDevices(), MouseCursorState::x, and MouseCursorState::y.
Referenced by close_behind(), PollPersonnelMenuInput(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), and SelectTransferredPilot().
| short PollSceneHotspotInput | ( | void * | scenePacket, |
| short | offsetX, | ||
| short | offsetY, | ||
| short | dismissOnBackground, | ||
| short | maximumSelection ) |
Definition at line 170 of file hotspot.c.
References CalibrateJoystickInteractive(), InputManagerState::cursorShape, SceneResourceTable::data, FindQueuedInputEvent(), FindSceneHotspotAtPosition(), g_18_pEventManager, g_8_bSceneBackdropClicked, g_bDisableChalkboardReplay, g_bJoystickCalibrationHotkey, g_bPersonnelMenuDrawing, g_pActiveScenePacket, g_pszPersonnelFooter, g_stSceneTextList, g_stSceneZoneTable, GetControlKeyState(), GetJKeyState(), GetNextInputEvent(), PollSceneHotspotInput(), ReleaseInputEventQueue(), ReleasePacketSlot(), ServiceInputDevices(), SetMouseCursorShape(), InputEventState::type, InputEventState::x, and InputEventState::y.
Referenced by DrawPersonnelMenuBackdrop(), DrawTextAt(), PollCampaignChalkboardMenu(), PollSceneHotspotInput(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), and RunTitleMenuInputLoop().
| 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().
| short PopCutsceneScriptValue | ( | short ** | stack, |
| short * | stackBottom ) |
Definition at line 1809 of file gameflow.c.
References DosFarPtrToNear(), FatalCutsceneError(), and PopCutsceneScriptValue().
Referenced by DosMemmove(), PopCutsceneScriptValue(), and RunCutsceneScript().
| void position_child | ( | short | parent, |
| short | weapon, | ||
| FixedVector * | position ) |
Definition at line 801 of file geom.c.
References g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_aShipWeapons, position_child(), FixedVector::x, ShortVector::x, FixedVector::y, ShortVector::y, FixedVector::z, and ShortVector::z.
Referenced by child_object(), fire_turrets(), and position_child().
| void position_relative | ( | FixedVector * | position, |
| FixedVector | direction, | ||
| short | distance ) |
Definition at line 101 of file geom.c.
References AddFixedVectors(), NormalizeFixedVector(), position_relative(), and ScaleFixedVector().
Referenced by launch_carrier_fighter(), Mtry2tail(), offset_location(), point_ship_behind_object(), point_ship_below_object(), position_relative(), and position_relative_ijk().
| void position_relative_ijk | ( | FixedVector * | position, |
| short | obj, | ||
| short | right, | ||
| short | up, | ||
| short | forward ) |
Definition at line 112 of file geom.c.
References g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, position_relative(), and position_relative_ijk().
Referenced by auto_position(), new_view(), position_relative_ijk(), SetFleetOverviewView(), and try_far_spot().
| void PreloadMusicTrack | ( | int | track | ) |
Definition at line 961 of file fltsetup.c.
References FetchDiskPacketRetrying(), g_aTuneResources, g_nMusicDriverMode, MusicResource::packet, and PreloadMusicTrack().
Referenced by close_behind(), PreloadMusicTrack(), RunCampaignChalkboardMenu(), and RunTitleScreen().
| void prepare_for_jump | ( | short | obj | ) |
Definition at line 511 of file brains.c.
References CanSetNewShipTurnGoal(), fire_afterburner(), g_anShipSpeed, g_anYawGoal, g_asShipCount, g_asShipSide, g_nFacingToTarget, g_nTargetFacing, g_nTargetRange, get_facing_range_from_object(), prepare_for_jump(), reset_tactic(), set_special(), SIDE_KILRATHI, signed_random(), SPECIAL_MANEUVER_STOP_DRIFT, and TACTIC_WARP_OUT.
Referenced by prepare_for_jump(), and reach_warp().
Definition at line 281 of file mission.c.
References ApplyAlternateShipType(), Build_objective_list(), MissionHeader::entryNavPoint, MissionShipRecord::field_13, find_ships_sphere(), g_13_stMissionHeaderBlock, g_36_cPilotKillCountValue, g_4_acInitialShipKillNumber, g_6_nHomeOperationShipIndexValue, g_8_bUserDestroyedFlag, g_acPlayerComponentDamage, g_aMissionShips, g_bLandingCommRequestPending, g_bMissionShipInitializationInProgress, g_bTargetLockMode, g_bWingmanKilledThisMission, g_nMissionEntryNavOverride, g_nYourWingman, g_stCurrentPilotProfile, MissionHeader::homeMissionShip, init_ship(), MissionHeader::initialMissionShips, is_alive(), load_ship(), LoadAlternateShipType(), PilotProfile::missionScore, MissionShipRecord::navPoint, OBJECT_CLASS_SHIP, MissionShipRecord::objectType, MissionHeader::playerMissionShip, PilotProfile::playerShipType, MissionShipRecord::portrait, prepare_mission(), set_objects_data(), Set_up_ship_info(), and MissionShipRecord::type.
Referenced by init_mission(), and prepare_mission().
| void PrepareShapeRLEData | ( | unsigned char * | shape | ) |
Definition at line 363 of file gr.c.
References AllocateTaggedMemory(), CheckHeapBlockSignature(), DecodeShapeFrame(), exit_squadron(), g_13_abShapeRLEScratch, GetPreparedShapeData(), GetShapeFrameCount(), GetShapeFrameExtents(), PrepareShapeRLEData(), and ReleasePacketHandle().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), and PrepareShapeRLEData().
Definition at line 477 of file gameflow.c.
References TextContext::alignment, Viewport::bottom, ConsumeCutscenePalettePacket(), CopyViewportContents(), TextContext::cursorX, TextContext::cursorY, DrawFormattedText(), g_196_nInputTimerTicks, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_6_stMovieDebugTextCtx, g_bCutsceneDebugOverlayEnabled, g_bMovieFramePresented, g_cCutsceneVideoMode, g_nCutsceneFrameDelay, g_nCutsceneSpritesDrawn, g_nFrameSkipCountdown, g_wCutsceneDebugFrameNumber, PresentCutsceneFrame(), ResetCutsceneSpriteDrawTicks(), SetTextContext(), and TextContext::viewport.
Referenced by DosMemmove(), DrawCinematicMemoryStatus(), ExecuteCutsceneSequence(), PresentCutsceneFrame(), and RunCutsceneScript().
| void prevent_collision | ( | short | obj | ) |
Definition at line 99 of file smart.c.
References approach_full_speed(), approach_zero_speed(), CanSetNewShipTurnGoal(), clear_alert(), fire_afterburner(), g_5_nCollisionCountdownNumber, g_acShipAlertSource, g_aShipPosition, g_nFacingToTarget, g_nTargetFacing, get_facing_range_from_point(), MaxShort(), MinShort(), normal_speed(), prevent_collision(), steer_away_from_predicted_object(), try2end_collision_alert(), and veer_random().
Referenced by handle_collisions(), prevent_collision(), and UpdateShipTurretGuns().
| 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().
Definition at line 57 of file palalloc.c.
References g_awPaletteEntryAllocation, and PrintPaletteAllocationMap().
Referenced by PrintPaletteAllocationMap(), and UpdateShipTurretGuns().
| void process_maneuver_node | ( | short | obj, |
| short | event ) |
Definition at line 580 of file smart.c.
References CountAlliesOnSameTarget(), fire(), fire_afterburner(), g_13_stMissionHeaderBlock, g_36_cPilotKillCountValue, g_4_acInitialShipKillNumber, g_acShipTarget, g_aeSpecialManeuver, g_anShipCloakState, g_aShipIntelligenceData, g_asPilotLevel, g_asProjectileEvasionTicks, g_asShipCloakCooldown, g_asShipIntelSlot, g_asShipManeuver, g_asShipMissionIndex, g_asShipSide, g_bWingmanTurnRateUnlocked, g_nFacingToTarget, g_nTargetFacing, g_nTargetRange, g_nYourWingman, GetAdaptiveTurnRate(), MissionHeader::initialMissionShips, pick_from_list(), pick_kilrathi_maneuver(), pick_regular_maneuver(), process_maneuver_node(), reset_maneuver(), and stress_morale().
Referenced by intelligence_events(), maintain_formation(), and process_maneuver_node().
Definition at line 442 of file main.c.
References Viewport::bottom, g_27_stViewScratchInfo, g_anFlightInput, g_cCurrentKey, g_cPreviousKey, g_nCockpitControlState, GetShiftKeyState(), Viewport::left, process_player_input(), Viewport::right, SetPersonnelMousePosition(), and Viewport::top.
Referenced by close_behind(), player_input(), and process_player_input().
Definition at line 244 of file replay.c.
References force_view(), g_acShipTarget, g_cCurrentKey, g_cPreviousKey, g_cViewObject, GetNextInputEvent(), new_view(), ProcessCannedSceneInput(), SelectNextExternalViewObject(), ServiceInputDevices(), and InputEventState::status.
Referenced by ProcessCannedSceneInput(), RunSpaceFlight(), and UpdateShipTurretGuns().
Definition at line 1514 of file ship.c.
References check_next_wave(), ejection_sequence(), g_aeObjectClass, g_asShipSide, g_bEjectionTriggerImmediately, g_bEjectionWaitForEnemyWave, g_bMissionDeathSequencePending, g_bMissionEjectionPodSpawned, g_nEjectionSequenceState, g_nPendingEjectionSequenceCount, g_stCurrentPilotProfile, g_ucPendingEjectionTransition, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, PilotProfile::playerShipType, ProcessEnemyWaveCompletion(), set_up_next_wave(), and SIDE_KILRATHI.
Referenced by Create_explosion_debris(), DrawTextAt(), ProcessEnemyWaveCompletion(), and report_kilrathi_rout().
| void ProcessMissionWaveCommands | ( | MissionNavPoint * | navPoint | ) |
Definition at line 832 of file mission.c.
References ejection_sequence(), g_aShipIntelligenceData, g_asShipIntelSlot, g_bEjectionAwaitingCommCommand, g_bEjectionTriggerImmediately, g_bEjectionWaitForEnemyWave, g_cQueuedNpcMessage, g_cQueuedNpcPortrait, g_nArcadeState, g_nEjectionSequenceState, g_nPendingEjectionSequenceCount, g_ucPendingEjectionTransition, LoadPacketIntoBuffer(), ProcessMissionWaveCommands(), and MissionNavPoint::waveCommands.
Referenced by ProcessMissionWaveCommands(), set_up_action_sphere(), and set_up_next_wave().
| unsigned short ProcessMusicScriptCommand | ( | int | track, |
| int | command, | ||
| short | enabled ) |
Definition at line 89 of file music.c.
References exit_squadron(), ForceStreamerTrigger(), g_acMusicTrackStreamFlags, g_nActiveMusicStreamMask, g_nCannedSceneMode, g_nCurrentMusicTrack, ProcessMusicScriptCommand(), RecordMusicCommandHook(), SetStreamerIntensity(), SetStreamerTrigger(), SoundDebugPrintf(), StopMusic(), Streamer_open(), and Streamer_stop().
Referenced by ApplyCannedSceneMusicRecord(), ProcessMusicScriptCommand(), spacetrack(), StartInteractiveMusic(), target_locking(), and UpdateShipTurretGuns().
| int PromptInsertCorrectCd | ( | void | ) |
Definition at line 1324 of file winmain.c.
References LocateStreamsDirOnDisc(), and PromptInsertCorrectCd().
Referenced by PromptInsertCorrectCd(), and WinMain().
| short PromptToContinueCampaign | ( | short | promptFrame | ) |
Definition at line 60 of file campaign.c.
References AllocateViewport(), Viewport::bottom, ClearInputPump(), ClearViewport(), DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), FetchDiskPacketRetrying(), free_view_buffer(), free_viewport(), FreePacketAndClear(), g_cSecondaryViewBufferColour, g_pConstellationSprite, g_stSecondaryViewBufferBlock, init_constellation(), InitializeConstellationField(), Viewport::left, PromptToContinueCampaign(), ReportFatalErrorCode(), Viewport::right, RunCampaignContinuePromptLoop(), SetInputViewport(), SetMenuInputPump(), StopMusicUnlessSuppressed(), and Viewport::top.
Referenced by PromptToContinueCampaign(), and RunCampaignGameLoop().
| char PumpMessagesDuringWait | ( | void | ) |
Definition at line 46 of file console.cpp.
References g_pDiagnosticOverlay, PumpMessagesDuringWait(), and DebugOverlayConsole::WaitForKey().
Referenced by close_behind(), DrawTextString(), LogDisplayMode(), PacketLoad(), PumpMessagesDuringWait(), and SetInputKeyState().
| unsigned int PumpWindowMessages | ( | int | skipMessages | ) |
Definition at line 292 of file winmain.c.
References g_13_lGameClockStartData, g_16_bMainWindowRunning, g_176_pfnCurrentInputPump, g_196_nInputTimerTicks, g_bWindowInactive, g_bWindowMessagePumpActive, KeyboardMousePump(), LogMemoryUsage(), PumpWindowMessages(), and ShutdownGameWindow().
Referenced by ExecuteCutsceneScene(), ExecuteCutsceneSequence(), FlushPendingInputPresses(), InitializeSoundBlaster(), LoadCutsceneSpeechSlot(), PollInputEvent(), PumpWindowMessages(), RunCutsceneScript(), RunTitleMenuInputLoop(), RunTitleScreen(), ServiceInputDevices(), UpdateCutscenePlaneObject(), and UpdateCutsceneSpriteObject().
| void PurgeNearHeapBlocks | ( | short | flags | ) |
Definition at line 57 of file nearheap.c.
References NearHeapBlock::address, DosNearPtrToFar(), g_1_nNearHeapBase, g_nNearArenaSize, g_nNearHeapActive, g_nNearHeapFirstDescriptor, g_nNearHeapMaxDescriptors, PurgeNearHeapBlocks(), ReleaseNearHeapBlock(), and NearHeapBlock::sizeAndFlags.
Referenced by InitializeNearHeap(), and PurgeNearHeapBlocks().
| 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().
| CutsceneResourceTable * PushCutsceneFileResource | ( | CutsceneResourceTable ** | head | ) |
Definition at line 366 of file iffload.c.
References AllocateScenePointerTable(), g_nCutsceneResourceLevel, CutsceneResourceTable::next, CutsceneResourceTable::owner, and PushCutsceneFileResource().
Referenced by ParseCutsceneContainer(), PushCutsceneFileResource(), and UpdateShipTurretGuns().
| CutsceneObjectResourceList * PushCutsceneObjectResource | ( | CutsceneObjectResourceList ** | head | ) |
Definition at line 618 of file iffload.c.
References AllocateScenePointerTable(), CutsceneObjectResourceList::dataCount, g_nCutsceneResourceLevel, CutsceneObjectResourceList::inheritedDataCount, CutsceneObjectResourceList::inheritedScriptCount, CutsceneObjectResourceList::next, CutsceneObjectResourceList::owner, PushCutsceneObjectResource(), and CutsceneObjectResourceList::scriptCount.
Referenced by ParseCutsceneContainer(), PushCutsceneObjectResource(), and UpdateShipTurretGuns().
| void PushCutsceneScriptValue | ( | short ** | stack, |
| short * | stackTop, | ||
| short | value ) |
Definition at line 1826 of file gameflow.c.
References DosFarPtrToNear(), FatalCutsceneError(), and PushCutsceneScriptValue().
Referenced by DosMemmove(), PushCutsceneScriptValue(), and RunCutsceneScript().
Definition at line 30 of file memapi.c.
References exit_squadron(), g_9_apPacketHandlesTable, g_aiPacketHandleOffsets, g_nPacketHandleCount, and PushMemoryStackFrame().
Referenced by AllocateTaggedMemory(), PushMemoryStackFrame(), and UpdateShipTurretGuns().
Definition at line 353 of file intro.c.
References DrawSpriteScaled(), DrawTitleSky(), g_apszTitleActorFrames, g_apTitleSections, g_aTitleActorMotion, g_bSceneEscapeRequested, g_nFrameSkip, g_nFrameSkipCountdown, g_stSecondaryViewBufferBlock, g_szTitleConductorFrames, PushTitleOrchestraAway(), RefreshMemoryStatusOverlay(), and WaitForInputKey().
Referenced by PushTitleOrchestraAway(), and Title_Sequence().
| short QueryCurrentGraphicsMode | ( | void | ) |
Definition at line 9 of file getmode.c.
References g_nSpacePaletteFadeMode, and QueryCurrentGraphicsMode().
Referenced by DrawTextAt(), LoadOriginFxDrivers(), QueryCurrentGraphicsMode(), and RunLoadedCutscene().
| void QueueInputEvent | ( | int | type, |
| int | x, | ||
| int | y, | ||
| int | value, | ||
| int | primaryButton, | ||
| int | secondaryButton, | ||
| unsigned int | ignored, | ||
| unsigned int | field14, | ||
| unsigned int | field18 ) |
Definition at line 653 of file eventmgr.c.
References AllocateInputEvent(), InputEvent::field_14, InputEvent::field_18, g_16_stEventQueuePointerData, g_196_nInputTimerTicks, g_nInputDoubleClickDeadline, g_nPreviousPrimaryButton, g_nPreviousSecondaryButton, g_pInputEventHead, g_pInputEventTail, GetControlKeyState(), GetKeyboardModifiers(), GetShiftKeyState(), InputEvent::modifiers, InputEvent::next, InputEvent::previous, InputEvent::primaryButton, QueueInputEvent(), ReleaseInputEventQueue(), InputEvent::secondaryButton, InputEvent::status, InputEvent::type, InputEvent::value, void(), InputEvent::x, QueuedMouseState::x, InputEvent::y, and QueuedMouseState::y.
Referenced by DosMemmove(), KeyboardMousePump(), MainWindowProc(), QueueInputEvent(), QueueInputEventAtCursor(), and TranslatePolledInputEvent().
| void QueueInputEventAtCursor | ( | unsigned int | type, |
| short | primaryButton, | ||
| short | secondaryButton ) |
Definition at line 604 of file eventmgr.c.
References g_16_stEventQueuePointerData, QueueInputEvent(), QueueInputEventAtCursor(), QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DosMemmove(), PollJoystickButtonEvents(), PollMenuInputDevices(), and QueueInputEventAtCursor().
| void random_radial | ( | const FixedVector * | center, |
| short | radius, | ||
| FixedVector * | position ) |
Definition at line 278 of file geom.c.
References AddFixedVectors(), FillFixedVectorWithRandomComponents(), random_radial(), and RandomBelowOrEqual().
Referenced by place_ship_near_player_until_valid(), and random_radial().
| short RandomBelow | ( | short | n | ) |
Definition at line 12 of file eventmgr.c.
References RandomBelow().
Referenced by call_enemy(), check_destroy_target(), Explosion(), init_hazard(), intelligence_events(), intelligence_events(), Mgloat(), pick_from_list(), pick_regular_maneuver(), RandomBelow(), request(), run_away(), select_target(), skew_randomly(), snow_viewport(), SpawnFlakBurst(), streak_toward(), and try_far_spot().
| short RandomBelowOrEqual | ( | short | n | ) |
Definition at line 43 of file eventmgr.c.
References RandomBelowOrEqual().
Referenced by abandoned(), accelerate_and_move_object(), any_defense(), asteroid_velocity(), capital_ship_strike_mission(), check_for_lost_control(), CheckTargetLockMalfunction(), Create_explosion_debris(), Create_ship_hit_debris(), fire(), fire_flack(), fire_turrets(), hit_asteroid(), house_keep_objects(), inflict_damage(), init_hazard(), intelligence_events(), intelligence_events(), internal_damage(), launch_carrier_fighter(), Mburnout(), Mfish_hook(), Mhard_turn(), mine_intelligence(), Mroll_over(), Mveer_away(), Mwabble(), npc_communication(), perform_maneuver(), pick_from_list(), pick_regular_maneuver(), pilot_hit(), random_radial(), RandomBelowOrEqual(), RandomFixedAimComponent(), RandomSign(), repair_internal_damage(), ResolveObjectDestruction(), send_appropriate_message(), ShipAiState46(), signed_random(), skill_check(), SpawnFlakBurst(), start_lock(), tanker_intelligence(), try2allow_engage(), update_hazards(), veer_random(), and your_internal_damage().
| int RandomFixedAimComponent | ( | short | radius, |
| short | speed, | ||
| short | maximum ) |
Definition at line 2266 of file ship.c.
References MinShort(), RandomBelowOrEqual(), RandomFixedAimComponent(), and RandomSign().
Referenced by DrawTextAt(), RandomFixedAimComponent(), and SpawnFlakBurst().
| unsigned short RandomInRange | ( | unsigned short | lo, |
| unsigned short | hi ) |
Definition at line 31 of file eventmgr.c.
References RandomInRange().
Referenced by animate_object(), AnimateCutsceneSpeakerMouth(), AnimateTitleOrchestra(), capital_ship_strike_mission(), ChooseRandomSignedMagnitude(), DrawConstellationField(), fire(), fire_turrets(), fire_weapon(), generate_stars(), HandleSpaceFlightControls(), house_keep_objects(), InitializeConstellationField(), intelligence_events(), internal_damage(), make_shard(), malf(), new_space_music_changes(), place_exhaust_on_ships(), RandomInRange(), replenish_weapon_energy_bank(), RunCutsceneScript(), Set_up_ship_info(), ShowVictoryScreen(), start_dust(), update_star_field(), UpdateShipTurretGuns(), and vid_transmit().
| short RandomSign | ( | short | v | ) |
Definition at line 2257 of file ship.c.
References RandomBelowOrEqual(), and RandomSign().
Referenced by DrawTextAt(), RandomFixedAimComponent(), and RandomSign().
Definition at line 533 of file gr.c.
References RasterLineHook(), and void().
Referenced by __copyline(), __wipeline(), CollectRasterClipColours(), EstablishColors(), fizzle_fade(), RasterLineHook(), shaded_triangle(), shadow_draw(), snow_viewport(), and triangle().
| void reach_warp | ( | short | obj | ) |
Definition at line 547 of file brains.c.
References accelerate_and_jump(), cruise_to_destination(), fail(), g_aShipDestination, g_asShipTactic, get_first_follow_point(), prepare_for_jump(), reach_warp(), reset_tactic(), TACTIC_CRUISE, TACTIC_NONE, TACTIC_SIT_STILL, and TACTIC_WARP_OUT.
Referenced by capital_ship_intelligence(), reach_warp(), and ship_intelligence().
| short ReadCalibratedJoystick | ( | void | ) |
Definition at line 147 of file joycal.c.
References InputDeviceSample::buttons, g_12_nControllerLeftScaleValue, g_12_nJoystickDownScaleWord, g_12_nJoystickMinimumXNumber, g_1_nJoystickCentreXNumber, g_1_nJsRightScaleWord, g_2_nJoystickCentreY, g_2_nJsMinimumY, g_3_nJoystickRawX, g_4_nControllerFailureValue, g_4_nJoystickMaximumXValue, g_59_nJoystickUpScaleWord, g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, g_nControllerVerticalDeadZoneWord, g_nJoystickHorizDeadZone, g_nJoystickMaximumY, g_nStickRawY, ReadCalibratedJoystick(), SampleJoystickDevice(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by get_player_input(), ReadCalibratedJoystick(), UpdateInputDeviceTransitions(), and UpdateShipTurretGuns().
| int ReadCheaterFlagFromRegistry | ( | void | ) |
Definition at line 224 of file stream.cpp.
References g_szCheaterValueName, g_szOriginRegistryKey, and ReadCheaterFlagFromRegistry().
Referenced by CheckLauncherAndConfig(), CollectRasterClipColours(), and ReadCheaterFlagFromRegistry().
| int ReadDataFileAtOffset | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | length, | ||
| void * | data ) |
Definition at line 60 of file datafile.c.
References g_1_szReadDataFileFault, g_nPacketError, and ReadDataFileAtOffset().
Referenced by DrawNavLocationReadout(), LoadCannedScenePlaybackBuffer(), LoadSelectedPilotCampaign(), LoadWholeDataFile(), OpenPacketSection(), ReadDataFileAtOffset(), ReadPacketSectionData(), and ReadTapeInitialState().
| unsigned int ReadGIFDataSubBlockByte | ( | void | ) |
References ReadGIFDataSubBlockByte().
Referenced by ReadGIFDataSubBlockByte().
| unsigned int ReadGIFLZWCode | ( | void | ) |
References ReadGIFLZWCode().
Referenced by ReadGIFLZWCode().
| short ReadJoystickButtons | ( | void | ) |
Definition at line 40 of file joystick.c.
References GetJoystickButtons(), and ReadJoystickButtons().
Referenced by ReadJoystickButtons().
| unsigned int ReadNextSceneForm | ( | unsigned char ** | cursor, |
| unsigned char ** | nextForm ) |
Definition at line 66 of file iffload.c.
References IdentityHandle(), ReadNextSceneForm(), and SwapSceneChunkSizeEndian().
Referenced by ConsumeCutscenePalettePacket(), DecodeCutsceneObjectResource(), DrawTextAt(), FindSceneHotspotAtPosition(), LoadSceneHotspotBoundsForSelection(), ParseCutsceneContainer(), ReadNextSceneForm(), and WaitForSceneAdvance().
| short ReadPacketSectionData | ( | PacketSectionHandle * | handle, |
| void * | destination, | ||
| unsigned int | length ) |
Definition at line 10 of file resread.c.
References PacketSectionHandle::dataOffset, PacketSectionHandle::dataSize, PacketSectionHandle::file, PacketSectionHandle::position, ReadDataFileAtOffset(), and ReadPacketSectionData().
Referenced by CollectRasterClipColours(), GetPacketSize(), PacketLoad(), and ReadPacketSectionData().
| void ReadPerformanceCounter | ( | LARGE_INTEGER * | p | ) |
Definition at line 87 of file mono.c.
References ReadPerformanceCounter().
Referenced by DrawSpriteTransformed(), and ReadPerformanceCounter().
| short ReadPersonnelTextField | ( | unsigned int | x, |
| unsigned int | y, | ||
| int | font, | ||
| const char * | prompt, | ||
| char * | destination, | ||
| int | maximumLength, | ||
| int | mode, | ||
| int | required ) |
Definition at line 337 of file optmenu.c.
References DIBslamReal(), DrawFormattedText(), g_101_stScrViewInfo, g_3_stDefaultStringContext, g_stSecondaryViewBufferBlock, MarkDibDirty(), ReadPersonnelTextField(), ReadTextInput(), SetTextCursor(), and TextContext::viewport.
Referenced by close_behind(), LocateLegacySaveGame(), ReadPersonnelTextField(), RunPilotDatabaseMenu(), and RunPilotSaveLoadMenu().
| int ReadRasterClipPixel | ( | RasterClip * | clip, |
| int | x, | ||
| int | y ) |
References ReadRasterClipPixel().
Referenced by GetViewportPixel(), and ReadRasterClipPixel().
Definition at line 203 of file replay.c.
References CANNED_SCENE_SNAPSHOT_BYTES, CloseDataFile(), g_4_nCannedSceneFileOffset, g_dwCannedSceneSnapshotStart, g_szCannedSceneTapeFile, OpenDataFileOrDie(), ReadDataFileAtOffset(), ReadTapeInitialState(), and ReportFatalErrorCode().
Referenced by ReadTapeInitialState(), and UpdateShipTurretGuns().
| short ReadTextInput | ( | char * | destination, |
| short | maximumLength, | ||
| volatile short | mode, | ||
| volatile short | allowPathSeparators ) |
Definition at line 223 of file optmenu.c.
References TextContext::backgroundColour, Viewport::bottom, ClearViewport(), TextContext::cursorX, TextContext::cursorY, DIBslamReal(), DosStrcpy(), DosStrlen(), DrawFormattedText(), DrawTextInputCursor(), EraseCharacterAfterTextCursor(), EraseLastTextInputCharacter(), TextContext::font, g_29_pCurrentTextContext, g_bRewritePacketExtensions, Viewport::left, MarkDibDirty(), MeasureTextPixelWidthClamped(), ReadTextInput(), ReadWord(), Viewport::right, ServiceSoundSystem(), SetTextCursor(), TextContext::text, Viewport::top, TextContext::viewport, and WaitForQueuedInputPress().
Referenced by close_behind(), ReadPersonnelTextField(), and ReadTextInput().
| short ReadWord | ( | unsigned short * | p | ) |
Definition at line 210 of file eventmgr.c.
References ReadWord().
Referenced by ClearTextInputCharacter(), EraseLastTextInputCharacter(), intelligence_events(), ReadTextInput(), and ReadWord().
| short real_crash_time | ( | short | obj, |
| short | other ) |
Definition at line 76 of file logic.c.
References AddFixedVectors(), ComputeVectorDelta(), DivideFixed(), FixedToShortSaturating(), g_aShipPosition, g_aShipVelocity, g_asObjectCollisionRadius, MaxShort(), real_crash_time(), ScaleFixedVector(), and Vector_magnitude().
Referenced by crash_time(), DrawTextAt(), and real_crash_time().
| short real_velocity | ( | short | obj | ) |
Definition at line 705 of file ship.c.
References FixedToShortSaturating(), g_aShipVelocity, real_velocity(), and Vector_magnitude().
Referenced by DrawTextAt(), fire(), imperial_formation(), make_shard(), manage_hazard(), Mfish_hook(), normal_speed(), real_velocity(), SpawnFlakBurst(), and update_hazards().
| void real_vid_transmit | ( | short | obj, |
| short | message ) |
Definition at line 510 of file comm.c.
References DismissHudMessageIfShowing(), DrawSpriteDefault(), ExpandCommMessageTokens(), g_19_nCommPortraitAnimationTickWord, g_4_stRightVduView, g_acShipPortrait, g_apShipMissionRecord, g_asShipIdentified, g_bCommSpeechPlaying, g_bSpeechEnabledFlag, g_bVideoImagesSuppressed, g_cDarkGreenColour, g_nCommDeathSequenceFrame, g_nCommMessageIndex, g_nCommPortraitIndex, g_nCommSpeakerObject, g_nCommSpeakerRating, g_nDigiSampleBytes, g_nLoadedCommPortraitPilot, g_pCommPortraitResource, g_szCommMessageTextText, GetNamedPacketSize(), Viewport::left, LoadAndPlaySpeechPacket(), LoadCommPortraitResources(), LoadPacketIntoBuffer(), malf_noise(), MeasureMessageWidth(), push_mode(), real_vid_transmit(), ShowCentredPrompt(), and Viewport::top.
Referenced by npc_communication(), real_vid_transmit(), UpdateShipTurretGuns(), and vid_equiv().
| short rear_sphere | ( | void | ) |
Definition at line 279 of file fields.c.
References find_ratio(), g_nHazardReferenceSpeed, and rear_sphere().
Referenced by ok_hazard_spot(), and rear_sphere().
| void recalc_max_velocity | ( | short | ship | ) |
Definition at line 28 of file geom.c.
References celerate(), g_acShipIonDriveDamage, g_anShipFuel, g_asShipMaximumVelocity, get_ship_max_velocity(), and recalc_max_velocity().
Referenced by ApplyAlternateShipType(), BeginShipCloak(), damage_ion_drive(), drain_fuel(), recalc_max_velocity(), set_objects_data(), and Set_up_ship_info().
| void RecordCannedSceneBriefingCharacter | ( | signed char | character, |
| signed char | pose, | ||
| short | animationFrame ) |
Definition at line 227 of file taperec.c.
References CannedSceneBriefingCharacterRecord::animationFrame, CannedSceneBriefingCharacterRecord::character, CheckCannedSceneBufferCapacity(), CannedSceneBriefingCharacterRecord::endMarker, CannedSceneBriefingCharacterRecord::frame, g_3_nCannedSceneWriteIndex, g_78_bHighMemoryBuffersSetState, g_dwHighMemoryParagraphValue, g_nCannedSceneMode, g_nSpaceFrame, g_pHighMemoryBlockA, IdentityDword(), CannedSceneBriefingCharacterRecord::nextOffset, CannedSceneBriefingCharacterRecord::opcode, CannedSceneBriefingCharacterRecord::pose, and RecordCannedSceneBriefingCharacter().
Referenced by DosMemmove(), RecordCannedSceneBriefingCharacter(), and sound_effect().
| void RecordCannedSceneObjectEvent | ( | short | obj, |
| int | event ) |
Definition at line 176 of file taperec.c.
References CheckCannedSceneBufferCapacity(), CannedSceneObjectEventRecord::counter, CannedSceneObjectEventRecord::endMarker, CannedSceneObjectEventRecord::event, CannedSceneObjectEventRecord::frame, g_3_nCannedSceneWriteIndex, g_78_bHighMemoryBuffersSetState, g_acObjectOwner, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asObjectScale, g_asObjectType, g_dwHighMemoryParagraphValue, g_nCannedSceneMode, g_nSpaceFrame, g_pHighMemoryBlockA, IdentityDword(), LogMemoryUsage(), CannedSceneObjectEventRecord::nextOffset, CannedSceneObjectEventRecord::object, CannedSceneObjectEventRecord::objectType, CannedSceneObjectEventRecord::opcode, CannedSceneObjectEventRecord::owner, CannedSceneObjectEventRecord::position, RecordCannedSceneObjectEvent(), CannedSceneObjectEventRecord::scale, and CannedSceneObjectEventRecord::velocity.
Referenced by approach(), capital_ship_strike_mission(), Create_explosion_debris(), Create_ship_hit_debris(), Explosion(), fire_flack(), fire_weapon(), FireTargetCameraGuns(), house_keep_objects(), make_hazard(), make_shard(), object_collision(), onboard_explosion(), RecordCannedSceneObjectEvent(), remove_hazard(), ShipExplosion(), SpawnCapitalFlakProjectile(), SpawnMissionEjectionPod(), unwarp(), UpdateShipTurretGuns(), UpdateShipTurretGuns(), and warp().
| void RecordCannedSceneObjectState | ( | short | obj | ) |
Definition at line 115 of file taperec.c.
References CheckCannedSceneBufferCapacity(), CannedSceneObjectStateRecord::endMarker, equ_vector(), CannedSceneObjectStateRecord::forward, CannedSceneObjectStateRecord::frame, g_1_asCannedSceneFrameStarts, g_3_nCannedSceneWriteIndex, g_78_bHighMemoryBuffersSetState, g_aShipForwardVector, g_aShipUpVector, g_aShipVelocity, g_dwHighMemoryParagraphValue, g_nCannedSceneMode, g_nCannedSceneStateRecordMarker, g_nSpaceFrame, g_pHighMemoryBlockA, GetCannedSceneObjectMode(), IdentityDword(), LogMemoryUsage(), CannedSceneObjectStateRecord::mode, CannedSceneObjectStateRecord::nextOffset, CannedSceneObjectStateRecord::object, CannedSceneObjectStateRecord::opcode, RecordCannedSceneObjectState(), CannedSceneObjectStateRecord::up, and CannedSceneObjectStateRecord::velocity.
Referenced by RecordCannedSceneObjectState(), update_objects_in_space(), and UpdateShipTurretGuns().
| void RecordMusicCommandHook | ( | int | track, |
| int | command, | ||
| short | enabled ) |
Definition at line 255 of file taperec.c.
References CheckCannedSceneBufferCapacity(), CannedSceneMusicCommandRecord::command, CannedSceneMusicCommandRecord::enabled, CannedSceneMusicCommandRecord::endMarker, CannedSceneMusicCommandRecord::frame, g_3_nCannedSceneWriteIndex, g_78_bHighMemoryBuffersSetState, g_dwHighMemoryParagraphValue, g_nCannedSceneMode, g_nSpaceFrame, g_pHighMemoryBlockA, IdentityDword(), CannedSceneMusicCommandRecord::nextOffset, CannedSceneMusicCommandRecord::opcode, RecordMusicCommandHook(), and CannedSceneMusicCommandRecord::track.
Referenced by ProcessMusicScriptCommand(), RecordMusicCommandHook(), and UpdateShipTurretGuns().
| void rectangular_to_spherical | ( | const FixedVector * | rectangular, |
| SphericalVector * | spherical ) |
Definition at line 289 of file geom.c.
References ArcCos(), DivideFixed(), SphericalVector::pitch, PlanarMagnitude(), SphericalVector::radius, rectangular_to_spherical(), Vector_magnitude(), FixedVector::x, FixedVector::y, SphericalVector::yaw, and FixedVector::z.
Referenced by draw_3d_scanner(), get_right_shape(), object_collision(), rectangular_to_spherical(), set_background_objects_rotation(), set_objective_range(), and set_ship_rotation_goals().
| void RefreshCampaignChalkboardScreen | ( | short | cockpitVariant | ) |
Definition at line 180 of file personnel.c.
References DisableMouseCursorDrawing(), DrawCampaignChalkboardFrame(), CampaignGlobals::field_08, CampaignGlobals::field_0a, g_pCampaignGlobals, RefreshCampaignChalkboardScreen(), and void().
Referenced by RefreshCampaignChalkboardScreen(), and RunCampaignChalkboardMenu().
Definition at line 329 of file comm.c.
References BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), g_cPendingCommMenuAction, g_nCommMenuReuseMode, InvalidateVduMode(), IsCommChoiceMenuOpen(), and RefreshCommunicationMenu().
Referenced by Chosen_communicate_option(), HandleCommunicationMenuRequest(), RefreshCommunicationMenu(), SelectCockpitVduMode(), update_VDUs(), and UpdateShipTurretGuns().
Definition at line 283 of file main.c.
References CopyViewportContents(), DIBslamReal(), g_101_stScrViewInfo, g_nShowMemoryStatus, g_stSecondaryViewBufferBlock, MarkDibDirty(), RefreshMemoryStatusOverlay(), ShowMemoryStatusDebug(), and WaitForVerticalBlankThunk().
Referenced by AnimateTitleOrchestra(), close_behind(), DrawCampaignChalkboardFrame(), InitializeCampaignChalkboardScreen(), LocateLegacySaveGame(), PlayTitleConductorCue(), PollCampaignChalkboardMenu(), PushTitleOrchestraAway(), RefreshMemoryStatusOverlay(), RevealTitleLogo(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleMenuInputLoop(), RunTitleScreen(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), ShowNoTransferablePilots(), and ShowVictoryScreen().
Definition at line 1165 of file eventmgr.c.
References CaptureMouseCursorBackground(), DIBupdate(), DrawMouseCursor(), g_138_nCursorDirtyRightValue, g_146_nInputCursorDirtyTop, g_148_nPointerDirtyLeft, g_15_nPointerDirtyBottom, g_26_bPointerDirtyValue, g_6_bCurrentInputCursorBackgroundCapturedState, RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
Referenced by DosMemmove(), RefreshMouseCursorDisplay(), and ThrottleFrameAndDrawFps().
Definition at line 251 of file mission.c.
References find_ships_sphere(), g_69_aMissionObjectiveSources, g_aMissionShips, g_bBriefingMapActive, MissionObjectiveSource::index, MissionShipRecord::navPoint, RefreshObjectiveShipNavPoints(), and MissionObjectiveSource::type.
Referenced by Build_objective_list(), close_behind(), and RefreshObjectiveShipNavPoints().
| LONG RegistryQueryValue | ( | HKEY | key, |
| LPCSTR | name, | ||
| DWORD | type, | ||
| LPBYTE | data, | ||
| DWORD | size ) |
Definition at line 421 of file sound.c.
References RegistryQueryValue().
Referenced by LoadVolumeSettingsFromRegistry(), RegistryQueryValue(), and UpdateShipTurretGuns().
| void RegistryStoreValue | ( | HKEY | key, |
| LPCSTR | name, | ||
| DWORD | type, | ||
| const BYTE * | data, | ||
| DWORD | size ) |
Definition at line 428 of file sound.c.
References RegistryStoreValue().
Referenced by LoadVolumeSettingsFromRegistry(), RegistryStoreValue(), SaveVolumeSettingsToRegistry(), and UpdateShipTurretGuns().
| short regulate_turn | ( | short | obj | ) |
Definition at line 173 of file smart.c.
References CountEnemyFighters(), g_abShipTurn, g_acTurnInterval, g_acTurnRegulator, g_aeObjectClass, g_aeSpecialManeuver, g_asShipSide, g_bWingmanTurnRateUnlocked, g_nSpaceFrame, g_nYourWingman, GetAdaptiveTurnRate(), handle_collisions(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, regulate_turn(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by capital_ship_intelligence(), regulate_turn(), ship_intelligence(), and UpdateShipTurretGuns().
Definition at line 357 of file mission.c.
References FreePacketAndClear(), g_aeObjectClass, g_apObjectShape, g_asLoadedShipViewFrame, g_bExpandedShipGraphicsEnabled, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, and release_all_capital_ship_shapes().
Referenced by free_all_slots(), load_all_slots(), new_sphere_shapes(), and release_all_capital_ship_shapes().
| void release_capital_ship_shapes | ( | short | resourceType | ) |
Definition at line 373 of file mission.c.
References FreePacketAndClear(), g_acObjectType, g_aObjectTypeData, g_apObjectShape, g_asLoadedShipViewFrame, g_bExpandedShipGraphicsEnabled, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, and release_capital_ship_shapes().
Referenced by free_ship(), and release_capital_ship_shapes().
| void ReleaseActiveCutscenePacket | ( | CutsceneResourceTable * | resources, |
| void * | packet ) |
Definition at line 1617 of file gameflow.c.
References CutsceneResourceTable::count, FindActiveCutsceneFileResources(), g_nActiveCutsceneResourceLevel, g_pMemoryLogFile, GetAvailableMainMemory(), CutsceneResourceTable::loadedPackets, ReleaseActiveCutscenePacket(), and ReleasePacketSlot().
Referenced by DosMemmove(), ReleaseActiveCutscenePacket(), ReleaseCutsceneFontPacket(), and ReleaseCutsceneSpriteShape().
Definition at line 2406 of file eventmgr.c.
References g_37_stPersonnelMousePointerState, ReleaseApplicationScratchBuffer(), ReleasePacketHandle(), and MouseCursorState::scratchBuffer.
Referenced by close_behind(), ReleaseApplicationScratchBuffer(), and WinMain().
| void ReleaseContiguousPaletteEntries | ( | short | firstEntry | ) |
Definition at line 46 of file palalloc.c.
References g_awPaletteEntryAllocation, and ReleaseContiguousPaletteEntries().
Referenced by ReleaseContiguousPaletteEntries(), and UpdateShipTurretGuns().
| void ReleaseCutsceneFileResource | ( | short | owner, |
| CutsceneResourceTable ** | head ) |
Definition at line 731 of file iffload.c.
References CutsceneResourceTable::count, CutsceneResourceTable::loadedPackets, CutsceneResourceTable::next, CutsceneResourceTable::owner, ReleaseCutsceneFileResource(), ReleaseLoadedCutsceneResource(), ReleasePacketHandle(), and ReleasePacketSlot().
Referenced by ReleaseCutsceneFileResource(), ReleaseCutsceneResourceLevel(), RunLoadedCutscene(), and UpdateShipTurretGuns().
| void ReleaseCutsceneFileResourceExceptPacket | ( | short | owner, |
| CutsceneResourceTable ** | head, | ||
| void * | retainedPacket ) |
Definition at line 709 of file iffload.c.
References CutsceneResourceTable::count, CutsceneResourceTable::loadedPackets, CutsceneResourceTable::next, CutsceneResourceTable::owner, ReleaseCutsceneFileResourceExceptPacket(), ReleasePacketHandle(), and ReleasePacketSlot().
Referenced by ReleaseCutsceneFileResourceExceptPacket(), and UpdateShipTurretGuns().
Definition at line 1645 of file gameflow.c.
References TextContext::font, g_1_nCutsceneFontOwnerNumber, g_2_stCutsceneMessageCtxInfo, g_nActiveCutsceneResourceLevel, g_pCutsceneFontResources, ReleaseActiveCutscenePacket(), and ReleaseCutsceneFontPacket().
Referenced by DosMemmove(), ReleaseCutsceneFontPacket(), and RunCutsceneScript().
| void ReleaseCutsceneMusicNodes | ( | CutsceneMusicNode ** | head, |
| short | resourceIndex ) |
Definition at line 746 of file gameflow.c.
References FindActiveCutsceneFileResources(), g_nMusicDriverMode, g_pCutsceneMusicResources, g_pMemoryLogFile, GetOriginalFreeMemory(), HasCutsceneMusicNode(), CutsceneMusicNode::next, CutsceneMusicNode::previous, ReleaseCutsceneMusicNodes(), ReleaseLoadedCutsceneResource(), and CutsceneMusicNode::resourceIndex.
Referenced by DosMemmove(), ReleaseCutsceneMusicNodes(), and RunCutsceneScript().
| void ReleaseCutsceneObjectResource | ( | short | owner, |
| CutsceneObjectResourceList ** | head, | ||
| int | formType ) |
Definition at line 641 of file iffload.c.
References g_apCutscenePlanes, g_apCutsceneScenes, g_apCutsceneSequences, g_apSceneObjects, CutscenePlane::locals, CutsceneScene::locals, CutsceneSequence::locals, CutsceneObjectResourceList::next, CutsceneObjectResourceList::owner, CutsceneSequence::planeIndices, ReleaseCutsceneObjectResource(), ReleaseCutsceneObjectResourceData(), ReleasePacketHandle(), ReleasePacketSlot(), CutsceneScene::sequenceIndices, and CutscenePlane::spriteIndices.
Referenced by ReleaseCutsceneObjectResource(), ReleaseCutsceneResourceLevel(), and UpdateShipTurretGuns().
| unsigned char ReleaseCutsceneObjectResourceData | ( | CutsceneObjectResourceList * | resource | ) |
Definition at line 603 of file iffload.c.
References CutsceneObjectResourceList::dataEntries, CutsceneObjectResourceList::dataRuntimeIndices, CutsceneObjectResourceList::dataSymbolIndices, CutsceneObjectResourceList::dataSymbols, ReleaseCutsceneObjectResourceData(), ReleasePacketSlot(), CutsceneObjectResourceList::scriptRuntimeIndices, CutsceneObjectResourceList::scripts, CutsceneObjectResourceList::scriptSymbolIndices, and CutsceneObjectResourceList::scriptSymbols.
Referenced by ReleaseCutsceneObjectResource(), ReleaseCutsceneObjectResourceData(), and UpdateShipTurretGuns().
| void ReleaseCutsceneResourceLevel | ( | short | owner | ) |
Definition at line 763 of file iffload.c.
References g_pCutsceneFilmResources, g_pCutsceneFontResources, g_pCutsceneFxResources, g_pCutsceneMouseResources, g_pCutsceneMusicResources, g_pCutscenePaletteResources, g_pCutscenePlaneResources, g_pCutsceneSceneResources, g_pCutsceneSequenceResources, g_pCutsceneShapeResources, g_pCutsceneSpeechResources, g_pCutsceneSpriteResources, g_pCutsceneTextResources, ReleaseCutsceneFileResource(), ReleaseCutsceneObjectResource(), ReleaseCutsceneResourceLevel(), and ReleaseCutsceneTextResource().
Referenced by ReleaseCutsceneResourceLevel(), RunCutsceneScript(), RunLoadedCutscene(), and UpdateShipTurretGuns().
| void ReleaseCutsceneSoundEffects | ( | short | resourceIndex | ) |
Definition at line 598 of file gameflow.c.
References FlushSoundEffect(), g_nMusicDriverMode, g_pCutsceneSoundEffects, g_pMemoryLogFile, GetOriginalFreeMemory(), CutsceneSoundEffect::next, ReleaseCutsceneSoundEffects(), CutsceneSoundEffect::resourceIndex, CutsceneSoundEffect::sound, and void().
Referenced by DosMemmove(), ReleaseCutsceneSoundEffects(), RunCutsceneScript(), and RunLoadedCutscene().
Definition at line 906 of file gameflow.c.
References g_12_apszMovieSpeechFiles, g_19_asCutsceneSpeechSectionsList, g_1_asCutsceneSpeechChannelsTable, g_3_apSceneSpeechPacketsList, ReleaseCutsceneSpeechPackets(), and ReleasePacketSlot().
Referenced by DosMemmove(), ReleaseCutsceneSpeechPackets(), RunCutsceneScript(), and RunLoadedCutscene().
| void ReleaseCutsceneSpriteShape | ( | SceneFlicObject * | sprite | ) |
Definition at line 3623 of file gameflow.c.
References g_8_nSavedCutsceneResourceOwnerValue, g_apSceneObjects, g_nActiveCutsceneResourceLevel, g_pCutsceneShapeResources, SceneFlicObject::owner, ReleaseActiveCutscenePacket(), ReleaseCutsceneSpriteShape(), and SceneFlicObject::shape.
Referenced by CopyCutsceneSpriteDisplay(), DosMemmove(), ReleaseCutsceneSpriteShape(), and RunCutsceneScript().
| void ReleaseCutsceneTextResource | ( | short | owner, |
| CutsceneTextResource ** | head ) |
Definition at line 749 of file iffload.c.
References CutsceneTextResource::entries, CutsceneTextResource::next, CutsceneTextResource::owner, ReleaseCutsceneTextResource(), ReleasePacketHandle(), and ReleasePacketSlot().
Referenced by ReleaseCutsceneResourceLevel(), ReleaseCutsceneTextResource(), and UpdateShipTurretGuns().
Definition at line 1707 of file gameflow.c.
References free_viewport(), g_cCutsceneVideoMode, GetDIBPixelBuffer(), Viewport::pixels, and ReleaseCutsceneViewport().
Referenced by DosMemmove(), ReleaseCutsceneViewport(), RunCutsceneScript(), and RunLoadedCutscene().
Definition at line 183 of file sound.c.
References g_pActiveSoundHead, ix_sound_is_playing(), ix_system_delete_sound(), ActiveSoundEntry::next, ReleaseFinishedSoundEntries(), RemoveActiveSoundEntry(), and ActiveSoundEntry::sound.
Referenced by PlaySnowStaticSound(), playWAVE(), ReleaseFinishedSoundEntries(), and UpdateShipTurretGuns().
| void ReleaseInputEvent | ( | InputEvent * | event | ) |
Definition at line 641 of file eventmgr.c.
References g_3_aInputEventArray, g_3_anCurrentInputEventEntryAllocation, and ReleaseInputEvent().
Referenced by DosMemmove(), ReleaseInputEvent(), ReleaseInputEventQueue(), RemoveInputEvent(), and RetainInputEventsOfType().
Definition at line 734 of file eventmgr.c.
References g_pInputEventHead, g_pInputEventTail, InputEvent::next, ReleaseInputEvent(), and ReleaseInputEventQueue().
Referenced by DosMemmove(), FlushInputEvents(), GetNextInputEvent(), PollSceneHotspotInput(), QueueInputEvent(), ReleaseInputEventQueue(), RunTitleMenuInputLoop(), and WaitForAnyInputPress().
| void ReleaseLoadedCutsceneResource | ( | CutsceneResourceTable * | resources, |
| short | index ) |
Definition at line 3649 of file gameflow.c.
References g_apSceneObjects, g_nActiveCutsceneResourceLevel, g_pMemoryLogFile, GetAvailableMainMemory(), CutsceneResourceTable::loadedPackets, ReleaseLoadedCutsceneResource(), ReleasePacketSlot(), and SceneFlicObject::shape.
Referenced by DosMemmove(), ReleaseCutsceneFileResource(), ReleaseCutsceneMusicNodes(), ReleaseLoadedCutsceneResource(), and RunCutsceneScript().
Definition at line 208 of file optmenu.c.
References DIBslamReal(), g_pModalTextPanel, MarkDibDirty(), ReleaseModalTextPanel(), ReleasePacketHandle(), and RestoreModalTextPanel().
Referenced by CalibrateJoystickInteractive(), ReleaseModalTextPanel(), ShowModalMessage(), and ShowOnScreenMessage().
| void ReleaseMusicTrack | ( | int | track | ) |
Definition at line 976 of file fltsetup.c.
References FreePacketAndClear(), g_98_nMemConfiguration, g_aLimitedMusicBuffers, g_aTuneResources, g_nMusicDriverMode, and ReleaseMusicTrack().
Referenced by close_behind(), ReleaseMusicTrack(), RunCampaignChalkboardMenu(), and RunTitleScreen().
| int ReleaseNearHeapBlock | ( | int | descriptorAddress | ) |
Definition at line 39 of file nearheap.c.
References DosNearPtrToFar(), g_1_nNearHeapBase, g_nNearArenaSize, g_nNearHeapFirstDescriptor, MergeAdjacentNearHeapBlocks(), ReleaseNearHeapBlock(), and NearHeapBlock::sizeAndFlags.
Referenced by FreeNearHeapBlock(), PurgeNearHeapBlocks(), and ReleaseNearHeapBlock().
Definition at line 108 of file memapi.c.
References FreeGuardedAllocation(), g_apPacketReferenceGroups, MapPacketHandleToBlock(), and ReleasePacketHandle().
Referenced by AllocateViewport(), BriefingMap_DisplayMap(), CollectActivePaletteIndices(), FadeViewportPaletteToColour(), free_3Space(), free_cockpit(), free_ship(), free_viewport(), FreeDefaultMemory(), FreePacketAndClear(), InflightComputer(), initialize_cockpit(), InitializeCampaignChalkboardScreen(), InitializeSoundBlaster(), LoadMissionData(), PanToScreen(), PrepareShapeRLEData(), ReleaseApplicationScratchBuffer(), ReleaseCutsceneFileResource(), ReleaseCutsceneFileResourceExceptPacket(), ReleaseCutsceneObjectResource(), ReleaseCutsceneTextResource(), ReleaseModalTextPanel(), ReleasePacketHandle(), ReleasePacketSlot(), ReleaseSpaceflightResources(), ReleaseTextFont(), RunCampaignGameLoop(), RunCampaignScript(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), ShowModalTextPanel(), ShutdownEventManager(), StepPaletteTransition(), Title_Sequence(), and UpdateShipTurretGuns().
Definition at line 23 of file iffload.c.
References ReleasePacketHandle(), and ReleasePacketSlot().
Referenced by AdvanceSceneFlicStream(), BriefingMap_DisplayMap(), ConsumeCutscenePalettePacket(), DecodeCutsceneFileResource(), ejection_sequence(), FindSceneHotspotAtPosition(), HasSavedPilotCampaign(), InitializeNewPilotCampaign(), LoadCutsceneSpeechSlot(), LoadSceneHotspotBoundsForSelection(), LoadTemporaryCampaignGlobals(), OpenDiskDataFile(), ParseCutsceneContainer(), PollSceneHotspotInput(), ReleaseActiveCutscenePacket(), ReleaseCutsceneFileResource(), ReleaseCutsceneFileResourceExceptPacket(), ReleaseCutsceneObjectResource(), ReleaseCutsceneObjectResourceData(), ReleaseCutsceneSpeechPackets(), ReleaseCutsceneTextResource(), ReleaseLoadedCutsceneResource(), ReleasePacketSlot(), ReleaseSceneFlicPackets(), ReleaseSceneMusicPacket(), RouteCutsceneViewportToDisplay(), RunCampaignGameLoop(), RunCutsceneScript(), RunLoadedCutscene(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SaveAndFreeTemporaryCampaignGlobals(), and WaitForSceneAdvance().
Definition at line 1478 of file gameflow.c.
References SceneFlicObject::drawType, g_apSceneObjects, g_aSceneFlicCopyTable, ReleasePacketSlot(), ReleaseSceneFlicPackets(), SceneFlicCacheEntry::shape, and SceneFlicObject::shape.
Referenced by AdvanceSceneFlicStream(), DosMemmove(), ReleaseSceneFlicPackets(), RunCutsceneScript(), and RunLoadedCutscene().
Definition at line 894 of file gameflow.c.
References g_4_dwSceneMusicMode, g_aTuneResources, g_pSceneMusicPacket, MusicResource::packet, ReleasePacketSlot(), ReleaseSceneMusicPacket(), and StopMusic().
Referenced by ejection_sequence(), ReleaseSceneMusicPacket(), RunCampaignGameLoop(), RunLoadedCutscene(), RunSpaceFlight(), and UpdateShipTurretGuns().
Definition at line 114 of file campaign.c.
References free_3Space(), free_all_slots(), free_cockpit(), g_36_apTextGlyphs, g_bCockpitResourcesActive, g_nShowMemoryStatus, ReleasePacketHandle(), ReleaseSpaceflightResources(), remove_nav_pointer(), ShowMemoryStatusDebug(), and WaitForAnyInputPress().
Referenced by ejection_sequence(), ReleaseSpaceflightResources(), and RunCampaignGameLoop().
| unsigned int ReleaseStaleNavTarget | ( | void | ) |
Definition at line 1769 of file main.c.
References FindNearestNavPoint(), g_nCurrentNavPoint, ReleaseStaleNavTarget(), and set_up_action_sphere().
Referenced by auto_pilot_sequence(), house_keep(), ReleaseStaleNavTarget(), and UpdateShipTurretGuns().
| void ReleaseTextFont | ( | short | fontIndex | ) |
Definition at line 274 of file disk.c.
References g_36_apTextGlyphs, ReleasePacketHandle(), and ReleaseTextFont().
Referenced by CalibrateJoystickInteractive(), free_cockpit(), and ReleaseTextFont().
Definition at line 881 of file fltsetup.c.
References remove_all_3d_objects(), and remove_object().
Referenced by close_behind(), init_3Space_objects(), and remove_all_3d_objects().
Definition at line 83 of file fields.c.
References g_abHazardObjects, g_pActiveHazardField, remove_all_hazards(), and remove_hazard().
Referenced by check_hazards(), free_3Space(), remove_all_hazards(), set_up_action_sphere(), and start_hazard_field().
| void remove_hazard | ( | signed char | hazard | ) |
Definition at line 74 of file fields.c.
References g_nActiveHazards, MaxShort(), RecordCannedSceneObjectEvent(), remove_hazard(), and remove_object().
Referenced by manage_hazard(), remove_all_hazards(), and remove_hazard().
| 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 742 of file mission.c.
References remove_nav_point_objects(), and remove_object().
Referenced by remove_nav_point_objects().
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 remove_object | ( | short | obj | ) |
Definition at line 858 of file geom.c.
References clear_alert(), FreePacketAndClear(), g_abHazardObjects, g_acShipPendingMessage, g_acShipPortrait, g_aeObjectClass, g_apObjectShape, g_asLoadedShipViewFrame, g_asObjectDistance, g_asObjectScreenX, g_asObjectType, g_asShipIntelResourceKey, g_asShipIntelSlot, g_asShipManeuver, g_asShipSide, g_nNavPointerObject, g_nYourWingman, MANEUVER_NONE, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, remove_object(), and SIDE_NEUTRAL.
Referenced by animate_shape(), ApplyCannedSceneObjectEventRecord(), auto_pilot_sequence(), ClearTargetCameraView(), ClearTransientObjectsForEjection(), coming_home(), Create_explosion_debris(), cruise_home(), death_sequence(), ejection_sequence(), free_ship(), FreeConstellationObject(), house_keep_objects(), object_collision(), remove_all_3d_objects(), remove_hazard(), remove_nav_point_objects(), remove_nav_pointer(), remove_object(), run_away(), set_up_action_sphere(), set_up_next_wave(), and UpdateTargetCameraObject().
| void remove_weapon | ( | short | obj, |
| short | weapon ) |
Definition at line 283 of file ship.c.
References any_selected(), g_116_aWeaponDisplayPositions, g_aObjectTypeData, g_aShipWeapons, g_nSelectedReleaseWeaponIndex, get_mode(), InvalidateVduMode(), OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, remove_weapon(), select_new_gun(), and select_new_release_weapon().
Referenced by DrawTextAt(), fire_weapon(), internal_damage(), remove_weapon(), RemovePlayerReleaseWeapon(), and your_internal_damage().
| void RemoveActiveSoundEntry | ( | ActiveSoundEntry * | entry | ) |
Definition at line 148 of file sound.c.
References g_pActiveSoundHead, g_pActiveSoundTail, ActiveSoundEntry::next, and RemoveActiveSoundEntry().
Referenced by ReleaseFinishedSoundEntries(), RemoveActiveSoundEntry(), StopSoundsUsingWave(), and UpdateShipTurretGuns().
| short RemoveCutsceneMemberIndex | ( | short | count, |
| unsigned char * | indices, | ||
| signed char | index ) |
Definition at line 440 of file gameflow.c.
References DosMemmove(), and RemoveCutsceneMemberIndex().
Referenced by DosMemmove(), RemoveCutsceneMemberIndex(), and RunCutsceneScript().
| void RemoveInputEvent | ( | InputEvent * | event | ) |
Definition at line 776 of file eventmgr.c.
References g_pInputEventHead, g_pInputEventTail, InputEvent::next, InputEvent::previous, ReleaseInputEvent(), and RemoveInputEvent().
Referenced by DosMemmove(), GetNextInputEvent(), and RemoveInputEvent().
| 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().
| void RemoveWaveTableEntry | ( | WaveTableEntry * | entry | ) |
Definition at line 89 of file sound.c.
References g_pWaveTableHead, g_pWaveTableTail, WaveTableEntry::name, WaveTableEntry::next, and RemoveWaveTableEntry().
Referenced by RemoveWaveTableEntry(), and UpdateShipTurretGuns().
Definition at line 1705 of file main.c.
References check_message(), ClearHudMessageDisplay(), ClearViewport(), DrawSpaceSceneFrame(), dump_buffer_to_screen(), g_27_stViewScratchInfo, g_cPrimaryViewBufferColour, g_nCockpitDisplayMode, g_nCurrentView, g_pszDisplayedHudMessage, g_pszPendingHudMessage, RenderSpaceViewFrame(), RestoreCockpitExplosionIfVisible(), and RestoreTransientCockpitGraphics().
Referenced by RenderSpaceViewFrame(), RunSpaceFlight(), UpdateShipTurretGuns(), and visit_the_cinema().
| void rendezvous_mission | ( | short | obj | ) |
Definition at line 828 of file brains.c.
References approach_cruise_speed(), approach_full_speed(), attacker_in_range(), CanSetNewShipTurnGoal(), change_mission_type(), check_engage_target(), distance_from_object(), engage(), find_ship_index(), g_aeShipObjective, g_asShipMissionParameter, g_nTargetShip, maneuvering(), MISSION_TYPE_DEFEND, MISSION_TYPE_PATROL, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_REACH_SHIP, point_ship_at_object(), rendezvous_mission(), reset_mission_type(), reset_objective(), and unactive().
Referenced by rendezvous_mission(), and ship_intelligence().
Definition at line 1439 of file ship.c.
References damage_ion_drive(), g_acObjectType, g_acPlayerComponentDamage, g_acShipDamage, g_aObjectTypeData, RandomBelowOrEqual(), repair_internal_damage(), and ReportComponentRepaired().
Referenced by DrawTextAt(), repair_internal_damage(), and update_cockpit().
| void replenish_shields | ( | short | ship | ) |
Definition at line 2949 of file ship.c.
References g_aasShipMaximumShield, g_aasShipShield, g_acObjectType, g_acPlayerComponentDamage, g_aObjectTypeData, g_nSpaceFrame, and replenish_shields().
Referenced by DrawTextAt(), replenish_shields(), and update_objects_in_space().
| void replenish_weapon_energy_bank | ( | short | ship | ) |
Definition at line 2973 of file ship.c.
References g_1_nGunShowEnergyPercent, g_aasShipMaximumShield, g_aasShipShield, g_acPlayerComponentDamage, g_asShipWeaponEnergy, g_nAimCameraMode, g_nSpaceFrame, g_nTargetCameraZoom, HasShipCockpitGunDisplay(), MinShort(), RandomInRange(), and replenish_weapon_energy_bank().
Referenced by DrawTextAt(), replenish_weapon_energy_bank(), and update_objects_in_space().
| short report_kilrathi_rout | ( | int | mode | ) |
Definition at line 214 of file logic.c.
References distance_from_object(), g_aeObjectClass, g_aeShipObjective, g_aeSpecialManeuver, g_asShipMissionType, g_asShipSide, g_nCurrentWave, MISSION_TYPE_ROUT, OBJECT_CLASS_SHIP, OBJECTIVE_DESTROY_SHIP, OBJECTIVE_ENGAGE_ENEMY, ProcessEnemyWaveCompletion(), report_kilrathi_rout(), SIDE_KILRATHI, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by auto_pilot_sequence(), disobey_formation(), DrawTextAt(), gametrack(), new_space_music_changes(), report_kilrathi_rout(), and reset_mission_type().
| short ReportComponentRepaired | ( | short | component, |
| short | minimumDamage ) |
Definition at line 1421 of file ship.c.
References g_acPlayerComponentDamage, g_apszComponentNames, g_cRedColour, ReportComponentRepaired(), and ShowComponentHitHudMessage().
Referenced by DrawTextAt(), repair_internal_damage(), and ReportComponentRepaired().
| void ReportCutscenePacketAllocationFailure | ( | const char * | filename, |
| short | section, | ||
| unsigned int | packetSize ) |
Definition at line 1797 of file gameflow.c.
References FormatCinematicMemoryStatus(), g_cCutsceneVideoMode, and ReportCutscenePacketAllocationFailure().
Referenced by DosMemmove(), LoadCachedCutsceneResource(), and ReportCutscenePacketAllocationFailure().
| void ReportFatalErrorCode | ( | const char * | errorCode | ) |
Definition at line 29 of file message.c.
References FatalErrorAndExit(), g_6_szDefaultTextBufferText, g_pszFatalErrorMessage, LogMemoryStateToFile(), and ReportFatalErrorCode().
Referenced by BarracksScreen(), CheckCannedSceneBufferCapacity(), close_behind(), ejection_sequence(), EMStartUp(), FlushCannedSceneRecordingBuffer(), init_intelligence_data(), InitializeCampaignChalkboardScreen(), InitializeCampaignConstellationState(), InitializeCockpitResources(), InitializeNewPilotCampaign(), InitializeSoundBlaster(), load_ship(), LoadCannedScenePlaybackBuffer(), LoadSelectedPilotCampaign(), OpenDiskDataFile(), PromptToContinueCampaign(), ReadTapeInitialState(), ReportFatalErrorCode(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), and WriteTapeInitialState().
| void ReportFramesSkipped | ( | short | adjustment | ) |
Definition at line 217 of file message.c.
References g_nFrameSkip, MaxShort(), MinShort(), ReportFramesSkipped(), and ShowOnScreenMessage().
Referenced by HandleSpaceFlightControls(), ReportFramesSkipped(), and UpdateShipTurretGuns().
Definition at line 788 of file winmain.c.
References ReportHeapGuardCorruption().
Referenced by FreeGuardedAllocation(), and ReportHeapGuardCorruption().
| void ReportOutOfMemoryAndExit | ( | const char * | resource | ) |
Definition at line 101 of file message.c.
References FatalErrorAndExit(), g_szNotEnoughMemoryMessage, ReportOutOfMemoryAndExit(), and ShowModalMessage().
Referenced by BriefingMap_LoadShapes(), initialize_view_buffer(), ReportOutOfMemoryAndExit(), and UpdateShipTurretGuns().
| void ReportPacketLoadError | ( | void * | packet, |
| char * | fileName, | ||
| short | retry, | ||
| short | section, | ||
| const char * | sourceTag ) |
Definition at line 54 of file disk.c.
References FatalErrorAndExit(), g_6_szDefaultTextBufferText, g_nOriginDevUnlock, g_nPacketError, g_pszPacketAllocateOperation, g_pszPacketLoadErrorFormat, g_pszPacketReadOperation, GetAvailableFarMemory(), GetAvailableFarMemoryByType(), GetAvailableMainMemory(), GetLargestFreeMemoryBlockByType(), GetNamedPacketSize(), LogMemoryUsage(), and ReportPacketLoadError().
Referenced by FetchDiskPacketRetrying(), InitializeConversationViewport(), LoadPacketAllocated(), LoadPacketIntoBuffer(), and ReportPacketLoadError().
| void ReportSpaceFlightMaxFps | ( | float | adjustment | ) |
Definition at line 176 of file dib.cpp.
References g_18_szSpaceFlightBestFpsMessage, g_fSpaceFlightFrameRate, g_nFrameTimingMode, ReportSpaceFlightMaxFps(), SetHudMessageText(), and SetSpaceFlightFrameTiming().
Referenced by MainWindowProc(), ReportSpaceFlightMaxFps(), and UpdateShipTurretGuns().
Definition at line 2863 of file ship.c.
References CosFixed(), g_acObjectOwner, g_aeObjectClass, g_asObjectDistance, g_asObjectFlip, g_asObjectScale, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectScreenX, g_asObjectScreenY, g_asObjectType, MultiplyFixed(), OBJECT_CLASS_FIXED_OBJECT, reposition_fixed_child_objects(), SinFixed(), and SPACE_LAST_MOVING_OBJECT.
Referenced by DrawSpaceSceneFrame(), DrawTextAt(), and reposition_fixed_child_objects().
| void request | ( | short | requester, |
| short | ship, | ||
| short | command ) |
Definition at line 182 of file orders.c.
References allow_engage(), alter_objective(), CanPlayerLand(), CanShipWeaponDamageTarget(), cleanup_objectives(), disallow_engage(), disobey_formation(), ejection_sequence(), engage(), g_6_nHomeOperationShipIndexValue, g_acShipTarget, g_aeObjectClass, g_aeShipObjective, g_aeSpecialManeuver, g_asPilotLevel, g_asShipIdentified, g_asShipMissionIndex, g_asShipSide, g_bDisplayWingmanTargetData, g_bEjectionAwaitingCommCommand, g_bEjectionSequencePending, g_bEngageAllowed, g_bLandingCommRequestPending, g_bRadioSilence, g_nAutoEngageTimer, g_nEnemyTauntCommandBase, g_nYourWingman, g_ucPendingEjectionTransition, IsEngagementTargetDisallowed(), IsShipRouting(), OBJECT_CLASS_SHIP, OBJECTIVE_BREAK_FORMATION, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOLD_FORMATION, RandomBelow(), request(), reset_objective(), send_message(), SendWingmanCommandAcknowledgement(), ShipHasTorpedo(), ShouldWingmanAcceptRoutCommand(), SIDE_KILRATHI, SPECIAL_MANEUVER_UNKNOWN_9, and try2rout().
Referenced by Chosen_communicate_option(), IssueQuickCommCommand(), request(), and UpdateShipTurretGuns().
| short ReserveContiguousPaletteEntries | ( | short | entryCount | ) |
Definition at line 19 of file palalloc.c.
References g_awPaletteEntryAllocation, and ReserveContiguousPaletteEntries().
Referenced by ReserveContiguousPaletteEntries(), and UpdateShipTurretGuns().
| void ReserveNavMapArea | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | height ) |
Definition at line 317 of file nav.c.
References ShortRect::bottom, g_aNavMapExclusionRects, g_nNavMapReservedAreaCount, ShortRect::left, ReserveNavMapArea(), ShortRect::right, and ShortRect::top.
Referenced by DrawNavCrossMarker(), DrawNavRectangleMarker(), DrawNavSquareMarker(), DrawNavTriangleMarker(), PlaceNavMapLabel(), and ReserveNavMapArea().
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().
| void reset_maneuver | ( | short | ship, |
| short | maneuver ) |
Definition at line 476 of file logic.c.
References g_acShipSequence, g_asShipCount, g_asShipManeuver, and reset_maneuver().
Referenced by alter_tactic(), DrawTextAt(), house_keep_objects(), maneuver_complete(), Mkill_missile(), Msit_n_spin(), process_maneuver_node(), reset_maneuver(), reset_tactic(), ResolveObjectDestruction(), and try2reset_maneuver().
| void reset_mission_type | ( | short | obj, |
| short | missionType ) |
Definition at line 426 of file logic.c.
References g_asShipMissionType, g_asShipSide, MISSION_TYPE_ROUT, OBJECTIVE_NONE, report_kilrathi_rout(), reset_mission_type(), reset_objective(), and SIDE_KILRATHI.
Referenced by arrive_from_warp(), change_mission_type(), check_goal(), DrawTextAt(), rendezvous_mission(), reset_mission_type(), Set_up_ship_info(), and try2rout().
| unsigned int reset_objective | ( | short | ship, |
| short | objective ) |
Definition at line 445 of file logic.c.
References g_aeShipObjective, reset_objective(), reset_tactic(), steady_object(), and TACTIC_NONE.
Referenced by clean_up_cockpit(), defend_mission(), DrawTextAt(), engage(), escort_mission(), fail(), imperial_wingman(), init_formation_burst(), intelligence_events(), kilrathi_wingman(), rendezvous_mission(), request(), reset_mission_type(), reset_objective(), return_to_buddy(), return_to_master(), and strike_mission().
| unsigned int reset_stress | ( | short | obj | ) |
Definition at line 405 of file smart.c.
References evaluate_damage(), find_ratio(), g_acPilotAggression, g_acShipStress, g_asPilotLevel, and reset_stress().
Referenced by intelligence_events(), maintain_formation(), and reset_stress().
| unsigned int reset_tactic | ( | short | ship, |
| short | tactic ) |
Definition at line 461 of file logic.c.
References g_acShipTarget, g_asShipTactic, MANEUVER_NONE, reset_maneuver(), and reset_tactic().
Referenced by capital_ship_intelligence(), coming_home(), cruise_home(), cruise_to_destination(), DrawTextAt(), patrol_area(), prepare_for_jump(), reach_warp(), reset_objective(), reset_tactic(), strike_mission(), and warp_arrival().
Definition at line 17 of file replay.c.
References g_3_nCannedSceneWriteIndex, g_nCannedSceneRecordedFrameCountNumber, new_view(), and ResetCannedScenePlaybackBuffer().
Referenced by HandleCannedSceneBufferBoundary(), ResetCannedScenePlaybackBuffer(), and UpdateShipTurretGuns().
Definition at line 20 of file taperec.c.
References g_4_nCannedSceneFileOffset, g_5_nCannedSceneFrameCount, g_78_bHighMemoryBuffersSetState, g_nCannedSceneMode, g_szCannedSceneTapeFile, InitializeCannedSceneFrameIndex(), ResetCannedSceneRecording(), and WriteTapeInitialState().
Referenced by auto_pilot_sequence(), CompleteStarSystemJump(), ejection_sequence(), ResetCannedSceneRecording(), RunSpaceFlight(), set_up_action_sphere(), and UpdateShipTurretGuns().
Definition at line 76 of file fltsetup.c.
References g_1_asSpacePaletteFade, g_9_aasCockpitHitPaletteFades, g_cPrimaryViewBufferColour, ResetCockpitPaletteEntries(), and SetPaletteEntry().
Referenced by close_behind(), initialize_cockpit(), LoadGamePaletteFile(), ResetCockpitPaletteEntries(), ResetTargetCameraView(), and RunSpaceFlight().
| void ResetCommMenuChoices | ( | short | reuse | ) |
Definition at line 39 of file comm.c.
References g_1_apszCommMenuChoiceTextTable, g_abCommMenuChoiceCommand, g_nCommMenuChoiceCount, g_nCommMenuReuseMode, and ResetCommMenuChoices().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), HandleCommunicationMenuRequest(), ResetCommMenuChoices(), and UpdateShipTurretGuns().
Definition at line 465 of file gameflow.c.
References g_apSceneObjects, g_nCutsceneSpritesDrawn, ResetCutsceneSpriteDrawTicks(), and SceneFlicObject::tick.
Referenced by DosMemmove(), PresentCutsceneFrame(), and ResetCutsceneSpriteDrawTicks().
Definition at line 70 of file console.cpp.
References g_pDiagnosticOverlay, DebugOverlayConsole::Reset(), and ResetDebugOverlay().
Referenced by close_behind(), and ResetDebugOverlay().
Definition at line 291 of file startup.c.
References TextContext::alignment, g_168_stFlightTextContext, g_27_stViewScratchInfo, g_2_stModalSourceWindow, g_3_stDefaultStringContext, g_6_szDefaultTextBufferText, g_cRedColour, g_cSecondaryViewBufferColour, g_ucPrimaryTextColour, InitializeTextContextFromFont(), ResetGameTextContexts(), SetTextContext(), TextContext::text, and TextContext::viewport.
Referenced by CollectRasterClipColours(), ejection_sequence(), InitializeNewPilotCampaign(), ResetGameTextContexts(), and RunCampaignGameLoop().
References ResetGIFLZWDictionary().
Referenced by ResetGIFLZWDictionary().
Definition at line 331 of file nav.c.
References g_nNavMapLabelCount, and ResetNavMapLabels().
Referenced by BuildMap(), and ResetNavMapLabels().
Definition at line 311 of file nav.c.
References g_nNavMapReservedAreaCount, and ResetNavMapReservedAreas().
Referenced by BuildMap(), and ResetNavMapReservedAreas().
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 125 of file message.c.
References Viewport::bottom, free_viewport(), g_101_stScrViewInfo, g_stSecondaryViewBufferBlock, ResetScreenClipToFullHeight(), and Viewport::top.
Referenced by close_behind(), ResetScreenClipToFullHeight(), and Title_Sequence().
| void ResetShipCloakState | ( | short | ship | ) |
Definition at line 105 of file fl.c.
References g_anShipCloakState, g_asShipCloakCooldown, and ResetShipCloakState().
Referenced by fire(), ResetShipCloakState(), and RestoreCannedSceneObjectState().
Definition at line 381 of file music.c.
References FlushSoundEffects(), g_3_bAfterburnerSfxActive, g_4_nSevereDmgWarningSfxHandle, and ResetSoundState().
Referenced by auto_pilot_sequence(), ResetSoundState(), ResetSoundStateForFlight(), ResetSoundStateForScene(), and UpdateShipTurretGuns().
Definition at line 398 of file music.c.
References g_bFlightSoundEffectsEnabled, ResetSoundState(), and ResetSoundStateForFlight().
Referenced by ResetSoundStateForFlight(), and UpdateShipTurretGuns().
Definition at line 389 of file music.c.
References g_bFlightSoundEffectsEnabled, ResetSoundState(), and ResetSoundStateForScene().
Referenced by ResetSoundStateForScene(), and UpdateShipTurretGuns().
| void ResetStringBuilder | ( | TextContext * | context | ) |
Definition at line 9 of file pload.c.
References ResetStringBuilder(), TextContext::text, and TextContext::textCursor.
Referenced by InitializeModalTextPanel(), and ResetStringBuilder().
Definition at line 646 of file turret.c.
References g_nAimCameraMode, g_nFleetOverviewPitch, g_nFleetOverviewPitchVelocity, g_nFleetOverviewYaw, g_nFleetOverviewYawVelocity, ResetCockpitPaletteEntries(), ResetScannerContacts(), ResetTargetCameraView(), and ToggleTargetCameraOverlay().
Referenced by DrawTextAt(), initialize_cockpit(), and ResetTargetCameraView().
Definition at line 77 of file mission.c.
References g_116_aWeaponDisplayPositions, g_aDefaultWeaponDisplayPositions, and ResetWeaponDisplayPositions().
Referenced by init_mission(), and ResetWeaponDisplayPositions().
| short ResolveObjectDestruction | ( | short | attacker, |
| short | victim ) |
Definition at line 1937 of file ship.c.
References analyze_kill(), BeginShipDestructionSequence(), Explosion(), MissionObjective::field_8, g_8_bUserDestroyedFlag, g_abPilotEjectionAttempted, g_abShipEjectionSequenceEnabled, g_acObjectOwner, g_acShipDamage, g_acShipStress, g_aeObjectClass, g_aeSpecialManeuver, g_aMissionObjectives, g_asPilotLevel, g_asShipMissionIndex, g_asShipSide, g_bDeathSequenceActive, g_bPlayerDamageEnabled, g_nArcadeState, g_nExternalViewShip, MANEUVER_OUTA_HERE, MISSION_OBJECTIVE_COUNT, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, RandomBelowOrEqual(), reset_maneuver(), ResolveObjectDestruction(), send_message(), SIDE_IMPERIAL, SIDE_KILRATHI, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by DrawTextAt(), explode(), and ResolveObjectDestruction().
| unsigned short RestoreCannedSceneObjectState | ( | CannedSceneObjectStateRecord * | record | ) |
Definition at line 44 of file replay.c.
References BeginShipCloak(), CannedSceneObjectStateRecord::forward, g_aeSpecialManeuver, g_aShipForwardVector, g_aShipUpVector, g_aShipVelocity, g_asShipManeuver, CannedSceneObjectStateRecord::mode, CannedSceneObjectStateRecord::object, ResetShipCloakState(), RestoreCannedSceneObjectState(), CannedSceneObjectStateRecord::up, and CannedSceneObjectStateRecord::velocity.
Referenced by ApplyCannedSceneFrameEvents(), RestoreCannedSceneObjectState(), and UpdateShipTurretGuns().
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 1203 of file gameflow.c.
References TextContext::backgroundColour, Viewport::bottom, ClearCutsceneViewport(), CopyViewportContents(), TextContext::cursorY, g_10_stCutsceneStringViewportBlock, g_29_pCurrentTextContext, g_9_stCutsceneTextBackingPort, g_bCutsceneTextRestorePending, RestoreCutsceneTextBacking(), and Viewport::top.
Referenced by DosMemmove(), ExecuteCutsceneSequence(), RestoreCutsceneTextBacking(), RunCutsceneScript(), and UpdateMap().
Definition at line 21 of file palette.c.
References g_ausPaletteWords, RestoreGamePalette(), SetPaletteEntry(), and WaitForVerticalBlankThunk().
Referenced by CompleteStarSystemJump(), death_sequence(), ejection_sequence(), InitializeNewPilotCampaign(), RestoreGamePalette(), RunCutsceneScript(), and Title_Sequence().
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().
| void RestoreModalTextPanel | ( | ModalTextPanel * | panel | ) |
Definition at line 153 of file optmenu.c.
References CopyViewportContents(), DIBslamReal(), free_viewport(), g_29_pCurrentTextContext, MarkDibDirty(), ModalTextPanel::previousContext, RestoreModalTextPanel(), ModalTextPanel::savedBackground, and ModalTextPanel::viewport.
Referenced by ReleaseModalTextPanel(), RestoreModalTextPanel(), and ShowModalTextPanel().
Definition at line 1131 of file eventmgr.c.
References QueuedMouseState::frame, g_101_stScrViewInfo, g_10_nSavedPointerY, g_138_nCursorDirtyRightValue, g_146_nInputCursorDirtyTop, g_148_nPointerDirtyLeft, g_15_nPointerDirtyBottom, g_16_stEventQueuePointerData, g_4_nCapturedInputCursorX, g_6_bCurrentInputCursorBackgroundCapturedState, g_abInputCursorBehind, g_nMouseCursorDrawDepth, RestoreMouseCursorBackground(), RestoreSpriteBackground(), QueuedMouseState::shape, and QueuedMouseState::viewport.
Referenced by DIBslamReal(), DosMemmove(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
Definition at line 375 of file personnel.c.
References DrawSpriteDefault(), g_pPersonnelMenuBackdrop, and RestorePersonnelMenuBackground().
Referenced by close_behind(), LocateLegacySaveGame(), RestorePersonnelMenuBackground(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectTransferredPilot(), and ShowNoTransferablePilots().
| void RestoreSpriteBackground | ( | Viewport * | viewport, |
| unsigned char * | background, | ||
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 846 of file gr.c.
References Viewport::bottom, g_101_stScrViewInfo, HasValidShapeAllocationSignature(), Viewport::left, MarkDibDirty(), Viewport::pixels, RestoreSpriteBackground(), Viewport::right, Viewport::rowOffsets, Viewport::top, and void().
Referenced by clear_head_up_display(), CollectRasterClipColours(), DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), fire_computer_graphic_missile(), RestoreCockpitExplosionBackground(), RestoreHudMessageBackground(), RestoreMouseCursorBackground(), RestoreSpriteBackground(), RestoreTargetLeadIndicator(), RestoreTransientCockpitGraphics(), ResumeMouseCursorHook(), SetMouseCursorShape(), and UpdateDamageDisplay().
Definition at line 1087 of file turret.c.
References CockpitScannerGeometry::centerX, CockpitScannerGeometry::centerY, DrawViewportPixel(), g_101_stScrViewInfo, g_1_nTargetCameraYawIndicatorX, g_1_nTargetLensYawIndicatorYWord, g_4_nTargetCameraPitchPipX, g_8_nGunDisplaySlot, g_abGunDisplayConfiguration, g_asAimCameraYawIndicatorBackground, g_asTargetCameraPitchIndicatorBackgroundTable, g_nTargetLensPitchIndicatorY, and RestoreTargetCameraAttitudeIndicators().
Referenced by clear_head_up_display(), DrawTextAt(), and RestoreTargetCameraAttitudeIndicators().
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().
Definition at line 1186 of file eventmgr.c.
References CaptureSpriteBackground(), DIBupdate(), DrawSpriteDefault(), QueuedMouseState::frame, g_15_nMouseRenderY, g_16_stEventQueuePointerData, g_4_nDrawnCursorX, g_abInputCursorBehind, g_nMouseCursorDrawDepth, g_pDrawnInputCursorShape, RestoreSpriteBackground(), ResumeMouseCursorHook(), QueuedMouseState::shape, QueuedMouseState::shapeChanged, QueuedMouseState::viewport, QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DosMemmove(), and ResumeMouseCursorHook().
| void RetainInputEventsOfType | ( | int | type | ) |
Definition at line 751 of file eventmgr.c.
References g_pInputEventHead, g_pInputEventTail, InputEvent::next, InputEvent::previous, ReleaseInputEvent(), RetainInputEventsOfType(), and InputEvent::type.
Referenced by DosMemmove(), and RetainInputEventsOfType().
| void return_to_buddy | ( | short | obj, |
| short | buddy ) |
Definition at line 591 of file brains.c.
References approach_cruise_speed(), CanSetNewShipTurnGoal(), distance_from_object(), OBJECTIVE_WANDER, point_parallel(), point_ship_at_object(), reset_objective(), and return_to_buddy().
Referenced by escort_mission(), and return_to_buddy().
| void return_to_master | ( | short | obj, |
| short | master ) |
Definition at line 770 of file brains.c.
References distance_from_object(), OBJECTIVE_WANDER, point_perpendicular(), reset_objective(), return_to_master(), and streak_toward().
Referenced by defend_mission(), and return_to_master().
| short RevealTitleLogo | ( | void | ) |
Definition at line 406 of file intro.c.
References DrawScaledTitleLogo(), DrawSpriteDefault(), g_apTitleSections, g_bSceneEscapeRequested, g_nFrameSkip, g_nFrameSkipCountdown, g_pTitleFieldShape, g_stSecondaryViewBufferBlock, GetTransformedShapeBounds(), RefreshMemoryStatusOverlay(), RevealTitleLogo(), and WaitForInputKey().
Referenced by RevealTitleLogo(), and Title_Sequence().
| void revise_shields | ( | short | obj | ) |
Definition at line 1226 of file ship.c.
References g_aasShipMaximumShield, g_acObjectType, g_aObjectTypeData, MaxShort(), and revise_shields().
Referenced by DrawTextAt(), revise_shields(), and your_internal_damage().
| void RewriteCutsceneMusicExtensionForDriver | ( | char * | filename | ) |
Definition at line 3515 of file gameflow.c.
References DosStrchr(), g_nMusicDriverMode, and RewriteCutsceneMusicExtensionForDriver().
Referenced by LoadCachedCutsceneResource(), RewriteCutsceneMusicExtensionForDriver(), and UpdateShipTurretGuns().
| void RewriteCutsceneMusicExtensionForRetry | ( | char * | filename | ) |
Definition at line 3529 of file gameflow.c.
References DosStrchr(), and RewriteCutsceneMusicExtensionForRetry().
Referenced by LoadCachedCutsceneResource(), RewriteCutsceneMusicExtensionForRetry(), and UpdateShipTurretGuns().
| void RewriteDiskFileGraphicsExtensions | ( | char * | fileName | ) |
Definition at line 3502 of file gameflow.c.
References DosStrchr(), g_cCutsceneVideoMode, and RewriteDiskFileGraphicsExtensions().
Referenced by AdvanceSceneFlicStream(), LoadCachedCutsceneResource(), RewriteDiskFileGraphicsExtensions(), and UpdateShipTurretGuns().
| void RewritePacketFilenameForInstalledData | ( | char * | fileName | ) |
Definition at line 126 of file disk.c.
References DosStrchr(), g_bRewritePacketExtensions, and RewritePacketFilenameForInstalledData().
Referenced by EMStartUp(), FetchDiskPacketRetrying(), LoadPacketAllocated(), LoadPacketIntoBuffer(), and RewritePacketFilenameForInstalledData().
| short room_for_me | ( | short | obj, |
| short | minimum ) |
Definition at line 1020 of file mission.c.
References ComputeVectorDelta(), distance_from_object(), g_aeObjectClass, g_aShipPosition, g_asObjectCollisionRadius, g_vCollisionDelta, IsVectorWithinRange(), room_for_me(), and SPACE_OBJECT_COUNT.
Referenced by place_ship_near_player_until_valid(), and room_for_me().
| void rotate_about_i | ( | short | angle, |
| FixedVector * | j, | ||
| FixedVector * | k ) |
Definition at line 393 of file geom.c.
References CosFixed(), MultiplyFixed(), rotate_about_i(), SinFixed(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by alter_pitch(), generate_stars(), get_right_shape(), initialize_direction_view_frame(), rotate_about_i(), set_eye_direction_and_position(), try_far_spot(), update_star_field(), and UpdateFleetOverviewCameraRotation().
| void rotate_about_j | ( | short | angle, |
| FixedVector * | i, | ||
| FixedVector * | k ) |
Definition at line 413 of file geom.c.
References CosFixed(), MultiplyFixed(), rotate_about_j(), SinFixed(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by alter_yaw(), generate_stars(), get_right_shape(), initialize_direction_view_frame(), rotate_about_j(), set_eye_direction_and_position(), try_far_spot(), update_star_field(), and UpdateFleetOverviewCameraRotation().
| void rotate_about_k | ( | short | angle, |
| FixedVector * | i, | ||
| FixedVector * | j ) |
Definition at line 433 of file geom.c.
References CosFixed(), MultiplyFixed(), rotate_about_k(), SinFixed(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by alter_roll(), and rotate_about_k().
| unsigned int rotate_eye_to_goal | ( | void | ) |
Definition at line 37 of file spc.c.
References EYE_OBJECT, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_nEyePitchGoal, g_nEyePitchRate, g_nEyeRollGoal, g_nEyeRollRate, g_nEyeYawGoal, g_nEyeYawRate, match_rotation_goal(), and rotate_eye_to_goal().
Referenced by rotate_eye_to_goal(), and set_eye_direction_and_position().
| unsigned int rotate_object | ( | short | obj | ) |
Definition at line 1136 of file spc.c.
References alter_pitch(), alter_roll(), alter_yaw(), ClampVectorTo30(), g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, and rotate_object().
Referenced by rotate_object(), set_eye_direction_and_position(), and update_objects_in_space().
| void rotate_object_to_goal | ( | short | obj | ) |
Definition at line 576 of file ship.c.
References alert_flag(), g_acObjectType, g_aeObjectClass, g_aeSpecialManeuver, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_anPitchGoal, g_anRollGoal, g_anYawGoal, g_aObjectTypeData, g_asObjectCounter, g_asShipSide, GetAdaptiveTurnRate(), match_rotation_goal(), MaxShort(), MinShort(), OBJECT_CLASS_SHIP, ObjectTypeData::pitchRate, ObjectTypeData::rollRate, rotate_object_to_goal(), set_special(), skill_check(), SPECIAL_MANEUVER_BLOWING_UP, SPECIAL_MANEUVER_NONE, and ObjectTypeData::yawRate.
Referenced by DrawTextAt(), rotate_object_to_goal(), and update_objects_in_space().
| int RotateRLEImage | ( | RasterClip * | clip, |
| unsigned char * | shape, | ||
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| unsigned char * | scratch, | ||
| unsigned int | angleTenths, | ||
| int | scaleX, | ||
| int | scaleY, | ||
| unsigned int | flags ) |
References RotateRLEImage().
Referenced by DrawSpriteTransformed(), and RotateRLEImage().
| void rotational_acceleration | ( | FixedVector * | point, |
| FixedVector * | force, | ||
| short | obj ) |
Definition at line 965 of file geom.c.
References check_for_lost_control(), ClampTo30(), DivideFixed(), g_acObjectType, g_aeObjectClass, g_anObjectPitchRotation, g_anObjectRollRotation, g_anObjectYawRotation, g_aObjectTypeData, g_asObjectCollisionRadius, MultiplyFixed(), OBJECT_CLASS_SHIP, rotational_acceleration(), transform_to_objects_frame(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by object_collision(), and rotational_acceleration().
| 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().
Definition at line 200 of file gameflow.c.
References g_13_pActiveCutscenePixelsAddress, g_bCutsceneViewportPreallocated, g_cCutsceneVideoMode, g_pCutsceneCockpitPalette, g_pMemoryLogFile, g_stSecondaryViewBufferBlock, Viewport::pixels, ReleasePacketSlot(), RouteCutsceneViewportToDisplay(), Viewport::rowOffsets, and WriteDetailedMemoryStateReport().
Referenced by DosMemmove(), RouteCutsceneViewportToDisplay(), RunCutsceneScript(), and UpdateMap().
| void run_away | ( | short | obj | ) |
Definition at line 101 of file brains.c.
References any_enemy(), approach_full_speed(), coming_home(), distance_from_object(), fire_afterburner(), g_asShipMissionType, g_asShipSide, g_asShipWingLeader, maintain_formation(), MISSION_TYPE_ROUT, normal_speed(), point_ship(), RandomBelow(), remove_object(), run_away(), SIDE_IMPERIAL, unactive(), FixedVector::y, and zero_vector().
Referenced by capital_ship_intelligence(), run_away(), and ship_intelligence().
| short RunCampaignChalkboardMenu | ( | short | campaignSlot | ) |
Definition at line 405 of file optmenu.c.
References PilotProfile::callsign, ClearViewport(), DisableMouseCursorDrawing(), exit_squadron(), CampaignGlobals::field_08, CampaignGlobals::field_0a, CampaignGlobals::field_0e, CampaignGlobals::field_16, free_viewport(), FreePacketAndClear(), g_2_stModalSourceWindow, g_bDisableChalkboardReplay, g_nOriginDevUnlock, g_pCampaignChalkboardShape, g_pCampaignGlobals, g_stCurrentPilotProfile, g_stSecondaryViewBufferBlock, InitializeCampaignChalkboardScreen(), PollCampaignChalkboardMenu(), PreloadMusicTrack(), RefreshCampaignChalkboardScreen(), ReleaseMusicTrack(), RunCampaignChalkboardMenu(), RunCampaignScript(), RunPilotSaveLoadMenu(), SetInputViewport(), spacetrack(), and StopMusicUnlessSuppressed().
Referenced by RunCampaignChalkboardMenu(), and RunCampaignGameLoop().
| short RunCampaignContinuePromptLoop | ( | unsigned char * | promptShapes, |
| unsigned char * | fieldShape, | ||
| short | promptFrame ) |
Definition at line 34 of file campaign.c.
References CopyViewportContents(), DisableMouseCursorDrawing(), DrawConstellationField(), DrawSpriteDefault(), EnableMouseCursorDrawing(), g_101_stScrViewInfo, g_stSecondaryViewBufferBlock, PollSceneHotspotInput(), RunCampaignContinuePromptLoop(), and WaitForVerticalBlankThunk().
Referenced by PromptToContinueCampaign(), and RunCampaignContinuePromptLoop().
| short RunCampaignGameLoop | ( | short | campaignSlot | ) |
Definition at line 136 of file campaign.c.
References AllocateScenePointerTable(), CampaignGlobals::arcadeState, calculate_damage_level(), check_stranded(), clear_cockpit_damage(), ClearInputPump(), CampaignGlobals::damageLevel, death_sequence(), ejection_sequence(), CampaignGlobals::field_08, CampaignGlobals::field_0c, CampaignGlobals::field_0e, PilotProfile::field_41, PilotProfile::field_43, FreePacketAndClear(), g_13_pActiveCutscenePixelsAddress, g_1_pCampaignDataBase, g_36_apTextGlyphs, g_36_cPilotKillCountValue, g_39_pCurrentCampaignDataOffset, g_6_bCampaignFlightRunning, g_asShipSide, g_bCutsceneViewportPreallocated, g_bDeveloperCampaignReady, g_bDirectCampaignSelection, g_bFriendlyFireWarningIssued, g_bNewPilotCampaignInitialized, g_bPumpMessagesDuringLoad, g_nArcadeState, g_nCurrentLevel, g_nCurSeries, g_nDirectSeries, g_nOriginDevUnlock, g_nShowMemoryStatus, g_nTrainSimActive, g_pCampaignGlobals, g_pCutsceneCockpitPalette, g_pPilotStatus, g_stCurrentPilotProfile, g_stDirectMissionSelection, GetAvailableMainMemory(), init_mission(), InitializeCampaignChalkboardScreen(), InitializeCampaignConstellationState(), LoadSelectedPilotCampaign(), LoadStartingCampaignGlobals(), LoadTemporaryCampaignGlobals(), CampaignGlobals::mission, PilotProfile::mission, OpenDiskDataFile(), CampaignGlobals::previousMission, CampaignGlobals::previousSeries, PromptToContinueCampaign(), ReleasePacketHandle(), ReleasePacketSlot(), ReleaseSceneMusicPacket(), ReleaseSpaceflightResources(), ResetGameTextContexts(), RunCampaignChalkboardMenu(), RunCampaignGameLoop(), RunCampaignScript(), RunSpaceFlight(), SaveAndFreeTemporaryCampaignGlobals(), CampaignGlobals::series, PilotProfile::series, CampaignGlobals::shipMissionFlags, ShowMemoryStatusDebug(), ShowPlayerEjectionSequence(), ShowPlayerStrandingSequence(), StoreMissionResultsInCampaignGlobals(), and WaitForAnyInputPress().
Referenced by RunCampaignGameLoop(), and RunSelectedCampaign().
| void RunCampaignScript | ( | short | campaignSlot | ) |
Definition at line 126 of file campglob.c.
References ClearViewport(), DisableMouseCursorDrawing(), FetchDiskPacketRetrying(), g_18_nInterfaceEventMode, g_2_stModalSourceWindow, g_36_apTextGlyphs, g_bCutsceneViewportPreallocated, g_bSceneDisplayUpdateActive, g_bSceneEscapeRequested, g_bSkipCampaignScenes, g_bSkipCampaignVideo, GetAvailableFarMemory(), GetAvailableMainMemory(), GetLargestFreeMemoryBlock(), GetLargestMainMemoryBlock(), ParseCutsceneContainer(), ReleasePacketHandle(), RunCampaignScript(), RunLoadedCutscene(), and SetMenuInputPump().
Referenced by ejection_sequence(), InitializeNewPilotCampaign(), RunCampaignChalkboardMenu(), RunCampaignGameLoop(), RunCampaignScript(), and UpdateShipTurretGuns().
Definition at line 184 of file titlemnu.c.
References CopyViewportContents(), DisableMouseCursorDrawing(), DrawConstellationField(), DrawFormattedText(), DrawSpriteDefault(), EnableMouseCursorDrawing(), g_101_stScrViewInfo, g_3_stDefaultStringContext, g_bPrimaryViewBufferColour, g_bSceneEscapeRequested, g_pszPersonnelFooter, g_stSecondaryViewBufferBlock, InitializeTextContextFromFont(), MeasureTextPixelWidthClamped(), PollSceneHotspotInput(), RunCampaignSelectionFrame(), SetTextCursor(), TextContext::viewport, and WaitForVerticalBlankThunk().
Referenced by BarracksScreen(), and RunCampaignSelectionFrame().
| signed char RunCutsceneScript | ( | unsigned char ** | cursor, |
| short | objectType ) |
Definition at line 1844 of file gameflow.c.
References CutscenePlane::active, CutsceneSequence::active, SceneFlicObject::active, TextContext::alignment, AllocateCutsceneViewportOrFatal(), AllocateScenePointerTable(), SceneFlicObject::baseFrame, ShortRect::bottom, Viewport::bottom, ClearCutsceneTextViewport(), ClearCutsceneViewport(), TextContext::colour, ConsumeCutscenePalettePacket(), CopyCutsceneSpriteDisplay(), CopyViewportContents(), CutsceneResourceTable::count, SceneFlicObject::currentFrame, SceneFlicObject::delayFrames, CutscenePlane::deltaDepth, SceneFlicObject::deltaDepth, CutscenePlane::deltaX, SceneFlicObject::deltaX, CutscenePlane::deltaY, SceneFlicObject::deltaY, CutscenePlane::depth, DIBslamReal(), DosMemset(), DrawCinematicMemoryStatus(), DrawCutsceneCockpitOverlay(), DrawCutscenePlane(), DrawCutsceneSprite(), DrawCutsceneTextAt(), CutscenePlane::drawFlags, SceneFlicObject::drawFlags, SceneFlicObject::drawType, CutsceneTextResource::entries, ExecuteCutsceneScene(), ExecuteCutsceneSequence(), ExpandCutsceneText(), FadeMusic(), FadeViewportPaletteToColour(), FatalCutsceneError(), CampaignGlobals::field_08, SceneFlicObject::field_2f, SceneFlicObject::field_3, SceneFlicObject::finalFrame, FindActiveCutsceneFileResources(), FindActiveCutsceneObjectResources(), FindLoadedCutsceneMusic(), FindQueuedInputEvent(), FlushInputEvents(), FlushPendingInputEvents(), FlushSoundEffects(), TextContext::font, FormatCinematicMemoryStatus(), g_10_stCutsceneStringViewportBlock, g_116_pszFilmPrintStore, g_117_nCutsceneFormatValueWord, g_12_apszMovieSpeechFiles, g_15_stSceneFlicScratchViewport, g_196_nInputTimerTicks, g_19_asCutsceneSpeechSectionsList, g_19_pFilmInputFlag, g_1_asCutsceneSpeechChannelsTable, g_1_nCutsceneFontOwnerNumber, g_1_pActiveSceneFileResourcesRef, g_26_pFilmRgbPacket, g_27_pszCutsceneFormattedText, g_29_pCurrentTextContext, g_2_bMovieStringAdvanceState, g_2_nCutsceneForkOffsetNumber, g_2_pCutsceneLocalsTemp, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_3_apSceneSpeechPacketsList, g_3_nCutsceneTextIdx, g_4_nCutsceneResourceScratchValue, g_4_pszFilmSourceText, g_4_pszFilmWorkScratch, g_8_nSavedCutsceneResourceOwnerValue, g_9_bCinematicSpriteTextEnableStatus, g_9_stCutsceneTextBackingPort, g_abCutscenePaletteTranslation, g_acObjectType, g_aObjectTypeData, g_apCutscenePlanes, g_apCutsceneScenes, g_apCutsceneSequences, g_apSceneObjects, g_apszCutsceneObjectTypeNames, g_asObjectDamage, g_bCutsceneDrawingEnabled, g_bCutsceneSkipAll, g_bCutsceneSkipFrame, g_bCutsceneSpeechActive, g_bCutsceneTextBoundsOverride, g_bCutsceneViewportPreallocated, g_bMovieFramePresented, g_bSceneEscapeRequested, g_cCutsceneSoundVolume, g_cCutsceneSpeechSpeed, g_cCutsceneTextStyle, g_cCutsceneVideoMode, g_nActiveCutsceneResourceLevel, g_nCutsceneFrameDelay, g_nCutsceneFrameTick, g_nCutsceneMusicVolume, g_nCutsceneResourceLevel, g_nMusicDriverMode, g_nNextCutsceneFrameClock, g_nOriginDevUnlock, g_nSceneFlicContext, g_nYourWingman, g_pCampaignGlobals, g_pCurrentCutscenePlane, g_pCurrentCutsceneScene, g_pCurrentCutsceneSequence, g_pCurrentCutsceneSprite, g_pCutsceneCockpitPacket, g_pCutsceneFilmResources, g_pCutsceneFontResources, g_pCutsceneFxPacket, g_pCutsceneFxResources, g_pCutsceneMusicPackets, g_pCutscenePaletteResources, g_pCutscenePlaneResources, g_pCutsceneSceneResources, g_pCutsceneSequenceResources, g_pCutsceneShapeResources, g_pCutsceneSpriteParentPlane, g_pCutsceneSpriteResources, g_pCutsceneTextResources, g_pLinkedCutscenePlane, g_pLinkedCutsceneSequence, g_pLinkedCutsceneSprite, g_pMemoryLogFile, g_pSceneMusicPacket, g_pszCurrentCutsceneText, g_pszCutsceneSpeechCursor, g_stCutsceneTextBounds, g_stSecondaryViewBufferBlock, g_wDigiPlaying, InitializeSceneFlicStream(), ShortRect::left, Viewport::left, LinkCutsceneSpriteScript(), SceneFlicObject::linkedOwner, SceneFlicObject::linkedScript, LoadAndPlaySpeechPacket(), LoadCachedCutsceneResource(), LoadCutsceneCockpitOverlay(), LoadCutsceneSpeechSlot(), CutscenePlane::locals, CutsceneScene::locals, CutsceneSequence::locals, SceneFlicObject::locals, LogChangedCutsceneWorkBuffers(), MapCutsceneSoundEffectNumber(), MarkDibDirty(), CampaignGlobals::mission, InputEventState::modifiers, SceneFlicObject::owner, PanToScreen(), ParseCutsceneContainer(), Viewport::pixels, CutsceneSequence::planeCount, CutsceneSequence::planeIndices, PlaySfxWaveFileByNumber(), PlaySpeechPacketBuffer(), PopCutsceneScriptValue(), PresentCutsceneFrame(), PumpWindowMessages(), PushCutsceneScriptValue(), RandomInRange(), ReleaseCutsceneFontPacket(), ReleaseCutsceneMusicNodes(), ReleaseCutsceneResourceLevel(), ReleaseCutsceneSoundEffects(), ReleaseCutsceneSpeechPackets(), ReleaseCutsceneSpriteShape(), ReleaseCutsceneViewport(), ReleaseLoadedCutsceneResource(), ReleasePacketSlot(), ReleaseSceneFlicPackets(), RemoveCutsceneMemberIndex(), RestoreCutsceneTextBacking(), RestoreGamePalette(), ShortRect::right, Viewport::right, CutscenePlane::rotation, SceneFlicObject::rotation, RouteCutsceneViewportToDisplay(), RunCutsceneScript(), RunCutsceneWipeTransition(), SaveGamePalette(), CutscenePlane::scale, SceneFlicObject::scale, CutscenePlane::scriptCursor, CutsceneSequence::scriptCursor, SceneFlicObject::scriptCursor, CutscenePlane::scriptStart, CutsceneSequence::scriptStart, SceneFlicObject::scriptStart, CutsceneScene::sequenceCount, CutsceneScene::sequenceIndices, CampaignGlobals::series, ServiceCutsceneRuntimeHook(), ServiceInputDevices(), SceneFlicObject::shape, SoundDebugPrintf(), CutscenePlane::spriteCount, CutscenePlane::spriteIndices, StartInteractiveMusic(), InputEventState::status, StopMusic(), TakeInputPressCount(), ShortRect::top, Viewport::top, UpdateCutscenePlaneObject(), UpdateCutsceneSpriteObject(), UpdateMap(), CutscenePlane::visible, SceneFlicObject::visible, WaitForCutsceneInputEvent(), CutscenePlane::waitStart, CutsceneSequence::waitStart, SceneFlicObject::waitStart, CutscenePlane::waitTicks, CutsceneSequence::waitTicks, SceneFlicObject::waitTicks, WriteDetailedMemoryStateReport(), WriteMemoryStateReportHook(), CutscenePlane::x, SceneFlicObject::x, CutscenePlane::y, and SceneFlicObject::y.
Referenced by DosMemmove(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), RunCutsceneScript(), UpdateCutscenePlaneObject(), and UpdateCutsceneSpriteObject().
| void RunCutsceneWipeTransition | ( | Viewport * | destination, |
| Viewport * | source, | ||
| int | wipeType, | ||
| short | duration ) |
Definition at line 356 of file gameflow.c.
References AdvanceViewportWipe(), CopyViewportContents(), DIBslamReal(), FinishViewportWipe(), g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_bRoomTransitionAnimationEnabled, g_cCutsceneVideoMode, g_pMemoryLogFile, InitializeViewportWipe(), MarkDibDirty(), and RunCutsceneWipeTransition().
Referenced by DosMemmove(), RunCutsceneScript(), and RunCutsceneWipeTransition().
| void RunGameApplication | ( | short | argc, |
| char ** | argv ) |
Definition at line 89 of file main.c.
References AllocateTaggedMemory(), BarracksScreen(), PilotNameVariables::callsign, PilotProfile::callsign, CampaignGlobals::field_08, PilotProfile::field_5e, g_10_nMenuDarkColour, g_19_bStoredHighMemoryEnabled, g_1_nResourcePaletteState, g_3_nOptionMessageColour, g_5_nStorageAdjustmentKbValue, g_bDeveloperCampaignReady, g_bDirectCampaignSelection, g_bMemoryAdjustmentEnabled, g_bRewritePacketExtensions, g_bSceneEscapeRequested, g_nArcadeState, g_nCurrentLevel, g_nCurSeries, g_nDirectSeries, g_nMenuSelectedCol, g_nMissionEntryNavOverride, g_nOriginDevUnlock, g_nSelectedCampaignSlot, g_pCampaignGlobals, g_pInitialArguments, g_pMemoryAdjustment, g_stCurrentPilotProfile, g_stDefaultPilotProfile, g_stDirectMissionSelection, g_stPilotNameVariables, init_mission(), InitializeCampaignConstellationState(), InitializeNewPilotCampaign(), LoadOriginFxDrivers(), LoadSelectedPilotCampaign(), LoadTemporaryCampaignGlobals(), LoadWingCmdrCfgFile(), LogMemoryUsage(), main(), PilotProfile::mission, RunGameApplication(), RunPilotDatabaseMenu(), RunSelectedCampaign(), RunSpaceFlight(), RunTitleScreen(), SaveAndFreeTemporaryCampaignGlobals(), PilotProfile::series, and SetMenuInputPump().
Referenced by close_behind(), RunGameApplication(), and WinMain().
Definition at line 919 of file gameflow.c.
References ClearActiveCutscenePixelAlias(), ClearCutsceneViewport(), ExecuteCutsceneScene(), FindActiveCutsceneObjectResources(), FlushSoundEffects(), g_116_pszFilmPrintStore, g_13_pActiveCutscenePixelsAddress, g_27_pszCutsceneFormattedText, g_28_nCutsceneInitialAvailableMemoryWord, g_29_pCurrentTextContext, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_47_nCutsceneMemDelta, g_4_pszFilmWorkScratch, g_9_stCutsceneTextBackingPort, g_apCutscenePlanes, g_apCutsceneScenes, g_apCutsceneSequences, g_apSceneObjects, g_bCutsceneSkipAll, g_bMemoryLogToFile, g_bSceneCockpitLoaded, g_bSceneEscapeRequested, g_cCutsceneVideoMode, g_cShowMemoryStatus, g_nCutsceneResourceLevel, g_nInputPollPeriod, g_pCutsceneCockpitPacket, g_pCutsceneCockpitPalette, g_pCutsceneMusicResources, g_pCutsceneSceneResources, g_pMemoryLogFile, g_pSceneMusicPacket, g_stSecondaryViewBufferBlock, GetAvailableMainMemory(), GetOriginalFreeMemory(), QueryCurrentGraphicsMode(), ReleaseCutsceneFileResource(), ReleaseCutsceneResourceLevel(), ReleaseCutsceneSoundEffects(), ReleaseCutsceneSpeechPackets(), ReleaseCutsceneViewport(), ReleasePacketSlot(), ReleaseSceneFlicPackets(), ReleaseSceneMusicPacket(), RunLoadedCutscene(), StopMusic(), TextContext::viewport, and WriteDetailedMemoryStateReport().
Referenced by DosMemmove(), RunCampaignScript(), and RunLoadedCutscene().
| short RunPilotDatabaseMenu | ( | void | ) |
Definition at line 1400 of file personnel.c.
References AllocateTaggedMemory(), AllocateViewport(), Viewport::bottom, PilotNameVariables::callsign, PilotProfile::callsign, PilotRecord::callsign, SaveGameDiskRecord::campaign, SaveGameDiskCampaignState::campaignIndex, ClearViewport(), InputManagerState::cursorShape, SceneResourceTable::data, DisableMouseCursorDrawing(), DrawFormattedText(), DrawPersonnelMenuBackdrop(), DrawPersonnelMenuChoices(), DrawSpriteDefault(), EnableMouseCursorDrawing(), FetchDiskPacketRetrying(), PilotProfile::field_41, PilotProfile::field_43, PilotNameVariables::firstName, PilotProfile::firstName, FlushInputEvents(), free_viewport(), FreePacketAndClear(), g_101_stScrViewInfo, g_10_nMenuDarkColour, g_18_pEventManager, g_1_nCockpitArchiveVariantNumber, g_1_szLegacySaveFolder, g_37_stPersonnelMousePointerState, g_3_apszPersonnelImportCaptionsTable, g_3_stDefaultStringContext, g_6_szDefaultTextBufferText, g_apszShortPilotRankNames, g_bPersonnelMenuDrawing, g_bPrimaryViewBufferColour, g_cCurrentKey, g_cSecondaryViewBufferColour, g_nMenuSelectedCol, g_nPersonnelMenuHighlight, g_pActiveScenePacket, g_pPersonnelMenuBackdrop, g_stCurrentPilotProfile, g_stPilotNameVariables, g_stSceneTextList, g_stSceneZoneTable, g_stSecondaryViewBufferBlock, InitializeTextContextFromFont(), PilotRecord::kills, PilotNameVariables::lastName, PilotProfile::lastName, Viewport::left, LoadStartingCampaignGlobals(), LocateLegacySaveGame(), PilotRecord::missions, PilotRecord::name, SaveGameDiskRecord::occupied, OpenDiskDataFile(), PERSONNEL_KEY_C, PERSONNEL_KEY_ENTER, PERSONNEL_KEY_SPACE, PERSONNEL_KEY_T, PersonnelDriveHook(), SaveGameDiskRecord::pilots, PollPersonnelMenuInput(), PilotProfile::rank, PilotRecord::rank, ReadPersonnelTextField(), RefreshMemoryStatusOverlay(), ReleasePacketHandle(), ReleasePacketSlot(), ReportFatalErrorCode(), RestorePersonnelMenuBackground(), Viewport::right, RunPilotDatabaseMenu(), SaveAndFreeTemporaryCampaignGlobals(), SelectLegacyGameSource(), SelectTransferredPilot(), SetInputViewport(), SetMenuInputPump(), SetMouseCursorShape(), SetPersonnelMousePosition(), SetTextContext(), SetTextCursor(), ShowNoTransferablePilots(), TextContext::text, Viewport::top, TextContext::viewport, MouseCursorState::x, and MouseCursorState::y.
Referenced by close_behind(), RunGameApplication(), and RunPilotDatabaseMenu().
Definition at line 827 of file personnel.c.
References AllocateTaggedMemory(), PilotNameVariables::callsign, PilotProfile::callsign, ClearViewport(), CopyHugeMemoryOverlapSafe(), InputManagerState::cursorShape, SceneResourceTable::data, PersonnelFileSlot::description, DisableMouseCursorDrawing(), DrawFormattedText(), DrawPersonnelMenuBackdrop(), DrawPilotSaveMenuChoices(), DrawSpriteDefault(), EnableMouseCursorDrawing(), FetchDiskPacketRetrying(), PilotProfile::field_41, PilotProfile::field_43, PilotNameVariables::firstName, PilotProfile::firstName, FreePacketAndClear(), g_101_stScrViewInfo, g_10_nMenuDarkColour, g_18_pEventManager, g_1_nCockpitArchiveVariantNumber, g_37_stPersonnelMousePointerState, g_3_nOptionMessageColour, g_3_stDefaultStringContext, g_6_szDefaultTextBufferText, g_apPersonnelFileSlots, g_apPersonnelPilotProfiles, g_bPersonnelMenuDrawing, g_cCurrentKey, g_nMenuSelectedCol, g_nOriginDevUnlock, g_nPersonnelMenuHighlight, g_pActiveScenePacket, g_pCampaignGlobals, g_pPersonnelCampaignSnapshot, g_pPersonnelMenuBackdrop, g_stCurrentPilotProfile, g_stDefaultPilotProfile, g_stPilotNameVariables, g_stSceneTextList, g_stSceneZoneTable, g_stSecondaryViewBufferBlock, g_szPersonnelFileName, g_szSaveSlotSignature, InitializeTextContextFromFont(), PilotNameVariables::lastName, PilotProfile::lastName, PersonnelFileSlot::occupied, PERSONNEL_KEY_D, PERSONNEL_KEY_ENTER, PERSONNEL_KEY_L, PERSONNEL_KEY_S, PERSONNEL_KEY_SPACE, PollPersonnelMenuInput(), PilotProfile::rank, ReadPersonnelTextField(), RefreshMemoryStatusOverlay(), ReleasePacketHandle(), ReleasePacketSlot(), ReportFatalErrorCode(), RestorePersonnelMenuBackground(), RunPilotSaveLoadMenu(), SelectPersonnelFileSlot(), ServiceSoundSystem(), SetInputViewport(), SetMouseCursorShape(), SetPersonnelMousePosition(), SetTextContext(), SetTextCursor(), TextContext::text, TextContext::viewport, WaitForQueuedInputPress(), CampaignGlobals::wordCount, MouseCursorState::x, and MouseCursorState::y.
Referenced by DrawTextAt(), RunCampaignChalkboardMenu(), and RunPilotSaveLoadMenu().
| short RunSelectedCampaign | ( | void | ) |
Definition at line 346 of file campaign.c.
References g_nSelectedCampaignSlot, RunCampaignGameLoop(), and RunSelectedCampaign().
Referenced by RunGameApplication(), and RunSelectedCampaign().
| int RunSpaceFlight | ( | short | entryNavPoint | ) |
Definition at line 1778 of file main.c.
References Viewport::bottom, ConfigureInputPump(), MouseCursorState::context, copy_frame(), DIBslamReal(), find_objective(), FinishCannedScenePlayback(), flag_objective(), FlushInputEvents(), force_view(), free_inflight_music(), free_view_buffer(), g_13_stMissionHeaderBlock, g_18_nHudMessageColour, g_18_nInterfaceEventMode, g_1_bSpaceFlightActive, g_1_cStoredViewDisplayModeValue, g_27_stViewScratchInfo, g_37_stPersonnelMousePointerState, g_5_nCannedSceneFrameCount, g_6_bMissionWingmanState, g_88_nEventRepeatDelayState, g_acMissionShipStatusFlagsBytes, g_aMissionShips, g_bFullScreenSpaceView, g_bJumpSequenceActive, g_bMissionDeathSequencePending, g_bRenderingSpaceFrame, g_nArcadeState, g_nCannedSceneMode, g_nCannedSceneRecordedFrameCountNumber, g_nCockpitControlGoal, g_nCockpitControlState, g_nCockpitDisplayMode, g_nFrameSkipCountdown, g_nScreenHeight, g_nScreenWidth, g_nSpaceExplosionFlashActive, g_nSpaceFramePeriod, g_pszPendingHudMessage, HandleSpaceFlightControls(), init_inflight_music(), initialize_cockpit(), initialize_view_buffer(), InitializeSpaceFlightInput(), Viewport::left, MarkDibDirty(), MissionShipRecord::navPoint, new_view(), MissionHeader::playerMissionShip, ProcessCannedSceneInput(), ReleaseSceneMusicPacket(), RenderSpaceViewFrame(), ResetCannedSceneRecording(), ResetCockpitPaletteEntries(), Viewport::right, RunSpaceFlight(), set_up_action_sphere(), SetDefaultFrameTiming(), SetFrameTimerPeriodDirect(), SetHudTextColour(), SetInputViewport(), SetPersonnelMousePosition(), SetSpaceFlightFrameTiming(), SetViewportRect(), Viewport::top, Update_3Space(), update_cockpit(), InputPumpContext::viewport, and WaitForFrameTick().
Referenced by RunCampaignGameLoop(), RunGameApplication(), RunSpaceFlight(), and UpdateShipTurretGuns().
| short RunTitleMenuInputLoop | ( | unsigned char * | buttons, |
| unsigned char * | logo, | ||
| unsigned char * | background, | ||
| short | showSecondButton ) |
Definition at line 222 of file titlemnu.c.
References ClearDebugPauseFlags(), DrawConstellationField(), DrawSpriteDefault(), g_bKeyboardMouseEnabled, g_stSecondaryViewBufferBlock, PollSceneHotspotInput(), PumpWindowMessages(), RefreshMemoryStatusOverlay(), ReleaseInputEventQueue(), and RunTitleMenuInputLoop().
Referenced by RunTitleMenuInputLoop(), RunTitleScreen(), and UpdateShipTurretGuns().
| short RunTitleScreen | ( | void | ) |
Definition at line 262 of file titlemnu.c.
References AdvanceViewportWipe(), AllocateTaggedMemory(), AllocateViewport(), Viewport::bottom, ClearDebugPauseFlags(), ClearViewport(), CopyViewportContents(), DIBslamReal(), DisableMouseCursorDrawing(), DrawConstellationField(), DrawSpriteDefault(), EnableMouseCursorDrawing(), FetchDiskPacketRetrying(), FinishViewportWipe(), FlushInputEvents(), FlushSoundEffectsAndLog(), free_viewport(), FreePacketAndClear(), g_101_stScrViewInfo, g_18_nInterfaceEventMode, g_2_stModalSourceWindow, g_bNewPilotCampaignInitialized, g_bRoomTransitionAnimationEnabled, g_bSceneEscapeRequested, g_cSecondaryViewBufferColour, g_pConstellationSprite, g_stSecondaryViewBufferBlock, HasSavedPilotCampaign(), init_constellation(), InitializeConstellationField(), InitializeViewportWipe(), Viewport::left, MarkDibDirty(), PlaySfxWaveFileByNumber(), PreloadMusicTrack(), PumpWindowMessages(), RefreshMemoryStatusOverlay(), ReleaseMusicTrack(), ReleasePacketHandle(), ReportFatalErrorCode(), Viewport::right, RunTitleMenuInputLoop(), RunTitleScreen(), SetFrameTimerAndWait(), SetInputViewport(), SetMenuInputPump(), SetPersonnelMousePosition(), spacetrack(), StopMusicUnlessSuppressed(), TakeInputPressCount(), Viewport::top, void(), and WaitForInputKey().
Referenced by CollectRasterClipColours(), RunGameApplication(), and RunTitleScreen().
Definition at line 48 of file joystick.c.
References g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, SampleActiveJoystickDevice(), and SampleJoystickDevice().
Referenced by SampleActiveJoystickDevice().
| short SampleBothJoysticks | ( | InputDeviceSample * | samples, |
| unsigned int | fallback ) |
Definition at line 9 of file joystick.c.
References GetJoystickPosition(), and SampleBothJoysticks().
Referenced by LoadJoystickCalibrationFile(), and SampleBothJoysticks().
| void SampleJoystickDevice | ( | InputDeviceSample * | samples, |
| short | joystick, | ||
| unsigned int | fallback ) |
Definition at line 22 of file joystick.c.
References GetJoystickPosition(), and SampleJoystickDevice().
Referenced by CalibrateJoystickInteractive(), ReadCalibratedJoystick(), SampleActiveJoystickDevice(), SampleJoystickDevice(), UpdateInputDeviceTransitions(), WaitForJoystickButtonPress(), and WaitForJoystickButtonRelease().
Definition at line 188 of file campglob.c.
References CloseDataFile(), CreateDataFile(), g_pCampaignGlobals, g_szTemporaryCampaignGlobalsFile, ReleasePacketSlot(), SaveAndFreeTemporaryCampaignGlobals(), and WriteDataFileAtOffset().
Referenced by DrawTextAt(), InitializeNewPilotCampaign(), LoadSelectedPilotCampaign(), RunCampaignGameLoop(), RunGameApplication(), RunPilotDatabaseMenu(), and SaveAndFreeTemporaryCampaignGlobals().
Definition at line 9 of file palette.c.
References g_ausPaletteWords, GetPaletteEntry(), SaveGamePalette(), and WaitForVerticalBlankThunk().
Referenced by LoadGamePaletteFile(), RunCutsceneScript(), and SaveGamePalette().
| void SaveTorpedoTargetLockForViewChange | ( | int | previousView | ) |
Definition at line 432 of file spc.c.
References g_acShipTarget, g_aShipWeapons, g_bSavedPlayerTarget, g_bTargetLockMode, g_nSavedPlayerTarget, g_nSavedTargetLockCountdown, g_nSelectedReleaseWeaponIndex, g_nTargetLockCountdown, g_nTargetLockMusicCooldown, SaveTorpedoTargetLockForViewChange(), and unactive().
Referenced by new_view(), and SaveTorpedoTargetLockForViewChange().
Definition at line 471 of file sound.c.
References g_nMusicVolumeSetting, g_nSfxVolumeSetting, g_szMusicVolumeValueName, g_szSfxVolumeValueName, RegistryStoreValue(), and SaveVolumeSettingsToRegistry().
Referenced by HandleSpaceFlightControls(), SaveVolumeSettingsToRegistry(), and UpdateShipTurretGuns().
| void ScaleFixedVector | ( | FixedVector * | vector, |
| int | scale, | ||
| FixedVector * | result ) |
Definition at line 237 of file geom.c.
References MultiplyFixed(), ScaleFixedVector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by accelerate_and_move_object(), animate_object(), approach(), auto_pilot_sequence(), capital_ship_strike_mission(), chase_location(), ComputePointAheadOfObject(), ComputePointBehindObject(), explosion_shock_wave(), fire_weapon(), FireTargetCameraGuns(), fix_velocity(), generate_stars(), init_formation_burst(), init_hazard(), InitializeConstellationObject(), launch_carrier_fighter(), launch_object(), match_ship_to_eye(), Msit_n_spin(), new_view(), NormalizeAndScaleVector(), object_collision(), position_relative(), real_crash_time(), ScaleFixedVector(), servicetrack(), set_eye_direction_and_position(), SetFleetOverviewView(), SpawnCapitalFlakProjectile(), SpawnFlakBurst(), start_dust(), steer_away_from_predicted_object(), update_star_field(), UpdateShipTurretGuns(), UpdateTargetCameraObject(), UpdateTargetLeadIndicator(), and vector_component_in_dir().
| void ScaleNavMapCoordinates | ( | short * | x, |
| short * | y, | ||
| short | mapX, | ||
| short | mapY ) |
Definition at line 101 of file nav.c.
References g_13_nNavmapMapCentreX, g_nNavMapCentreY, g_nNavMapScale, and ScaleNavMapCoordinates().
Referenced by BuildMap(), CentreMouseOnCurrentNavObjective(), DrawNavMapBriefingBeacons(), nav_getxy(), ScaleNavMapCoordinates(), and SelectNavObjectiveAtPoint().
| void ScaleNavMapMarkerSize | ( | short * | size | ) |
Definition at line 95 of file nav.c.
References g_nNavMapScale, and ScaleNavMapMarkerSize().
Referenced by DrawNavHazardMarker(), and ScaleNavMapMarkerSize().
| short scan_and_lock | ( | short | obj, |
| short | newTactic ) |
Definition at line 387 of file brains.c.
References g_acShipTarget, g_asShipTactic, scan_and_lock(), and scan_for_enemy().
Referenced by patrol_area(), and scan_and_lock().
| short scan_for_enemy | ( | short | obj, |
| unsigned short | range ) |
Definition at line 576 of file logic.c.
References distance_from_object(), distance_from_point(), g_aeObjectClass, g_aeSpecialManeuver, g_aShipPosition, g_asShipSide, g_nTargetRange, g_nTargetShip, get_facing_range_from_object(), OBJECT_CLASS_SHIP, scan_for_enemy(), SPECIAL_MANEUVER_UNKNOWN_9, and target_valid().
Referenced by approach_and_engage(), capital_ship_intelligence(), close_behind(), cruise_to_destination(), defend_mission(), scan_and_lock(), scan_for_enemy(), and select_target().
| void SceneLeaveHook | ( | ) |
Definition at line 80 of file music.c.
References SceneLeaveHook().
Referenced by death_sequence(), SceneLeaveHook(), and UpdateShipTurretGuns().
| void score_for_kill | ( | short | pilot, |
| short | victim ) |
Definition at line 1664 of file ship.c.
References affect_mission_score(), g_aeObjectClass, g_asObjectType, g_asShipSide, OBJECT_CLASS_BASE, score_for_kill(), and SIDE_KILRATHI.
Referenced by analyze_kill(), DrawTextAt(), and score_for_kill().
| int ScrollRasterClipWrapped | ( | RasterClip * | clip, |
| int | deltaX, | ||
| int | deltaY, | ||
| int | mode, | ||
| unsigned int | fillOrScratch ) |
References ScrollRasterClipWrapped().
Referenced by ScrollRasterClipWrapped().
Definition at line 18 of file eventmgr.c.
References SeedRandomFromClock().
Referenced by intelligence_events(), and SeedRandomFromClock().
| int SeekDataFile | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | origin ) |
Definition at line 78 of file datafile.c.
References g_nPacketError, g_szSeekDataFileFailure, and SeekDataFile().
Referenced by LoadSelectedPilotCampaign(), OpenDiskDataFile(), OpenPacketSection(), and SeekDataFile().
| int select_guns | ( | short | selectedGun | ) |
Definition at line 44 of file select.c.
References ShipWeaponSlot::disabled, g_aObjectTypeData, g_aShipWeapons, OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, select_guns(), and ShipWeaponSlot::type.
Referenced by select_guns(), select_new_gun(), and UpdateShipTurretGuns().
Definition at line 74 of file select.c.
References find_next_gun(), g_nSelectedGunType, get_mode(), InvalidateVduMode(), select_guns(), and select_new_gun().
Referenced by remove_weapon(), select_new_gun(), SelectCockpitVduMode(), and UpdateShipTurretGuns().
| void select_new_release_weapon | ( | short | preferredType | ) |
Definition at line 83 of file select.c.
References g_aObjectTypeData, g_aShipWeapons, g_nSelectedReleaseWeaponIndex, get_mode(), InvalidateVduMode(), OBJECT_CLASS_PROJECTILE, and select_new_release_weapon().
Referenced by remove_weapon(), select_new_release_weapon(), SelectCockpitVduMode(), and UpdateShipTurretGuns().
| unsigned int select_target | ( | short | obj | ) |
Definition at line 199 of file smart.c.
References attacker_in_range(), distance_from_object(), g_acShipTarget, g_asShipSide, RandomBelow(), scan_for_enemy(), select_target(), and SIDE_KILRATHI.
Referenced by capital_ship_intelligence(), check_engage_target(), intelligence_events(), select_target(), and UpdateShipTurretGuns().
| 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 SelectCommRecipient | ( | short | recipient | ) |
Definition at line 130 of file comm.c.
References g_cCommMenuRecipient, g_cPendingCommMenuAction, and SelectCommRecipient().
Referenced by BuildCommunicationRecipientMenu(), Chosen_communicate_option(), SelectCommRecipient(), and UpdateShipTurretGuns().
| unsigned short SelectDiskDriveHook | ( | short | drive | ) |
Definition at line 1984 of file eventmgr.c.
References SelectDiskDriveHook().
Referenced by DosMemmove(), and SelectDiskDriveHook().
| short SelectLegacyGameSource | ( | void | ) |
Definition at line 1217 of file personnel.c.
References InputManagerState::cursorShape, DisableMouseCursorDrawing(), DrawFormattedText(), DrawPersonnelMenuBackdrop(), DrawPersonnelSourceChoices(), EnableMouseCursorDrawing(), g_10_nMenuDarkColour, g_18_pEventManager, g_37_stPersonnelMousePointerState, g_3_stDefaultStringContext, g_bPersonnelMenuDrawing, g_cCurrentKey, g_nLegacySaveSource, g_nPersonnelMenuHighlight, g_pPersonnelMenuBackdrop, g_stSecondaryViewBufferBlock, InitializeTextContextFromFont(), PERSONNEL_KEY_D, PERSONNEL_KEY_ENTER, PERSONNEL_KEY_SPACE, PERSONNEL_KEY_W, PollPersonnelMenuInput(), RefreshMemoryStatusOverlay(), RestorePersonnelMenuBackground(), SelectLegacyGameSource(), SetMouseCursorShape(), SetPersonnelMousePosition(), SetTextCursor(), MouseCursorState::x, and MouseCursorState::y.
Referenced by close_behind(), RunPilotDatabaseMenu(), and SelectLegacyGameSource().
| short SelectNavObjectiveAtPoint | ( | short | mouseX, |
| short | mouseY ) |
Definition at line 993 of file nav.c.
References g_abFlightPath, g_aMissionObjectives, g_awNavObjectiveLabelIndex, g_cCurrentNavPointIndex, hidden_objective(), IsObjectiveInDisplayedSystem(), IsPointInNavMapLabel(), ScaleNavMapCoordinates(), SelectNavObjectiveAtPoint(), and set_new_objective().
Referenced by InflightComputer(), and SelectNavObjectiveAtPoint().
Definition at line 261 of file main.c.
References g_aeObjectClass, g_cViewObject, OBJECT_CLASS_SHIP, and SelectNextExternalViewObject().
Referenced by close_behind(), HandleSpaceFlightControls(), ProcessCannedSceneInput(), and SelectNextExternalViewObject().
| short SelectPersonnelFileSlot | ( | void | ) |
Definition at line 581 of file personnel.c.
References InputManagerState::cursorShape, DisableMouseCursorDrawing(), DrawPersonnelFileSlot(), DrawPersonnelMenuBackdrop(), EnableMouseCursorDrawing(), g_10_nMenuDarkColour, g_18_pEventManager, g_37_stPersonnelMousePointerState, g_3_stDefaultStringContext, g_bPersonnelMenuDrawing, g_cCurrentKey, g_nPersonnelMenuHighlight, g_pPersonnelMenuBackdrop, HighlightPersonnelFileSlot(), InitializeTextContextFromFont(), PERSONNEL_KEY_ENTER, PERSONNEL_KEY_SPACE, PollPersonnelMenuInput(), RefreshMemoryStatusOverlay(), SelectPersonnelFileSlot(), SetMouseCursorShape(), SetPersonnelMousePosition(), MouseCursorState::x, and MouseCursorState::y.
Referenced by DrawTextAt(), RunPilotSaveLoadMenu(), and SelectPersonnelFileSlot().
| short SelectTransferredPilot | ( | short | count | ) |
Definition at line 728 of file personnel.c.
References InputManagerState::cursorShape, DisableMouseCursorDrawing(), DrawFormattedText(), DrawPersonnelMenuBackdrop(), DrawTransferredPilotRow(), EnableMouseCursorDrawing(), g_10_nMenuDarkColour, g_18_pEventManager, g_37_stPersonnelMousePointerState, g_3_stDefaultStringContext, g_bPersonnelMenuDrawing, g_cCurrentKey, g_nPersonnelMenuHighlight, g_pPersonnelMenuBackdrop, g_stSecondaryViewBufferBlock, HighlightTransferredPilot(), InitializeTextContextFromFont(), PERSONNEL_KEY_ENTER, PERSONNEL_KEY_SPACE, PollPersonnelMenuInput(), RefreshMemoryStatusOverlay(), RestorePersonnelMenuBackground(), SelectTransferredPilot(), SetMouseCursorShape(), SetPersonnelMousePosition(), SetTextCursor(), MouseCursorState::x, and MouseCursorState::y.
Referenced by close_behind(), RunPilotDatabaseMenu(), and SelectTransferredPilot().
| void send_appropriate_message | ( | short | attacker, |
| short | victim ) |
Definition at line 750 of file ship.c.
References g_acObjectOwner, g_aeObjectClass, g_aeSpecialManeuver, g_asPlayerHitsCreditValues, g_asShipSide, g_asWingmanDamageCredit, g_nYourWingman, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, RandomBelowOrEqual(), send_appropriate_message(), send_message(), SIDE_IMPERIAL, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by DrawTextAt(), inflict_damage(), and send_appropriate_message().
| int send_at_point | ( | short | obj, |
| FixedVector * | point, | ||
| short | speed ) |
Definition at line 2008 of file ship.c.
References ComputeVectorDelta(), g_aShipPosition, g_aShipVelocity, send_at_point(), and SetVectorFixedPoint().
Referenced by capital_ship_strike_mission(), DrawTextAt(), fire_flack(), send_at_point(), and SpawnCapitalFlakProjectile().
| 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 SendCommMenuChoice | ( | short | i | ) |
Definition at line 76 of file comm.c.
References AppendCommMenuChoice(), g_48_apCommunicationTextPacketsTable, LoadPacketAllocated(), and SendCommMenuChoice().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), SendCommMenuChoice(), and UpdateShipTurretGuns().
| void SendKilrathiAceGreetingOnce | ( | short | obj | ) |
Definition at line 10 of file logic.c.
References g_bKilrathiAceGreetingSent, send_message(), and SendKilrathiAceGreetingOnce().
Referenced by DrawTextAt(), engage(), and SendKilrathiAceGreetingOnce().
Definition at line 55 of file mono.c.
References g_bMonoDebugInstalled, g_hMonoDebugDevice, MonoDebug_remove(), and SendMonoDebugCommand3().
Referenced by SendMonoDebugCommand3().
| void SendWingmanCommandAcknowledgement | ( | short | ship, |
| short | accepted ) |
Definition at line 84 of file orders.c.
References send_message(), and SendWingmanCommandAcknowledgement().
Referenced by request(), SendWingmanCommandAcknowledgement(), and UpdateShipTurretGuns().
Definition at line 40 of file sound.c.
References FreeWaveTable(), g_bAudioSystemInitialized, g_nAudioEnabled, ix_system_delete_all_samples(), ix_system_delete_all_sounds(), ix_system_shutdown(), and ServiceAudioStream().
Referenced by ServiceAudioStream(), UpdateShipTurretGuns(), and WinMain().
Definition at line 2192 of file eventmgr.c.
References ServiceCutsceneRuntimeHook().
Referenced by DosMemmove(), RunCutsceneScript(), ServiceCutsceneRuntimeHook(), UpdateMap(), and WaitForCutsceneInputEvent().
| short ServiceInputDevices | ( | short | deviceMask | ) |
Definition at line 2071 of file eventmgr.c.
References FlushInputEvents(), g_196_nInputTimerTicks, g_bSceneEscapeRequested, g_nInputPollPeriod, g_nNextInputPollTick, g_nNextInputQueueFlushTick, PumpWindowMessages(), ServiceInputDevices(), and void().
Referenced by death_sequence(), DosMemmove(), FlushPendingInputPresses(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), player_input(), PollPersonnelMenuInput(), PollSceneHotspotInput(), ProcessCannedSceneInput(), RunCutsceneScript(), ServiceInputDevices(), UpdateMap(), WaitForCutsceneInputEvent(), and WaitForInputKey().
Definition at line 389 of file sound.c.
References g_16_nSpeechCompletionDelay, g_1_bSpaceFlightActive, g_bSpeechPlaybackDone, g_bSpeechSoundActive, g_nAudioEnabled, g_nInputPressCount, g_pSpeechSnd, ix_sound_is_playing(), ix_system_service_sounds(), ServiceSoundSystem(), and SetCinematicFrameTiming().
Referenced by DIBslamReal(), ReadTextInput(), RunPilotSaveLoadMenu(), ServiceSoundSystem(), ShowGamePausedBanner(), ShowOnScreenMessage(), UpdateShipTurretGuns(), WaitForJoystickButtonPress(), and WaitForJoystickButtonRelease().
Definition at line 318 of file music.c.
References AddFixedVectors(), ComputeVectorDelta(), dot_product(), EYE_OBJECT, g_abSoundEffectDefinitions, g_aeObjectClass, g_aShipPosition, g_aShipVelocity, g_asObjectDistance, g_asObjectScreenX, g_bFlightSoundEffectsEnabled, g_bJumpSequenceActive, g_nMusicDriverMode, g_nPassingShipSndCooldown, g_nPassingShipSoundCountdown, g_nPassingShipSoundObject, g_nSpaceFrame, gametrack(), OBJECT_CLASS_BASE, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, PlaySfxWaveFileByNumber(), ScaleFixedVector(), servicetrack(), and SPACE_OBJECT_COUNT.
Referenced by servicetrack(), Update_3Space(), and UpdateShipTurretGuns().
| void set_alert | ( | short | obj, |
| unsigned int | bits ) |
Definition at line 31 of file logic.c.
References g_anShipAlertFlags, and set_alert().
Referenced by DrawTextAt(), set_alert(), start_collision_alert(), and try2end_collision_alert().
| void set_background_objects_rotation | ( | short | obj, |
| FixedVector * | direction ) |
Definition at line 1152 of file geom.c.
References alter_pitch(), alter_yaw(), ArcCos(), dot_product(), EYE_OBJECT, g_aShipRightVector, g_aShipUpVector, g_asObjectScreenAngle, g_asObjectScreenScale, init_ijk(), negate_vector(), NormalizeFixedVector(), SphericalVector::pitch, rectangular_to_spherical(), SCRATCH_VIEW_OBJECT, set_background_objects_rotation(), FixedVector::x, FixedVector::y, SphericalVector::yaw, and FixedVector::z.
Referenced by set_background_objects_rotation(), and transform_objects_to_your_view().
| unsigned int set_eye_direction_and_position | ( | void | ) |
Definition at line 72 of file spc.c.
References AddFixedVectors(), ComputeVectorDelta(), copy_frame(), divide_vector(), EYE_OBJECT, fix_objects_ijk(), free_view_buffer(), g_27_stViewScratchInfo, g_2_nExternalViewDistanceValue, g_7_nExternalViewTimeout, g_9_nTargetCameraOverlayMode, g_acShipTarget, g_aeObjectClass, g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_aShipVelocity, g_asObjectType, g_asShipTactic, g_bAlternateChaseView, g_bStarSystemJumpTransition, g_cViewObject, g_nChaseCameraMaximumVelocity, g_nCockpitCameraObject, g_nCockpitDisplayMode, g_nCurrentView, g_nExternalViewShip, g_nEyeRollGoal, g_nEyeRollRate, g_nFleetOverviewPitch, g_nFleetOverviewYaw, g_nScreenHeight, g_nScreenWidth, g_vExternalViewOffset, generate_stars(), initialize_view_buffer(), look_at(), match_roll_orientation(), MaxShort(), negate_vector(), new_view(), NormalizeAndScaleVector(), NormalizeFixedVector(), OBJECT_CLASS_NULL, rotate_about_i(), rotate_about_j(), rotate_eye_to_goal(), rotate_object(), ScaleFixedVector(), set_eye_direction_and_position(), SetFleetOverviewView(), SetTargetCameraEyePosition(), SetVectorFixedPoint(), SetViewportRect(), shrink_vector(), UpdateFleetOverviewCameraRotation(), Vector_magnitude(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by new_view(), set_eye_direction_and_position(), and Update_3Space().
| void set_formation_position | ( | short | obj, |
| const MissionShipRecord * | record ) |
Definition at line 1105 of file mission.c.
References copy_frame(), find_ship_index(), MissionShipRecord::formationIndex, MissionShipRecord::formationSpot, g_aaFormationPositions, g_aMissionShips, g_anShipSpeed, g_aShipFormationOffset, g_aShipPosition, g_bMissionShipInitializationInProgress, MissionShipRecord::leaderMissionIndex, offset_location(), set_formation_position(), set_sphere_point(), MissionShipRecord::speed, and sub_int_vector().
Referenced by set_formation_position(), and Set_up_ship_info().
| 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 set_objects_data | ( | short | obj, |
| short | type, | ||
| short | owner, | ||
| short | matchObjectClass ) |
Definition at line 347 of file ship.c.
References animate_shape(), ObjectTypeData::animation, ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, ObjectTypeData::collisionRadius, ObjectTypeData::field_18, g_1_asObjectCreationFrameTable, g_aasShipArmor, g_aasShipMaximumShield, g_aasShipShield, g_abProjectileCollisionBonus, g_acLastCollisionObject, g_acObjectAnimationDelay, g_acObjectOwner, g_acObjectType, g_acPilotHitPoints, g_acShipDamage, g_acShipIonDriveDamage, g_acShipLastAttacker, g_acShipTarget, g_aeObjectClass, g_anShipFuel, g_aObjectTypeData, g_apObjectExhaustShape, g_apObjectShape, g_aShipWeapons, g_asObjectAnimationIndex, g_asObjectCollisionRadius, g_asObjectDamage, g_asObjectFlip, g_asObjectScale, g_asObjectScreenAngle, g_asObjectType, g_asObjectViewFrame, g_asShipSide, g_asShipTurretFireEnabled, g_asShipWeaponEnergy, g_nObjectType62Index, g_nObjectType63Index, g_nSelectedGunType, g_nSelectedReleaseWeaponIndex, g_nSpaceFrame, g_pGenericMissileExhaustShape, g_pGenericMissileShape, HasShipCockpitGunDisplay(), init_ijk(), InitializeShipWeaponTypeIndices(), ObjectTypeData::lifetime, OBJECT_CLASS_DUST, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, OBJECT_DATA_ASTEROID1, OBJECT_DATA_ASTEROID2, OBJECT_DATA_ASTEROID3, OBJECT_DATA_ASTEROID4, OBJECT_DATA_ASTEROID5, OBJECT_DATA_ASTEROID6, OBJECT_DATA_CHAFF_POD, OBJECT_DATA_EXPLOSION_LARGE, OBJECT_DATA_EXPLOSION_MEDIUM, OBJECT_DATA_EXPLOSION_SMALL, OBJECT_DATA_GIRDER_CHUNK, OBJECT_DATA_METAL_SHEET, OBJECT_DATA_PIPE, OBJECT_DATA_ROCK_CHUNK, OBJECT_DATA_SHIP_WING, OBJECT_DATA_SPACE_DUST, ObjectTypeData::objectClass, recalc_max_velocity(), ObjectTypeData::scale, set_objects_data(), ObjectTypeData::shapeSet, ObjectTypeData::shieldAft, ObjectTypeData::shieldFore, SIDE_KILRATHI, ObjectTypeData::weaponLoadout, and ObjectTypeData::yawRate.
Referenced by animate_object(), ApplyCannedSceneObjectEventRecord(), Create_explosion_debris(), Create_ship_hit_debris(), DrawTextAt(), Explosion(), fire_flack(), house_keep_objects(), init_hazard(), initialize_object(), make_shard(), object_collision(), onboard_explosion(), place_exhaust_on_ships(), prepare_mission(), set_objects_data(), ShipExplosion(), SpawnMissionEjectionPod(), start_dust(), ToggleTargetCameraTracking(), unwarp(), update_star_field(), and warp().
| short set_ship_rotation_goals | ( | short | obj, |
| short | turnRate, | ||
| const FixedVector * | direction, | ||
| short | pointingMode, | ||
| short * | yawGoal, | ||
| short * | pitchGoal ) |
Definition at line 622 of file geom.c.
References ArcSin(), DivideFixed(), SphericalVector::pitch, PlanarMagnitude(), SphericalVector::radius, rectangular_to_spherical(), set_ship_rotation_goals(), transform_to_objects_frame(), Vector_magnitude(), WrapDegrees(), FixedVector::x, FixedVector::y, SphericalVector::yaw, and FixedVector::z.
Referenced by point_ship(), and set_ship_rotation_goals().
| void set_special | ( | short | ship, |
| short | special ) |
Definition at line 493 of file logic.c.
References alert_flag(), g_aeSpecialManeuver, set_special(), SPECIAL_MANEUVER_BLOWING_UP, SPECIAL_MANEUVER_LOST_CONTROL, and SPECIAL_MANEUVER_NONE.
Referenced by accelerate_and_move_object(), BeginShipDestructionSequence(), check_for_lost_control(), cruise_home(), cruise_to_destination(), DrawTextAt(), Explosion(), fire_afterburner(), fire_super_brake(), maneuver_complete(), Mgloat(), Mhard_break(), Msit_n_spin(), Mturn_n_spin(), pilot_hit(), prepare_for_jump(), rotate_object_to_goal(), set_special(), and start_collision_alert().
| void set_speed | ( | short | obj, |
| short | speed ) |
Definition at line 54 of file auto.c.
References fix_velocity(), g_anShipSpeed, and set_speed().
Referenced by auto_pilot_sequence(), and set_speed().
| void set_sphere_point | ( | const MissionShipRecord * | record, |
| FixedVector * | position ) |
Definition at line 52 of file mission.c.
References AddFixedVectors(), g_aMissionNavPoints, MissionShipRecord::navPoint, MissionNavPoint::position, MissionShipRecord::position, and set_sphere_point().
Referenced by Build_objective_list(), set_formation_position(), set_sphere_point(), and Set_up_ship_info().
| void set_up_action_sphere | ( | short | navPoint | ) |
Definition at line 923 of file mission.c.
References clean_up_cockpit(), explode(), flag_objective(), FreePacketAndClear(), g_78_bHighMemoryBuffersSetState, g_acShipNavPoint, g_aeObjectClass, g_aMissionNavPoints, g_aMissionObjectives, g_aMissionShips, g_aObjectTypeData, g_apObjectShape, g_asObjectScreenX, g_asObjectType, g_asShipMissionIndex, g_asShipMissionType, g_bAutopilotSequenceActive, g_bExpandedShipGraphicsEnabled, g_bJumpSequenceActive, g_bLandingCommRequestPending, g_cCurrentObjective, g_cMissionObjectiveCount, g_nCurrentNavPoint, g_nCurrentWave, g_nCurStellarSystem, g_nEnemySighting, g_nEscapedEnemyCount, g_nHazardFieldCount, init_ship(), load_all_slots(), LocateMobileObjective(), MISSION_TYPE_ROUT, MissionNavPoint::missionShips, new_sphere_shapes(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, OBJECT_DATA_EJECTED_PILOT, OBJECT_DATA_SHIP_WING, ProcessMissionWaveCommands(), remove_all_hazards(), remove_object(), ResetCannedSceneRecording(), set_up_action_sphere(), MissionShipRecord::state, MissionNavPoint::systemIndex, MissionNavPoint::triggers, and MissionNavPoint::type.
Referenced by CompleteStarSystemJump(), ReleaseStaleNavTarget(), RunSpaceFlight(), and set_up_action_sphere().
| short set_up_next_wave | ( | void | ) |
Definition at line 1054 of file mission.c.
References g_19_bStoredHighMemoryEnabled, g_aMissionNavPoints, g_asObjectType, g_nCurrentNavPoint, g_nCurrentWave, g_nTrainSimActive, init_ship(), MissionNavPoint::missionShips, new_sphere_shapes(), OBJECT_TYPE_TORPEDO, place_ship_near_player_until_valid(), ProcessMissionWaveCommands(), remove_object(), set_up_next_wave(), SPACE_OBJECT_COUNT, and MissionNavPoint::type.
Referenced by ProcessEnemyWaveCompletion(), and set_up_next_wave().
| void set_up_screen_viewport | ( | signed char | mode | ) |
Definition at line 1820 of file eventmgr.c.
References g_11_nViewportLeftOrigin, g_15_nStoredScreenViewCentreX, g_15_pScreenViewportGeometry, g_1_cStoredViewDisplayModeValue, g_37_nViewCenterY, g_49_nViewportOffsetY, g_aScreenViewportGeometry, g_nCockpitDisplayMode, g_nScreenHeight, g_nScreenWidth, g_pCockpitBackgroundPacket, ScreenViewportGeometry::height, ScreenViewportGeometry::originX, ScreenViewportGeometry::originY, set_up_screen_viewport(), and ScreenViewportGeometry::width.
Referenced by DosMemmove(), initialize_cockpit(), and set_up_screen_viewport().
| void Set_up_ship_info | ( | short | obj, |
| short | missionShip, | ||
| signed char | navPoint ) |
Definition at line 1135 of file mission.c.
References alter_pitch(), alter_roll(), alter_yaw(), ObjectTypeData::damageCapacity, MissionShipRecord::field_19, find_ship_index(), g_13_abShipArrivalMessageSent, g_27_aasGunCooldown, g_2_asCarrierLaunchTimer, g_2_asFlakCooldownTable, g_aasShipArmor, g_abPilotEjectionAttempted, g_abShipEjectionSequenceEnabled, g_acObjectType, g_acShipCollisionCooldown, g_acShipCommunicator, g_acShipComputerDamage, g_acShipDamage, g_acShipExhaustHeat, g_acShipIonDriveDamage, g_acShipLastAttacker, g_acShipNavPoint, g_acShipPendingMessage, g_acShipPortrait, g_aMissionShips, g_anShipCloakState, g_anShipSpeed, g_aObjectTypeData, g_apShipMissionRecord, g_asActionCount, g_asCapitalHitDamageStepTable, g_aShipPosition, g_aShipVelocity, g_aShipWeapons, g_asLoadedShipViewFrame, g_asObjectDamage, g_asObjectType, g_asPilotLevel, g_asPlayerHitsCreditValues, g_asProjectileEvasionTicks, g_asShipCloakCooldown, g_asShipFriendlyFireCooldown, g_asShipIdentified, g_asShipMissionIndex, g_asShipMissionParameter, g_asShipSide, g_asShipWingLeader, g_asSpikeriCooldown, g_asSpikeriLaunchCountdown, g_asWingmanDamageCredit, g_bKilrathiAceGreetingSent, init_intelligence_data(), MissionShipRecord::leaderMissionIndex, MissionShipRecord::missionParameter, MissionShipRecord::missionType, MissionShipRecord::name, MissionShipRecord::pilot, MissionShipRecord::pitch, MissionShipRecord::portrait, RandomInRange(), recalc_max_velocity(), reset_mission_type(), MissionShipRecord::roll, set_formation_position(), set_sphere_point(), Set_up_ship_info(), ShipHasCloakingDevice(), MissionShipRecord::side, SIDE_KILRATHI, MissionShipRecord::speed, MissionShipRecord::yaw, and zero_vector().
Referenced by init_ship(), launch_carrier_fighter(), prepare_mission(), and Set_up_ship_info().
| void SetCinematicFrameTiming | ( | float | frameRate | ) |
Definition at line 212 of file dib.cpp.
References g_17_nFramePeriodMillis, g_bFrameTimingInitialized, g_dwNextFrameDeadline, g_nFrameTimingMode, and SetCinematicFrameTiming().
Referenced by PlayRawSpeechBuffer(), ServiceSoundSystem(), SetCinematicFrameTiming(), and UpdateShipTurretGuns().
| 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().
| int SetCurrentDirOnDrive | ( | char | drive, |
| const char * | directory ) |
Definition at line 1297 of file winmain.c.
References SetCurrentDirOnDrive().
Referenced by FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().
| void SetDebugCursorPosition | ( | short | column, |
| short | row ) |
Definition at line 64 of file console.cpp.
References g_pDiagnosticOverlay, DebugOverlayConsole::SetCursorPosition(), and SetDebugCursorPosition().
Referenced by close_behind(), and SetDebugCursorPosition().
| void SetDebugTextPosition | ( | short | row, |
| short | column ) |
Definition at line 58 of file console.cpp.
References g_pDiagnosticOverlay, SetDebugTextPosition(), and DebugOverlayConsole::SetTextPosition().
Referenced by close_behind(), and SetDebugTextPosition().
Definition at line 202 of file dib.cpp.
References g_17_nFramePeriodMillis, g_1_fPreviousFrameSpeed, g_bFrameTimingInitialized, g_dwNextFrameDeadline, g_nFrameTimingMode, and SetDefaultFrameTiming().
Referenced by RunSpaceFlight(), SetDefaultFrameTiming(), ThrottleFrameAndDrawFps(), and UpdateShipTurretGuns().
| void SetFleetOverviewView | ( | short | initializeCockpit | ) |
Definition at line 9 of file fleetvw.c.
References AddFixedVectors(), ComputeVectorDelta(), EYE_OBJECT, free_view_buffer(), g_aeObjectClass, g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_aShipVelocity, GetLargestFreeMemoryBlockByType(), initialize_cockpit(), OBJECT_CLASS_SHIP, point_at(), position_relative_ijk(), ScaleFixedVector(), SCRATCH_VIEW_OBJECT, SetFleetOverviewView(), Vector_magnitude(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by new_view(), set_eye_direction_and_position(), and SetFleetOverviewView().
| void SetFrameTimerAndWait | ( | short | period | ) |
Definition at line 1411 of file eventmgr.c.
References SetFrameTimerAndWait(), SetFrameTimerPeriod(), and WaitForFrameTick().
Referenced by AcknowledgeModalMessage(), DosMemmove(), InflightComputer(), RunTitleScreen(), and SetFrameTimerAndWait().
| void SetFrameTimerPeriod | ( | short | period | ) |
Definition at line 1405 of file eventmgr.c.
References SetFrameTimerPeriod(), and SetMultimediaTimerCallback().
Referenced by DosMemmove(), SetFrameTimerAndWait(), and SetFrameTimerPeriod().
| void SetFrameTimerPeriodDirect | ( | short | p | ) |
Definition at line 1418 of file eventmgr.c.
References SetFrameTimerPeriodDirect(), and SetMultimediaTimerCallback().
Referenced by DosMemmove(), HandleSpaceFlightControls(), LoadOriginFxDrivers(), RunSpaceFlight(), and SetFrameTimerPeriodDirect().
| 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 SetInputCursorHostPosition | ( | int | x, |
| int | y ) |
Definition at line 1177 of file winmain.c.
References SetInputCursorHostPosition().
Referenced by ApplyPackedMousePosition(), SetInputCursorHostPosition(), and SetMouseHomePosition().
| void SetInputKeyState | ( | int | scanCode, |
| unsigned char | pressed ) |
Definition at line 1629 of file eventmgr.c.
References ClearDebugPauseFlags(), g_77_abKeyboardEventStates, PumpMessagesDuringWait(), SetInputKeyState(), and SystemDebugPrintf().
Referenced by DosMemmove(), MainWindowProc(), and SetInputKeyState().
Definition at line 2093 of file eventmgr.c.
References g_16_stEventQueuePointerData, SetInputViewport(), and QueuedMouseState::viewport.
Referenced by BarracksScreen(), DosMemmove(), EMStartUp(), InflightComputer(), InitializeSpaceFlightInput(), LoadInputCursorShape(), PromptToContinueCampaign(), RunCampaignChalkboardMenu(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunSpaceFlight(), RunTitleScreen(), SetInputViewport(), and ShowPlayerEjectionSequence().
Definition at line 2106 of file eventmgr.c.
References ConfigureInputPump(), PollMenuInputDevices(), and SetMenuInputPump().
Referenced by BarracksScreen(), DosMemmove(), DrawPersonnelMenuBackdrop(), InflightComputer(), PollCampaignChalkboardMenu(), PromptToContinueCampaign(), RunCampaignScript(), RunGameApplication(), RunPilotDatabaseMenu(), RunTitleScreen(), and SetMenuInputPump().
Definition at line 205 of file message.c.
References g_cMessageSpeed, SetMessageDisplaySpeed(), and ShowOnScreenMessage().
Referenced by HandleSpaceFlightControls(), SetMessageDisplaySpeed(), and UpdateShipTurretGuns().
| void SetMouseCursorShape | ( | unsigned char * | shape, |
| short | frame ) |
Definition at line 1357 of file eventmgr.c.
References QueuedMouseState::frame, g_15_nMouseRenderY, g_16_stEventQueuePointerData, g_4_nDrawnCursorX, g_abInputCursorBehind, g_nMouseCursorDrawDepth, g_pDrawnInputCursorShape, RestoreSpriteBackground(), SetMouseCursorShape(), QueuedMouseState::shape, QueuedMouseState::shapeChanged, and QueuedMouseState::viewport.
Referenced by DosMemmove(), InflightComputer(), PollSceneHotspotInput(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), and SetMouseCursorShape().
| void SetMouseHomePosition | ( | short | x, |
| short | y ) |
Definition at line 1377 of file eventmgr.c.
References g_16_stEventQueuePointerData, SetInputCursorHostPosition(), SetMouseHomePosition(), QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DosMemmove(), SetMouseHomePosition(), and SetPersonnelMousePosition().
| void SetMousePosition | ( | int | x, |
| int | y ) |
Definition at line 975 of file winmain.c.
References SetMousePosition().
Referenced by KeyboardMousePump(), PollMenuInputDevices(), and SetMousePosition().
| void SetMultimediaTimerCallback | ( | int | period | ) |
Definition at line 21 of file timer.c.
References FrameTimerCallback(), g_5_nFrameTimerWaitTicksValue, g_uFrameTimerEventId, and SetMultimediaTimerCallback().
Referenced by SetFrameTimerPeriod(), SetFrameTimerPeriodDirect(), SetMultimediaTimerCallback(), and UpdateShipTurretGuns().
| void SetMusBreakpt | ( | int | first, |
| int | second ) |
Definition at line 20 of file music.c.
References SetMusBreakpt().
Referenced by SetMusBreakpt(), UpdateShipTurretGuns(), and wait_for_end_of_music().
| void SetMusicOn | ( | short | enabled | ) |
Definition at line 25 of file music.c.
References SetMusicOn().
Referenced by EnableMusicForScene(), SetMusicOn(), and UpdateShipTurretGuns().
| void SetMusicStreamVolume | ( | unsigned short | volume | ) |
Definition at line 248 of file stream.cpp.
References ix_streamer_set_volume(), and SetMusicStreamVolume().
Referenced by CollectRasterClipColours(), HandleSpaceFlightControls(), and SetMusicStreamVolume().
| void SetMusicTickRateHook | ( | short | period | ) |
Definition at line 2214 of file eventmgr.c.
References SetMusicTickRateHook(), and void().
Referenced by DosMemmove(), LoadOriginFxDrivers(), and SetMusicTickRateHook().
| void SetNavMapCoordinateScaling | ( | short | enabled | ) |
Definition at line 89 of file nav.c.
References g_nNavMapCoordinateScaling, and SetNavMapCoordinateScaling().
Referenced by Build_objective_list(), SetNavMapCoordinateScaling(), and SetScale().
| void SetPaletteEntry | ( | short | index, |
| short * | rgb ) |
Definition at line 676 of file gr.c.
References DIBsetPalette(), and SetPaletteEntry().
Referenced by CollectRasterClipColours(), DrawSpaceSceneFrame(), FadeViewportPaletteToColour(), house_keep(), house_keep_objects(), PanToScreen(), ResetCockpitPaletteEntries(), RestoreGamePalette(), SetPaletteEntry(), and UpdateSpacePaletteFade().
| void SetPaletteEntryFromTriplet | ( | const unsigned char * | triplet, |
| short | index ) |
Definition at line 2202 of file eventmgr.c.
References DIBsetPalette(), and SetPaletteEntryFromTriplet().
Referenced by DosMemmove(), LoadGamePaletteFile(), and SetPaletteEntryFromTriplet().
| void SetPaletteTranslationTable | ( | const unsigned char * | translation | ) |
References SetPaletteTranslationTable().
Referenced by SetPaletteTranslationTable(), and SetSolidColourTranslation().
| void SetPersonnelCursorPosition | ( | int | x, |
| int | y, | ||
| short | unused1, | ||
| short | unused2 ) |
Definition at line 16 of file main.c.
References g_37_stPersonnelMousePointerState, SetPersonnelCursorPosition(), MouseCursorState::x, and MouseCursorState::y.
Referenced by KeyboardMousePump(), and SetPersonnelCursorPosition().
| void SetPersonnelMousePosition | ( | short | x, |
| short | y ) |
Definition at line 9 of file mousepos.c.
References g_16_stEventQueuePointerData, g_6_stPersonnelMouseData, SetMouseHomePosition(), SetPersonnelMousePosition(), PersonnelMouseSample::x, QueuedMouseState::x, PersonnelMouseSample::y, and QueuedMouseState::y.
Referenced by BarracksScreen(), CentreMouseOnCurrentNavObjective(), close_behind(), DrawCampaignChalkboardFrame(), HandleFleetOverviewInput(), InflightComputer(), InitializeCampaignChalkboardScreen(), player_input(), process_player_input(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunSpaceFlight(), RunTitleScreen(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), and SetPersonnelMousePosition().
| unsigned int SetRasterClipPixel | ( | RasterClip * | clip, |
| int | x, | ||
| int | y, | ||
| int | colour ) |
References SetRasterClipPixel().
Referenced by DrawViewportPixel(), and SetRasterClipPixel().
| void SetRectBounds | ( | Viewport * | viewport, |
| unsigned short | left, | ||
| unsigned short | top, | ||
| unsigned short | right, | ||
| unsigned short | bottom ) |
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 int SetRLEFramePalette | ( | unsigned char * | shape, |
| int | frame, | ||
| const unsigned char * | entries ) |
References SetRLEFramePalette().
Referenced by SetRLEFramePalette().
Definition at line 142 of file nav.c.
References CheckPoint(), find_ship_index(), g_13_nNavmapMapCentreX, g_2_nNavMapMinimumYValue, g_aMissionObjectives, g_aShipPosition, g_cMissionObjectiveCount, g_nNavMapCentreY, g_nNavmapMapMaximumY, g_nNavmapMapMinimumX, g_nNavMapScale, g_nNavPlotMaxX, IncludeNavMapWorldPoint(), MissionObjective::mapX, MissionObjective::mapY, MaxShort(), mobile_objective(), nav_getxy(), MissionObjective::position, SetNavMapCoordinateScaling(), SetScale(), and FixedVector::z.
Referenced by BuildMap(), and SetScale().
| void SetScreenClipRect | ( | unsigned short | a, |
| unsigned short | b, | ||
| unsigned short | c, | ||
| unsigned short | d ) |
Definition at line 607 of file nav.c.
References g_stSecondaryViewBufferBlock, SetRectBounds(), and SetScreenClipRect().
Referenced by BriefingMap_LoadShapes(), BuildMap(), DrawNavLocationReadout(), and SetScreenClipRect().
| void SetShipAiScratchWord | ( | unsigned short | v | ) |
Definition at line 128 of file fl.c.
References g_nShipAiScratchValue, and SetShipAiScratchWord().
Referenced by perform_maneuver(), and SetShipAiScratchWord().
| void SetSolidColourTranslation | ( | unsigned char | colour | ) |
Definition at line 354 of file gr.c.
References g_abSolidColourTranslation, SetPaletteTranslationTable(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), and SetSolidColourTranslation().
| void SetSoundEffectsVolume | ( | int | volume | ) |
Definition at line 413 of file sound.c.
References g_nAudioEnabled, ix_system_set_master_volume(), and SetSoundEffectsVolume().
Referenced by HandleSpaceFlightControls(), SetSoundEffectsVolume(), and UpdateShipTurretGuns().
Definition at line 192 of file dib.cpp.
References g_17_nFramePeriodMillis, g_bFrameTimingInitialized, g_dwNextFrameDeadline, g_fSpaceFlightFrameRate, g_nFrameTimingMode, and SetSpaceFlightFrameTiming().
Referenced by ReportSpaceFlightMaxFps(), RunSpaceFlight(), SetSpaceFlightFrameTiming(), and UpdateShipTurretGuns().
| void SetStreamerIntensity | ( | int | intensity | ) |
Definition at line 105 of file stream.cpp.
References g_nAudioEnabled, g_nStreamerAudioPlaying, ix_streamer_set_intensity(), SetStreamerIntensity(), and Streamer_play().
Referenced by CollectRasterClipColours(), ProcessMusicScriptCommand(), and SetStreamerIntensity().
| void SetStreamerTrigger | ( | int | trigger | ) |
Definition at line 116 of file stream.cpp.
References ForceStreamerTrigger(), g_nAudioEnabled, g_nStreamerAudioPlaying, ix_streamer_set_trigger(), and SetStreamerTrigger().
Referenced by CollectRasterClipColours(), ProcessMusicScriptCommand(), and SetStreamerTrigger().
| void SetTargetCameraEyePosition | ( | short | cameraMode | ) |
Definition at line 972 of file turret.c.
References EYE_OBJECT, g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_aTargetCameraEyeOffsets, SetTargetCameraEyePosition(), FixedVector::x, ShortVector::x, FixedVector::y, ShortVector::y, FixedVector::z, and ShortVector::z.
Referenced by DrawTextAt(), set_eye_direction_and_position(), and SetTargetCameraEyePosition().
| void SetTextContext | ( | TextContext * | context | ) |
Definition at line 179 of file eventmgr.c.
References g_29_pCurrentTextContext, SetTextContext(), and TextContext::text.
Referenced by BuildMap(), DrawCinematicMemoryStatus(), DrawCockpitReadout(), DrawCutsceneTextAt(), DrawNavLocationReadout(), DrawTextAt(), InflightComputer(), InitializeCockpitResources(), InitializeConversationText(), InitializeCutsceneViewports(), InitializeGameTextContexts(), InitializeTextContextFromFont(), intelligence_events(), PresentCutsceneFrame(), ResetGameTextContexts(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SetTextContext(), ShowMemoryStatusDebug(), update_digital_readouts(), update_VDUs(), UpdateInflightNavText(), and UpdateMap().
| void SetTextCursor | ( | unsigned short | a, |
| unsigned short | b ) |
Definition at line 172 of file eventmgr.c.
References TextContext::cursorX, TextContext::cursorY, g_29_pCurrentTextContext, and SetTextCursor().
Referenced by DrawCockpitReadout(), DrawModalTextPanel(), DrawNavMapLegend(), DrawPersonnelFileSlot(), DrawPersonnelMenuBackdrop(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), DrawTextAt(), DrawTransferredPilotRow(), InitializeCockpitResources(), intelligence_events(), LocateLegacySaveGame(), PollCampaignChalkboardMenu(), ReadPersonnelTextField(), ReadTextInput(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectTransferredPilot(), SetTextCursor(), and ShowNoTransferablePilots().
| 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().
| void SetVectorFixedPoint | ( | unsigned int * | p, |
| short | v ) |
Definition at line 754 of file geom.c.
References NormalizeAndScaleVector(), and SetVectorFixedPoint().
Referenced by make_shard(), send_at_point(), set_eye_direction_and_position(), and SetVectorFixedPoint().
Definition at line 241 of file wipe.c.
References Viewport::left, Viewport::right, and SetViewportHorizontalBounds().
Referenced by AdvanceViewportWipe(), CollectRasterClipColours(), FinishViewportWipe(), InitializeViewportWipe(), and SetViewportHorizontalBounds().
| void SetViewportRect | ( | Viewport * | viewport, |
| unsigned short | left, | ||
| unsigned short | top, | ||
| unsigned short | right, | ||
| unsigned short | bottom ) |
Definition at line 9 of file viewrect.c.
References Viewport::bottom, Viewport::left, Viewport::right, SetViewportRect(), and Viewport::top.
Referenced by auto_pilot_sequence(), DosMemmove(), HandleSpaceFlightControls(), initialize_cockpit(), InitializeCockpitResources(), RunSpaceFlight(), set_eye_direction_and_position(), and SetViewportRect().
Definition at line 892 of file wipe.c.
References Viewport::bottom, Viewport::left, Viewport::right, SetViewportRectangleBounds(), and Viewport::top.
Referenced by AdvanceViewportWipe(), CollectRasterClipColours(), FinishViewportWipe(), and SetViewportRectangleBounds().
Definition at line 248 of file wipe.c.
References Viewport::bottom, SetViewportVerticalBounds(), and Viewport::top.
Referenced by AdvanceViewportWipe(), CollectRasterClipColours(), FinishViewportWipe(), InitializeViewportWipe(), and SetViewportVerticalBounds().
| void SetWholePaletteFromTriplets | ( | unsigned char * | palette | ) |
Definition at line 204 of file eventmgr.c.
References DIBwholePaletteFromTriplets(), and SetWholePaletteFromTriplets().
Referenced by intelligence_events(), and SetWholePaletteFromTriplets().
Definition at line 1330 of file gr.c.
References g_101_stScrViewInfo, MarkDibDirty(), Viewport::pixels, RasterLineHook(), and shaded_triangle().
Referenced by CollectRasterClipColours(), and shaded_triangle().
Definition at line 1432 of file gr.c.
References g_101_stScrViewInfo, Viewport::left, MarkDibDirty(), Viewport::pixels, RasterLineHook(), and shadow_draw().
Referenced by CollectRasterClipColours(), and shadow_draw().
| short shape_loaded | ( | short | resourceType | ) |
Definition at line 763 of file mission.c.
References g_aObjectResourceSlots, and shape_loaded().
Referenced by new_sphere_shapes(), and shape_loaded().
| short shape_needed | ( | const MissionNavPoint * | navPoint, |
| short | resourceType ) |
Definition at line 775 of file mission.c.
References MissionNavPoint::preloadObjectTypes, and shape_needed().
Referenced by new_sphere_shapes(), and shape_needed().
| void ship_intelligence | ( | short | obj | ) |
Definition at line 861 of file brains.c.
References approach_cruise_speed(), coming_home(), defend_mission(), escort_mission(), fail(), g_acShipCollisionCooldown, g_asShipMissionType, inherit_leader_mission(), kilrathi_patrol(), MISSION_TYPE_COME_HOME, MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, MISSION_TYPE_GOTO_WARP, MISSION_TYPE_NONE, MISSION_TYPE_PATROL, MISSION_TYPE_RENDEZVOUS, MISSION_TYPE_ROUT, MISSION_TYPE_SPLIT_PATROL, MISSION_TYPE_STRIKE, MISSION_TYPE_WARP_ARRIVE, MISSION_TYPE_WINGMAN, reach_warp(), regulate_turn(), rendezvous_mission(), run_away(), ship_intelligence(), split_patrol_mission(), strike_mission(), warp_arrival(), and wingman_mission().
Referenced by object_intelligence(), and ship_intelligence().
| void ShipAiState28 | ( | short | ship, |
| short | target ) |
Definition at line 655 of file fl.c.
References HandleUnsupportedManeuver(), and ShipAiState28().
Referenced by ShipAiState28().
| void ShipAiState3 | ( | short | ship, |
| short | target ) |
Definition at line 980 of file fl.c.
References HandleUnsupportedManeuver(), and ShipAiState3().
Referenced by ShipAiState3().
| void ShipAiState35 | ( | short | ship, |
| short | target ) |
Definition at line 188 of file fl.c.
References HandleUnsupportedManeuver(), and ShipAiState35().
Referenced by ShipAiState35().
| void ShipAiState44 | ( | short | ship | ) |
Definition at line 959 of file fl.c.
References g_acShipStress, maneuver_complete(), and ShipAiState44().
Referenced by ShipAiState44().
| void ShipAiState45 | ( | short | ship, |
| short | target ) |
Definition at line 989 of file fl.c.
References approach_full_speed(), fire_afterburner(), g_nFacingToTarget, maneuver_complete(), point_ship_at_object(), ShipAiState45(), and unactive().
Referenced by ShipAiState45().
| void ShipAiState46 | ( | short | ship | ) |
Definition at line 664 of file fl.c.
References advance(), approach_full_speed(), fire_afterburner(), g_acShipSequence, g_anRollGoal, g_anYawGoal, g_asProjectileEvasionTicks, maneuver_complete(), no_goal(), RandomBelowOrEqual(), and ShipAiState46().
Referenced by ShipAiState46().
| void ShipAiState47 | ( | short | ship, |
| short | target ) |
Definition at line 642 of file fl.c.
References BeginShipCloak(), g_anShipCloakState, g_asShipCloakCooldown, maneuver_complete(), Mzip_past(), and ShipAiState47().
Referenced by ShipAiState47().
| short ShipExplosion | ( | short | obj | ) |
Definition at line 1786 of file ship.c.
References copy_frame(), find_vacant_3d_object(), FreePacketAndClear(), g_acObjectOwner, g_aeObjectClass, g_apObjectShape, g_aShipPosition, g_aShipVelocity, g_asLoadedShipViewFrame, g_asObjectScale, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_DATA_EXPLOSION_LARGE, OBJECT_DATA_EXPLOSION_MEDIUM, PlaySfxWaveFileByNumber(), RecordCannedSceneObjectEvent(), set_objects_data(), and ShipExplosion().
Referenced by BeginShipDestructionSequence(), DrawTextAt(), Explosion(), house_keep_objects(), and ShipExplosion().
| short ShipHasCloakingDevice | ( | short | ship | ) |
Definition at line 72 of file ship.c.
References g_aShipWeapons, and ShipHasCloakingDevice().
Referenced by DrawTextAt(), Set_up_ship_info(), and ShipHasCloakingDevice().
| short ShipHasTorpedo | ( | short | ship | ) |
Definition at line 122 of file ship.c.
References g_aShipWeapons, and ShipHasTorpedo().
Referenced by DrawTextAt(), request(), ShipHasTorpedo(), and target_valid().
| short ships_within_range | ( | short | obj, |
| short | other, | ||
| short | range ) |
Definition at line 654 of file logic.c.
References ComputeVectorDelta(), g_aShipPosition, IsVectorWithinRange(), and ships_within_range().
Referenced by close_behind(), ships_within_range(), and target_within_range().
| short ShouldWingmanAcceptRoutCommand | ( | short | ship, |
| short | pilot ) |
Definition at line 157 of file orders.c.
References any_enemy(), g_asShipMissionType, g_nYourWingman, g_stWingmanIntelligence, MISSION_TYPE_CANNED_SEQUENCE, ShipIntelligenceMetadata::routDecisionMode, ShouldWingmanAcceptRoutCommand(), and triumph().
Referenced by request(), ShouldWingmanAcceptRoutCommand(), and UpdateShipTurretGuns().
Definition at line 355 of file comm.c.
References DrawFormattedText(), DrawTextAt(), g_1_apszCommMenuChoiceTextTable, g_1_stRightVduTextContextBlock, g_4_stRightVduView, g_nCommMenuChoiceCount, g_nCommMenuReuseMode, g_pszCommScreenHeading, HandleCommunicationMenuRequest(), IsCommChoiceMenuOpen(), Viewport::left, set_new_vdu(), show_communications_disp(), and Viewport::top.
Referenced by SelectCockpitVduMode(), show_communications_disp(), update_VDUs(), and UpdateShipTurretGuns().
Definition at line 36 of file damage.c.
References DrawSpriteDefault(), DrawTextAt(), DrawViewportLine(), g_104_nHarmDisplayPhaseValue, g_15_nDamageDisplayState, g_1_pDashWeaponPicture, g_2_stLeftwardVduPortBlock, g_5_nWeaponDisplayOriginXValue, g_5_stLeftVduStringContextRecord, g_68_nDamageShowTicksNumber, g_acPlayerComponentDamage, g_bForceDamageDisplayRedraw, g_cDamagedPartCount, g_nArmsDisplayOriginY, g_stWeaponDisplayOffset, g_ucPrimaryTextColour, Viewport::left, Viewport::right, set_new_vdu(), show_damage_disp(), ShowComponentHitHudMessage(), Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by show_damage_disp(), update_VDUs(), and UpdateShipTurretGuns().
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 23 of file target.c.
References ObjectTypeData::armorFront, Viewport::bottom, DrawFormattedText(), DrawSpriteDefault(), DrawTextAt(), g_18_pCockpitIndicatorShape, g_1_stRightVduTextContextBlock, g_4_stRightVduView, g_aasShipArmor, g_aasShipShield, g_acObjectType, g_acShipTarget, g_aeObjectClass, g_aeSpecialManeuver, g_anCloakVisibilityPattern, g_anShipCloakState, g_aObjectTypeData, g_apShipMissionRecord, g_asObjectScreenX, g_asShipCloakElapsedFrames, g_asShipIdentified, g_aTargetArmorClipRects, g_bDisplayWingmanTargetData, g_bTargetLockMode, g_cRedColour, g_cTargetDisplayObject, g_nYourWingman, g_szEmptyTargetDisplayText, g_ucDefaultTextColour, InitializeCockpitReadout(), Viewport::left, MinShort(), OBJECT_CLASS_SHIP, Viewport::right, ObjectTypeData::shape, ObjectTypeData::shieldAft, ObjectTypeData::shieldFore, show_target_disp(), SPECIAL_MANEUVER_UNKNOWN_9, and Viewport::top.
Referenced by DrawTargetRangeReadout(), show_target_disp(), update_VDUs(), and UpdateShipTurretGuns().
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 ShowCentredPrompt | ( | char * | text, |
| unsigned short | arg ) |
Definition at line 451 of file comm.c.
References DosStrcpy(), g_bPrimaryViewBufferColour, g_szOnScreenMessageBuffer, SetHudMessageText(), and ShowCentredPrompt().
Referenced by real_vid_transmit(), ShowCentredPrompt(), and UpdateShipTurretGuns().
| 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().
| void ShowConfedNavScan | ( | short | refresh | ) |
Definition at line 1054 of file nav.c.
References DisableMouseCursorDrawing(), DrawNavLocationReadout(), EnableMouseCursorDrawing(), g_101_stScrViewInfo, SetRectBounds(), and ShowConfedNavScan().
Referenced by InflightComputer(), and ShowConfedNavScan().
| void ShowGamePausedBanner | ( | short | showBanner | ) |
Definition at line 187 of file message.c.
References ServiceSoundSystem(), ShowGamePausedBanner(), ShowOnScreenMessage(), and WaitForInputKey().
Referenced by HandleFleetOverviewInput(), HandleSpaceFlightControls(), ShowGamePausedBanner(), and UpdateShipTurretGuns().
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().
Definition at line 54 of file message.c.
References DrawFormattedText(), g_29_pCurrentTextContext, g_3_stDefaultStringContext, g_bPrimaryViewBufferColour, g_cSecondaryViewBufferColour, g_dwInitialSpareMemory, GetAvailableFarMemory(), GetAvailableMainMemory(), GetLargestFreeMemoryBlockByType(), GetOriginalFreeMemory(), InitializeTextContextFromFont(), SetTextContext(), and ShowMemoryStatusDebug().
Referenced by close_behind(), dump_buffer_to_screen(), RefreshMemoryStatusOverlay(), ReleaseSpaceflightResources(), RunCampaignGameLoop(), and ShowMemoryStatusDebug().
| void ShowModalMessage | ( | const char * | format, |
| ... ) |
Definition at line 83 of file message.c.
References AcknowledgeModalMessage(), ReleaseModalTextPanel(), ShowModalMessage(), and ShowModalTextPanel().
Referenced by ReportOutOfMemoryAndExit(), ShowModalMessage(), and UpdateShipTurretGuns().
| short ShowModalTextPanel | ( | short | fontIndex, |
| const char * | format, | ||
| ... ) |
Definition at line 163 of file optmenu.c.
References AllocateTaggedMemory(), DIBslamReal(), DrawModalTextPanel(), g_bPrimaryViewBufferColour, g_cBlueColour, g_cRedColour, g_cSecondaryViewBufferColour, g_pModalTextPanel, g_stModalBounds, InitializeModalTextPanel(), ShortRect::left, MarkDibDirty(), MeasureTextPixelWidthClamped(), ReleasePacketHandle(), RestoreModalTextPanel(), ShortRect::right, and ShowModalTextPanel().
Referenced by CalibrateJoystickInteractive(), ShowModalMessage(), ShowModalTextPanel(), and ShowOnScreenMessage().
| void ShowNoticeMessageBox | ( | const char * | text | ) |
Definition at line 194 of file winmain.c.
References DIBpositionWindow(), and ShowNoticeMessageBox().
Referenced by exit_squadron(), and ShowNoticeMessageBox().
Definition at line 1389 of file personnel.c.
References DrawFormattedText(), g_cCurrentKey, g_stSecondaryViewBufferBlock, RefreshMemoryStatusOverlay(), RestorePersonnelMenuBackground(), SetTextCursor(), ShowNoTransferablePilots(), and WaitForAnyInputPress().
Referenced by close_behind(), RunPilotDatabaseMenu(), and ShowNoTransferablePilots().
| void ShowOnScreenMessage | ( | short | duration, |
| const char * | format, | ||
| ... ) |
Definition at line 151 of file message.c.
References ClearDebugPauseFlags(), ClearHudMessageDisplay(), DosStrcpy(), FlushInputEvents(), FlushPendingInputPresses(), g_bPauseInputActive, g_cRedColour, g_szOnScreenMessageBuffer, MeasureMessageWidth(), ReleaseModalTextPanel(), ServiceSoundSystem(), SetHudMessageText(), ShowModalTextPanel(), ShowOnScreenMessage(), and WaitForInputKey().
Referenced by AdjustSpaceFramePeriod(), HandleSpaceFlightControls(), npc_communication(), ReportFramesSkipped(), SetMessageDisplaySpeed(), ShowGamePausedBanner(), ShowOnScreenMessage(), ShowVersionBanner(), and UpdateShipTurretGuns().
Definition at line 9 of file eject.c.
References ConfigureInputPump(), MouseCursorState::context, ejection_sequence(), g_18_nInterfaceEventMode, g_37_stPersonnelMousePointerState, g_88_nEventRepeatDelayState, g_stCurrentPilotProfile, PilotProfile::playerShipType, SetInputViewport(), ShowPlayerEjectionSequence(), and InputPumpContext::viewport.
Referenced by RunCampaignGameLoop(), and ShowPlayerEjectionSequence().
Definition at line 23 of file eject.c.
References ejection_sequence(), g_stCurrentPilotProfile, PilotProfile::playerShipType, and ShowPlayerStrandingSequence().
Referenced by RunCampaignGameLoop(), and ShowPlayerStrandingSequence().
Definition at line 198 of file message.c.
References g_pszGameVersion, ShowOnScreenMessage(), and ShowVersionBanner().
Referenced by HandleSpaceFlightControls(), ShowVersionBanner(), and UpdateShipTurretGuns().
| void ShowVictoryScreen | ( | short | logoY | ) |
Definition at line 485 of file intro.c.
References DrawScaledTitleLogo(), DrawSpriteDefault(), FlushSoundEffect(), FlushSoundEffects(), FireworkState::frame, g_16_aFireworks, g_bSceneEscapeRequested, g_nMusicDriverMode, g_nTitleMusicSequenceStage, g_pTitleFieldShape, g_stSecondaryViewBufferBlock, InitializeFireworks(), RandomInRange(), RefreshMemoryStatusOverlay(), ShowVictoryScreen(), FireworkState::soundHandle, TheEndFireWorks(), FireworkState::variant, void(), WaitForInputKey(), FireworkState::x, and FireworkState::y.
Referenced by ShowVictoryScreen(), and Title_Sequence().
| unsigned int shrink | ( | int * | component | ) |
Definition at line 2050 of file eventmgr.c.
References shrink().
Referenced by DosMemmove(), shrink(), and shrink_vector().
| unsigned int shrink_vector | ( | FixedVector * | vector | ) |
Definition at line 2036 of file eventmgr.c.
References shrink(), shrink_vector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by DosMemmove(), point_at(), set_eye_direction_and_position(), and shrink_vector().
Definition at line 521 of file eventmgr.c.
References g_18_bEventManagerInitializationState, g_18_pEventManager, ReleasePacketHandle(), and ShutdownEventManager().
Referenced by DosMemmove(), EMShutDown(), and ShutdownEventManager().
Definition at line 172 of file winmain.c.
References DestroyGlobalDebugOverlayConsole(), DIBunInstall(), g_10_hMainWindow, g_19_hOneProcessLock, g_48_dwGameExitClockValue, g_bApplicationShutdownStarted, and ShutdownGameWindow().
Referenced by exit_squadron(), PumpWindowMessages(), and ShutdownGameWindow().
Definition at line 127 of file nearheap.c.
References DosMemmove(), DosNearPtrToFar(), FreeIfNotNull(), g_1_nNearHeapBase, g_1_pNearHeapAllocationPtr, g_nNearArenaSize, g_nNearHeapActive, g_nNearHeapRelocationBytes, and ShutdownNearHeap().
Referenced by DrawTextAt(), and ShutdownNearHeap().
Definition at line 269 of file speech.c.
References FreePacketAndClear(), g_4_pDmaBufferPointer, g_pDigiSample, g_wDigiPlaying, and ShutdownSoundBlaster().
Referenced by DrawTextAt(), LogMemoryUsage(), and ShutdownSoundBlaster().
| 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().
Definition at line 44 of file stream.cpp.
References g_nAudioEnabled, ix_streamer_configure(), and SignalAudioMixerWakeEvent().
Referenced by CollectRasterClipColours(), MainWindowProc(), and SignalAudioMixerWakeEvent().
| short signed_random | ( | short | range | ) |
Definition at line 19 of file logic.c.
References RandomBelowOrEqual(), and signed_random().
Referenced by DrawTextAt(), generate_stars(), make_shard(), Mwabble(), prepare_for_jump(), signed_random(), tanker_intelligence(), try_far_spot(), and update_star_field().
| int SignExtendClipCoord | ( | volatile short | v | ) |
Definition at line 297 of file gr.c.
References SignExtendClipCoord().
Referenced by CollectRasterClipColours(), SignExtendClipCoord(), and ValidateViewportBounds().
| unsigned int SignFixed | ( | int | v | ) |
Definition at line 160 of file geom.c.
References SignFixed().
Referenced by approach_speed(), and SignFixed().
| long SinFixed | ( | short | degrees | ) |
Definition at line 80 of file eventmgr.c.
References DEG2RAD, and SinFixed().
Referenced by draw_target_box(), intelligence_events(), reposition_fixed_child_objects(), rotate_about_i(), rotate_about_j(), rotate_about_k(), and SinFixed().
| void skew_randomly | ( | short | obj, |
| short | allowReverse ) |
Definition at line 110 of file fields.c.
References g_aShipForwardVector, g_aShipRightVector, g_aShipUpVector, negate_vector(), RandomBelow(), and skew_randomly().
Referenced by init_hazard(), and skew_randomly().
| short skill_check | ( | short | obj, |
| short | margin ) |
Definition at line 807 of file logic.c.
References g_asPilotLevel, RandomBelowOrEqual(), and skill_check().
Referenced by check_for_lost_control(), close_behind(), pilot_hit(), rotate_object_to_goal(), and skill_check().
| void SkipCutsceneChunk | ( | unsigned char ** | cursor | ) |
Definition at line 89 of file iffload.c.
References IdentityHandle(), SkipCutsceneChunk(), and SwapSceneChunkSizeEndian().
Referenced by DecodeCutsceneObjectResource(), SkipCutsceneChunk(), and UpdateShipTurretGuns().
Definition at line 1665 of file gr.c.
References Viewport::bottom, g_101_stScrViewInfo, g_cSecondaryViewBufferColour, g_nViewportStaticRandomRange, Viewport::left, MarkDibDirty(), Viewport::pixels, RandomBelow(), RasterLineHook(), Viewport::right, Viewport::rowOffsets, snow_viewport(), and Viewport::top.
Referenced by CollectRasterClipColours(), malf_noise(), and snow_viewport().
Definition at line 720 of file ship.c.
References g_acViableTarget, g_asViableTargetDistance, g_cViableTargetCount, and SortViableTargetsByDistance().
Referenced by build_your_target_list(), DrawTextAt(), FF_missile_intelligence(), heat_seeking_missile_intelligence(), and SortViableTargetsByDistance().
| void sound_effect | ( | signed char | soundNumber, |
| short | sourceObject, | ||
| short | looping ) |
Definition at line 451 of file music.c.
References ComputeVectorDelta(), dot_product(), EYE_OBJECT, g_10_nAlternateSampleToggle, g_14_anObjectSoundEffects, g_abSoundEffectDefinitions, g_aShipPosition, g_aShipRightVector, g_bFlightSoundEffectsEnabled, g_nCannedSceneMode, g_nMusicDriverMode, MaxShort(), NormalizeFixedVector(), RecordCannedSceneBriefingCharacter(), sound_effect(), SoundDebugPrintf(), StartSoundEffectHook(), and Vector_magnitude().
Referenced by sound_effect(), and UpdateShipTurretGuns().
Definition at line 139 of file speech.c.
References EmsSaveMapping(), g_1_ucDmaPageValue, g_2_wDigiPosition, g_4_pDigiData, g_4_pDmaBufferPointer, g_nDigiLastBlock, g_nDmaHalfSelect, g_wDigiLeft, g_wDigiPlaying, g_wDmaAddressA, g_wDmaAddressB, g_wDmaCountA, g_wDmaCountB, g_wDmaHalfBytes, g_wSoundBlasterPort, IdentityDword(), SoundBlasterDspInterrupt(), SoundBlasterEndOfInterrupt(), SoundBlasterIn(), SoundBlasterOut(), SoundBlasterWaitWrite(), and StopDigiPlayback().
Referenced by DrawTextAt(), and SoundBlasterDspInterrupt().
Definition at line 119 of file speech.c.
References EmsRestoreMapping(), g_105_nEmsIsrBusyValue, SoundBlasterEndOfInterrupt(), and SoundBlasterOut().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), and SoundBlasterEndOfInterrupt().
| unsigned char SoundBlasterIn | ( | unsigned short | port | ) |
Definition at line 32 of file speech.c.
References SoundBlasterIn().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), and SoundBlasterIn().
| void SoundBlasterOut | ( | unsigned short | port, |
| unsigned char | value ) |
Definition at line 25 of file speech.c.
References SoundBlasterOut().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), SoundBlasterEndOfInterrupt(), and SoundBlasterOut().
Definition at line 39 of file speech.c.
References SoundBlasterWaitWrite().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), and SoundBlasterWaitWrite().
| void SoundDebugPrintf | ( | const char * | fmt, |
| ... ) |
Definition at line 64 of file mono.c.
References g_12_szSoundTraceScratch, MonoDebug_print(), and SoundDebugPrintf().
Referenced by FlushSoundEffect(), FlushSoundEffects(), FlushSoundEffectsAndLog(), LogUnknownSoundEffect(), PlayRawSpeechBuffer(), PlaySfxWaveFileByNumber(), playWAVE(), ProcessMusicScriptCommand(), RunCutsceneScript(), sound_effect(), SoundDebugPrintf(), StartInteractiveMusic(), StartMusic(), and Streamer_open().
| void spacetrack | ( | int | track, |
| int | mode, | ||
| int | enabled ) |
Definition at line 152 of file music.c.
References g_nMusicDriverMode, ProcessMusicScriptCommand(), and spacetrack().
Referenced by death_sequence(), gametrack(), new_space_music_changes(), RunCampaignChalkboardMenu(), RunTitleScreen(), spacetrack(), TryBeginStarSystemJump(), and UpdateShipTurretGuns().
| void SpawnCapitalFlakProjectile | ( | short | weapon, |
| short | obj, | ||
| int | x, | ||
| int | y, | ||
| int | z ) |
Definition at line 986 of file brains.c.
References AddFixedVectors(), ComputeVectorDelta(), ObjectTypeData::damageCapacity, g_acObjectOwner, g_acObjectType, g_acShipTarget, g_aObjectTypeData, g_aShipPosition, g_asObjectCounter, g_asObjectDamage, ObjectTypeData::lifetime, ObjectTypeData::maximumVelocity, new_object(), NormalizeFixedVector(), RecordCannedSceneObjectEvent(), ScaleFixedVector(), send_at_point(), SpawnCapitalFlakProjectile(), and zero_vector().
Referenced by capital_ship_strike_mission(), and SpawnCapitalFlakProjectile().
| short SpawnFlakBurst | ( | short | obj, |
| short | range, | ||
| FixedVector * | hardpoint, | ||
| short | burstMode ) |
Definition at line 2276 of file ship.c.
References AddFixedVectors(), explosion_shock_wave(), fire_flack(), g_acShipTarget, g_aObjectTypeData, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asObjectType, MaxShort(), new_object(), RandomBelow(), RandomBelowOrEqual(), RandomFixedAimComponent(), real_velocity(), ScaleFixedVector(), SpawnFlakBurst(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by DrawTextAt(), fire_turrets(), and SpawnFlakBurst().
| void SpawnMissionEjectionPod | ( | short | obj | ) |
Definition at line 43 of file destroy.c.
References FetchDiskPacketRetrying(), g_13_stMissionHeaderBlock, g_acMissionShipStatusFlagsBytes, g_aObjectTypeData, g_aShipVelocity, g_asShipMissionIndex, g_bMissionEjectionPodSpawned, g_nYourWingman, MissionHeader::initialMissionShips, OBJECT_DATA_EJECTION_POD, RecordCannedSceneObjectEvent(), set_objects_data(), ObjectTypeData::shapeSet, SpawnMissionEjectionPod(), and zero_vector().
Referenced by DosMemmove(), house_keep_objects(), and SpawnMissionEjectionPod().
| void split_patrol_mission | ( | short | obj | ) |
Definition at line 569 of file brains.c.
References g_acShipNavPoint, g_aeShipObjective, g_asShipMissionParameter, g_asShipWingLeader, g_nCurrentNavPoint, imperial_wingman(), OBJECTIVE_HOLD_FORMATION, and split_patrol_mission().
Referenced by ship_intelligence(), and split_patrol_mission().
| void SplitGameClockTicks | ( | unsigned char * | parts | ) |
Definition at line 9 of file clock.c.
References GetGameClockTicks(), and SplitGameClockTicks().
Referenced by SplitGameClockTicks().
| void SplitGameClockTicksForNav | ( | unsigned char * | parts | ) |
Definition at line 2383 of file eventmgr.c.
References GetGameClockTicks(), and SplitGameClockTicksForNav().
Referenced by close_behind(), FormatNavCoordinates(), and SplitGameClockTicksForNav().
| void SplitPackedPoint | ( | ShortPoint | point, |
| short * | p ) |
Definition at line 255 of file eventmgr.c.
References IsPointInRect(), SplitPackedPoint(), ShortPoint::x, and ShortPoint::y.
Referenced by intelligence_events(), and SplitPackedPoint().
| void start_collision_alert | ( | short | obj, |
| short | other ) |
Definition at line 45 of file logic.c.
References g_acShipAlertSource, g_asShipAfterburnerTimer, g_asShipAlertCountdown, set_alert(), set_special(), SPECIAL_MANEUVER_NONE, start_collision_alert(), and steady_object().
Referenced by DrawTextAt(), handle_collisions(), and start_collision_alert().
| unsigned int start_dust | ( | short | obj, |
| FixedVector | origin, | ||
| short | forwardDistance, | ||
| int | rightOffset, | ||
| int | upOffset ) |
Definition at line 648 of file spc.c.
References AddFixedVectors(), EYE_OBJECT, FillFixedVectorWithRandomComponents(), g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_aShipVelocity, g_asObjectScreenAngle, MaxShort(), RandomInRange(), ScaleFixedVector(), set_objects_data(), and start_dust().
Referenced by generate_stars(), start_dust(), and update_star_field().
| void start_hazard_field | ( | short | region | ) |
Definition at line 399 of file fields.c.
References g_abHazardObjects, g_aHazardFields, g_pActiveHazardField, make_hazard(), remove_all_hazards(), and start_hazard_field().
Referenced by check_hazards(), and start_hazard_field().
| 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().
| short StartInteractiveMusic | ( | int | track | ) |
Definition at line 44 of file music.c.
References ProcessMusicScriptCommand(), SoundDebugPrintf(), and StartInteractiveMusic().
Referenced by RunCutsceneScript(), StartInteractiveMusic(), and UpdateShipTurretGuns().
| short StartMusic | ( | void * | music | ) |
Definition at line 37 of file music.c.
References SoundDebugPrintf(), and StartMusic().
Referenced by StartMusic(), Title_Sequence(), and UpdateShipTurretGuns().
| int StartSoundEffectHook | ( | const unsigned char * | definition, |
| int | effectHandle, | ||
| int | volume, | ||
| int | pan, | ||
| int | sample, | ||
| int | looping ) |
Definition at line 54 of file music.c.
References StartSoundEffectHook().
Referenced by LogUnknownSoundEffect(), sound_effect(), StartSoundEffectHook(), and UpdateShipTurretGuns().
| void StartupHook | ( | unsigned int(* | callback )(unsigned int, short) | ) |
Definition at line 1927 of file eventmgr.c.
References StartupHook(), and void().
Referenced by DosMemmove(), and StartupHook().
| void stationary_intelligence | ( | short | obj | ) |
Definition at line 969 of file brains.c.
References fire_turrets(), g_acShipTarget, g_aeObjectClass, g_anObjectYawRotation, g_asShipMissionType, g_asShipSide, MISSION_TYPE_STRIKE, OBJECT_CLASS_BASE, OBJECT_CLASS_CAPITAL_SHIP, and stationary_intelligence().
Referenced by capital_ship_intelligence(), object_intelligence(), and stationary_intelligence().
| void steady_object | ( | short | ship | ) |
Definition at line 698 of file ship.c.
References g_anPitchGoal, g_anRollGoal, g_anYawGoal, and steady_object().
Referenced by alter_objective(), chase_location(), DrawTextAt(), fire_weapon(), formation_break(), goto_formation(), init_formation_burst(), Msit_n_spin(), reset_objective(), start_collision_alert(), steady_object(), and try2reset_maneuver().
| void steer_away_from_object | ( | short | obj, |
| short | other, | ||
| short | amount ) |
Definition at line 40 of file smart.c.
References AddFixedVectors(), ComputeVectorDelta(), g_anPitchGoal, g_anRollGoal, g_anYawGoal, g_aShipPosition, g_aShipVelocity, steer_away_from_object(), transform_to_objects_frame(), FixedVector::x, and FixedVector::y.
Referenced by Mget_distance(), Mveer_away(), steer_away_from_object(), and UpdateShipTurretGuns().
| void steer_away_from_predicted_object | ( | short | obj, |
| short | other, | ||
| short | predictionTicks, | ||
| short | amount ) |
Definition at line 72 of file smart.c.
References AddFixedVectors(), ComputeVectorDelta(), g_anPitchGoal, g_anRollGoal, g_anYawGoal, g_aShipPosition, g_aShipVelocity, ScaleFixedVector(), steer_away_from_predicted_object(), transform_to_objects_frame(), FixedVector::x, and FixedVector::y.
Referenced by prevent_collision(), steer_away_from_predicted_object(), and UpdateShipTurretGuns().
| short StepPaletteTransition | ( | short * | current, |
| const short * | target, | ||
| short | componentCount ) |
Definition at line 12 of file fade.c.
References AllocateTaggedMemory(), g_2_nPaletteTransitionMaxDelta, g_nPaletteTransitionCountdownNumber, g_nPaletteTransitionInitialise, g_pPaletteTransitionAccumulator, g_pPaletteTransitionDeltaPtr, g_pPaletteTransitionDirectionRef, ReleasePacketHandle(), and StepPaletteTransition().
Referenced by FadeViewportPaletteToColour(), PanToScreen(), and StepPaletteTransition().
Definition at line 331 of file sound.c.
References FreeWaveTable(), g_9_pSnowStaticAudio, g_pSnowStaticClip, ix_sound_release(), ix_sound_stop(), ix_system_delete_all_samples(), ix_system_delete_all_sounds(), and stop_all_sounds().
Referenced by FlushSoundEffect(), FlushSoundEffects(), stop_all_sounds(), and UpdateShipTurretGuns().
Definition at line 129 of file speech.c.
References g_wDigiPlaying, and StopDigiPlayback().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), and StopDigiPlayback().
| void StopMusic | ( | short | enabled | ) |
Definition at line 30 of file music.c.
References g_nCurrentMusicTrack, StopMusic(), and Streamer_stop().
Referenced by lock_off(), ProcessMusicScriptCommand(), ReleaseSceneMusicPacket(), RunCutsceneScript(), RunLoadedCutscene(), StopMusic(), StopMusicUnlessSuppressed(), Title_Sequence(), UpdateShipTurretGuns(), and wait_for_end_of_music().
Definition at line 381 of file startup.c.
References g_nMusicDriverMode, StopMusicIfDriverActive(), and StopMusicStream().
Referenced by DrawTextAt(), LogMemoryUsage(), and StopMusicIfDriverActive().
Definition at line 14 of file music.c.
References StopMusicStream(), and Streamer_stop().
Referenced by StopMusicIfDriverActive(), StopMusicStream(), and UpdateShipTurretGuns().
Definition at line 160 of file music.c.
References g_nMusicDriverMode, StopMusic(), and StopMusicUnlessSuppressed().
Referenced by death_sequence(), free_inflight_music(), PromptToContinueCampaign(), RunCampaignChalkboardMenu(), RunTitleScreen(), StopMusicUnlessSuppressed(), and UpdateShipTurretGuns().
| void StopSoundsUsingWave | ( | const char * | name | ) |
Definition at line 199 of file sound.c.
References FindActiveSoundEntryBySample(), FindWaveTableEntryByName(), g_nAudioEnabled, ix_system_delete_sound(), RemoveActiveSoundEntry(), WaveTableEntry::sample, ActiveSoundEntry::sound, and StopSoundsUsingWave().
Referenced by StopSoundsUsingWave(), and UpdateShipTurretGuns().
| void StoreMissionResultsInCampaignGlobals | ( | CampaignGlobals * | globals | ) |
Definition at line 46 of file campglob.c.
References achieved(), AllocateScenePointerTable(), CampaignGlobals::arcadeState, calculate_damage_level(), CampaignGlobals::damageLevel, FreePacketAndClear(), g_36_cPilotKillCountValue, g_4_acInitialShipKillNumber, g_6_bMissionWingmanState, g_acMissionShipStatusFlagsBytes, g_asShipSide, g_nArcadeState, g_pPilotStatus, g_stCurrentPilotProfile, GetInitialMissionShipPilotSaveIndex(), GetMissionShipVelocityState(), CampaignGlobals::missionScore, PilotProfile::missionScore, CampaignGlobals::objectiveFlags, CampaignGlobals::objectiveSighted, CampaignGlobals::pilotCount, CampaignGlobals::pilotStatus, CampaignGlobals::shipKillCounts, CampaignGlobals::shipMissionFlags, CampaignGlobals::shipPilotIndices, CampaignGlobals::shipVelocityState, sighted(), StoreMissionResultsInCampaignGlobals(), and visited().
Referenced by ejection_sequence(), RunCampaignGameLoop(), and StoreMissionResultsInCampaignGlobals().
| void streak_toward | ( | short | obj, |
| short | goal, | ||
| short | range ) |
Definition at line 656 of file brains.c.
References approach_full_speed(), CanSetNewShipTurnGoal(), fire_afterburner(), normal_speed(), point_ship_at_object(), RandomBelow(), streak_toward(), and veer_random().
Referenced by approach_and_engage(), return_to_master(), and streak_toward().
Definition at line 140 of file stream.cpp.
References g_nAudioEnabled, ix_streamer_close_stream_file(), and Streamer_close().
Referenced by CollectRasterClipColours(), and Streamer_close().
| void Streamer_open | ( | const char * | streamName | ) |
Definition at line 65 of file stream.cpp.
References g_nAudioEnabled, g_nStreamerAudioPlaying, g_szStreamerDirectory, ix_streamer_open_stream_file(), LocateStreamsDirOnDisc(), SoundDebugPrintf(), and Streamer_open().
Referenced by CollectRasterClipColours(), ProcessMusicScriptCommand(), and Streamer_open().
Definition at line 81 of file stream.cpp.
References g_nAudioEnabled, g_nStreamerAudioPlaying, ix_streamer_audio_play(), and Streamer_play().
Referenced by CollectRasterClipColours(), ForceStreamerTrigger(), SetStreamerIntensity(), and Streamer_play().
Definition at line 93 of file stream.cpp.
References g_nAudioEnabled, g_nStreamerAudioPlaying, ix_streamer_audio_stop(), and Streamer_stop().
Referenced by CollectRasterClipColours(), ProcessMusicScriptCommand(), StopMusic(), StopMusicStream(), and Streamer_stop().
| short stress_morale | ( | short | obj | ) |
Definition at line 427 of file smart.c.
References g_acShipStress, and stress_morale().
Referenced by maintain_formation(), pick_kilrathi_maneuver(), pick_regular_maneuver(), process_maneuver_node(), and stress_morale().
| void strike_mission | ( | short | obj | ) |
Definition at line 708 of file brains.c.
References approach_and_engage(), change_mission_type(), check_destroy_target(), check_goal(), cruise_to_destination(), fail(), find_ship_index(), flag_objective(), formation_burst(), g_13_stMissionHeaderBlock, g_aeObjectClass, g_aeShipObjective, g_aMissionShips, g_aShipDestination, g_aShipMissionSpot, g_asShipMissionIndex, g_asShipMissionParameter, g_asShipTactic, g_bHomeObjectiveFlagged, g_cCurrentObjective, get_first_follow_point(), MissionHeader::homeMissionShip, is_team_member(), locate_ship(), maneuvering(), OBJECT_CLASS_FUTURION, OBJECTIVE_BREAK_FORMATION, OBJECTIVE_DESTROY_SHIP, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOLD_FORMATION, OBJECTIVE_HOME_BASE, OBJECTIVE_NONE, reset_objective(), reset_tactic(), set_next_destination(), strike_mission(), TACTIC_CRUISE, and TACTIC_NONE.
Referenced by ship_intelligence(), and strike_mission().
| void sub_int_vector | ( | const ShortVector * | left, |
| const ShortVector * | right, | ||
| ShortVector * | difference ) |
Definition at line 1093 of file mission.c.
References sub_int_vector(), ShortVector::x, ShortVector::y, and ShortVector::z.
Referenced by set_formation_position(), and sub_int_vector().
| void SubtractFixedVectors | ( | FixedVector * | left, |
| FixedVector * | right, | ||
| FixedVector * | difference ) |
Definition at line 220 of file geom.c.
References SubtractFixedVectors(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by auto_pilot_sequence(), fire_weapon(), init_hazard(), object_collision(), and SubtractFixedVectors().
| void SwapSceneChunkSizeEndian | ( | int * | value | ) |
Definition at line 32 of file iffload.c.
References SwapSceneChunkSizeEndian().
Referenced by ConsumeCutscenePalettePacket(), DecodeSceneFileChunk(), DecodeSceneOffsetChunk(), DecodeSceneStructChunk(), DecodeSceneSymbolChunk(), DrawTextAt(), ReadNextSceneForm(), SkipCutsceneChunk(), and SwapSceneChunkSizeEndian().
| void SystemDebugPrintf | ( | const char * | format, |
| ... ) |
Definition at line 30 of file console.cpp.
References DebugOverlayPrintf(), g_4_szSystemDebugBuffer, g_pDiagnosticOverlay, SystemDebugPrintf(), and WriteDebugString().
Referenced by close_behind(), DrawTextString(), InitializeDIBScreenViewport(), LogDisplayMode(), PacketLoad(), SetInputKeyState(), and SystemDebugPrintf().
| unsigned char TakeDebugStepFlag | ( | void | ) |
Definition at line 52 of file console.cpp.
References g_pDiagnosticOverlay, TakeDebugStepFlag(), and DebugOverlayConsole::TakeStepFlag().
Referenced by close_behind(), and TakeDebugStepFlag().
| int TakeInputPressCount | ( | void | ) |
Definition at line 1313 of file winmain.c.
References g_nInputPressCount, and TakeInputPressCount().
Referenced by FlushPendingInputPresses(), RunCutsceneScript(), RunTitleScreen(), and TakeInputPressCount().
| void tanker_intelligence | ( | short | obj | ) |
Definition at line 932 of file brains.c.
References approach_cruise_speed(), approach_full_speed(), attacker_in_range(), CanSetNewShipTurnGoal(), fire(), g_acShipTarget, g_anRollGoal, g_anYawGoal, g_nTargetShip, get_facing_range_from_object(), orbit_sphere(), point_capital_ship_at_object(), RandomBelowOrEqual(), signed_random(), and tanker_intelligence().
Referenced by capital_ship_intelligence(), and tanker_intelligence().
| 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().
| short target_valid | ( | short | obj, |
| short | target ) |
Definition at line 968 of file logic.c.
References CanShipWeaponDamageTarget(), g_anShipCloakState, g_asShipCloakElapsedFrames, g_asShipSide, ShipHasTorpedo(), target_valid(), and unactive().
Referenced by check_destroy_target(), check_engage_target(), close_behind(), scan_for_enemy(), target_valid(), and target_within_range().
| short target_within_range | ( | short | obj | ) |
Definition at line 712 of file logic.c.
References g_acShipTarget, ships_within_range(), target_valid(), target_within_range(), and unactive().
Referenced by close_behind(), and target_within_range().
| short TheEndFireWorks | ( | Viewport * | viewport, |
| short | count ) |
Definition at line 26 of file starfld.c.
References DrawSpriteDefault(), FlushSoundEffectsAndLog(), FireworkState::frame, g_16_aFireworks, g_1_pTitleFireworkShape, PlaySfxWaveFileByNumber(), FireworkState::soundHandle, TheEndFireWorks(), and void().
Referenced by ShowVictoryScreen(), TheEndFireWorks(), and UpdateShipTurretGuns().
| void ThrottleFrameAndDrawFps | ( | HDC | dc | ) |
Definition at line 133 of file dib.cpp.
References g_16_stEventQueuePointerData, g_17_nFramePeriodMillis, g_18_pDisplayPixelBuffer, g_59_szFrameFrequencyString, g_bFrameTimingInitialized, g_bShowFrameRate, g_dwNextFrameDeadline, g_fMeasuredFrameRate, g_lPreviousFrameTick, Viewport::pixels, RefreshMouseCursorDisplay(), SetDefaultFrameTiming(), TextOutA(), ThrottleFrameAndDrawFps(), and QueuedMouseState::viewport.
Referenced by DIBslamReal(), ThrottleFrameAndDrawFps(), and UpdateShipTurretGuns().
Definition at line 1485 of file eventmgr.c.
References TimerResetHook().
Referenced by ClearMemoryHeaps(), DosMemmove(), and TimerResetHook().
Definition at line 1503 of file eventmgr.c.
References TimerStopHook().
Referenced by DosMemmove(), MessagePumpHook(), and TimerStopHook().
Definition at line 51 of file intro.c.
References AnimateTitleOrchestra(), ClearViewport(), DrawTitleOrchestra(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), FreePacketAndClear(), g_18_nInterfaceEventMode, g_1_pTitleFireworkShape, g_2_stModalSourceWindow, g_apTitleSections, g_bSceneEscapeRequested, g_cSecondaryViewBufferColour, g_nMusicDriverMode, g_nTitleMusicSequenceStage, g_pTitleFieldShape, g_pTitleMusic, InitializeConversationViewport(), PlayTitleConductorCue(), PushTitleOrchestraAway(), ReleasePacketHandle(), ResetScreenClipToFullHeight(), RestoreGamePalette(), RevealTitleLogo(), ShowVictoryScreen(), StartMusic(), StopMusic(), Title_Sequence(), and WaitForInputKey().
Referenced by Title_Sequence().
Definition at line 676 of file turret.c.
References DrawSpriteDefault(), g_101_stScrViewInfo, g_8_nGunDisplaySlot, g_abGunDisplayConfiguration, g_acShipTarget, g_apCockpitVduOverlayShapes, g_nAimCameraMode, g_nTargetCameraFrame, g_nTargetCameraZoom, and ToggleTargetCameraOverlay().
Referenced by DrawTextAt(), HandleSpaceFlightControls(), ResetTargetCameraView(), and ToggleTargetCameraOverlay().
Definition at line 740 of file turret.c.
References ClearTargetCameraView(), find_vacant_3d_object(), g_19_bStoredHighMemoryEnabled, g_acShipTarget, g_aObjectTypeData, g_aShipPosition, g_asObjectViewFrame, g_nObjectType62Index, g_nObjectType63Index, g_nSpaceFrame, g_nTargetCameraEffectObjectA, g_nTargetCameraEffectObjectB, g_nTargetCameraFrame, g_nTargetCameraObject, g_nTargetCameraZoom, PlaySfxWaveFileByNumber(), set_objects_data(), ToggleTargetCameraTracking(), and FixedVector::z.
Referenced by DrawTextAt(), HandleFleetOverviewInput(), and ToggleTargetCameraTracking().
Definition at line 842 of file winmain.c.
References FreedHeapBlock::block, g_pFreedHeapBlockHead, g_pFreedHeapBlockTail, FreedHeapBlock::next, and TrackFreedHeapBlock().
Referenced by FreeGuardedAllocation(), and TrackFreedHeapBlock().
Definition at line 1022 of file geom.c.
References ComputeVectorDelta(), DivideFixed(), draw_nav_pointer(), EYE_OBJECT, g_aeObjectClass, g_anCloakVisibilityPattern, g_anShipCloakState, g_aShipPosition, g_asObjectCollisionRadius, g_asObjectCounter, g_asObjectDistance, g_asObjectScale, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectScreenX, g_asObjectScreenY, g_asObjectType, g_asObjectViewFrame, g_asShipCloakElapsedFrames, g_nNavPointerObject, g_nScreenWidth, g_nSpaceFrame, get_right_shape(), MaxShort(), MinShort(), MultiplyFixed(), OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_DEBRIS, OBJECT_CLASS_DUST, OBJECT_CLASS_EXPLOSION, OBJECT_CLASS_FIXED_OBJECT, OBJECT_CLASS_FUTURION, OBJECT_CLASS_MISSILE, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, OBJECT_CLASS_STAR, set_background_objects_rotation(), SPACE_LAST_MOVING_OBJECT, transform_objects_to_your_view(), transform_to_objects_frame(), Vector_magnitude(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by DrawSpaceSceneFrame(), and transform_objects_to_your_view().
| void transform_to_objects_frame | ( | const FixedVector * | source, |
| FixedVector * | destination, | ||
| short | obj ) |
Definition at line 495 of file geom.c.
References dot_product(), g_aShipForwardVector, g_aShipRightVector, g_aShipUpVector, transform_to_objects_frame(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by apply_force_to_object(), draw_3d_scanner(), draw_nav_pointer(), get_right_shape(), object_collision(), rotational_acceleration(), set_objective_range(), set_ship_rotation_goals(), steer_away_from_object(), steer_away_from_predicted_object(), transform_objects_to_your_view(), transform_to_objects_frame(), update_star_field(), and UpdateTargetLeadIndicator().
| void TransformRLEPoint | ( | int * | point, |
| int * | result, | ||
| int * | origin, | ||
| unsigned int | angleTenths, | ||
| int | scaleX, | ||
| int | scaleY ) |
References TransformRLEPoint().
Referenced by TransformRLEPoint().
| void TranslatePolledInputEvent | ( | unsigned short | type, |
| unsigned int | value ) |
Definition at line 550 of file eventmgr.c.
References g_16_stEventQueuePointerData, g_6_stHostMouseTextBlock, g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, HostMouseMessage::primaryButton, QueueInputEvent(), HostMouseMessage::secondaryButton, TranslatePolledInputEvent(), QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DosMemmove(), get_player_input(), and TranslatePolledInputEvent().
| unsigned int TranslateRLEFramePalette | ( | unsigned char * | shape, |
| int | frame ) |
References TranslateRLEFramePalette().
Referenced by TranslateRLEFramePalette().
| void triangle | ( | Viewport * | viewport, |
| ShortPoint * | points, | ||
| int | colour ) |
Definition at line 1318 of file gr.c.
References FillPolygon(), g_101_stScrViewInfo, MarkDibDirty(), Viewport::pixels, RasterLineHook(), and triangle().
Referenced by CollectRasterClipColours(), and triangle().
Definition at line 309 of file main.c.
References g_1_asSpacePaletteFade, g_nCurrentView, and TriggerPlayerHitPaletteFlash().
Referenced by close_behind(), inflict_damage(), and TriggerPlayerHitPaletteFlash().
| void trim_goals | ( | short | obj, |
| short | amount ) |
Definition at line 201 of file logic.c.
References g_anPitchGoal, g_anYawGoal, and trim_goals().
Referenced by chase_location(), DrawTextAt(), goto_formation(), orbit_sphere(), patrol_area(), trim_goals(), and UpdateTargetCameraObject().
| short triumph | ( | short | obj | ) |
Definition at line 983 of file logic.c.
References dead_ship(), g_abFlightPath, g_asShipMissionParameter, g_asShipMissionType, MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, MISSION_TYPE_PATROL, MISSION_TYPE_STRIKE, MISSION_TYPE_WINGMAN, triumph(), and visited().
Referenced by changetrack(), close_behind(), ShouldWingmanAcceptRoutCommand(), and triumph().
| void try2allow_engage | ( | short | obj | ) |
Definition at line 218 of file brains.c.
References allow_engage(), ShipIntelligenceMetadata::engagementMode, g_nAutoEngageTimer, g_nYourWingman, g_stWingmanIntelligence, RandomBelowOrEqual(), and try2allow_engage().
Referenced by imperial_formation(), and try2allow_engage().
| void try2end_collision_alert | ( | short | obj | ) |
Definition at line 58 of file logic.c.
References clear_alert(), g_asShipAlertCountdown, set_alert(), and try2end_collision_alert().
Referenced by DrawTextAt(), prevent_collision(), and try2end_collision_alert().
| void try2reset_maneuver | ( | short | obj, |
| short | maneuver ) |
Definition at line 484 of file logic.c.
References g_asShipManeuver, reset_maneuver(), steady_object(), and try2reset_maneuver().
Referenced by DrawTextAt(), and try2reset_maneuver().
| short try2rout | ( | short | obj | ) |
Definition at line 272 of file logic.c.
References any_enemy(), g_acMissionShipStatusFlagsBytes, g_acShipStress, g_aeObjectClass, g_aeSpecialManeuver, g_asShipSide, g_nYourWingman, maneuver_complete(), MISSION_TYPE_ROUT, OBJECT_CLASS_CAPITAL_SHIP, reset_mission_type(), send_message(), SPECIAL_MANEUVER_UNKNOWN_9, and try2rout().
Referenced by DrawTextAt(), Mrout_me(), request(), and try2rout().
| short try_far_spot | ( | FixedVector * | spot, |
| short * | moving ) |
Definition at line 235 of file fields.c.
References copy_frame(), find_ratio(), g_acHazardPitchRange, g_anObjectPitchRotation, g_anObjectYawRotation, g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_nCurrentView, g_pActiveHazardField, IsPointWithinRange(), position_relative_ijk(), RandomBelow(), rotate_about_i(), rotate_about_j(), SCRATCH_VIEW_OBJECT, signed_random(), try_far_spot(), and within_field().
Referenced by make_hazard(), and try_far_spot().
Definition at line 135 of file jump.c.
References ejection_sequence(), equ_vector(), force_view(), g_1_nSavedPlayerObjectCounter, g_acJumpDriveUsedBySystem, g_aeObjectClass, g_aMissionNavPoints, g_aMissionObjectives, g_apShipMissionRecord, g_aShipDestination, g_asObjectCounter, g_asObjectType, g_asShipCount, g_asShipMissionParameter, g_asShipMissionType, g_asShipSide, g_asShipTactic, g_bJumpSequenceActive, g_bStarSystemJumpTransition, g_cCurrentObjective, g_cYellowColour, g_nCurrentNavPoint, g_nCurStellarSystem, g_nEjectionSequenceState, g_nPendingEjectionSequenceCount, g_nSavedWingmanObjectCounterValue, g_nStarSystemJumpDelay, g_nYourWingman, g_pszAutopilotWaitReason, g_ucPendingEjectionTransition, MISSION_TYPE_GOTO_WARP, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, set_global_message(), SIDE_KILRATHI, spacetrack(), TACTIC_SIT_STILL, and TryBeginStarSystemJump().
Referenced by HandleSpaceFlightControls(), and TryBeginStarSystemJump().
| short TryPlaceNavMapLabel | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | force ) |
Definition at line 337 of file nav.c.
References g_1_aNavMapLabels, g_nNavMapLabelCount, NavMapLabelFits(), NavMapLabelPositionAvailable(), TryPlaceNavMapLabel(), NavMapLabel::x, and NavMapLabel::y.
Referenced by PlaceNavMapLabel(), and TryPlaceNavMapLabel().
| short unactive | ( | short | ship | ) |
Definition at line 186 of file logic.c.
References g_aeObjectClass, g_asShipManeuver, MANEUVER_HARD_BRAKE, OBJECT_CLASS_SHIP, and unactive().
Referenced by are_alive(), capital_ship_intelligence(), capital_ship_strike_mission(), DrawTextAt(), escort_mission(), have_target(), intelligence_events(), is_ship_tailing_player_target(), kilrathi_wingman(), Mtry2tail(), Mzip_past(), patrol_area(), perform_maneuver(), rendezvous_mission(), run_away(), SaveTorpedoTargetLockForViewChange(), ShipAiState45(), target_valid(), target_within_range(), unactive(), and UpdateSavedTorpedoTargetLock().
Definition at line 859 of file winmain.c.
References FreedHeapBlock::block, g_pFreedHeapBlockHead, g_pFreedHeapBlockTail, FreedHeapBlock::next, and UntrackFreedHeapBlock().
Referenced by AllocateGuardedMemory(), and UntrackFreedHeapBlock().
| void unwarp | ( | short | obj | ) |
Definition at line 58 of file jump.c.
References ClearViewport(), find_vacant_3d_object(), g_27_stViewScratchInfo, g_abShipNavPointIndex, g_acObjectType, g_aObjectTypeData, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asShipManeuver, g_bPrimaryViewBufferColour, g_bViewportDirty, MANEUVER_NONE, MANEUVER_WARPING_IN, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, PlaySfxWaveFileByNumber(), RecordCannedSceneObjectEvent(), set_objects_data(), and unwarp().
Referenced by arrive_from_warp(), unwarp(), and UpdateShipTurretGuns().
Definition at line 294 of file main.c.
References CheckAllGuardedAllocations(), g_nArcadeState, g_nCannedSceneMode, g_nSpaceFrame, house_keep(), house_keep_objects(), servicetrack(), set_eye_direction_and_position(), Update_3Space(), and update_objects_in_space().
Referenced by auto_pilot_sequence(), close_behind(), Draw_3Space_Frame(), RunSpaceFlight(), Update_3Space(), and visit_the_cinema().
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 375 of file fields.c.
References g_abHazardObjects, g_bUseEyePositionForHazards, g_nHazardReferenceSpeed, make_hazard(), manage_hazard(), match_ship_to_eye(), RandomBelowOrEqual(), real_velocity(), and update_hazards().
Referenced by update_hazards(), and update_star_field().
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 1051 of file spc.c.
References accelerate_and_move_object(), AddFixedVectors(), animate_object(), ApplyCannedSceneFrameEvents(), fix_objects_ijk(), futurion_intelligence(), g_5_nCannedSceneFrameCount, g_aeObjectClass, g_aeSpecialManeuver, g_aShipPosition, g_aShipVelocity, g_asShipTurretFireEnabled, g_bJumpSequenceActive, g_bSceneEscapeRequested, g_nAimCameraMode, g_nCannedSceneBufferNearCapacityFlag, g_nCannedSceneMode, g_nCannedSceneRecordedFrameCountNumber, g_nCannedSceneSegmentEndFrame, g_nCurrentView, g_nSpaceFrame, g_nTargetCameraFrame, g_nTargetCameraObject, HandleCannedSceneBufferBoundary(), housekeep_power_plant_and_fuel(), OBJECT_CLASS_FUTURION, OBJECT_CLASS_MISSILE, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, object_collision(), object_intelligence(), RecordCannedSceneObjectState(), replenish_shields(), replenish_weapon_energy_bank(), rotate_object(), rotate_object_to_goal(), SPACE_LAST_MOVING_OBJECT, SPECIAL_MANEUVER_UNKNOWN_9, update_objects_in_space(), UpdateSavedTorpedoTargetLock(), UpdateShipTurretGuns(), and UpdateTargetCameraObject().
Referenced by Update_3Space(), and update_objects_in_space().
| unsigned int update_star_field | ( | void | ) |
Definition at line 710 of file spc.c.
References AddFixedVectors(), ComputeVectorDelta(), copy_frame(), extra_hazard(), EYE_OBJECT, g_1_nStarFieldIRotation, g_aeObjectClass, g_anObjectPitchRotation, g_anObjectYawRotation, g_aShipForwardVector, g_aShipPosition, g_aShipRightVector, g_aShipUpVector, g_aShipVelocity, g_asObjectCollisionRadius, g_asObjectScreenX, g_asObjectViewFrame, g_nCannedSceneMode, g_nStarFieldJRotationNumber, g_pActiveHazardField, g_vPreviousStarFieldMotion, g_vStarFieldMotion, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_STAR, RandomInRange(), rotate_about_i(), rotate_about_j(), ScaleFixedVector(), set_objects_data(), signed_random(), start_dust(), transform_to_objects_frame(), update_hazards(), update_star_field(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by DrawSpaceSceneFrame(), and update_star_field().
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 UpdateCutscenePlaneObject | ( | CutscenePlane * | plane, |
| signed char | updateChildren ) |
Definition at line 1364 of file gameflow.c.
References CutscenePlane::deltaDepth, CutscenePlane::deltaX, CutscenePlane::deltaY, CutscenePlane::depth, FatalCutsceneError(), g_196_nInputTimerTicks, g_apSceneObjects, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_nActiveCutsceneResourceLevel, g_pCurrentCutscenePlane, CutscenePlane::owner, PumpWindowMessages(), RunCutsceneScript(), CutscenePlane::scriptCursor, CutscenePlane::spriteCount, CutscenePlane::spriteIndices, UpdateCutscenePlaneObject(), UpdateCutsceneSpriteObject(), CutscenePlane::waitTicks, CutscenePlane::x, and CutscenePlane::y.
Referenced by CreateCutsceneResourceInstance(), DosMemmove(), ExecuteCutsceneSequence(), LinkCutsceneObjectResources(), RunCutsceneScript(), and UpdateCutscenePlaneObject().
| void UpdateCutsceneSpriteObject | ( | SceneFlicObject * | sprite | ) |
Definition at line 1406 of file gameflow.c.
References SceneFlicObject::delayFrames, SceneFlicObject::deltaDepth, SceneFlicObject::deltaX, SceneFlicObject::deltaY, DispatchCutsceneSpriteHandler(), FatalCutsceneError(), SceneFlicObject::field_2f, SceneFlicObject::field_3, g_196_nInputTimerTicks, g_bCutsceneSkipFrame, g_bCutsceneViewportPreallocated, g_pCurrentCutsceneSprite, PumpWindowMessages(), RunCutsceneScript(), SceneFlicObject::scriptCursor, UpdateCutsceneSpriteObject(), SceneFlicObject::waitTicks, SceneFlicObject::x, and SceneFlicObject::y.
Referenced by CreateCutsceneResourceInstance(), DosMemmove(), LinkCutsceneObjectResources(), RunCutsceneScript(), UpdateCutscenePlaneObject(), and UpdateCutsceneSpriteObject().
Definition at line 92 of file damage.c.
References CaptureSpriteBackground(), TextContext::colour, DrawSpriteDefault(), DrawTextAt(), DrawViewportLine(), g_104_nHarmDisplayPhaseValue, g_12_szDamageStatusText, g_1_pDashWeaponPicture, g_2_stLeftwardVduPortBlock, g_5_nWeaponDisplayOriginXValue, g_5_stLeftVduStringContextRecord, g_68_nDamageShowTicksNumber, g_abDamageDisplayFrames, g_acPlayerComponentDamage, g_aDamageDisplayPositions, g_apszComponentNames, g_apszDamageSeverityNames, g_cDamageDisplayFrame, g_cDamageDisplayPart, g_cDamagedPartCount, g_cSecondaryViewBufferColour, g_nArmsDisplayOriginY, g_nCockpitDisplayMode, g_nDisplayedComponentDamage, g_pDamageDisplayBackground, g_stHarmSpritePosition, g_ucPrimaryTextColour, InvalidateVduMode(), Viewport::left, RestoreSpriteBackground(), Viewport::top, UpdateDamageDisplay(), ShortPoint::x, and ShortPoint::y.
Referenced by update_VDUs(), UpdateDamageDisplay(), and UpdateShipTurretGuns().
Definition at line 270 of file turret.c.
References EYE_OBJECT, fix_objects_ijk(), g_aShipForwardVector, g_aShipRightVector, g_aShipUpVector, g_nFleetOverviewPitch, g_nFleetOverviewPitchVelocity, g_nFleetOverviewYaw, g_nFleetOverviewYawVelocity, rotate_about_i(), rotate_about_j(), and UpdateFleetOverviewCameraRotation().
Referenced by close_behind(), set_eye_direction_and_position(), and UpdateFleetOverviewCameraRotation().
| void UpdateInflightNavText | ( | short | showColon | ) |
Definition at line 801 of file nav.c.
References TextContext::cursorX, DrawFormattedText(), g_1_stElapsedCampaignDate, g_4_pElapsedCampaignDatePointer, g_stNavMapTextCtx, Viewport::left, SetTextContext(), Viewport::top, UpdateInflightNavText(), and TextContext::viewport.
Referenced by InflightComputer(), and UpdateInflightNavText().
| short UpdateInputDeviceTransitions | ( | short | raw | ) |
Definition at line 12 of file input.c.
References g_196_nInputTimerTicks, g_2_asPreviousInputButtonsList, g_3_asControlsButton1ChangedValues, g_3_nEventClockScaleValue, g_7_asInputButton2DoubleClickValues, g_8_nActiveInputDeviceWord, g_9_anInputButton2PushTime, g_9_asInputButton2ChangedList, g_aInputDeviceSamplesList, g_anControlsButton1PressTime, g_asControlsButton1DoubleClickTable, g_nInputDoubleClickInterval, ReadCalibratedJoystick(), SampleJoystickDevice(), and UpdateInputDeviceTransitions().
Referenced by PollJoystickButtonEvents(), PollMenuInputDevices(), UpdateInputDeviceTransitions(), and UpdateShipTurretGuns().
| void UpdateMap | ( | char * | text, |
| short | objective ) |
Definition at line 1660 of file gameflow.c.
References BriefingMap_DisplayMap(), Build_objective_list(), ClearCutsceneTextViewport(), ClearCutsceneViewport(), ExpandCutsceneText(), FindQueuedInputEvent(), FormatTextBufferFromStart(), g_13_pActiveCutscenePixelsAddress, g_196_nInputTimerTicks, g_2_stCutsceneMessageCtxInfo, g_2_stModalSourceWindow, g_4_pszFilmWorkScratch, g_bBriefingMapActive, g_bCutsceneSkipFrame, g_bCutsceneTextRestorePending, g_bCutsceneViewportPreallocated, g_cCurrentObjective, g_nAudioEnabled, g_pCampaignGlobals, IsCutsceneSpeechLoaded(), LoadMissionData(), CampaignGlobals::mission, RestoreCutsceneTextBacking(), RouteCutsceneViewportToDisplay(), CampaignGlobals::series, ServiceCutsceneRuntimeHook(), ServiceInputDevices(), SetTextContext(), and UpdateMap().
Referenced by RunCutsceneScript(), and UpdateMap().
| 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 931 of file turret.c.
References approach_zero_speed(), ClearSavedTorpedoTargetLock(), g_acPlayerComponentDamage, g_bSavedPlayerTarget, g_bSavedTargetLockAcquired, g_cYellowColour, g_nFacingToTarget, g_nSavedPlayerTarget, g_nSavedTargetLockCountdown, g_nTargetLockMusicCooldown, g_nTargetRange, get_facing_range_from_object(), handle_collisions(), point_ship_at_object(), SetHudMessageText(), unactive(), and UpdateSavedTorpedoTargetLock().
Referenced by DrawTextAt(), update_objects_in_space(), and UpdateSavedTorpedoTargetLock().
| void UpdateShipTurretGuns | ( | int | ship | ) |
References AcknowledgeModalMessage(), AllocateActiveSoundEntry(), AllocateTaggedMemory(), AllocateViewport(), AllocateWaveTableEntry(), AppendCommMenuChoice(), ApplyCannedSceneFrameEvents(), ApplyCannedSceneMusicRecord(), ApplyCannedSceneObjectEventRecord(), ApplyCannedSceneSoundRecord(), AreCutsceneResourceNamesEqual(), arrive_from_warp(), BeginInflightReplayHook(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), CachePaletteEntryFromWords(), CalcRectangleArea(), calculate_damage_level(), CanOpenCommMenu(), CanPlayerLand(), changetrack(), chase_location(), CheckCannedSceneBufferCapacity(), Chosen_communicate_option(), clean_up_cockpit(), cleanup_objectives(), CloseCommChoiceMenu(), CloseDataFileByHandle(), compute_formation_destination(), control_speed(), CopyHugeMemoryOverlapSafe(), CountEnemyFighters(), CreateCutsceneResourceInstance(), DecodeCutsceneFileResource(), DecodeCutsceneObjectResource(), DecodeSceneFileChunk(), DecodeSceneOffsetChunk(), DecodeSceneStructChunk(), DecodeSceneSymbolChunk(), DIBcascade(), DIBdestroyDIB(), DIBerror(), DIBinstall(), DIBmakeDIB(), DIBpixelBufferHook(), DIBpositionWindow(), DIBramPalette(), DIBreInstall(), DIBsetPalette(), DIBslamReal(), DIBunInstall(), DIBupdate(), DIBwaitForVerticalBlank(), DIBwholePaletteFromTriplets(), DIBwholePaletteFromWords(), DisableDibSlam(), DisableMusicForSceneHook(), disobey_formation(), Draw_3Space_Frame(), DrawConstellationField(), DrawSpaceSceneFrame(), DrawTargetRangeReadout(), EnableDibSlam(), EnableMusicForScene(), EndCommMenu(), EndCommSessionWithWingman(), ExpandCommMessageTokens(), FadeMusic(), FadeViewportPaletteToColour(), find_next_gun(), find_objective(), FindActiveSoundEntryBySample(), FindCutsceneResourceSymbolIndex(), FindNearestNavPoint(), FindWaveTableEntryByName(), FinishCannedScenePlayback(), FlushCannedSceneRecordingBuffer(), FlushSoundEffect(), FlushSoundEffects(), FlushSoundEffectsAndLog(), FrameTimerCallback(), FreeCommDisplayResources(), FreeNearHeapBlock(), FreeWaveTable(), gametrack(), GetAvailableFarMemoryByType(), GetCannedSceneObjectMode(), GetDIBHeight(), GetDIBPixelBuffer(), GetDIBWidth(), GetDIBWindowHandle(), GetLargestFreeMemoryBlockByType(), GetNamedPacketSize(), GetNearHeapBlockSize(), GetPacketSize(), GetPaletteEntryAsWords(), GetShipDistanceToNavPoint(), goto_formation(), goto_location(), handle_collisions(), HandleCannedSceneBufferBoundary(), HandleCommunicationMenuRequest(), HandleSpaceFlightControls(), have_target(), InitFullScreenViewport(), InitializeAudioSystem(), InitializeCannedSceneFrameIndex(), InitializeConstellationField(), InitializeDIBScreenViewport(), InitializeFireworks(), InitializeSpaceFlightInput(), IsCommChoiceMenuOpen(), IsCommMenuIdle(), IsConstellationParticleOutsideViewport(), IsEngagementTargetDisallowed(), IsMusicTrackComplete(), IsPushedPacketHandle(), IsShipRouting(), IsSoundHardwarePresent(), IsSpriteFrameOverlappingRect(), IssueQuickCommCommand(), ix_sound_get_sample(), JoystickInputHook(), LinkCutsceneObjectResources(), LoadCannedScenePlaybackBuffer(), LoadCommPortraitResources(), LoadJoystickCalibrationFile(), LoadNamedPacket(), LoadVolumeSettingsFromRegistry(), LoadWingCmdrCfgFile(), LogDisplayMode(), LogUnknownSoundEffect(), MapPacketHandleToBlock(), MarkDibDirty(), MeasureMessageWidth(), MessagePumpHook(), new_space_music_changes(), offset_location(), OpenCommMenuForTarget(), OpenCommRecipientMenu(), OpenPacketSection(), PacketLoad(), ParseCutsceneContainer(), PlayRawSpeechBuffer(), PlaySfxWaveFileByNumber(), PlaySnowStaticSound(), playWAVE(), PollJoystickButtonEvents(), PollMenuInputDevices(), prevent_collision(), PrintPaletteAllocationMap(), ProcessCannedSceneInput(), ProcessMusicScriptCommand(), PushCutsceneFileResource(), PushCutsceneObjectResource(), PushMemoryStackFrame(), ReadCalibratedJoystick(), ReadTapeInitialState(), real_vid_transmit(), RecordCannedSceneObjectEvent(), RecordCannedSceneObjectState(), RecordMusicCommandHook(), RefreshCommunicationMenu(), RegistryQueryValue(), RegistryStoreValue(), regulate_turn(), ReleaseContiguousPaletteEntries(), ReleaseCutsceneFileResource(), ReleaseCutsceneFileResourceExceptPacket(), ReleaseCutsceneObjectResource(), ReleaseCutsceneObjectResourceData(), ReleaseCutsceneResourceLevel(), ReleaseCutsceneTextResource(), ReleaseFinishedSoundEntries(), ReleasePacketHandle(), ReleaseSceneMusicPacket(), ReleaseStaleNavTarget(), RemoveActiveSoundEntry(), RemoveWaveTableEntry(), RenderSpaceViewFrame(), ReportFramesSkipped(), ReportOutOfMemoryAndExit(), ReportSpaceFlightMaxFps(), request(), ReserveContiguousPaletteEntries(), ResetCannedScenePlaybackBuffer(), ResetCannedSceneRecording(), ResetCommMenuChoices(), ResetSoundState(), ResetSoundStateForFlight(), ResetSoundStateForScene(), RestoreCannedSceneObjectState(), RewriteCutsceneMusicExtensionForDriver(), RewriteCutsceneMusicExtensionForRetry(), RewriteDiskFileGraphicsExtensions(), RunCampaignScript(), RunSpaceFlight(), RunTitleMenuInputLoop(), SaveVolumeSettingsToRegistry(), SceneLeaveHook(), select_guns(), select_new_gun(), select_new_release_weapon(), select_target(), SelectCommRecipient(), SendCommMenuChoice(), SendWingmanCommandAcknowledgement(), ServiceAudioStream(), ServiceSoundSystem(), servicetrack(), SetCinematicFrameTiming(), SetDefaultFrameTiming(), SetMessageDisplaySpeed(), SetMultimediaTimerCallback(), SetMusBreakpt(), SetMusicOn(), SetSoundEffectsVolume(), SetSpaceFlightFrameTiming(), ShouldWingmanAcceptRoutCommand(), show_communications_disp(), show_damage_disp(), show_target_disp(), ShowCentredPrompt(), ShowGamePausedBanner(), ShowModalMessage(), ShowOnScreenMessage(), ShowVersionBanner(), SkipCutsceneChunk(), sound_effect(), spacetrack(), StartInteractiveMusic(), StartMusic(), StartSoundEffectHook(), steer_away_from_object(), steer_away_from_predicted_object(), stop_all_sounds(), StopMusic(), StopMusicStream(), StopMusicUnlessSuppressed(), StopSoundsUsingWave(), TheEndFireWorks(), ThrottleFrameAndDrawFps(), unwarp(), UpdateDamageDisplay(), UpdateInputDeviceTransitions(), UpdateShipTurretGuns(), veer_random(), wait_for_end_of_music(), warp(), wingman_dead(), and WriteTapeInitialState().
Referenced by update_objects_in_space(), UpdateShipTurretGuns(), and UpdateShipTurretGuns().
Definition at line 327 of file main.c.
References ClearViewport(), g_1_asSpacePaletteFade, g_27_stViewScratchInfo, g_bViewportDirty, g_cPrimaryViewBufferColour, g_cRedColour, g_nSpacePaletteFadeMode, SetPaletteEntry(), and UpdateSpacePaletteFade().
Referenced by close_behind(), DrawSpaceSceneFrame(), and UpdateSpacePaletteFade().
Definition at line 53 of file stream.cpp.
References g_nAudioEnabled, g_nMusicTrackComplete, GetStreamerState(), and UpdateStreamerStoppedFlag().
Referenced by CollectRasterClipColours(), DIBslamReal(), and UpdateStreamerStoppedFlag().
Definition at line 1222 of file turret.c.
References UpdateTargetCameraCockpitHook().
Referenced by DrawTextAt(), update_cockpit(), and UpdateTargetCameraCockpitHook().
| void UpdateTargetCameraObject | ( | short | obj | ) |
Definition at line 789 of file turret.c.
References apply_force_to_objects_center(), ClearTargetCameraView(), distance_between_points(), ejection_sequence(), EYE_OBJECT, CampaignGlobals::field_0e, flag_reached(), FlushSoundEffectsAndLog(), g_6_bMissionWingmanState, g_6_vTargetCameraForce, g_aMissionObjectives, g_aMissionShips, g_aShipForwardVector, g_aShipPosition, g_aShipVelocity, g_asObjectType, g_asShipMissionIndex, g_bMissionDeathSequencePending, g_cMissionObjectiveCount, g_nSpaceFrame, g_nTargetCameraSoundHandle, g_pCampaignGlobals, g_stCurrentPilotProfile, LoadTemporaryCampaignGlobals(), negate_vector(), NormalizeAndScaleVector(), PilotProfile::playerShipType, PlaySfxWaveFileByNumber(), point_ship_at_object(), remove_object(), ScaleFixedVector(), MissionShipRecord::state, trim_goals(), UpdateTargetCameraObject(), Vector_magnitude(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by update_objects_in_space(), and UpdateTargetCameraObject().
Definition at line 849 of file turret.c.
References ClearTargetCameraView(), distance_from_object(), g_aShipVelocity, g_asObjectScreenX, g_asObjectScreenY, g_nFleetOverviewPitch, g_nFleetOverviewPitchVelocity, g_nFleetOverviewYaw, g_nFleetOverviewYawVelocity, g_nTargetCameraObject, g_nTargetCameraZoom, UpdateTargetCameraTracking(), and zero_vector().
Referenced by DrawTextAt(), update_cockpit(), and UpdateTargetCameraTracking().
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 ValidateViewportBounds | ( | Viewport * | viewport, |
| RasterSurface * | surface, | ||
| RasterClip * | clip ) |
Definition at line 307 of file gr.c.
References RasterClip::bottom, Viewport::bottom, exit_squadron(), RasterSurface::field_10, RasterSurface::field_C, g_101_stScrViewInfo, g_apViewportAllocations, g_nViewportAllocationCount, RasterClip::left, Viewport::left, MarkDibDirty(), RasterSurface::maximumX, RasterSurface::maximumY, RasterSurface::pixels, Viewport::pixels, RasterClip::right, Viewport::right, Viewport::rowOffsets, SignExtendClipCoord(), RasterClip::surface, RasterClip::top, Viewport::top, and ValidateViewportBounds().
Referenced by ClipViewportToScreen(), CollectRasterClipColours(), CopyViewportContents(), and ValidateViewportBounds().
| 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().
| short vector_angle | ( | FixedVector | left, |
| FixedVector | right ) |
Definition at line 324 of file geom.c.
References dot_product(), NormalizeFixedVector(), and vector_angle().
Referenced by hemisphere(), and vector_angle().
| void vector_component_in_dir | ( | const FixedVector * | vector, |
| const FixedVector * | direction, | ||
| FixedVector * | component ) |
Definition at line 375 of file geom.c.
References ScaleFixedVector(), vector_component_in_dir(), and vector_length_in_dir().
Referenced by fire_weapon(), house_keep_objects(), launch_object(), object_collision(), UpdateTargetLeadIndicator(), and vector_component_in_dir().
| void vector_cross_product | ( | const FixedVector * | left, |
| const FixedVector * | right, | ||
| FixedVector * | product ) |
Definition at line 335 of file geom.c.
References MultiplyFixed(), vector_cross_product(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by fix_objects_ijk(), and vector_cross_product().
| int vector_length_in_dir | ( | const FixedVector * | vector, |
| const FixedVector * | direction ) |
Definition at line 361 of file geom.c.
References dot_product(), MultiplyFixed(), NormalizeFixedVector(), vector_length_in_dir(), and Vector_magnitude().
Referenced by vector_component_in_dir(), and vector_length_in_dir().
| long Vector_magnitude | ( | const FixedVector * | vector | ) |
Definition at line 157 of file eventmgr.c.
References Vector_magnitude(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by accelerate_and_move_object(), capital_ship_strike_mission(), distance_between_points(), distance_from_point(), draw_nav_pointer(), explosion_shock_wave(), fire_afterburner(), fire_weapon(), GetShipDistanceToNavPoint(), GetVectorMagnitude(), intelligence_events(), IsVectorWithinRange(), NormalizeFixedVector(), object_collision(), PlaySfxWaveFileByNumber(), real_crash_time(), real_velocity(), rectangular_to_spherical(), set_eye_direction_and_position(), set_ship_rotation_goals(), SetFleetOverviewView(), sound_effect(), transform_objects_to_your_view(), update_digital_readouts(), update_objective_location(), UpdateTargetCameraObject(), UpdateTargetLeadIndicator(), vector_length_in_dir(), and Vector_magnitude().
| unsigned int veer_random | ( | short | obj, |
| short | amount ) |
Definition at line 211 of file smart.c.
References g_anPitchGoal, g_anYawGoal, RandomBelowOrEqual(), and veer_random().
Referenced by Mbuzz_debris(), Msit_n_spin(), Mturn_n_kick(), Mturn_n_spin(), Mveer_away(), prevent_collision(), streak_toward(), UpdateShipTurretGuns(), and veer_random().
| 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().
Definition at line 2003 of file eventmgr.c.
References VideoReleaseHook().
Referenced by DosMemmove(), and VideoReleaseHook().
| void visit_the_cinema | ( | int | view, |
| int | obj, | ||
| short | frames ) |
Definition at line 21 of file auto.c.
References DIBslamReal(), force_view(), g_bPlayerCollisionEnabled, g_bPlayerDamageEnabled, g_nOriginDevUnlock, MarkDibDirty(), RenderSpaceViewFrame(), Update_3Space(), and visit_the_cinema().
Referenced by auto_pilot_sequence(), and visit_the_cinema().
| 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().
Definition at line 178 of file music.c.
References g_bSceneEscapeRequested, g_nMusicDriverMode, g_nMusicTrackComplete, g_nWaitForMusicEnabled, SetMusBreakpt(), StopMusic(), wait_for_end_of_music(), and WaitForInputKey().
Referenced by UpdateShipTurretGuns(), and wait_for_end_of_music().
| unsigned short WaitForAnyInputPress | ( | void | ) |
Definition at line 347 of file disk.c.
References g_bKeyboardMouseEnabled, PollInputEvent(), ReleaseInputEventQueue(), InputEventState::value, and WaitForAnyInputPress().
Referenced by DrawTextAt(), ejection_sequence(), InflightComputer(), ReleaseSpaceflightResources(), RunCampaignGameLoop(), ShowNoTransferablePilots(), WaitForAnyInputPress(), and WaitForQueuedInputPress().
Definition at line 399 of file gameflow.c.
References FindQueuedInputEvent(), ServiceCutsceneRuntimeHook(), ServiceInputDevices(), and WaitForCutsceneInputEvent().
Referenced by AdvanceSceneFlicStream(), DosMemmove(), DrawCinematicMemoryStatus(), RunCutsceneScript(), and WaitForCutsceneInputEvent().
Definition at line 1424 of file eventmgr.c.
References g_5_nFrameTimerWaitTicksValue, and WaitForFrameTick().
Referenced by DosMemmove(), RunSpaceFlight(), SetFrameTimerAndWait(), and WaitForFrameTick().
| short WaitForInputKey | ( | void | ) |
Definition at line 319 of file disk.c.
References ConfigureInputPump(), FindQueuedInputEvent(), FlushInputEvents(), FlushPendingInputPresses(), g_176_pfnCurrentInputPump, PollJoystickButtonEvents(), ServiceInputDevices(), InputEventState::status, InputEventState::value, void(), and WaitForInputKey().
Referenced by AnimateTitleOrchestra(), DrawTextAt(), PlayTitleConductorCue(), PushTitleOrchestraAway(), RevealTitleLogo(), RunTitleScreen(), ShowGamePausedBanner(), ShowOnScreenMessage(), ShowVictoryScreen(), Title_Sequence(), wait_for_end_of_music(), and WaitForInputKey().
Definition at line 171 of file titlemnu.c.
References g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, SampleJoystickDevice(), ServiceSoundSystem(), and WaitForJoystickButtonPress().
Referenced by CalibrateJoystickInteractive(), and WaitForJoystickButtonPress().
Definition at line 158 of file titlemnu.c.
References g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, SampleJoystickDevice(), ServiceSoundSystem(), and WaitForJoystickButtonRelease().
Referenced by CalibrateJoystickInteractive(), and WaitForJoystickButtonRelease().
| short WaitForQueuedInputPress | ( | void | ) |
Definition at line 9 of file waitkey.c.
References g_bInputEventQueueEnabled, WaitForAnyInputPress(), and WaitForQueuedInputPress().
Referenced by close_behind(), ReadTextInput(), RunPilotSaveLoadMenu(), and WaitForQueuedInputPress().
| short WaitForSceneAdvance | ( | void * | scenePacket | ) |
Definition at line 9 of file hotspot.c.
References SceneResourceTable::count, SceneResourceTable::data, DecodeSceneResourceChunk(), g_pActiveScenePacket, g_stSceneTextList, g_stSceneZoneTable, ReadNextSceneForm(), ReleasePacketSlot(), SceneResourceTable::type, and WaitForSceneAdvance().
Referenced by BarracksScreen(), DrawTextAt(), and WaitForSceneAdvance().
Definition at line 189 of file eventmgr.c.
References DIBwaitForVerticalBlank(), and WaitForVerticalBlankThunk().
Referenced by FadeViewportPaletteToColour(), initialize_cockpit(), intelligence_events(), PanToScreen(), RefreshMemoryStatusOverlay(), RestoreGamePalette(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), SaveGamePalette(), and WaitForVerticalBlankThunk().
| void warp | ( | short | obj | ) |
Definition at line 88 of file jump.c.
References ClearViewport(), find_vacant_3d_object(), g_27_stViewScratchInfo, g_acObjectOwner, g_aShipPosition, g_aShipVelocity, g_asObjectCounter, g_asShipManeuver, g_asShipSide, g_bPrimaryViewBufferColour, g_bViewportDirty, g_nEscapedEnemyCount, MANEUVER_WARPING_OUT, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, PlaySfxWaveFileByNumber(), RecordCannedSceneObjectEvent(), set_objects_data(), SIDE_KILRATHI, and warp().
Referenced by accelerate_and_jump(), UpdateShipTurretGuns(), and warp().
| void warp_arrival | ( | short | obj | ) |
Definition at line 582 of file brains.c.
References arrive_from_warp(), g_asShipTactic, reset_tactic(), TACTIC_WARP_IN, and warp_arrival().
Referenced by capital_ship_intelligence(), ship_intelligence(), and warp_arrival().
| short wingman_dead | ( | void | ) |
Definition at line 112 of file comm.c.
References g_nYourWingman, and wingman_dead().
Referenced by BuildCommunicationRecipientMenu(), CanOpenCommMenu(), UpdateShipTurretGuns(), and wingman_dead().
| void wingman_mission | ( | short | obj | ) |
Definition at line 371 of file brains.c.
References g_asShipSide, imperial_wingman(), kilrathi_wingman(), SIDE_IMPERIAL, and wingman_mission().
Referenced by ship_intelligence(), and wingman_mission().
| int WINAPI WinMain | ( | HINSTANCE | instance, |
| HINSTANCE | previous, | ||
| LPSTR | commandLine, | ||
| int | showCommand ) |
Definition at line 89 of file winmain.c.
References AbortToDesktop(), AllocateApplicationScratchBuffer(), CheckLauncherAndConfig(), CreateDebugOverlayConsole(), CreateMainWindow(), DestroyGlobalDebugOverlayConsole(), DIBunInstall(), g_10_hMainWindow, g_11_dwGameZeroTime, g_176_pfnCurrentInputPump, g_196_nInputTimerTicks, g_19_hOneProcessLock, g_48_dwGameExitClockValue, g_bApplicationControllerActive, g_bApplicationShutdownStarted, g_bWindowInactive, g_nAudioEnabled, InitGameClockRandomEpoch(), InitializeAudioStreamer(), InitializeAudioSystem(), MonoDebug_install(), PromptInsertCorrectCd(), ReleaseApplicationScratchBuffer(), RunGameApplication(), ServiceAudioStream(), and WinMain().
Referenced by WinMain().
| short within_field | ( | const HazardField * | field, |
| const FixedVector * | point ) |
Definition at line 228 of file fields.c.
References HazardField::center, HazardField::innerRadius, IsPointWithinRange(), and within_field().
Referenced by try_far_spot(), and within_field().
| short WrapDegrees | ( | short | degrees | ) |
Definition at line 171 of file geom.c.
References WrapDegrees().
Referenced by match_roll_orientation(), set_ship_rotation_goals(), and WrapDegrees().
| short WriteDataFileAtOffset | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | length, | ||
| const void * | data ) |
Definition at line 28 of file datafile.c.
References g_nPacketError, g_szWriteDataFileError, and WriteDataFileAtOffset().
Referenced by FlushCannedSceneRecordingBuffer(), OpenDiskDataFile(), SaveAndFreeTemporaryCampaignGlobals(), WriteDataFileAtOffset(), and WriteTapeInitialState().
| void WriteDebugString | ( | const char * | s | ) |
Definition at line 1162 of file winmain.c.
References g_nDebugFileLoggingEnabled, g_pDebugLogFile, and WriteDebugString().
Referenced by DIBcascade(), DIBerror(), FreeGuardedAllocation(), MainWindowProc(), SystemDebugPrintf(), and WriteDebugString().
Definition at line 147 of file gameflow.c.
References g_pMemoryLogFile, GetAvailableFarMemory(), GetAvailableMainMemory(), GetLargestFreeMemoryBlock(), GetLargestMainMemoryBlock(), GetOriginalFreeMemory(), WriteDetailedMemoryStateReport(), and WriteMemoryStateReportHook().
Referenced by DrawTextAt(), InitializeCutsceneRuntimeResources(), RouteCutsceneViewportToDisplay(), RunCutsceneScript(), RunLoadedCutscene(), and WriteDetailedMemoryStateReport().
Definition at line 127 of file gameflow.c.
References WriteMemoryStateReportHook().
Referenced by DrawTextAt(), LogMemoryStateToFile(), RunCutsceneScript(), WriteDetailedMemoryStateReport(), and WriteMemoryStateReportHook().
Definition at line 281 of file taperec.c.
References CANNED_SCENE_SNAPSHOT_BYTES, CloseDataFile(), CreateDataFile(), g_4_nCannedSceneFileOffset, g_dwCannedSceneSnapshotStart, g_szCannedSceneTapeFile, ReportFatalErrorCode(), WriteDataFileAtOffset(), and WriteTapeInitialState().
Referenced by ResetCannedSceneRecording(), UpdateShipTurretGuns(), and WriteTapeInitialState().
Definition at line 3028 of file ship.c.
References fire_afterburner(), g_6_nPendingAfterburnerSfxFrame, g_aeSpecialManeuver, g_anShipFuel, g_asShipAfterburnerTimer, g_nSpaceFrame, malf(), PlaySfxWaveFileByNumber(), SPECIAL_MANEUVER_AFTERBURNER, and your_afterburner().
Referenced by DrawTextAt(), HandleSpaceFlightControls(), and your_afterburner().
| short your_internal_damage | ( | short | attacker, |
| short | owner, | ||
| short | damage, | ||
| short | quadrant ) |
Definition at line 1273 of file ship.c.
References check_computer_damage(), damage_ion_drive(), damage_your_component(), DecreaseAdaptiveDifficulty(), drain_fuel(), explode(), g_aasPlayerDamageSystemTable, g_acObjectType, g_acPlayerComponentDamage, g_acShipCommunicator, g_acShipComputerDamage, g_acShipDamage, g_aeObjectClass, g_anShipFuel, g_aObjectTypeData, g_aShipWeapons, g_asObjectDamage, g_cRedColour, IsOnlyShipGun(), MaxShort(), OBJECT_CLASS_ASTEROID, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, pilot_hit(), place_damage_on_cockpit(), RandomBelowOrEqual(), remove_weapon(), revise_shields(), ShowComponentHitHudMessage(), and your_internal_damage().
Referenced by DrawTextAt(), internal_damage(), and your_internal_damage().
| void zero_vector | ( | FixedVector * | vector | ) |
Definition at line 197 of file geom.c.
References FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by accelerate_and_move_object(), animate_object(), auto_pilot_sequence(), capital_ship_strike_mission(), ClearTargetCameraView(), cruise_home(), find_squad_center(), FireTargetCameraGuns(), initialize_object(), locate_ship(), new_view(), object_collision(), run_away(), set_eye_direction_and_position(), Set_up_ship_info(), SetFleetOverviewView(), SpawnCapitalFlakProjectile(), SpawnFlakBurst(), SpawnMissionEjectionPod(), UpdateShipTurretGuns(), UpdateTargetCameraObject(), UpdateTargetCameraTracking(), UpdateTargetLeadIndicator(), and zero_vector().