|
Wing Commander
Reconstructed Win32 source (1996)
|
Prototypes of every reconstructed function, in address order. More...
Go to the source code of this file.
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 (short *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 (enum ObjectType type, FixedVector center, short radius, short density) |
| void | check_hazards (void) |
| void __stdcall | WarpMouseTo (short x, short y) |
| 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 (void) |
| unsigned int | GetF1KeyLatch (void) |
| LRESULT CALLBACK | MainWindowProc (HWND window, UINT message, WPARAM wParam, LPARAM lParam) |
| int __stdcall | GetJoystickPosition (int *x, int *y, unsigned int *buttons, short joystick, unsigned short fallback) |
| short | GetJoystickButtons (void) |
| void | GetJoystickDevCaps (short joystick, unsigned short *xMin, unsigned short *xMax, unsigned short *yMin, unsigned 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) |
| void | FreeGuardedAllocation (void *memory) |
| void | SetMousePosition (int x, int y) |
| unsigned int | PollKeyboardState (void) |
| int | GetShiftKeyState (void) |
| int | GetControlKeyState (void) |
| unsigned int | GetKeyboardModifiers (void) |
| unsigned int | GetGameClockTicks (void) |
| void | InitGameClockEpoch (void) |
| void | WriteDebugString (const char *s) |
| void | SetMousePositionDuplicate (int x, int y) |
| FontWorkspace ** | AllocateFontWorkspace (short fontIndex) |
| void | FreeFontWorkspace (FontWorkspace **workspace) |
| char * | LocateStreamsDirOnDisc (void) |
| char | FindCdRomDriveByVolumeLabel (const char *label, const char *directory) |
| int | SetCurrentDirOnDrive (char drive, const char *directory) |
| int | PromptInsertCorrectCd (void) |
| short __stdcall | OpenDataFileOrDie (const char *path) |
| void __stdcall | CloseDataFile (unsigned short fd) |
| short __stdcall | WriteDataFileAtOffset (unsigned short fd, int offset, unsigned int length, const void *data) |
| short __stdcall | CreateDataFile (const char *path) |
| int __stdcall | ReadDataFileAtOffset (unsigned short fd, int offset, unsigned int length, void *data) |
| int __stdcall | SeekDataFile (unsigned short fd, int offset, unsigned int origin) |
| int | MeasureScaledIntroTextWidth (const char *text, short scale) |
| int | DrawCenteredScaledIntroText (const char *text, short centreX, short baselineY, short scale) |
| short | GetLineLength (const char *text) |
| int | print_subtitle (Viewport *viewport, short colour, const char *text) |
| int | advance_canned_sequence (short obj) |
| unsigned int | update_canned_sequence (short obj) |
| void __stdcall | SplitGameClockTicks (unsigned char *parts) |
| void | MonoDebug_install (void) |
| void | MonoDebug_remove (void) |
| void | SoundDebugPrintf (const char *fmt,...) |
| void | MonoDebug_print (const char *text) |
| void | ReadPerformanceCounter (LARGE_INTEGER *p) |
| char *__stdcall | ResetStringBuilder (TextContext *context) |
| void | visit_the_cinema (int view, int obj, short frames) |
| unsigned int | player_wingman (short obj) |
| void | set_speed (short obj, short speed) |
| void | auto_position (short obj, short *formationSlot) |
| void | auto_pilot_sequence (void) |
| unsigned short __stdcall | LoadPaletteTripletsFile (const char *path) |
| unsigned int | ejection_sequence (void) |
| void | stranded_sequence (void) |
| unsigned int | ParseFaceAnimation (char *text, short *commands) |
| unsigned int | ParseMouthAnimation (char *text, short *commands) |
| char * | AddPCName (const char *text) |
| unsigned int | LoadFace (short face) |
| unsigned int | LongTalk (struct Shape *talker, char *text, short *mouthCommands, short *faceCommands, short duration) |
| unsigned int | CloseTalk (struct Shape *talker, short mouthFrame, short faceFrame) |
| unsigned int | Briefing (short series, short mission) |
| unsigned int | DeBriefing (short series, short mission) |
| unsigned int | Office (void) |
| unsigned int | LoadBriefingData (short series, short mission) |
| unsigned int | LoadMissionData (short series, short mission) |
| unsigned int | UpdateMap (char *text, short duration) |
| unsigned int | CloseLook (struct Shape *shape, short shot, short *animation, char *text, short duration, int unused) |
| void | SetManeuverProximityRange (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) |
| void | Mchill (short ship, short target) |
| void | Mdrop_a_mine (short ship) |
| void | Mthink (short ship) |
| 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, short target) |
| void | Mtail_fire (short ship, short target) |
| void | Mzip_past (short ship, short target) |
| 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, short target, short pitch) |
| void | Mzig_zag (short ship, short target) |
| void | Mzig_zag_pitch (short ship, short 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 | Mnone (void) |
| void | Mreset (short ship) |
| void | perform_maneuver (short obj) |
| short __stdcall | GetShapeFrameExtent (short x, short y, struct Shape *shape, short frame, short extent) |
| unsigned int | AnimateScrambleWalk (short ticks) |
| unsigned int | PlayScrambleHangarScene (void) |
| unsigned int | DrawScrambleActor (short actorIndex) |
| unsigned int | ConfigureScrambleActor (short x, short y, short deltaX, short deltaY, struct Shape *shape, short scale, short angle, signed char flip, short actorIndex) |
| unsigned int | DrawScrambleFrame (void) |
| unsigned int | scramble (void) |
| unsigned int | landing (signed char damageLevel) |
| unsigned int | funeral_player (void) |
| unsigned int | funeral_wingman (char *text, short duration) |
| unsigned int | funeral_sequence (int playerFuneral) |
| unsigned int | RunAnimationDemoLoop (signed char animation) |
| 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 (int pilotLevel) |
| 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, int scanRange, enum ShipTactic newTactic) |
| void | patrol_area (short obj) |
| void | kilrathi_patrol (short obj) |
| void | imperial_wingleader (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 | 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 | 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 | set_sphere_point (const MissionShipRecord *record, FixedVector *position) |
| unsigned int | is_alive (int pilot) |
| unsigned int | check_futurion (short i) |
| unsigned int | init_mission (short series, short mission) |
| void | prepare_mission (void) |
| int | release_all_capital_ship_shapes (void) |
| int | release_capital_ship_shapes (enum ObjectType type) |
| int | load_ship (enum ObjectType type, short slot) |
| int | free_ship (short slot) |
| int | free_all_slots (void) |
| int | load_all_slots (void) |
| void | remove_nav_point_objects (void) |
| short | get_shape_slot (void) |
| int | shape_loaded (enum ObjectType type) |
| int | shape_needed (const MissionNavPoint *navPoint, enum ObjectType type) |
| int | new_sphere_shapes (MissionNavPoint *navPoint) |
| int | set_up_action_sphere (short navPoint) |
| void | free_pilot_talk (short personality) |
| void | get_pilot_talk (short personality) |
| unsigned int | init_personalities (void) |
| unsigned int | room_for_me (short obj, short minimum) |
| void | approve_xyz (short obj, short minimum, short maximum) |
| void | set_up_next_wave (void) |
| unsigned int | sub_int_vector (const ShortVector *left, const ShortVector *right, ShortVector *difference) |
| unsigned int | set_formation_position (short obj, const MissionShipRecord *record) |
| unsigned int | Set_up_ship_info (short obj, short missionShip, signed char navPoint) |
| unsigned int | is_team_member (short missionShip) |
| unsigned int | find_next_ship_turn_slot (short obj) |
| short | init_ship (short missionShip, short navPoint) |
| unsigned int | init_intelligence_data (short obj) |
| short __stdcall | SampleBothJoysticks (InputDeviceSample *samples, short fallback) |
| int __stdcall | SampleJoystickDevice (InputDeviceSample *samples, short joystick, unsigned short 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, unsigned 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 (void) |
| void | InflightComputer (void) |
| unsigned short | MergeAdjacentNearHeapBlocks (int descriptorAddress) |
| int | ReleaseNearHeapBlock (int descriptorAddress) |
| void | PurgeNearHeapBlocks (unsigned short flags) |
| unsigned short | InitializeNearHeap (void) |
| void * | AllocateNearHeapBlockFromEnd (int size, unsigned short flags) |
| void * | AllocateNearHeapBlockByFlags (int size, unsigned short flags) |
| void | add_statistics (short pilot, short missions, short kills) |
| void | PostMission (void) |
| int | FullMissionScore (void) |
| int | PlayersMissionScore (void) |
| unsigned int | UpdateSeries (void) |
| unsigned int | MoveNewCampaign (void) |
| unsigned int | StartNewCampaign (short campaign) |
| short | GameFlow (void) |
| void __stdcall | free_viewport (Viewport *viewport) |
| unsigned short | GetPaletteReadyUnused (void) |
| void | DrawTitleLogo (short distance, short y) |
| void | UpdateTitleMenuCursor (void) |
| int | Title_Sequence (void) |
| void | CalibrateJoystickInteractive () |
| void | WaitForJoystickButtonRelease (void) |
| void | WaitForJoystickButtonPress (void) |
| void | SetFleetOverviewView (int initializeCockpit) |
| unsigned int | rotate_eye_to_goal (void) |
| short | GetVectorMagnitude (const FixedVector *vector) |
| unsigned int | set_eye_direction_and_position (void) |
| unsigned int | force_view (int view, short obj) |
| 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) |
| unsigned int | house_keep_objects (void) |
| unsigned int | update_objects_in_space (void) |
| unsigned int | rotate_object (short obj) |
| unsigned int | accelerate_and_move_object (short obj) |
| unsigned int | animate_shape (short obj) |
| unsigned int | animate_object (short obj) |
| unsigned int | hit_asteroid (short asteroid, short destructionChance) |
| int | object_collision (short obj) |
| unsigned int | object_intelligence (short obj) |
| void | EmitTextString (void(__stdcall *writer)(int), const char *text) |
| void | FormatTextTokens (void(__stdcall *writer)(int), const char *format, va_list arguments) |
| void | DrawFormattedText (const char *format,...) |
| void | FormatTextBufferFromStart (const char *format,...) |
| void | AppendFormattedText (const char *format,...) |
| void | FatalErrorAndExit (const char *format,...) |
| unsigned 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) |
| void | EraseCockpitReadoutAtPosition (signed char slot, short left, short top) |
| short | DrawHudMessageSlot (HudMessageSlot *slot) |
| void | ClearHudMessageSlot (HudMessageSlot *slot) |
| void | ClearHudMessageIfMatching (HudMessageSlot *slot, const char *text) |
| void | ClearHudGunReadouts (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 | auto_pilot_valid (short showReason) |
| void * | reset_cockpit (void) |
| unsigned int | 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) |
| unsigned short | set_message_time (unsigned short v) |
| void | check_message (void) |
| unsigned int | update_digital_readouts (void) |
| void | PlayTargetLockSfx (void) |
| void | malf_sound (void) |
| short | malf (char component) |
| unsigned short | vdu_malf (short vdu, short sound) |
| void | ShowComponentHitHudMessage (const char *text, unsigned short colour, short flashCount) |
| int | 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) |
| int | set_new_objective (short pathIndex) |
| short | cycle_next_objective (void) |
| void | set_next_destination (void) |
| short | LocateMobileObjective (short objective) |
| unsigned int | someone_coming (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) |
| unsigned int | objective_lost (short objective) |
| void | check_objectives (void) |
| void | rotational_pos_to_scanner_pos (signed char object, const SphericalVector *position) |
| short | mobile_objective (short objective) |
| void | ResetScannerContacts (void) |
| void | clear_head_up_display (void) |
| unsigned int | set_objective_range (short showOnScanner) |
| short | get_color (short object, unsigned short *colour) |
| unsigned int | draw_3d_scanner (void) |
| void | start_lock (unsigned short v) |
| unsigned 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 | ShowHudTextLine (char *s, unsigned short b) |
| void | SetHudTextColour (short v) |
| 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) |
| unsigned int | overlay_head_up_display (void) |
| void | RestoreCockpitExplosionIfVisible (void) |
| unsigned int | 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 | CopyTrainSimPilotViewToRightVdu (void) |
| void | animate_pilot (void) |
| void | ResetPilotHandAnimation (void) |
| void | send_message (short obj, short message) |
| void | npc_communication (void) |
| void | clear_cockpit_damage (void) |
| void | explosion_draw (void) |
| unsigned int | 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) |
| void | PlayCockpitSelectionSfx (short selectionSound) |
| void | vdu_pop_all (short vdu) |
| void | SelectCockpitVduMode (short vdu, int mode) |
| short __stdcall | MeasureTextPixelWidthClamped (const char *text) |
| int __stdcall | SeekPacketSection (PacketSectionHandle *handle, int offset, short origin) |
| unsigned short | GetMusicDriverPresent (short mode) |
| short __stdcall | CollectActivePaletteIndices (Viewport *viewport, unsigned char *indices, short capacity) |
| short | get_ship_max_velocity (short obj) |
| short | 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) |
| int | intfract_sign (int sign, int magnitude) |
| unsigned short | SignShort (short v) |
| unsigned int | SignFixed (int v) |
| short | WrapDegrees (short degrees) |
| int | equ_vector (const FixedVector *left, const FixedVector *right) |
| int | 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 (const FixedVector *from, const FixedVector *to, FixedVector *delta) |
| void | ScaleFixedVector (const FixedVector *vector, int scale, FixedVector *result) |
| void | divide_vector (FixedVector *vector, int divisor, FixedVector *result) |
| short | ChooseRandomSignedMagnitude (short minimum, short maximum, int 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 | MakeRandomNormalizedVector (FixedVector *vector) |
| void | rectangular_to_spherical (const FixedVector *rectangular, SphericalVector *spherical) |
| void | ConvertShortVectorToFixedVector (const ShortVector *source, FixedVector *destination) |
| 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) |
| void | get_facing_range_from_point (short obj, const FixedVector *point) |
| void | get_facing_range_from_object (short obj, short other) |
| void | ship_vs_point (short obj, const FixedVector *point) |
| void | ship_vs_ship (short obj, short other) |
| short | facing_to_object (short obj, FixedVector *point) |
| short | match_roll_orientation (short obj, short reference) |
| int | 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 | MoveObjectAlongDirection (short obj, const FixedVector *direction, short distance) |
| void | NormalizeAndScaleVector (FixedVector *vector, int scale) |
| void | SetVectorFixedPoint (FixedVector *p, short v) |
| unsigned int | IsPointWithinRange (const FixedVector *from, const FixedVector *to, short range) |
| short | check_for_collision (short obj) |
| void | position_child (short parent, short hardpoint, 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) |
| unsigned short | IsPointWithinEyeViewCone (const FixedVector *point) |
| 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, ShortRect 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) |
| short | AnySavedGames (void) |
| void | CreateEmptySaveGameFile (void) |
| void | EnsureSaveGameFile (void) |
| void | InitializeBarracksAnimation (BarracksAnimationState *state) |
| void | FreeBarracksMenuLabel (char **label) |
| void | SetAwakenBarracksMenuLabel (char **label, short series, short mission, char *description) |
| void | FreeBarracksMenuLabels (void) |
| short | SaveGame (short slot, SaveGameRecord *gameRecord) |
| short | PromptForTextInput (short x, short y, const char *prompt, char *destination, short maximumLength, short inputMode) |
| int | WarnLoadGameFirst (void) |
| void | SaveGameWithNamePrompt (short slot, CampaignState *campaign, PilotRecord *pilots, MissionObjective *objectives) |
| int | LoadGame (short slot, SaveGameRecord *gameRecord) |
| void | LoadGameFromSlot (short slot, CampaignState *campaign, PilotRecord *pilots, MissionObjective *objectives) |
| void | SetBunkMenuLabel (short occupied, short side, char **label, short series, short mission, char *description) |
| void | GetBunkInfo (BarracksAnimationState *state) |
| void | DrawBarracksBunks (Viewport *viewport, struct Shape *shape, BarracksAnimationState *state) |
| void | DrawBarracksStaticDetails (Viewport *viewport, struct Shape *shape) |
| void | AnimateBarracks (Viewport *viewport, struct Shape *shape, BarracksAnimationState *state) |
| int | ConfirmQuitWingCommander (void) |
| int | ConfirmAwakenAfterBadData (short slot) |
| int | ConfirmReplaceFaultyData (short slot) |
| void | HandleBarracksBunkSelection (Viewport *viewport, struct Shape *shape, BarracksAnimationState *state, short region) |
| void | UpdateBarracksScreen (Viewport *viewport, struct Shape *shape, BarracksAnimationState *state) |
| short | BarracksScreen (void) |
| unsigned short __stdcall | StepPaletteTransition (short *current, const short *target, short componentCount) |
| char *__stdcall | 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 | ReportPacketLoadError (void *packet, short logicalFile, short retry, short section, const char *sourceTag) |
| void * | LoadPacketIntoBuffer (short logicalFile, short section, void *destination) |
| void * | LoadPacketAllocated (short logicalFile, short section) |
| void * | FetchDiskPacketRetrying (short logicalFile, short section, short flags) |
| unsigned int | InitializeTextContextFromFont (TextContext *context, short fontIndex, unsigned char colour, signed char background) |
| unsigned int | ReleaseTextFont (short fontIndex) |
| unsigned int | DrawTextAt (TextContext *context, short x, short y, const char *text, unsigned char alignment) |
| unsigned int | SortSignedByteValuesAscending (signed char *values, short count) |
| short | OpenDiskDataFile (short logicalFile) |
| void __stdcall | PromptInsertNumberedDisk (short logicalFile) |
| unsigned int | SetDiskFileNumber (char *fileName, short diskNumber) |
| unsigned int | GetZeroUnused (void) |
| short | CheckEscaped (void) |
| short | WaitForInputKey (void) |
| void | WaitForSceneAdvance (short duration, short unused) |
| void | MoveMenuPointerFromKeyboard (InputEventState *event) |
| void | EraseLastTextInputCharacter (void) |
| short | WaitForStreamInputKey (void) |
| short | initialize_object (short obj, enum ObjectType type, short owner) |
| short | borrow_dust (void) |
| short | new_object (enum ObjectType type, short owner) |
| short | initialize_ship (enum ObjectType type, short owner) |
| short | any_selected (signed char *loadout, enum ObjectClass objectClass) |
| unsigned int | remove_weapon (short obj, short weapon) |
| void | set_objects_data (short obj, enum ObjectType type, short owner) |
| unsigned int | match_rotation_goal (short *rotation, short *goal, short totalError, short rate) |
| int | rotate_object_to_goal (short obj) |
| unsigned int | check_for_lost_control (short obj) |
| unsigned int | celerate (short ship, int delta) |
| unsigned int | approach_speed (short ship, int targetSpeed) |
| unsigned int | steady_object (short ship) |
| short | real_velocity (short obj) |
| unsigned int | fix_velocity (short obj) |
| unsigned int | sort_viable_target_list (void) |
| void | send_appropriate_message (short attacker, short victim) |
| int | inflict_damage (short attacker, short victim, short damage, const FixedVector *impactDirection) |
| short | pilot_hit (short obj) |
| int | onboard_explosion (short obj) |
| void | call_enemy (short obj) |
| int | internal_damage (short attacker, short victim, short damage, short quadrant) |
| void | revise_shields (short obj) |
| int | your_internal_damage (short attacker, 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) |
| unsigned int | Create_explosion_debris (short obj) |
| unsigned int | affect_mission_score (short pilot, int event, short amount) |
| unsigned int | score_for_kill (short pilot, short victim) |
| unsigned int | analyze_kill (short attacker, short victim) |
| short | ShipExplosion (short obj) |
| short | Explosion (short obj) |
| short | the_creator (short obj) |
| int | explosion_shock_wave (short obj, short blastDamage) |
| int | explode (short attacker, short victim) |
| int | send_at_point (short obj, FixedVector *point, short speed) |
| short | find_child_object (short parent, enum ObjectClass objectClass) |
| short | find_child_ship (short parent, enum ObjectClass 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) |
| int | fire_flack (short owner, short explosion, short range, FixedVector *aim) |
| int | rnd_aim (short radius, short speed, short maximum) |
| short | pop_flack (short obj, short range, FixedVector *hardpoint) |
| int | fire_turrets (short obj) |
| int | fire_weapon (short obj, short weapon) |
| int | fire_missile (short ship) |
| int | fire_fixed_projectile_weapon (short obj) |
| int | drop_mine (short obj, signed char weapon, enum ObjectType type, short lifetime) |
| void | fire_afterburner (short obj, short time) |
| short | find_weapon (short obj, enum ObjectType weaponType) |
| unsigned int | check_computer_damage (void) |
| short | rnd_sign (short v) |
| unsigned int | fire_super_brake (short ship) |
| short | flip_angle (short ship, short angle) |
| unsigned int | place_exhaust_on_ships (void) |
| unsigned int | reposition_fixed_child_objects (void) |
| unsigned int | housekeep_power_plant_and_fuel (short ship) |
| unsigned int | replenish_shields (short ship) |
| unsigned int | replenish_weapon_energy_bank (short ship) |
| void | accelerate (short amount) |
| void | your_afterburner (void) |
| unsigned int | LoadGamePaletteFile (void) |
| unsigned int | EMShutDown (void) |
| unsigned short | InitializeEventManagerResources (void) |
| unsigned int | EMStartUp (void) |
| unsigned int | LoadOriginFxDrivers (void) |
| unsigned int | InitializeGameTextContexts (void) |
| unsigned int | initialize_direction_view_frame (short yaw, short pitch, signed char frame) |
| unsigned int | initialize_direction_view_frames (void) |
| unsigned int | LoadSpaceflightResources (void) |
| unsigned int | GetFxDriverInitResult (void) |
| unsigned int | GetMessagePumpResult (void) |
| unsigned int | GetFxDriverStatus (void) |
| short | ace_status (short ace, unsigned char bits) |
| void | unflag_ace (short ace, unsigned char bits) |
| void | flag_ace (short ace, unsigned char bits) |
| void | kill_ace (short ace) |
| void | ace_greeting (short obj) |
| void | prepare_ace (short ace) |
| short | signed_random (short range) |
| int | alert_flag (short ship, unsigned int bits) |
| unsigned int | HasSpeechBuffer (void) |
| unsigned short | 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) |
| void | clear_crash_cache (void) |
| short | crash_time (short obj, short other) |
| short | detect_collisions (short obj) |
| unsigned int | unactive (short ship) |
| int | are_alive (short obj) |
| int | trim_goals (short obj, short amount) |
| int | report_kilrathi_rout (int mode) |
| short | find_ship_index (short missionShip) |
| short | try2rout (short obj) |
| signed char | no_goal (short ship) |
| int | being_tailed (short obj, short other) |
| int | any_enemy_tail (short obj) |
| short | detect_enemy_tail (short obj) |
| int | is_ship_tailing_player_target (short obj) |
| int | missile_on_tail (short obj) |
| short | select_weighted_value (short *choices) |
| unsigned int | build_squad_list (short leader) |
| unsigned int | find_squad_center (FixedVector *center) |
| unsigned int | init_formation_burst (short obj) |
| unsigned int | reset_mission_type (short obj, enum ShipMissionType missionType) |
| unsigned int | change_mission_type (short obj, enum ShipMissionType missionType) |
| unsigned int | reset_objective (short ship, enum ShipObjective objective) |
| unsigned int | alter_objective (short ship, enum ShipObjective objective) |
| unsigned int | reset_tactic (short ship, enum ShipTactic tactic) |
| unsigned int | alter_tactic (short ship, enum ShipTactic tactic) |
| void | reset_maneuver (short ship, short maneuver) |
| void | try2reset_maneuver (short obj, short maneuver) |
| unsigned int | set_special (short ship, enum SpecialManeuver special) |
| unsigned int | approach_zero_speed (short ship) |
| unsigned int | approach_min_speed (short obj) |
| unsigned int | 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) |
| unsigned int | get_front_spot (short obj, unsigned short distance, FixedVector *point) |
| unsigned int | get_rear_spot (short obj, unsigned short distance, FixedVector *point) |
| unsigned int | close_behind () |
| short | scan_for_enemy (short obj, unsigned short range) |
| int | any_enemy (short obj, short range) |
| short | nearest_enemy_range (short obj) |
| void | fire_when_ready (short obj, short aimed) |
| unsigned int | ships_within_range (short obj, short other, short range) |
| int | attacker_in_range (short obj, unsigned short range) |
| int | in_danger (short obj) |
| unsigned int | target_within_range (short obj) |
| short | build_target_list (short obj, short range) |
| int | select_safe_target (short obj) |
| void | inherit_leader_mission (short obj) |
| void | inherit_leader (short obj) |
| unsigned int | dead_ship (short missionShip) |
| int | gone_ship (short missionShip) |
| short | skill_rating (short obj) |
| int | skill_check (short obj, short difficulty) |
| short | find_ships_sphere (short missionShip) |
| int | locate_ship (short missionShip, FixedVector *point) |
| unsigned int | get_follow_point (short obj, FixedVector *point) |
| unsigned int | get_first_follow_point (short obj, FixedVector *point) |
| int | hostile_sphere (short obj, short navPoint) |
| int | abandoned (short obj, short other) |
| void | engage (short obj, short target, enum ShipObjective objective) |
| int | target_valid (short obj) |
| unsigned int | triumph (short obj) |
| short | find_ratio (short inputMinimum, short inputMaximum, short input, short outputMinimum, short outputMaximum) |
| short | evaluate_damage (short obj) |
| short | mine_available (short obj) |
| int | LoadShapeSet (PacketResourceDescriptor *resources, unsigned short flags, short defaultLogicalFile) |
| int | FreeShapeSet (PacketResourceDescriptor *resources, unsigned short releaseFlags) |
| int | LoadPacketResourceList (PacketResourceDescriptor *resources, short flags, int availableBytes) |
| unsigned int | ResetCockpitPaletteEntries (void) |
| unsigned int | initialize_cockpit (int requestedMode) |
| unsigned int | InitializeConstellationObject (const ConstellationObjectDefinition *definition, short object) |
| unsigned int | FreeConstellationObject (short object) |
| unsigned int | init_constellation (short scene) |
| unsigned int | free_constellation (void) |
| void | init_vdus (void) |
| unsigned int | InitializeCockpitResources (signed char mode) |
| unsigned int | free_cockpit (void) |
| unsigned int | init_3Space_objects () |
| unsigned int | load_common_3Space_objects (void) |
| unsigned int | remove_all_3d_objects (void) |
| unsigned int | free_3Space (void) |
| unsigned int | free_3Space_objects (void) |
| unsigned int | init_inflight_music (void) |
| unsigned int | free_inflight_music (void) |
| unsigned int | PreloadMusicTrackHook (short track) |
| unsigned int | ReleaseMusicTrackHook (short track) |
| unsigned short | LoadSceneAnimationResources (short scene, short variant) |
| void | ReleaseSceneAnimationResources (void) |
| signed char *__stdcall | FindSceneAnimationCommand (signed char *script, signed char command) |
| short __stdcall | SceneAnimationGoalReached (short delta, short current, short goal) |
| unsigned short __stdcall | UpdateSceneAnimationObject (SceneAnimationObject *object, Viewport *viewport) |
| void | PlaySceneAnimation (char *text, short animation, short duration) |
| unsigned int | WaitForKeyExceptXOrF12 (void) |
| void | ShowMeanwhileTransition (short scene, short variant) |
| void | ApplyAnswerTextCipher (char *text, signed char direction) |
| void | LoadAnswerPromptAndResponse (short entry, char *prompt, char *response) |
| short | PromptForAnswerText (short entry) |
| void | SceneEnterHook (void) |
| void | CreateDebugOverlayConsole (HINSTANCE module, HWND window, short columns, short rows) |
| void | DestroyGlobalDebugOverlayConsole (void) |
| void | SystemDebugPrintf (const char *format,...) |
| char | PumpMessagesDuringWait (void) |
| unsigned char | TakeDebugStepFlag (void) |
| void | ResetDiskPromptTimerHook (int mode, int interval) |
| void | SetConsoleTextColourHook (void) |
| void | SetConsoleBackgroundColourHook (void) |
| void | DiskPromptDrawHook (void) |
| void | ClearDebugPauseFlags (void) |
| unsigned short | EraseTextContextBackground (TextContext *context) |
| int | DisplayTrainSimHighScoreTable (short phase) |
| int | AnimateTrainSimTitle (void) |
| unsigned char * | GetHighScoreEntry (short i) |
| unsigned int | GetHighScoreValue (short i) |
| unsigned int | SetHighScoreEntry (short i, unsigned char b, unsigned int v) |
| void | SortTrainSimHighScores (void) |
| short | FindTrainSimHighScore (short pilot) |
| short | InsertTrainSimHighScore (short pilot, unsigned int score) |
| void | InitializeTrainSimHighScores (void) |
| short | IsHighScoreSlotUsed (short i) |
| void | AddRandomTrainSimHighScores (void) |
| void | DrawTextInputCursor (char character) |
| void | ClearTextInputCharacter (short character) |
| void | ClearNextTextInputCharacter (short character) |
| short | ReadTextInput (char *destination, short maximumLength, short mode) |
| void | ReadRequiredPilotField (short x, short y, const char *label, char *destination, short maximumLength) |
| void | PromptForPilotField (short x, short y, const char *label, char *destination, short maximumLength, const char *defaultText) |
| void | InitializeTrainSimTextPanel (void) |
| void | ShowTrainSimTextMessage (const char *message) |
| void | EnterPilotNameAndCallsign (void) |
| void | UpdateTrainSimHighScores (int score) |
| void | ShowTrainSimHighScores (void) |
| struct Shape * | LoadTrainSimOpponentShape (int opponent) |
| short | SelectTrainSimMission (short *mission) |
| void | RunTrainSim (void) |
| short | LogMemoryUsage (void) |
| unsigned int | ShowMemoryStatusDebug (void) |
| void | exit_squadron (const char *msg) |
| unsigned int | GetJoystickButtonEdge (unsigned int a, short b) |
| int | main (short argc, char **argv) |
| unsigned int | GetScreenUpdateFlag (void) |
| unsigned int | initialize_view_buffer (void) |
| unsigned int | dump_buffer_to_screen (void) |
| unsigned int | clear_view_buffer (void) |
| unsigned int | InitializeConversationViewport (void) |
| unsigned int | ResetScreenClipToFullHeight (void) |
| unsigned int | InitializeConversationText (void) |
| unsigned int | RefreshMemoryStatusOverlay (void) |
| unsigned int | Update_3Space (void) |
| unsigned int | UpdateSpacePaletteFade (void) |
| unsigned int | TriggerPlayerHitPaletteFlash (void) |
| unsigned int | FadeFlightPaletteEntry (short *entry) |
| unsigned int | house_keep (void) |
| void | init_player_input (void) |
| void | get_player_input (void) |
| int | process_player_input (void) |
| unsigned int | fire_players_lasers (void) |
| unsigned int | players_flight_dynamics (void) |
| unsigned int | player_input (void) |
| unsigned int | SelectNextExternalViewObject (void) |
| unsigned int | SelectPreviousExternalViewObject (void) |
| unsigned int | HandleFleetOverviewInput (void) |
| short | MeasureMessageWidth (const char *text) |
| void | WaitForKeyAcknowledge (int mode) |
| void | ShowModalMessage (const char *format,...) |
| void | ReportOutOfMemoryAndExit (const char *resource) |
| void | ShowOnScreenMessage (int flags, short duration, const char *format,...) |
| void | ShowGamePausedBanner (short showBanner) |
| void | ShowVersionBanner (void) |
| void | SetMessageDisplaySpeed (void) |
| void | ReportFramesSkipped (short adjustment) |
| int | HandleSpaceFlightControls (void) |
| unsigned int | Draw_3Space_Frame (void) |
| void | GetArcadeBonus (void) |
| void | FigureArcadeTime (void) |
| void | DrawArcadeScorePanel (short x, short y) |
| void | UpdateArcadeScoreDisplay (void) |
| unsigned int | RenderSpaceViewFrame (void) |
| unsigned int | RefreshCockpitStatus (void) |
| short | GetShipDistanceToNavPoint (short ship, MissionNavPoint *navPoint) |
| short | FindNearestNavPoint (short ship) |
| unsigned int | ReleaseStaleNavTarget (void) |
| int | RunSpaceFlight (short entryNavPoint) |
| int | calculate_damage_level (void) |
| void | UpdateTrainSimMenuCursor (void) |
| void | ResetMouseCursorFrame (void) |
| void | UpdateRoomMenuCursor (void) |
| void __stdcall | FadeViewportPaletteToColour (Viewport *viewport, unsigned short colour, short enabled) |
| short | find_objective (int type, short index) |
| void | arrive_from_warp (short obj) |
| unsigned int | unwarp (short obj) |
| unsigned int | warp (short obj) |
| int | drop_player_mine (short obj) |
| unsigned int | personality_killed (short personality) |
| void | clean_up_cockpit (void) |
| short | find_next_gun (short obj, enum ObjectType currentGun) |
| int | select_guns (short obj, short selectedGun) |
| unsigned int | select_new_gun (void) |
| unsigned int | select_new_release_weapon (enum ObjectType preferredType) |
| void | WaitForDebugStep (void) |
| void CALLBACK | FrameTimerCallback (UINT timerId, UINT message, DWORD user, DWORD first, DWORD second) |
| void | SetMultimediaTimerCallback (int period) |
| void *__stdcall | PacketLoad (const char *filename, short section, void *destination, unsigned short flags, void *decompressionWorkspace) |
| 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) |
| void | ReleaseFinishedSoundEntries (void) |
| void | StopSoundsUsingWave (const char *name) |
| void | playWAVE (const char *filename, int looping, int volume) |
| 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 | DrawLaunchDoorFrame (short distance) |
| void | LaunchPlayerShip (void) |
| unsigned int | ShowCarrierLaunchSequence (signed char sceneObject) |
| void | FxDriverShutdownHook (void) |
| unsigned short | InitializeDiskPromptTextContext (void) |
| unsigned short | RewriteDiskFileGraphicsExtensions (short videoMode) |
| short | LoadWingCmdrCfgFile (short argc, char **argv) |
| unsigned short | LoadInstallDat (void) |
| void | show_damage_disp (void) |
| void | UpdateDamageDisplay (void) |
| unsigned short | GetJoystickPresentUnused (void) |
| unsigned int | parse_view_script (void) |
| unsigned int | update_scripted_view (void) |
| void | initialize_scripted_view (const short *script) |
| unsigned int | InitializeFireworks (void) |
| short | TheEndFireWorks (Viewport *viewport, short count) |
| unsigned int | InitializeConstellationField (Viewport *viewport, short direction, short density) |
| unsigned int | DrawConstellationField (void) |
| short __stdcall | OpenPacketSection (const char *filename, short section, PacketSectionHandle *handle) |
| void __stdcall | CloseDataFileByHandle (PacketSectionHandle *p) |
| void *__stdcall | DecompressPacketSection (PacketSectionHandle *handle, void *destination, unsigned short flags, void *decompressionWorkspace) |
| short | GetTargetColourIndex (void) |
| void | show_target_disp (void) |
| void | DrawTargetRangeReadout (void) |
| void | LogDisplayMode (const char *mode) |
| short __stdcall | CalcRectangleArea (const Viewport *viewport) |
| unsigned short __stdcall | AllocateViewport (Viewport *viewport, short clearColour, short flags) |
| void __stdcall | AlignSpriteFrameToRectCorner (const ShortRect *rectangle, ShortPoint *position, short corner, struct Shape *shape, short frame) |
| void | FadeMusic (void) |
| void | SetMusicOn (short enabled) |
| void | StopMusic (short unused) |
| void | SetMusBreakpt (int first, int second) |
| void | PaletteFadeHook (void) |
| void | FlushSoundEffect (void) |
| void | FlushSoundEffects (void) |
| void | SceneLeaveHook () |
| void | SelectFlightMusicTrack (int track) |
| int | MapMusicTrackToStreamerCommand (int track) |
| int | ProcessMusicScriptCommand (int track, int command, short enabled) |
| unsigned int | spacetrack (int track, int mode, short enabled) |
| void | StopMusicUnlessSuppressed (void) |
| unsigned short | GetMusicMode (void) |
| void | wait_for_end_of_music (void) |
| void | WaitForMusicOrInput (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 | EnableMusicForScene (void) |
| unsigned int | SoundFxTick (void) |
| void | FlushSoundEffectsAndLog (int soundHandle, short fadeTicks) |
| void | sound_effect (void) |
| void | PlaySfxWaveFileByNumber () |
| void | cleanup_objectives (void) |
| int | too_busy (short ship) |
| void | reply (short ship, short accepted) |
| int | disobey_formation (short ship) |
| int | bad_target (short ship, short target) |
| short | can_land (void) |
| short | i_wanna_rout (short ship, int pilot) |
| void | request (short requester, short ship, short command) |
| unsigned short __stdcall | ShouldSuspendCursorForRect (const ShortRect *bounds) |
| unsigned short __stdcall | InitializeDIBScreenViewport (Viewport *viewport, unsigned short colour) |
| void __stdcall | InitFullScreenViewport (Viewport *vp, short arg) |
| unsigned int __stdcall | GetPacketSize (const char *filename, short section) |
| int | GetFreeNearHeapBytes (void) |
| void | FrameStartHook (int mode) |
| 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 (int size, unsigned short flags) |
| void | ReleasePacketHandle (void *handle) |
| unsigned int | GetFixedOneMillionThunk (short memoryType) |
| unsigned int | GetFixedOneMillionThunkAlt (short memoryType) |
| void | CreateCannedSceneObject (short *object, short yaw, short unusedPitch, short distance, struct Shape *shape, short frame, short type, short scale) |
| unsigned int | ShowCampaignVictorySequence (void) |
| unsigned int | ShowTigerClawEscapeScene (void) |
| unsigned int | ShowTheEndScreen (short enableFireworks) |
| short __stdcall | UpdateInputDeviceTransitions (short raw) |
| void | PollJoystickButtonEvents (void) |
| void | PollMenuInputDevices (void) |
| short | get_face (short rating, unsigned int side) |
| void | LoadCommPortraitShape (short face, signed char alternate) |
| 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) |
| short | GetPendingMenuAction (void) |
| void | SetPendingMenuAction (unsigned char v) |
| void | OpenCommRecipientMenu (void) |
| void | CloseCommChoiceMenu (void) |
| short | wingman_dead (void) |
| short | have_target (void) |
| unsigned short | CanOpenCommMenu (void) |
| void | SelectCommRecipient (short recipient) |
| void | BuildCommunicationRecipientMenu (void) |
| void | BuildCommunicationCommandMenu (void) |
| void | RefreshCommunicationMenu (void) |
| void | HandleCommunicationMenuRequest (void) |
| void | show_communications_disp (void) |
| unsigned int | Chosen_communicate_option (short choice) |
| void | talk_equiv (void) |
| void | FreeCommDisplayResources (void) |
| void | EndCommSessionWithWingman (void) |
| void | EndCommMenu (void) |
| void | ShowCentredPrompt (char *text, unsigned short arg) |
| short | LoadCommDisplayResources (short rating, enum Side side) |
| char * | ExpandCommMessageTokens (const char *text) |
| void | real_vid_transmit (short obj, short message) |
| void __stdcall | ShutdownVideoHook (short mode) |
| short __stdcall | ReserveContiguousPaletteEntries (short entryCount) |
| void __stdcall | ReleaseContiguousPaletteEntries (short firstEntry) |
| void | PrintPaletteAllocationMap (void) |
| void | LoadJoystickCalibrationFile (short horizontalRange, short verticalRange, short horizontalDeadZone, short verticalDeadZone) |
| short | ReadCalibratedJoystick (void) |
| void __stdcall | UnionRectBounds (ShortRect *destination, const ShortRect *first, const ShortRect *second) |
| void | ThrottleFrameAndDrawFps (HDC dc) |
| void | ReportSpaceFlightMaxFps (float adjustment) |
| void | SetSpaceFlightFrameTiming (void) |
| void | SetCinematicFrameTiming (void) |
| 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 | DIBslam (void) |
| void | DIBslamReal (void) |
| void | DIBupdate (int left, int top, int right, int bottom) |
| unsigned char * | GetDIBPixelBuffer (void) |
| HWND | GetDIBWindowHandle (void) |
| void | CachePaletteEntryFromWords (short index, short *rgb) |
| void | DIBramPalette (void) |
| void | DIBsetPalette (short index, short *rgb) |
| void | GetPaletteEntryAsWords (short i, short *rgb) |
| void | DIBwholePaletteFromTriplets (unsigned char *palette) |
| void | DIBwholePaletteFromWords (short *palette) |
| void | DIBwaitForVerticalBlank (void) |
| char * | DirectDrawResultToText (int result) |
| void | show_info_disp (void) |
| unsigned int | 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) |
| int | 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) |
| unsigned int | control_speed (short obj, unsigned short range, int desiredSpeed) |
| unsigned int | chase_location (short obj, const FixedVector *destination, short reference) |
| unsigned int | goto_location (short obj, const FixedVector *destination) |
| unsigned int | goto_formation (short obj, const FixedVector *destination, short leader) |
| unsigned int | maintain_formation (short obj) |
| unsigned int | reset_stress (short obj) |
| short | stress_morale (short obj) |
| enum ShipManeuver | any_defense (short obj) |
| enum ShipManeuver | pick_regular_maneuver (short obj, int event) |
| enum ShipManeuver | pick_from_list (const ManeuverChoice *choice, short obj) |
| enum ShipManeuver | pick_kilrathi_maneuver (short obj, int event) |
| unsigned int | process_maneuver_node (short obj, int event) |
| void | handle_stress (short obj, int event) |
| void | intelligence_events (short obj) |
| unsigned int | chase_speed (short obj, short range) |
| short | RandomBelow (short n) |
| void __stdcall | SeedRandomFromClock (int seed) |
| unsigned short | RandomWord (void) |
| short __stdcall | RandomInRange (short lo, 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) |
| long | ArcSin (int value) |
| long | ArcCos (int value) |
| long | Magnitude (int value) |
| long | PlanarMagnitude (int x, int y) |
| long | Vector_magnitude (const FixedVector *vector) |
| void __stdcall | SetTextCursor (unsigned short a, unsigned short b) |
| void __stdcall | SetTextContext (TextContext *context) |
| void | WaitForVerticalBlankThunk (void) |
| void *__stdcall | IdentityHandle (void *v) |
| void __stdcall | SetWholePaletteFromTriplets (unsigned char *palette) |
| unsigned short __stdcall | FontHeight (const void *p) |
| unsigned short __stdcall | GetFontCharWidth (char i) |
| void | ReleaseVideoResourcesHook (void) |
| short __stdcall | GetShapeFrameBounds (short *bounds, short x, short y, struct Shape *shape, short frame) |
| short __stdcall | IsPointInRect (short x, short y, const short *rect) |
| void __stdcall | SplitPackedPoint (ShortPoint point, short *p) |
| void __stdcall | DrawTextString (const char *text) |
| void __stdcall | DrawTextCharacter (char character) |
| void __stdcall | AppendTextCharacter (char character) |
| int __stdcall | MeasureShapeFrameStorage (struct Shape *shape, short frame) |
| void | ResetTextCursor (void) |
| unsigned int __stdcall | DosFarPtrToNear (void *v) |
| void *__stdcall | DosNearPtrToFar (unsigned int v) |
| char *__stdcall | DosStrrchr (char *s, short c) |
| char *__stdcall | DosStrchr (const char *s, short c) |
| char *__stdcall | DosStrcpy (char *dst, const char *src) |
| char *__stdcall | CopyFarString (char *destination, const char *source) |
| short __stdcall | DosStrlen (const char *s) |
| void __stdcall | DosMemcpy (void *dst, const void *src, unsigned short n) |
| void __stdcall | DosMemset (void *destination, unsigned int count, short value) |
| unsigned short | GetEventManagerStatus (void) |
| void __stdcall | RegisterEventManagerShutdown (void(*fn)(void)) |
| short __stdcall | InitializeEventManager (short period, unsigned short(*initialize)(void), void *configuration) |
| void | ShutdownEventManager (void) |
| unsigned short __stdcall | ConfigureEventManagerPointer (struct Shape *shape, short frame) |
| void __stdcall | EventManagerHook (void(*callback)(void)) |
| void __stdcall | SetEventManagerPump (void(*pump)(void)) |
| void | EventManagerControlHook (void) |
| void | TranslatePolledInputEvent (unsigned short type, unsigned int value) |
| void | QueueInputEventAtCursor (unsigned short 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 timestamp) |
| void | ReleaseInputEventQueue (void) |
| void | RetainInputEventsOfType (int type) |
| void | RemoveInputEvent (InputEvent *event) |
| short __stdcall | GetNextInputEvent (InputEventState *event) |
| short __stdcall | PollInputEvent (InputEventState *event, short filter) |
| short __stdcall | PeekInputEvent (InputEventState *event, short type) |
| short __stdcall | IsInputEventQueued (short type) |
| void | FlushInputEvents (void) |
| short __stdcall | ResetAllocationDepth (int x, int y) |
| void | CheckCursor (void) |
| void | CaptureMouseCursorBackground (void) |
| void | DrawMouseCursor (void) |
| void | RestoreMouseCursorBackground (void) |
| void | RefreshMouseCursorDisplay (void) |
| void | EnterAllocationScope (void) |
| void | LeaveAllocationScope (void) |
| void __stdcall | SetMouseCursorShape (struct Shape *shape, short frame) |
| void __stdcall | SetMouseHomePosition (short x, short y) |
| void __stdcall | ApplyPackedMousePosition (ShortPoint point) |
| void __stdcall | GetMouseCursorPosition (ShortPoint *point) |
| void | SetFrameTimerPeriod (short period) |
| void __stdcall | SetFrameTimerAndWait (short period) |
| void __stdcall | SetFrameTimerPeriodDirect (short p) |
| void | WaitForFrameTick (void) |
| int | IsFrameTickElapsed (void) |
| unsigned short | GetSoundHardwareFlag (void) |
| void * | AllocateUntaggedMemory (unsigned int size) |
| void | ReleaseUntaggedMemory (void *memory) |
| void | TimerResetHook (void) |
| unsigned int | GetPacketDecompressionResult (void *) |
| unsigned short | IdentityWord (unsigned short v) |
| void | TimerStopHook (void) |
| unsigned int | GetFixedOneMillion (void) |
| unsigned int | GetFixedOneMillionAlt (void) |
| void | ClearInputKeyStatePreservingModifiers (void) |
| void | ClearInputKeyState (void) |
| void | SetInputKeyState (int scanCode, unsigned char pressed) |
| void | sort_object_depth (void) |
| void | draw_sorted_objects_to_buffer (void) |
| void | intro_drawbackgroundships (void) |
| void | set_up_screen_viewport (signed char mode) |
| void | MouseIdleHook (void) |
| unsigned short | GetNavRangeSentinel (void) |
| unsigned short | GetOriginalFreeMemory (void) |
| void | StartupHook (unsigned int(*callback)(unsigned int, short)) |
| unsigned int | JoystickEdgeHook (int button) |
| void * | AllocateSmallMemoryBlock (short size) |
| void | FreeIfNotNull (void *p) |
| unsigned int | GetStartupErrorCode (int vector) |
| void | ShutdownHook (int vector, void *handler) |
| unsigned short __stdcall | SelectDiskDriveHook (short drive) |
| short | GetCurrentDiskDriveHook (void) |
| unsigned short __stdcall | GetShutdownErrorCode (unsigned char *driveState) |
| void | FinishPacketDecompressionHook (void) |
| void | ExitCleanupHook (void) |
| unsigned int | IsVectorWithinRange (FixedVector *vector, short range) |
| unsigned int | shrink_vector (FixedVector *vector) |
| unsigned int | shrink (int *component) |
| void __stdcall | FillGraphicSuffix (char *path, short number, short digits) |
| void __stdcall | ConvertChar_Int (char *text, short number, short digits) |
| unsigned int | LoadBriefingRoom (void) |
| unsigned int | ViewMedals (void) |
| unsigned int | AwardCampaignMedal (short medal) |
| short | no_objectives_achieved (void) |
| short | wing_status (short personality) |
| short | int_value (char **text) |
| ConversationSceneRecord * | ParseTests (ConversationSceneRecord *record, ConversationSceneRecord *sceneData, unsigned char *textData) |
| unsigned int | DrawMedalChest (char *text, short duration) |
| unsigned int | DrawMedalLongShot (short *animation, char *text, short duration) |
| unsigned int | MedalEstablish (char *text, short duration) |
| unsigned int | PinMedal (char *text, short duration) |
| unsigned int | DrawMedals (void) |
| unsigned int | EstablishingShot (char *text, short duration) |
| unsigned int | DrawBriefingLongShot (void) |
| unsigned int | ReturnToBriefingLongShot (char *text, short duration) |
| unsigned int | Dismissed (char *text, short duration) |
| unsigned int | DrawDebriefingLongShot (void) |
| unsigned int | DebriefingEstablishingShot (char *text, short duration) |
| unsigned int | TalkerInit (void) |
| unsigned int | FreeTalker (void) |
| unsigned int | SceneDirector (short sceneType, unsigned char *sceneData, unsigned char *textData) |
| unsigned int | DrawPodiumShot (void) |
| unsigned int | DrawBriefingCharacter (short character, short pose, short animationFrame, const signed char *unusedXOffsets, const signed char *unusedYOffsets) |
| unsigned int | DrawFuneralLongShot (short shot, char *text, short duration) |
| void __stdcall | SetViewportRect (Viewport *viewport, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom) |
| void __stdcall | PanToScreen (Viewport *source, Viewport *destination) |
| unsigned int | death_sequence (void) |
| unsigned int | ShowGetReadyScreen (void) |
| unsigned int | ShowVictoryScreen (void) |
| unsigned int | ShowGameOverScreen (void) |
| void __stdcall | FillRasterBytes (void *destination, unsigned int length, short value) |
| 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, struct RLEShape *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, struct RLEShape *shape, int frame, int x, int y) |
| int | DrawRLEImageColorUnclipped (RasterClip *clip, RLEFrameHeader *frameHeader, int x, int y, int strideScratch) |
| int | RotateRLEImage (RasterClip *clip, struct RLEShape *shape, int frame, int x, int y, unsigned char *scratch, unsigned int angleTenths, int scaleX, int scaleY, unsigned int flags) |
| unsigned int | GetRLEFrameBounds (struct RLEShape *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 (struct RLEShape *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 (struct RLEShape *shape, int frame) |
| unsigned int | GetRLEFrameExtents (struct RLEShape *shape, int frame) |
| unsigned int | GetRLEImageSize (struct RLEShape *shape, int frame) |
| unsigned int | GetRLEImageOrigin (struct RLEShape *shape, int frame) |
| void | ApplyRLEFramePalette (struct RLEShape *shape, int frame, unsigned char *palette) |
| unsigned int | CopyRLEFramePalette (struct RLEShape *shape, int frame, unsigned char *entries) |
| unsigned int | SetRLEFramePalette (struct RLEShape *shape, int frame, const unsigned char *entries) |
| unsigned int | GetRLEFrameCount (const struct RLEShape *shape) |
| int | CollectUniqueRLEImageFrames (const struct RLEShape *shape, unsigned int *frames) |
| int | CollectUniqueRLEPaletteFrames (const struct RLEShape *shape, unsigned int *frames) |
| void | FadeRasterPaletteToPalette (RasterSurface *surface, const unsigned char *targetPalette, unsigned int duration) |
| int | CollectRasterClipColours (RasterClip *clip, unsigned int *colours) |
| void | CorrectPointers (void) |
| void | ClearRoomMenuLabel (void) |
| char | IsRoomMenuLabelEmpty (void) |
| void | DrawRoomMenuLabel (TextContext *context, const char *label) |
| void | RefreshRoomMenuLabel (void) |
| void | ClearRoomMenuCursorFrame (void) |
| void | SelectRoomMenuLabel (short i) |
| void | InitializeRoomMenu (const TitleMenuRegion *regions, char **labels, Viewport *viewport, char *text, unsigned char alignment) |
| int | FindMenuRegionAtPoint (short x, short y, const TitleMenuRegion *regions) |
| void | InitializeRoomViewports (void) |
| short | RecRoom (void) |
| void | ShowChalkBoard (void) |
| void | ResetCampaignData (void) |
| short __stdcall | ReadPacketSectionData (PacketSectionHandle *handle, void *destination, unsigned int length) |
| void | CheckHeapBlockSignature (struct Shape *shape) |
| struct RLEShape * | GetPreparedShapeData (struct Shape *shape) |
| short __stdcall | GetShapeFrameCount (struct Shape *shape) |
| int | SignExtendClipCoord (volatile short v) |
| void | ValidateViewportBounds (Viewport *viewport, RasterSurface *surface, RasterClip *clip) |
| void | ClipViewportToScreen (Viewport *viewport) |
| void | SetSolidColourTranslation (unsigned char colour) |
| void | PrepareShapeRLEData (struct Shape *shape) |
| void | DrawSpriteTransformed (Viewport *viewport, int x, int y, struct Shape *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 __stdcall | MarkActivePaletteEntries (Viewport *viewport, unsigned char *active) |
| void __stdcall | GetPaletteEntry (short index, short *rgb) |
| void __stdcall | SetPaletteEntry (short index, short *rgb) |
| void | DrawSpriteDefault (Viewport *viewport, short x, short y, struct Shape *shape, short frame) |
| void | CaptureSpriteBackground (Viewport *viewport, unsigned char *background, short x, short y, struct Shape *shape, short frame) |
| void | RestoreSpriteBackground (Viewport *viewport, unsigned char *background, short x, short y, struct Shape *shape, short frame) |
| void | DrawSolidColourSprite (Viewport *viewport, short x, short y, struct Shape *shape, short frame, short colour) |
| void | CopyViewportContents (Viewport *source, Viewport *destination) |
| void | ClearViewport (Viewport *viewport, short colour) |
| void | DrawViewportPixel (Viewport *viewport, short x, short y, short colour) |
| int | GetViewportPixel (Viewport *viewport, short x, short y) |
| void | DrawViewportLine (Viewport *viewport, short x1, short y1, short x2, short y2, short colour) |
| void | DrawViewportPolygonHook (Viewport *viewport, const ShortPoint *points, int count, int colour) |
| void | triangle (Viewport *viewport, const 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, struct Shape *shape, int frame, int x, int y, int angle, int scale) |
| void | GetShapeFrameCorners (unsigned char *shape, int frame, int x, int y, ShortPoint *corners, int *cornerCount) |
| void | DrawSpriteScaled (Viewport *viewport, short x, short y, struct Shape *shape, short frame, short angle, short scale, short flip) |
| void | DrawSolidColourSpriteScaled (Viewport *viewport, short x, short y, struct Shape *shape, short frame, short angle, short scale, short flip, short colour) |
| short | GetTransformedShapeBounds (Viewport *viewport, short x, short y, struct Shape *shape, short frame, short angle, short scale, short flip, ShortRect *bounds) |
| void | BlitViewportScanlineRuns (Viewport *source, Viewport *destination, const ScreenViewportGeometry *geometry) |
| 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) |
| int | GetStreamerTrigger (void) |
| void | ClearStreamerTrigger (void) |
| void | Streamer_trigger (int trigger) |
| void | SetStreamerIntensity (unsigned char intensity) |
| void | ForceStreamerTrigger (int trigger) |
| void | SetMusicStreamVolume (unsigned short volume) |
| unsigned int | GetMusicStreamVolume (void) |
| void | Streamer_close (void) |
| void | ShutdownAudioStreamer (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) |
| char | ix_streamer_get_trigger (void) |
| void | ix_streamer_force_trigger (char trigger) |
| void | ix_streamer_set_volume (unsigned short volume) |
| unsigned short | ix_streamer_get_volume (void) |
| void | GetShapeFrameExtents (struct Shape *shape, short frame, short *width, short *height, short *leftExtent, short *topExtent) |
| void | DecodeShapeFrame (struct Shape *shape, short frame, unsigned char *bitmap, int width, int height, int leftExtent, int topExtent) |
Prototypes of every reconstructed function, in address order.
Address order is link order, so this list doubles as the reconstruction inventory; src/map gives the same list with the original addresses.
Definition in file wc1funcs.h.
Definition at line 621 of file gr.c.
References __copyline(), and RasterLineHook().
Referenced by __copyline(), and CollectRasterClipColours().
Definition at line 627 of file gr.c.
References __wipeline(), and RasterLineHook().
Referenced by __wipeline(), and CollectRasterClipColours().
| int abandoned | ( | short | obj, |
| short | other ) |
Definition at line 1286 of file logic.c.
References abandoned(), abShipTurnList, aeShipSide, distance_from_object(), explode(), FindNearestNavPoint(), hostile_sphere(), nCurrentNavigationPoint, RandomBelowOrEqual(), and SIDE_KILRATHI.
Referenced by abandoned(), close_behind(), cruise_home(), and cruise_to_destination().
| unsigned int AbortToDesktop | ( | void | ) |
Definition at line 665 of file winmain.c.
References AbortToDesktop(), hSingleInstanceSemaphore, nGuardedAllocationBytes, nGuardedAllocationPeakBytes, nGuardedAllocationTotalBytes, and szMemoryUsage.
Referenced by AbortToDesktop(), exit_squadron(), and WinMain().
| int AbsInt | ( | int | v | ) |
Definition at line 217 of file geom.c.
References AbsInt().
Referenced by AbsInt(), and control_speed().
| void accelerate | ( | short | amount | ) |
Definition at line 2189 of file ship.c.
References accelerate(), celerate(), malf(), nCurrentSpaceFrameValue, and PlaySfxWaveFileByNumber().
Referenced by accelerate(), HandleSpaceFlightControls(), and player_input().
| void accelerate_and_jump | ( | short | obj | ) |
Definition at line 528 of file brains.c.
References accelerate_and_jump(), approach_full_speed(), asShipTotal, and warp().
Referenced by accelerate_and_jump(), and reach_warp().
| unsigned int accelerate_and_move_object | ( | short | obj | ) |
Definition at line 1053 of file spc.c.
References abShipExhaustHeatList, accelerate_and_move_object(), AddFixedVectors(), aeObjectClass, aeObjectTypeList, aeShipTacticArray, aeSpecialManeuvers, alert_flag(), anShipSpeed, aObjectTypeData, approach_zero_speed(), aShipFwdVec, aShipPositionsArray, aShipVelocity, asShipAfterburnerTimer, bAfterburnerSfxEnabled, ComputeVectorDelta(), DivideFixed(), dot_product(), drain_fuel(), FlushSoundEffectsAndLog(), 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(), vPlayerAccel, and zero_vector().
Referenced by accelerate_and_move_object(), and update_objects_in_space().
| void ace_greeting | ( | short | obj | ) |
Definition at line 142 of file logic.c.
References ace_greeting(), ace_status(), aiPilotLevel, flag_ace(), and send_message().
Referenced by ace_greeting(), and engage().
| short ace_status | ( | short | ace, |
| unsigned char | bits ) |
Definition at line 115 of file logic.c.
References ace_status(), CampaignState::aceFlags, and stCampaignState.
Referenced by ace_greeting(), ace_status(), engage(), explode(), is_alive(), kill_ace(), and ParseTests().
| short achieved | ( | short | objective | ) |
Definition at line 1042 of file cockpt.c.
References achieved(), and aMissionObjectivesArray.
Referenced by achieved(), BuildMap(), can_land(), cleanup_objectives(), no_objectives_achieved(), ParseTests(), PlayersMissionScore(), and show_info_disp().
| void add_hazard_field | ( | enum ObjectType | type, |
| FixedVector | center, | ||
| short | radius, | ||
| short | density ) |
Definition at line 461 of file winmain.c.
References add_hazard_field(), aHazardFields, HazardField::center, HazardField::density, HazardField::innerRadius, nCurrentHazardFieldTotal, HazardField::outerRadius, and HazardField::type.
Referenced by add_hazard_field(), and init_ship().
| void add_statistics | ( | short | pilot, |
| short | missions, | ||
| short | kills ) |
Definition at line 33 of file gameflow.c.
References add_statistics(), apWingmanPilotsList, PilotRecord::kills, and PilotRecord::missions.
Referenced by add_statistics(), and PostMission().
| void AddFixedVectors | ( | const FixedVector * | left, |
| const FixedVector * | right, | ||
| FixedVector * | sum ) |
Definition at line 296 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(), chase_location(), compute_formation_destination(), Create_explosion_debris(), Create_ship_hit_debris(), DrawNavHazardMarker(), ejection_sequence(), find_squad_center(), fire(), fire_weapon(), get_front_spot(), get_rear_spot(), goto_formation(), init_formation_burst(), init_hazard(), init_ship(), launch_object(), locate_ship(), make_shard(), MoveObjectAlongDirection(), Msit_n_spin(), new_view(), object_collision(), onboard_explosion(), parse_view_script(), pop_flack(), position_relative(), random_radial(), real_crash_time(), servicetrack(), set_eye_direction_and_position(), set_sphere_point(), SetFleetOverviewView(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), ShowTigerClawEscapeScene(), start_dust(), steer_away_from_object(), steer_away_from_predicted_object(), and update_star_field().
| char * AddPCName | ( | const char * | text | ) |
Definition at line 102 of file cmpgn.c.
References abSeriesAuxData, AddPCName(), apszMedalNames, apszPilotRankNames, apWingmanPilotsList, PilotRecord::callsign, CampaignState::currentPilot, CampaignDate::day, DosStrcat(), DosStrchr(), DosStrlen(), PilotRecord::name, nCurrentConversationMedalIndex, nPlayerKillTotal, nWingmanKillCount, pCurrentCampaignDate, pElapsedCampaignDatePtr, PilotRecord::rank, stCampaignState, stSavedCampaignDate, szTxtWorkspaceBuffer, and CampaignDate::year.
Referenced by AddPCName(), CloseLook(), DebriefingEstablishingShot(), Dismissed(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), EstablishingShot(), funeral_wingman(), LongTalk(), MedalEstablish(), PinMedal(), PlaySceneAnimation(), ReturnToBriefingLongShot(), UpdateMap(), and ViewMedals().
Definition at line 236 of file trainsim.c.
References AddRandomTrainSimHighScores(), aHighScoreEntriesArray, FindTrainSimHighScore(), InsertTrainSimHighScore(), RandomBelow(), RandomBelowOrEqual(), RandomInRange(), HighScoreEntry::score, and stCampaignState.
Referenced by AddRandomTrainSimHighScores(), GameFlow(), and init_3Space_objects().
| void AddUniqueObjectiveNavLabel | ( | short | x, |
| short | y, | ||
| unsigned short | colour, | ||
| const char * | text, | ||
| short | objective, | ||
| short | missionShip ) |
Definition at line 205 of file nav.c.
References AddUniqueObjectiveNavLabel(), aMissionObjectivesArray, and PlaceNavMapLabel().
Referenced by AddUniqueObjectiveNavLabel(), and BuildMap().
| void advance | ( | short | ship | ) |
Definition at line 141 of file fl.c.
References acShipSequence, advance(), aeShipManeuversTable, and MANEUVER_NONE.
Referenced by advance(), general_zig(), Mburnout(), Mbuzz_debris(), Mcorkscrew(), Mfish_hook(), Mgloat(), Mhard_break(), Mhard_turn(), Mkickit(), Mroll_over(), Msit_n_spin(), Msplit_left(), Msplit_right(), Mtight_loop(), Mturn_n_kick(), Mturn_n_spin(), Mveer_away(), and ShipAiState35().
| int advance_canned_sequence | ( | short | obj | ) |
Definition at line 246 of file mono.c.
References advance_canned_sequence(), aeSpecialManeuvers, anPitchGoal, anRollGoal, anShipSpeed, anYawTarget, apCannedSequenceList, asActionCounts, asCannedCommands, explode(), fire_fixed_projectile_weapon(), and SPECIAL_MANEUVER_AFTERBURNER.
Referenced by advance_canned_sequence(), init_intelligence_data(), and update_canned_sequence().
| unsigned int affect_mission_score | ( | short | pilot, |
| int | event, | ||
| short | amount ) |
Definition at line 1060 of file ship.c.
References affect_mission_score(), CampaignState::missionScore, nCurrentArcadeScore, nMissionMedalScoreValue, and stCampaignState.
Referenced by affect_mission_score(), cleanup_objectives(), and score_for_kill().
| int alert_flag | ( | short | ship, |
| unsigned int | bits ) |
Definition at line 166 of file logic.c.
References alert_flag(), and anShipAlertFlags.
Referenced by accelerate_and_move_object(), alert_flag(), approach_speed(), handle_collisions(), rotate_object_to_goal(), and set_special().
| void align | ( | short * | value, |
| short | quantum ) |
Definition at line 190 of file winmain.c.
References align().
Referenced by align(), and init_hazard().
| void __stdcall AlignSpriteFrameToRectCorner | ( | const ShortRect * | rectangle, |
| ShortPoint * | position, | ||
| short | corner, | ||
| struct Shape * | shape, | ||
| short | frame ) |
Definition at line 805 of file view.c.
References AlignSpriteFrameToRectCorner(), ShortRect::bottom, GetShapeFrameBounds(), ShortRect::left, ShortRect::right, ShortRect::top, ShortPoint::x, and ShortPoint::y.
Referenced by AlignSpriteFrameToRectCorner(), init_3Space_objects(), and SelectTrainSimMission().
| ActiveSoundEntry * AllocateActiveSoundEntry | ( | void | ) |
Definition at line 122 of file sound.c.
References AllocateActiveSoundEntry(), ActiveSoundEntry::next, pActiveSoundHead, and pActiveSoundTail.
Referenced by AllocateActiveSoundEntry(), init_3Space_objects(), and playWAVE().
| FontWorkspace ** AllocateFontWorkspace | ( | short | fontIndex | ) |
Definition at line 155 of file winsys.c.
References AllocateFontWorkspace().
Referenced by AllocateFontWorkspace(), and InitializeTextContextFromFont().
| void * AllocateGuardedMemory | ( | unsigned int | size | ) |
Definition at line 1054 of file winmain.c.
References AllocateGuardedMemory(), GuardedAllocation::block, GuardedAllocation::next, nGuardedAllocationBytes, nGuardedAllocationPeakBytes, nGuardedAllocationTotalBytes, pGuardedAllocationHead, pGuardedAllocationTail, and GuardedAllocation::size.
Referenced by AllocateGuardedMemory(), and AllocateTaggedMemory().
| InputEvent * AllocateInputEvent | ( | void | ) |
Definition at line 73 of file eventmgr.c.
References aiInputEventSlotUsedTable, aInputEvtPool, AllocateInputEvent(), and bInputEventPoolInitialized.
Referenced by AllocateInputEvent(), DosMemcpy(), and QueueInputEvent().
| void * AllocateNearHeapBlockByFlags | ( | int | size, |
| unsigned short | flags ) |
Definition at line 246 of file nearheap.c.
References NearHeapBlock::address, AllocateNearHeapBlockByFlags(), AllocateNearHeapBlockFromEnd(), DosNearPtrToFar(), nCurrentNearHeapFirstDescriptor, nNearHeapBase, nNearHeapMaxDescriptors, nNearHeapSize, and NearHeapBlock::sizeAndFlags.
Referenced by AllocateNearHeapBlockByFlags().
| void * AllocateNearHeapBlockFromEnd | ( | int | size, |
| unsigned short | flags ) |
Definition at line 153 of file nearheap.c.
References NearHeapBlock::address, AllocateNearHeapBlockFromEnd(), DosNearPtrToFar(), nCurrentNearHeapFirstDescriptor, nNearHeapBase, nNearHeapMaxDescriptors, nNearHeapSize, and NearHeapBlock::sizeAndFlags.
Referenced by AllocateNearHeapBlockByFlags(), and AllocateNearHeapBlockFromEnd().
| void * AllocateSmallMemoryBlock | ( | short | size | ) |
Definition at line 1141 of file eventmgr.c.
References AllocateSmallMemoryBlock().
Referenced by AllocateSmallMemoryBlock(), and DosMemcpy().
| void * AllocateTaggedMemory | ( | int | size, |
| unsigned short | flags ) |
Definition at line 31 of file ending.c.
References abTaggedAllocationPrefix, AllocateGuardedMemory(), AllocateTaggedMemory(), PushMemoryStackFrame(), and TaggedAllocationHeader::signature.
Referenced by AllocateTaggedMemory(), AllocateUntaggedMemory(), AllocateViewport(), CollectActivePaletteIndices(), DecompressPacketSection(), ejection_sequence(), FadeViewportPaletteToColour(), get_pilot_talk(), InitializeCockpitResources(), InitializeNearHeap(), LoadInstallDat(), LoadPacketAllocated(), LoadPaletteTripletsFile(), PacketLoad(), PanToScreen(), PlaySfxWaveFileByNumber(), PrepareShapeRLEData(), SetAwakenBarracksMenuLabel(), ShowModalTextPanel(), StepPaletteTransition(), and TalkerInit().
| void * AllocateUntaggedMemory | ( | unsigned int | size | ) |
Definition at line 648 of file eventmgr.c.
References AllocateTaggedMemory(), and AllocateUntaggedMemory().
Referenced by AllocateUntaggedMemory(), and DosMemcpy().
| unsigned short __stdcall AllocateViewport | ( | Viewport * | viewport, |
| short | clearColour, | ||
| short | flags ) |
Definition at line 758 of file view.c.
References AllocateTaggedMemory(), AllocateViewport(), Viewport::allocation, apViewportAllocations, Viewport::bottom, ClearViewport(), Viewport::left, LogDisplayMode(), nAllocateViewportCallsValue, nVideoMode, nViewAllocTotal, Viewport::pixels, ReleasePacketHandle(), Viewport::right, Viewport::rowOffsets, and Viewport::top.
Referenced by AllocateViewport(), BriefingMap_DisplayMap(), BriefingMap_LoadShapes(), FetchDiskPacketRetrying(), init_3Space_objects(), InitFullScreenViewport(), initialize_view_buffer(), InitializeCockpitResources(), InitializeConversationViewport(), InitializeModalTextPanel(), InitializeRoomViewports(), PromptInsertNumberedDisk(), and ShowTrainSimHighScores().
| WaveTableEntry * AllocateWaveTableEntry | ( | void | ) |
Definition at line 49 of file sound.c.
References AllocateWaveTableEntry(), WaveTableEntry::next, pWaveTableHead, and pWaveTableTail.
Referenced by AllocateWaveTableEntry(), init_3Space_objects(), PlaySnowStaticSound(), and playWAVE().
Definition at line 203 of file brains.c.
References allow_engage(), bEngageAllowed, and nAutoEngageTimer.
Referenced by allow_engage(), request(), and try2allow_engage().
| unsigned int alter_objective | ( | short | ship, |
| enum ShipObjective | objective ) |
Definition at line 685 of file logic.c.
References aeShipObjectiveList, alter_objective(), alter_tactic(), steady_object(), and TACTIC_NONE.
Referenced by alter_objective(), and request().
| void alter_pitch | ( | short | angle, |
| short | obj ) |
Definition at line 619 of file geom.c.
References alter_pitch(), aShipFwdVec, aShipUpVector, fix_objects_ijk(), and rotate_about_i().
Referenced by alter_pitch(), ejection_sequence(), InitializeConstellationObject(), make_shard(), parse_view_script(), rotate_object(), set_background_objects_rotation(), and Set_up_ship_info().
| void alter_roll | ( | short | angle, |
| short | obj ) |
Definition at line 635 of file geom.c.
References alter_roll(), aShipRightVector, aShipUpVector, fix_objects_ijk(), and rotate_about_k().
Referenced by alter_roll(), InitializeConstellationObject(), parse_view_script(), rotate_object(), and Set_up_ship_info().
| unsigned int alter_tactic | ( | short | ship, |
| enum ShipTactic | tactic ) |
Definition at line 704 of file logic.c.
References aeShipTacticArray, alter_tactic(), MANEUVER_NONE, and reset_maneuver().
Referenced by alter_objective(), alter_tactic(), and patrol_area().
| void alter_yaw | ( | short | angle, |
| short | obj ) |
Definition at line 627 of file geom.c.
References alter_yaw(), aShipFwdVec, aShipRightVector, fix_objects_ijk(), and rotate_about_j().
Referenced by alter_yaw(), CreateCannedSceneObject(), InitializeConstellationObject(), make_shard(), parse_view_script(), rotate_object(), set_background_objects_rotation(), Set_up_ship_info(), and ShowCarrierLaunchSequence().
| unsigned int analyze_kill | ( | short | attacker, |
| short | victim ) |
Definition at line 1151 of file ship.c.
References aeShipSide, analyze_kill(), new_space_music_changes(), nPlayerKillTotal, nWingmanKillCount, nYourWingman, score_for_kill(), and send_message().
Referenced by analyze_kill(), and explode().
| unsigned int animate_object | ( | short | obj | ) |
Definition at line 1224 of file spc.c.
References AddFixedVectors(), aeObjectClass, aeObjectTypeList, animate_object(), animate_shape(), aObjectTypeData, aShipFwdVec, aShipPositionsArray, aShipVelocity, asObjectCollisionRadius, asObjectScreenXList, asShipAccumulatedDmg, awObjectScales, FillFixedVectorWithRandomComponents(), find_vacant_3d_object(), nRenderedSpaceFrame, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_DEBRIS, OBJECT_CLASS_EXPLOSION, OBJECT_CLASS_FIXED_OBJECT, OBJECT_CLASS_MINE, OBJECT_CLASS_SHIP, OBJECT_TYPE_RED_SPARK, PlaySfxWaveFileByNumber(), RandomInRange(), ScaleFixedVector(), set_objects_data(), and zero_vector().
Referenced by animate_object(), and update_objects_in_space().
Definition at line 2468 of file cockpt.c.
References animate_pilot(), bStickIndicatorFrameState, cRenderedPilotHandFrame, determine_pilot_hand(), DrawPilotHandFrame(), and pCurrentPilotHandShapePtr.
Referenced by animate_pilot(), ResetPilotHandAnimation(), and update_cockpit().
| unsigned int animate_shape | ( | short | obj | ) |
Definition at line 1165 of file spc.c.
References aeObjectTypeList, animate_shape(), ObjectTypeData::animation, aObjectTypeData, asObjectAnimationDelay, asObjectAnimIndexes, asObjectFlipArray, asObjectScreenXList, asObjectViewFrames, awObjectScales, OBJECT_TYPE_DEBRIS_METAL_SHEET, OBJECT_TYPE_DEBRIS_WING, PlaySfxWaveFileByNumber(), remove_object(), and ObjectTypeData::yawRate.
Referenced by animate_object(), animate_shape(), and set_objects_data().
| void AnimateBarracks | ( | Viewport * | viewport, |
| struct Shape * | shape, | ||
| BarracksAnimationState * | state ) |
Definition at line 799 of file barracks.c.
References AnimateBarracks(), BarracksBunkState::animationFrame, BarracksBunkState::animationPeriod, BarracksAnimationState::animationTick, BarracksBunkState::animationTick, BarracksAnimationState::blinkDelay, BarracksAnimationState::bunks, CheckCursor(), RoomMenu::currentLabel, DrawSpriteDefault(), BarracksAnimationState::eyesOpen, BarracksAnimationState::fallingDelay, BarracksAnimationState::fallingVelocity, BarracksAnimationState::fallingY, BarracksAnimationState::impactFrame, BarracksAnimationState::menuLabel, nTickCount60Hz, BarracksBunkState::occupied, PlaySfxWaveFileByNumber(), RandomInRange(), and stCurrentRoomMenu.
Referenced by AnimateBarracks(), and UpdateBarracksScreen().
| unsigned int AnimateScrambleWalk | ( | short | ticks | ) |
Definition at line 198 of file cutscene.c.
References acScrambleWalkerOverlayFrames, AnimateScrambleWalk(), bEscapePressedFlag, cScrambleLeftWalkerFrame, cScrambleRightWalkerFrame, cScrambleWalkerPair, DIBslam(), DIBslamReal(), DrawSpriteDefault(), GetShapeFrameExtent(), nFrameSkip, nFrameSkipCounter, nSceneScrambleWalkerPositionY, nScrambleBackgroundX, nScrambleLeftWalkerX, nScrambleRightWalkerX, pCurrentScrambleHangarShape, PumpWindowMessages(), RefreshMemoryStatusOverlay(), and stSceneBuffer.
Referenced by AnimateScrambleWalk(), and PlayScrambleHangarScene().
| int AnimateTrainSimTitle | ( | void | ) |
Definition at line 90 of file trainsim.c.
References AnimateTrainSimTitle(), ShortRect::bottom, Viewport::bottom, cBlackColour, CheckEscaped(), CopyViewportContents(), DIBslam(), DIBslamReal(), DrawFilledViewportRect(), TextContext::font, FontHeight(), ShortRect::left, ShortRect::right, SetFrameTimerPeriodDirect(), stCurrentTrainSimTitleDisplayViewport, stModalSrcViewport, stTrainSimPanelBounds, stTrainSimPanelViewport, stTrainSimTxtContext, ShortRect::top, Viewport::top, and WaitForFrameTick().
Referenced by AnimateTrainSimTitle(), init_3Space_objects(), and ShowTrainSimHighScores().
| enum ShipManeuver any_defense | ( | short | obj | ) |
Definition at line 414 of file smart.c.
References aiPilotLevel, any_defense(), apDefenseManeuvers, and RandomBelowOrEqual().
Referenced by any_defense(), pick_kilrathi_maneuver(), pick_regular_maneuver(), and PlaySfxWaveFileByNumber().
| int any_enemy | ( | short | obj, |
| short | range ) |
Definition at line 887 of file logic.c.
References aeObjectClass, aeShipSide, aeSpecialManeuvers, any_enemy(), distance_from_object(), nTargetShip, nTgtRange, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by any_enemy(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), can_land(), check_stranded(), close_behind(), HandleSpaceFlightControls(), i_wanna_rout(), imperial_formation(), intelligence_events(), internal_damage(), and run_away().
| int any_enemy_tail | ( | short | obj | ) |
Definition at line 512 of file logic.c.
References acShipTargetTable, aeObjectClass, aeShipSide, aeSpecialManeuvers, any_enemy_tail(), being_tailed(), nTargetShip, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by any_enemy_tail(), disobey_formation(), and gametrack().
| short any_selected | ( | signed char * | loadout, |
| enum ObjectClass | objectClass ) |
Definition at line 114 of file ship.c.
References any_selected(), and aObjectTypeData.
Referenced by any_selected(), and remove_weapon().
| short AnySavedGames | ( | void | ) |
Definition at line 175 of file barracks.c.
References AnySavedGames(), bSavedGameExists, SaveGameRecord::campaign, CampaignState::campaignIndex, and LoadGame().
Referenced by AnySavedGames(), and Title_Sequence().
| void AppendCommMenuChoice | ( | const char * | text, |
| short | command ) |
Definition at line 111 of file comm.c.
References abCommMenuChoiceCommands, AppendCommMenuChoice(), apszCommMenuChoiceTextTable, nCommMenuChoiceCount, and nCommMenuReuseMode.
Referenced by AppendCommMenuChoice(), BuildCommunicationRecipientMenu(), PlaySfxWaveFileByNumber(), and SendCommMenuChoice().
| void AppendFormattedText | ( | const char * | format, |
| ... ) |
Definition at line 227 of file cockpt.c.
References AppendFormattedText(), AppendTextCharacter(), DIBslam(), FormatTextTokens(), pCurTextContext, Viewport::pixels, stScreenView, and TextContext::viewport.
Referenced by AppendFormattedText().
References AppendGIFLZWDictionaryEntry().
Referenced by AppendGIFLZWDictionaryEntry().
| void __stdcall AppendTextCharacter | ( | char | character | ) |
Definition at line 341 of file mathfp.c.
References AppendTextCharacter(), pCurTextContext, and TextContext::textCursor.
Referenced by AppendFormattedText(), AppendTextCharacter(), DrawNavTextLine(), FormatTextBufferFromStart(), and PlaySfxWaveFileByNumber().
| void apply_force_to_object | ( | FixedVector * | point, |
| FixedVector * | force, | ||
| short | obj ) |
Definition at line 1045 of file geom.c.
References AddFixedVectors(), aeObjectClass, anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, apply_force_to_object(), aShipVelocity, asObjAfterburnerVelocities, asObjectCollisionRadius, awObjMassArray, check_for_lost_control(), ClampTo30(), DivideFixed(), MultiplyFixed(), OBJECT_CLASS_SHIP, PlanarMagnitude(), 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 1035 of file geom.c.
References AddFixedVectors(), apply_force_to_objects_center(), aShipVelocity, awObjMassArray, and divide_vector().
Referenced by apply_force_to_objects_center(), and explosion_shock_wave().
| void ApplyAnswerTextCipher | ( | char * | text, |
| signed char | direction ) |
Definition at line 78 of file pilot.cpp.
References ApplyAnswerTextCipher().
Referenced by ApplyAnswerTextCipher(), init_3Space_objects(), and PromptForAnswerText().
| void __stdcall ApplyPackedMousePosition | ( | ShortPoint | point | ) |
Definition at line 589 of file eventmgr.c.
References ApplyPackedMousePosition(), SetMousePositionDuplicate(), stMouseCursorState, MouseCursorState::x, ShortPoint::x, MouseCursorState::y, and ShortPoint::y.
Referenced by ApplyPackedMousePosition(), and DosMemcpy().
References ApplyRLEFramePalette().
Referenced by ApplyRLEFramePalette().
| void approach | ( | short | obj | ) |
Definition at line 382 of file winmain.c.
References AddFixedVectors(), approach(), aShipFwdVec, aShipPositionsArray, aShipVelocity, point_at(), and ScaleFixedVector().
Referenced by approach(), and manage_hazard().
| void approach_and_engage | ( | short | obj, |
| short | goal ) |
Definition at line 649 of file brains.c.
References acShipTargetTable, aeObjectClass, aiPilotLevel, approach_and_engage(), distance_from_object(), engage(), evaluate_damage(), init_formation_burst(), MaxShort(), MinShort(), nTgtRange, 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 770 of file logic.c.
References aeObjectTypeList, aObjectTypeData, approach_cruise_speed(), and approach_speed().
Referenced by approach_cruise_speed(), capital_ship_intelligence(), cruise_home(), cruise_to_destination(), destroyer_intelligence(), goto_location(), Msit_n_fire(), Mstrafe_enemy(), Mtarget_missile(), Mthink(), Mtight_loop(), patrol_area(), rendezvous_mission(), return_to_buddy(), and tanker_intelligence().
| unsigned int approach_full_speed | ( | short | ship | ) |
Definition at line 779 of file logic.c.
References approach_full_speed(), approach_speed(), and asShipMaximumSpeedArray.
Referenced by accelerate_and_jump(), approach_full_speed(), capital_ship_intelligence(), chase_speed(), cruise_to_destination(), formation_burst(), general_zig(), goto_formation(), goto_location(), Mbuzz_debris(), Mcorkscrew(), Mdrop_a_mine(), Mfish_hook(), Mfull_ahead(), Mget_distance(), Mhard_turn(), Mram_missile(), Mroll_over(), Msuicide_run(), Mtry2tail(), Mturn_n_kick(), Mveer_away(), Mwabble(), Mzip_past(), patrol_area(), prevent_collision(), rendezvous_mission(), run_away(), streak_toward(), and tanker_intelligence().
| unsigned int approach_half_speed | ( | short | obj | ) |
Definition at line 760 of file logic.c.
References aeObjectTypeList, aObjectTypeData, approach_half_speed(), approach_speed(), and ObjectTypeData::cruiseVelocity.
Referenced by approach_half_speed(), cruise_to_destination(), defend_mission(), destroyer_intelligence(), and goto_location().
| unsigned int approach_min_speed | ( | short | obj | ) |
Definition at line 753 of file logic.c.
References approach_min_speed(), and approach_speed().
Referenced by approach_min_speed(), and goto_formation().
| unsigned int approach_ship_speed | ( | short | obj, |
| short | other ) |
Definition at line 787 of file logic.c.
References anShipSpeed, approach_ship_speed(), and approach_speed().
Referenced by approach_ship_speed(), escort_buddy(), goto_formation(), and imperial_formation().
| unsigned int approach_speed | ( | short | ship, |
| int | targetSpeed ) |
Definition at line 405 of file ship.c.
References alert_flag(), anShipSpeed, approach_speed(), celerate(), 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(), chase_location(), chase_speed(), control_speed(), Msit_n_spin(), and ShipAiState35().
| unsigned int approach_zero_speed | ( | short | ship | ) |
Definition at line 746 of file logic.c.
References approach_speed(), and approach_zero_speed().
Referenced by accelerate_and_move_object(), approach_zero_speed(), chase_speed(), Msit_n_fire(), and prevent_collision().
| void approve_xyz | ( | short | obj, |
| short | minimum, | ||
| short | maximum ) |
Definition at line 676 of file mission.c.
References approve_xyz(), aShipPositionsArray, random_radial(), and room_for_me().
Referenced by approve_xyz(), arrive_from_warp(), and set_up_next_wave().
| long ArcCos | ( | int | value | ) |
Definition at line 108 of file mathfp.c.
References ArcCos().
Referenced by ArcCos(), get_right_shape(), match_roll_orientation(), PlaySfxWaveFileByNumber(), rectangular_to_spherical(), and set_background_objects_rotation().
| long ArcSin | ( | int | value | ) |
Definition at line 101 of file mathfp.c.
References ArcSin().
Referenced by ArcSin(), PlaySfxWaveFileByNumber(), and set_ship_rotation_goals().
| int are_alive | ( | short | obj | ) |
Definition at line 363 of file logic.c.
References aeShipObjectiveList, are_alive(), OBJECTIVE_WANDER, and unactive().
Referenced by are_alive().
| void arrive_from_warp | ( | short | obj | ) |
Definition at line 42 of file targ.c.
References abFlightPathList, aeShipSide, aMissionObjectivesArray, anShipSpeed, approve_xyz(), arrive_from_warp(), asShipMaximumSpeedArray, cCurrentObjective, find_objective(), fix_velocity(), flag_objective(), MISSION_TYPE_COME_HOME, MISSION_TYPE_PATROL, nCurrentNavigationPoint, reset_mission_type(), set_next_destination(), SIDE_IMPERIAL, and unwarp().
Referenced by arrive_from_warp(), init_3Space_objects(), and warp_arrival().
| short asteroid_velocity | ( | void | ) |
Definition at line 160 of file winmain.c.
References asteroid_velocity(), MinShort(), and RandomBelowOrEqual().
Referenced by asteroid_velocity(), and init_hazard().
| int attacker_in_range | ( | short | obj, |
| unsigned short | range ) |
Definition at line 979 of file logic.c.
References acShipTargetTable, aeObjectClass, aeShipSide, aeSpecialManeuvers, attacker_in_range(), distance_from_object(), nTargetShip, nTgtRange, 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 104 of file auto.c.
References abFlightPathList, AddFixedVectors(), aeObjectClass, aeObjectTypeList, aeShipSide, aeSpecialManeuvers, aMissionNavPoints, aMissionObjectivesArray, anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, anPitchGoal, anRollGoal, anShipSpeed, anYawTarget, aObjectTypeData, aShipDestinationsArray, aShipFwdVec, aShipPositionsArray, aShipVelocity, asShipMaximumSpeedArray, auto_pilot_sequence(), auto_pilot_valid(), auto_position(), bCockpitlessView, Viewport::bottom, cCurrentNavPtIdx, cCurrentObjective, check_hazards(), clean_up_cockpit(), ComputeVectorDelta(), copy_frame(), ObjectTypeData::cruiseVelocity, distance_between_points(), distance_from_object(), distance_from_point(), equ_vector(), force_view(), GetScreenUpdateFlag(), initialize_view_buffer(), is_team_member(), kilrathi_near(), Viewport::left, MinShort(), nAutopilotFormationShipCount, nCannedSceneMode, nCurrentNavigationPoint, nCurrentViewCenterPosY, NormalizeFixedVector(), nScreenHeight, nScreenWidth, nShipMissionIndices, nYourWingman, OBJECT_CLASS_SHIP, pActiveHazardField, player_wingman(), point_at(), MissionObjective::position, ReleaseStaleNavTarget(), remove_object(), report_kilrathi_rout(), ResetSoundState(), Viewport::right, ScaleFixedVector(), set_speed(), SetMousePosition(), SetViewportRect(), SIDE_IMPERIAL, SPECIAL_MANEUVER_NONE, SPECIAL_MANEUVER_UNKNOWN_9, stSpaceBufferViewport, SubtractFixedVectors(), Viewport::top, Update_3Space(), visit_the_cinema(), and zero_vector().
Referenced by auto_pilot_sequence(), and HandleSpaceFlightControls().
| short auto_pilot_valid | ( | short | showReason | ) |
Definition at line 517 of file cockpt.c.
References aMissionObjectivesArray, auto_pilot_valid(), cCurrentObjective, cMissionObjectiveCountValue, cYellowColour, distance_from_point(), kilrathi_near(), pActiveHazardField, and set_global_message().
Referenced by auto_pilot_sequence(), auto_pilot_valid(), and draw_cockpit_lights().
| void auto_position | ( | short | obj, |
| short * | formationSlot ) |
Definition at line 66 of file auto.c.
References aShipFormationDeltaList, aShipPositionsArray, asObjectCollisionRadius, auto_position(), MaxShort(), nAutopilotFormationShipCount, nYourWingman, player_wingman(), and position_relative_ijk().
Referenced by auto_pilot_sequence(), and auto_position().
| unsigned int AwardCampaignMedal | ( | short | medal | ) |
Definition at line 263 of file screens.c.
References asCampaignBriefingFiles, AwardCampaignMedal(), bEscapePressedFlag, FetchDiskPacketRetrying(), FreePacketAndClear(), InitializeConversationText(), InitializeConversationViewport(), CampaignState::medals, nCampaignDataSet, nCurrentConversationMedalIndex, pCurrentConversationBackdropShapePtr, pMedalSceneData, pMedalSceneShape, PreloadMusicTrackHook(), pRoomMedalTextData, ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ResetScreenClipToFullHeight(), SceneDirector(), spacetrack(), stCampaignState, and StopMusicUnlessSuppressed().
Referenced by AwardCampaignMedal(), DosMemcpy(), GameFlow(), and RunAnimationDemoLoop().
| int bad_target | ( | short | ship, |
| short | target ) |
Definition at line 145 of file screen.c.
References aeShipSide, bad_target(), and too_busy().
Referenced by bad_target(), PlaySfxWaveFileByNumber(), and request().
| short BarracksScreen | ( | void | ) |
Definition at line 975 of file barracks.c.
References aBarracksMenuRegions, apszBarracksMenuLabels, BarracksScreen(), bCampaignActive, bInputModeState, Viewport::bottom, CalibrateJoystickInteractive(), cBlackColour, ClearInputKeyStatePreservingModifiers(), ClearViewport(), ConfirmQuitWingCommander(), CampaignState::currentMission, CampaignState::currentSeries, DIBslam(), DIBslamReal(), DrawBarracksBunks(), EnsureSaveGameFile(), EnterAllocationScope(), EventManagerHook(), exit_squadron(), FetchDiskPacketRetrying(), FindMenuRegionAtPoint(), FlushInputEvents(), free_viewport(), FreeBarracksMenuLabels(), GetBunkInfo(), HandleBarracksBunkSelection(), InitializeBarracksAnimation(), InitializeRoomMenu(), InitializeRoomViewports(), IsFrameTickElapsed(), LeaveAllocationScope(), LoadMissionData(), MoveMenuPointerFromKeyboard(), nInputTickScale, nMenuInputRepeatDelay, nMenuPointerSpeed, nSavedRoomCtrlX, nTickCount60Hz, PollInputEvent(), PreloadMusicTrackHook(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), SetFrameTimerPeriodDirect(), ShowMemoryStatusDebug(), ShutdownEventManager(), spacetrack(), stCampaignState, stMouseCursorState, StopMusicUnlessSuppressed(), stRoomScreenViewport, stSceneBuffer, stScreenView, szDefaultTxtBuf, Viewport::top, UpdateBarracksScreen(), UpdateRoomMenuCursor(), InputEventState::value, ViewMedals(), MouseCursorState::viewport, WarnLoadGameFirst(), WarpMouseTo(), InputEventState::x, and InputEventState::y.
Referenced by BarracksScreen(), GameFlow(), and RunAnimationDemoLoop().
| int being_tailed | ( | short | obj, |
| short | other ) |
Definition at line 503 of file logic.c.
References being_tailed(), nFacingToTargetValue, nTargetFacingValue, nTgtRange, and ship_vs_ship().
Referenced by any_enemy_tail(), being_tailed(), detect_enemy_tail(), 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 BlitViewportScanlineRuns | ( | Viewport * | source, |
| Viewport * | destination, | ||
| const ScreenViewportGeometry * | geometry ) |
Definition at line 1290 of file gr.c.
References BlitViewportScanlineRuns(), DIBslam(), ScreenViewportGeometry::originX, Viewport::pixels, Viewport::rowOffsets, and stScreenView.
Referenced by BlitViewportScanlineRuns(), CollectRasterClipColours(), and dump_buffer_to_screen().
| short borrow_dust | ( | void | ) |
Definition at line 78 of file ship.c.
References aeObjectClass, borrow_dust(), and OBJECT_CLASS_DUST.
Referenced by borrow_dust(), and new_object().
| unsigned int Briefing | ( | short | series, |
| short | mission ) |
Definition at line 413 of file cmpgn.c.
References bEscapePressedFlag, Briefing(), Build_objective_list(), LoadBriefingData(), LoadBriefingRoom(), LoadMissionData(), pBriefingPacket, PreloadMusicTrackHook(), ReleaseMusicTrackHook(), and ReleasePacketHandle().
Referenced by Briefing(), GameFlow(), and RunAnimationDemoLoop().
Definition at line 742 of file nav.c.
References AllocateViewport(), BriefingMap_DisplayMap(), BriefingMap_LoadShapes(), cBlackColour, DrawNavLocationReadout(), free_viewport(), pNavMapShape, ReleasePacketHandle(), ReleaseTextFont(), stSceneBuffer, stScreenView, and Viewport::top.
Referenced by BriefingMap_DisplayMap(), and UpdateMap().
Definition at line 726 of file nav.c.
References AllocateViewport(), BriefingMap_LoadShapes(), cBlackColour, cMissionObjectiveCountValue, FetchDiskPacketRetrying(), LocateMobileObjective(), pNavMapShape, ReportOutOfMemoryAndExit(), SetScreenClipRect(), and stSceneBuffer.
Referenced by BriefingMap_DisplayMap(), BriefingMap_LoadShapes(), and InflightComputer().
Definition at line 1132 of file mission.c.
References abFlightPathList, aMissionNavPoints, aMissionObjectivesArray, aMissionObjectiveSources, aMissionShips, aObjectTypeData, Build_objective_list(), cCurrentNavPtIdx, cCurrentObjective, cMissionObjectiveCountValue, MissionObjectiveSource::description, MissionObjective::displayName, ObjectTypeData::displayName, MissionObjective::flags, MissionObjective::index, MissionObjectiveSource::index, MissionNavPoint::name, MissionObjective::name, nav_getxy(), MissionNavPoint::position, MissionObjective::position, set_new_objective(), set_sphere_point(), SetNavMapCoordinateScaling(), MissionObjective::type, MissionObjectiveSource::type, MissionShipRecord::type, FixedVector::x, and FixedVector::z.
Referenced by Briefing(), Build_objective_list(), and prepare_mission().
| unsigned int build_squad_list | ( | short | leader | ) |
Definition at line 593 of file logic.c.
References acFormationMemberLists, asShipWingLeaderArray, and build_squad_list().
Referenced by build_squad_list(), and init_formation_burst().
| short build_target_list | ( | short | obj, |
| short | range ) |
Definition at line 1044 of file logic.c.
References acFormationMemberLists, aeObjectClass, aeShipSide, aeSpecialManeuvers, asTargetListRangesArray, build_target_list(), distance_from_object(), OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by build_target_list(), close_behind(), fire_turrets(), and select_safe_target().
| void build_your_target_list | ( | short * | hasEnemy | ) |
Definition at line 2248 of file cockpt.c.
References acViableTargetList, aeObjectClass, aeShipSide, aeSpecialManeuvers, asObjDistancesTable, asObjectScreenXList, asViableTgtDistList, build_your_target_list(), cViableTargetCount, OBJECT_CLASS_SHIP, sort_viable_target_list(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by build_your_target_list(), check_target(), and cycle_onscreen_targets().
Definition at line 244 of file comm.c.
References acShipRating, acShipTargetTable, aeObjectTypeList, aeShipObjectiveList, aeShipSide, any_enemy(), aObjectTypeData, apszKilrathiAceNames, apWingmanPilotsList, bLandingAuthorized, bRadioSilence, BuildCommunicationCommandMenu(), PilotRecord::callsign, cCommMenuRecipient, CloseCommChoiceMenu(), ObjectTypeData::displayName, evaluate_damage(), have_target(), IsCommChoiceMenuOpen(), IsCommMenuIdle(), nAutoEngageTimer, nCommMenuReuseMode, nYourWingman, OBJECT_TYPE_TIGERS_CLAW, OBJECTIVE_HOLD_FORMATION, OpenCommMenuForTarget(), ResetCommMenuChoices(), SendCommMenuChoice(), SIDE_KILRATHI, and szCommMenuHeadingBuf.
Referenced by BuildCommunicationCommandMenu(), PlaySfxWaveFileByNumber(), and RefreshCommunicationMenu().
Definition at line 204 of file comm.c.
References acShipRating, acShipTargetTable, aeObjectClass, aeObjectTypeList, aeShipSide, any_enemy(), aObjectTypeData, AppendCommMenuChoice(), apWingmanPilotsList, BuildCommunicationRecipientMenu(), have_target(), nCommMenuReuseMode, nYourWingman, OBJECT_CLASS_SHIP, OBJECT_TYPE_TIGERS_CLAW, OpenCommMenuForTarget(), ResetCommMenuChoices(), SelectCommRecipient(), SendCommMenuChoice(), SIDE_IMPERIAL, SIDE_KILRATHI, and wingman_dead().
Referenced by BuildCommunicationRecipientMenu(), PlaySfxWaveFileByNumber(), and RefreshCommunicationMenu().
| void BuildMap | ( | short | showPlayer | ) |
Definition at line 477 of file nav.c.
References achieved(), AddUniqueObjectiveNavLabel(), TextContext::alignment, aMissionNavPoints, aMissionObjectivesArray, aMissionShips, aNavMapObjectiveStyles, aShipPositionsArray, awMapNavObjectiveLabelIndex, BuildMap(), PilotRecord::callsign, cAsteroidColour, cCurrentObjective, cLightGreyColour, cMissionObjectiveCountValue, cPrimaryTextColour, cRedColour, CampaignState::currentPilot, cViewportClearColour, cYellowColour, DrawNavCrossMarker(), DrawNavHazardMarker(), DrawNavMapLabels(), DrawNavPlayerMarker(), DrawNavRectangleMarker(), DrawNavSquareMarker(), DrawNavTriangleMarker(), DrawSpriteDefault(), DrawViewportPixel(), hidden_objective(), InitializeTextContextFromFont(), NavMapObjectiveStyle::labelColour, NavMapObjectiveStyle::markerColour, NavMapObjectiveStyle::markerSize, NavMapObjectiveStyle::markerType, MissionNavPoint::missionShips, mobile_objective(), nav_getxy(), nNavMapLabelCount, OBJECT_TYPE_ASTEROID_FIELD, OBJECT_TYPE_MINE_FIELD, objective_name(), PlaceNavMapLabel(), pNavMapShape, MissionNavPoint::position, MissionShipRecord::position, ResetNavMapLabels(), ResetNavMapReservedAreas(), ScaleNavMapCoordinates(), SetScale(), SetScreenClipRect(), SetTextContext(), MissionShipRecord::speed, stCampaignState, stMapNavigationLabelTextContext, stSceneBuffer, szDefaultTxtBuf, TextContext::text, MissionNavPoint::type, MissionObjective::type, MissionShipRecord::type, NavMapObjectiveStyle::unvisitedColour, TextContext::viewport, and visited().
Referenced by BuildMap(), and DrawNavLocationReadout().
| void CachePaletteEntryFromWords | ( | short | index, |
| short * | rgb ) |
Definition at line 760 of file dib.c.
References abDIBPaletteQuads, awPaletteRgbWordsList, and CachePaletteEntryFromWords().
Referenced by CachePaletteEntryFromWords(), PanToScreen(), and PlaySfxWaveFileByNumber().
| short __stdcall CalcRectangleArea | ( | const Viewport * | viewport | ) |
Definition at line 745 of file view.c.
References Viewport::bottom, CalcRectangleArea(), Viewport::left, LogDisplayMode(), nVideoMode, Viewport::right, and Viewport::top.
Referenced by CalcRectangleArea(), and init_3Space_objects().
| int calculate_damage_level | ( | void | ) |
Definition at line 2123 of file main.c.
References aasShipArmor, acShipDmg, aeObjectTypeList, aObjectTypeData, ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, asShipAccumulatedDmg, calculate_damage_level(), and ObjectTypeData::damageCapacity.
Referenced by calculate_damage_level(), GameFlow(), gametrack(), init_3Space_objects(), and update_lights().
| void CalculateRoundedRLEFixedProduct | ( | int | left, |
| int | right, | ||
| int * | result ) |
References CalculateRoundedRLEFixedProduct().
Referenced by CalculateRoundedRLEFixedProduct().
| void CalibrateJoystickInteractive | ( | ) |
Definition at line 13 of file joystick.c.
References TextContext::alignment, apTextFonts, CalibrateJoystickInteractive(), cBlackColour, cViewportClearColour, DIBslamReal(), InitializeTextContextFromFont(), LoadJoystickCalibrationFile(), nCurrentActiveInputDevice, nCurrentJoystickFailureValue, nCurrentJoystickLeftScale, nJoystickCentreX, nJoystickCentreY, nJoystickDownScaleValue, nJoystickHorizontalRangeValue, nJoystickRightScale, nJoystickUpScale, nJoystickVerticalRange, nStickMaxX, nStickMaxY, nStickMinimumPositionX, nStickMinimumPositionY, ReleaseModalTextPanel(), ReleaseTextFont(), SampleJoystickDevice(), ShowModalTextPanel(), stDefaultTxtContext, WaitForJoystickButtonPress(), WaitForJoystickButtonRelease(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by BarracksScreen(), CalibrateJoystickInteractive(), HandleSpaceFlightControls(), and Title_Sequence().
| void call_enemy | ( | short | obj | ) |
Definition at line 642 of file ship.c.
References acShipTargetTable, aeObjectClass, aeShipSide, aeSpecialManeuvers, call_enemy(), OBJECT_CLASS_SHIP, RandomBelow(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by call_enemy(), and internal_damage().
| short can_land | ( | void | ) |
Definition at line 155 of file screen.c.
References achieved(), aMissionObjectivesArray, anShipFuelsTable, any_enemy(), can_land(), cMissionObjectiveCountValue, evaluate_damage(), nPlayerKillTotal, and visited().
Referenced by can_land(), PlaySfxWaveFileByNumber(), and request().
| unsigned short CanOpenCommMenu | ( | void | ) |
Definition at line 187 of file comm.c.
References CanOpenCommMenu(), have_target(), and wingman_dead().
Referenced by CanOpenCommMenu(), HandleCommunicationMenuRequest(), and PlaySfxWaveFileByNumber().
| void capital_ship_intelligence | ( | short | obj | ) |
Definition at line 916 of file brains.c.
References acShipTargetTable, aeObjectTypeList, aeShipMissionType, aeShipTacticArray, approach_cruise_speed(), approach_full_speed(), capital_ship_intelligence(), coming_home(), destroyer_intelligence(), fire_turrets(), MISSION_TYPE_COME_HOME, MISSION_TYPE_GOTO_WARP, MISSION_TYPE_NONE, MISSION_TYPE_ROUT, MISSION_TYPE_WARP_ARRIVE, nTargetShip, OBJECT_TYPE_DORKIR, OBJECT_TYPE_FRALTHI, OBJECT_TYPE_KILRATHI_BASE, OBJECT_TYPE_LUMBARI, OBJECT_TYPE_RALARI, OBJECT_TYPE_SIVAR, OBJECT_TYPE_SNAKEIR, OBJECT_TYPE_SPIKERI, reach_warp(), regulate_turn(), reset_tactic(), run_away(), scan_for_enemy(), select_target(), stationary_intelligence(), TACTIC_NONE, TACTIC_SELF_DEFENSE, tanker_intelligence(), unactive(), and warp_arrival().
Referenced by capital_ship_intelligence(), and object_intelligence().
Definition at line 432 of file eventmgr.c.
References abCursorSaveArea, bEventMouseCursorDrawnFlag, bMouseCursorDamagePending, CaptureMouseCursorBackground(), CaptureSpriteBackground(), MouseCursorState::frame, nEventMousePointerDamageBottom, nMouseCursorDamageLeft, nMouseCursorDamageRight, nMouseCursorShowCount, nMousePointerDamageTopValue, nMousePointerDrawnX, nMousePointerDrawnY, MouseCursorState::shape, stMouseCursorState, MouseCursorState::viewport, MouseCursorState::x, and MouseCursorState::y.
Referenced by CaptureMouseCursorBackground(), DIBslamReal(), DosMemcpy(), and RefreshMouseCursorDisplay().
| void CaptureSpriteBackground | ( | Viewport * | viewport, |
| unsigned char * | background, | ||
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame ) |
Definition at line 669 of file gr.c.
References Viewport::bottom, CaptureSpriteBackground(), Shape::frameOffsets, Viewport::left, Viewport::pixels, Viewport::right, SPRITE_ROW_OFFSET, Viewport::top, and void().
Referenced by CaptureMouseCursorBackground(), CaptureSpriteBackground(), cockpit_explosion(), CollectRasterClipColours(), draw_3d_scanner(), DrawMouseCursorIntoViewport(), fire_computer_graphic_missile(), overlay_head_up_display(), RestoreTransientCockpitGraphics(), and UpdateDamageDisplay().
| unsigned int celerate | ( | short | ship, |
| int | delta ) |
Definition at line 390 of file ship.c.
References anShipSpeed, asShipMaximumSpeedArray, and celerate().
Referenced by accelerate(), approach_speed(), celerate(), control_speed(), and recalc_max_velocity().
Definition at line 792 of file nav.c.
References abFlightPathList, aMissionObjectivesArray, cCurrentNavPtIdx, CentreMouseOnCurrentNavObjective(), EnterAllocationScope(), LeaveAllocationScope(), ScaleNavMapCoordinates(), and WarpMouseTo().
Referenced by CentreMouseOnCurrentNavObjective(), and InflightComputer().
| unsigned int change_mission_type | ( | short | obj, |
| enum ShipMissionType | missionType ) |
Definition at line 665 of file logic.c.
References aeShipMissionType, aeShipObjectiveList, change_mission_type(), OBJECTIVE_ENGAGE_ENEMY, and reset_mission_type().
Referenced by change_mission_type(), defend_mission(), escort_mission(), kilrathi_wingman(), and rendezvous_mission().
| int changetrack | ( | void | ) |
Definition at line 520 of file music.c.
References aeShipMissionType, aMissionObjectivesArray, cCurrentObjective, changetrack(), MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, MISSION_TYPE_PATROL, MISSION_TYPE_RENDEZVOUS, MISSION_TYPE_STRIKE, OBJECTIVE_HOME_BASE, and triumph().
Referenced by changetrack(), gametrack(), init_3Space_objects(), and LaunchPlayerShip().
| unsigned int chase_location | ( | short | obj, |
| const FixedVector * | destination, | ||
| short | reference ) |
Definition at line 246 of file smart.c.
References AddFixedVectors(), anRollGoal, anShipSpeed, approach_speed(), aShipFwdVec, chase_location(), control_speed(), copy_frame(), FixedToShortSaturating(), get_facing_range_from_point(), match_roll_orientation(), MaxShort(), nFacingToTargetValue, no_goal(), nTgtRange, point_ship(), ScaleFixedVector(), steady_object(), trim_goals(), and vToTgt.
Referenced by chase_location(), Mchill(), and PlaySfxWaveFileByNumber().
| unsigned int chase_speed | ( | short | obj, |
| short | range ) |
Definition at line 672 of file smart.c.
References acShipTargetTable, anShipSpeed, approach_full_speed(), approach_speed(), approach_zero_speed(), chase_speed(), and nTgtRange.
Referenced by chase_speed(), Mtail_fire(), and PlaySfxWaveFileByNumber().
| unsigned int check_computer_damage | ( | void | ) |
Definition at line 916 of file ship.c.
References check_computer_damage(), and damage_your_component().
Referenced by check_computer_damage(), and your_internal_damage().
| short check_destroy_target | ( | short | obj | ) |
Definition at line 147 of file brains.c.
References acShipTargetTable, aeObjectClass, aeShipSide, aiPilotLevel, anShipMissionShips, check_destroy_target(), check_engage_target(), evaluate_damage(), find_ship_index(), 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 135 of file brains.c.
References acShipTargetTable, check_engage_target(), detect_enemy_tail(), 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 922 of file geom.c.
References aeObjectClass, aShipPositionsArray, asObjectCollisionRadius, check_for_collision(), ComputeVectorDelta(), IsVectorWithinRange(), OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, SPACE_LAST_MOVING_OBJECT, and vCollisionDelta.
Referenced by check_for_collision(), and object_collision().
| unsigned int check_for_lost_control | ( | short | obj | ) |
Definition at line 364 of file ship.c.
References aeObjectTypeList, aeSpecialManeuvers, anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, aObjectTypeData, asObjectCounterArray, check_for_lost_control(), ObjectTypeData::pitchRate, RandomBelowOrEqual(), set_special(), skill_check(), SPECIAL_MANEUVER_BLOWING_UP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by apply_force_to_object(), check_for_lost_control(), and rotational_acceleration().
| unsigned int check_futurion | ( | short | i | ) |
Definition at line 89 of file mission.c.
References aeObjectClass, aeShipMissionType, asObjectCounterArray, check_futurion(), MISSION_TYPE_WARP_ARRIVE, and OBJECT_CLASS_FUTURION.
Referenced by check_futurion(), and init_ship().
| void check_goal | ( | short | obj | ) |
Definition at line 625 of file brains.c.
References anShipMissionShips, check_goal(), gone_ship(), MISSION_TYPE_PATROL, MISSION_TYPE_ROUT, and reset_mission_type().
Referenced by check_goal(), and strike_mission().
Definition at line 478 of file winmain.c.
References aHazardFields, aShipPositionsArray, bIntroSecondaryScene, check_hazards(), nCurrentHazardFieldTotal, near_field(), pActiveHazardField, remove_all_hazards(), and start_hazard_field().
Referenced by auto_pilot_sequence(), check_hazards(), and house_keep().
Definition at line 789 of file cockpt.c.
References check_message(), EndCommMenu(), message_showing(), and nCurrentNoticeTimer.
Referenced by check_message(), and RenderSpaceViewFrame().
Definition at line 995 of file ship.c.
References aeObjectClass, aeShipSide, check_next_wave(), nCurrentWave, OBJECT_CLASS_SHIP, set_up_next_wave(), and SIDE_KILRATHI.
Referenced by check_next_wave(), Create_explosion_debris(), and report_kilrathi_rout().
Definition at line 1378 of file cockpt.c.
References cCurrentObjective, check_objectives(), cycle_next_objective(), DrawCalculatingLabel(), InvalidateVduMode(), nCurObjectiveRangeValue, nDisplayedObjectiveRange, 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 1311 of file cockpt.c.
References asObjectScreenXList, check_sighting(), flag_objective(), and sighted().
Referenced by check_sighting(), and update_objective_location().
Definition at line 2757 of file cockpt.c.
References aMissionShips, any_enemy(), check_stranded(), nArcadeState, nCarrierMissionShipIndexValue, and nTrainSimActive.
Referenced by check_stranded(), GameFlow(), and update_cockpit().
Definition at line 2314 of file cockpt.c.
References acShipTargetTable, acViableTargetList, aeShipSide, aeSpecialManeuvers, asObjectScreenXList, build_your_target_list(), check_target(), cViableTargetCount, malf(), malf_sound(), nRenderedSpaceFrame, nTargetLockCountdown, nTargetLockMode, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by check_target(), and update_cockpit().
| void check_visit | ( | short | objective, |
| short | range ) |
Definition at line 1320 of file cockpt.c.
References aMissionObjectivesArray, check_visit(), and flag_reached().
Referenced by check_visit(), and update_objective_location().
Definition at line 1107 of file winmain.c.
References GuardedAllocation::block, CheckAllGuardedAllocations(), GuardedAllocation::next, pGuardedAllocationHead, ReportHeapGuardCorruption(), and GuardedAllocation::size.
Referenced by CheckAllGuardedAllocations().
Definition at line 405 of file eventmgr.c.
References CheckCursor().
Referenced by AnimateBarracks(), CheckCursor(), DosMemcpy(), DrawBarracksStaticDetails(), and DrawMouseCursorIntoViewport().
| short CheckEscaped | ( | void | ) |
Definition at line 442 of file disk.c.
References CheckEscaped(), FlushInputEvents(), IsInputEventQueued(), PeekInputEvent(), PollInputEvent(), PumpWindowMessages(), and InputEventState::value.
Referenced by AnimateTrainSimTitle(), CheckEscaped(), CloseLook(), DebriefingEstablishingShot(), Dismissed(), DisplayTrainSimHighScoreTable(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), EstablishingShot(), funeral_wingman(), LongTalk(), MedalEstablish(), PinMedal(), PlaySceneAnimation(), ReturnToBriefingLongShot(), ShowCampaignVictorySequence(), Title_Sequence(), wait_for_end_of_music(), WaitForMusicOrInput(), and WaitForSceneAdvance().
Definition at line 124 of file gr.c.
References CheckHeapBlockSignature(), exit_squadron(), and TaggedAllocationHeader::signature.
Referenced by CheckHeapBlockSignature(), CollectRasterClipColours(), GetShapeFrameCorners(), GetShapeFrameCount(), GetTransformedShapeBounds(), and PrepareShapeRLEData().
Definition at line 513 of file winmain.c.
References bCockpitEnabled, bDirectDrawModeCascadeEnabled, bPlayerCollisionResponse, bPlayerVulnerable, bShowFrameRate, bShowKilrathiSagaCredits, CheckLauncherAndConfig(), nOriginDevUnlock, and ReadCheaterFlagFromRegistry().
Referenced by CheckLauncherAndConfig(), and WinMain().
| void CheckPoint | ( | short | x, |
| short | y ) |
Definition at line 1058 of file mission.c.
References CheckPoint(), MaxShort(), MinShort(), nNavigationMapMinimumCoordX, nNavigationMapMinimumPositionY, nNavMapMaximumPositionX, and nNavMapMaximumPosY.
Referenced by CheckPoint(), IncludeNavMapWorldPoint(), and SetScale().
| short CheckTargetLockMalfunction | ( | void | ) |
Definition at line 1671 of file cockpt.c.
References CheckTargetLockMalfunction(), lock_off(), malf(), nTargetLockCountdown, PlaySfxWaveFileByNumber(), and RandomBelowOrEqual().
Referenced by CheckTargetLockMalfunction(), and decrement_lock_time().
| void child_object | ( | short | hardpoint, |
| short | child, | ||
| short | parent ) |
Definition at line 969 of file geom.c.
References acObjOwnersTable, aShipPositionsArray, child_object(), and position_child().
Referenced by child_object(), drop_mine(), and fire_weapon().
| short ChooseRandomSignedMagnitude | ( | short | minimum, |
| short | maximum, | ||
| int | allowNegative ) |
Definition at line 338 of file geom.c.
References ChooseRandomSignedMagnitude(), and RandomInRange().
Referenced by ChooseRandomSignedMagnitude(), and MakeRandomVectorFixed().
| unsigned int Chosen_communicate_option | ( | short | choice | ) |
Definition at line 364 of file comm.c.
References abCommMenuChoiceCommands, acShipTargetTable, cCommMenuRecipient, Chosen_communicate_option(), CloseCommChoiceMenu(), GetPendingMenuAction(), nYourWingman, PlaySfxWaveFileByNumber(), RefreshCommunicationMenu(), request(), and SelectCommRecipient().
Referenced by Chosen_communicate_option(), HandleSpaceFlightControls(), and PlaySfxWaveFileByNumber().
| void ClampTo30 | ( | short * | p | ) |
Definition at line 1150 of file geom.c.
References ClampTo30().
Referenced by apply_force_to_object(), ClampTo30(), and rotational_acceleration().
| void ClampVectorTo30 | ( | short * | p | ) |
Definition at line 1137 of file geom.c.
References ClampVectorTo30().
Referenced by ClampVectorTo30(), and rotate_object().
Definition at line 141 of file targ.c.
References acShipTargetTable, clean_up_cockpit(), ClearHudGunReadouts(), nAutoEngageTimer, nTargetLockMode, nYourWingman, OBJECTIVE_HOLD_FORMATION, and reset_objective().
Referenced by auto_pilot_sequence(), clean_up_cockpit(), init_3Space_objects(), and set_up_action_sphere().
Definition at line 34 of file screen.c.
References achieved(), affect_mission_score(), aMissionNavPoints, aMissionObjectivesArray, aMissionShips, cleanup_objectives(), distance_from_object(), MissionHeaderDisk::entryNavPoint, find_ship_index(), flag_objective(), MissionHeaderDisk::homeMissionShip, MISSION_TYPE_COME_HOME, MISSION_TYPE_GOTO_WARP, MISSION_TYPE_WARP_ARRIVE, OBJECT_TYPE_DRAYMAN, OBJECT_TYPE_HORNET, MissionNavPoint::proximityRadius, sighted(), MissionShipRecord::state, stCurrentMissionHeader, MissionObjective::type, and visited().
Referenced by cleanup_objectives(), PlaySfxWaveFileByNumber(), and request().
| void clear_alert | ( | short | obj | ) |
Definition at line 189 of file logic.c.
References abCollisionAlertTargets, anShipAlertFlags, asCollisionDelayList, and clear_alert().
Referenced by clear_alert(), init_intelligence_data(), prevent_collision(), remove_object(), and try2end_collision_alert().
Definition at line 2556 of file cockpt.c.
References anCockpitDamageState, and clear_cockpit_damage().
Referenced by clear_cockpit_damage(), and InitializeCockpitResources().
Definition at line 295 of file logic.c.
References asCollisionPartnerTable, and clear_crash_cache().
Referenced by clear_crash_cache(), and update_objects_in_space().
Definition at line 1455 of file cockpt.c.
References asScannerBackgroundColour, asScannerObjectPositionX, asScannerObjectY, clear_head_up_display(), DrawViewportPixel(), nScannerTargetObject, pRadarMarkerBackground, pTgtLockShapePtr, RestoreSpriteBackground(), and stScreenView.
Referenced by clear_head_up_display(), draw_3d_scanner(), and initialize_cockpit().
Definition at line 770 of file cockpt.c.
References clear_message_time(), and nCurrentNoticeTimer.
Referenced by clear_message_time(), and EndCommMenu().
| unsigned int clear_view_buffer | ( | void | ) |
Definition at line 414 of file main.c.
References clear_view_buffer(), ClearViewport(), cPrimaryViewBufferColour, and stSpaceBufferViewport.
Referenced by clear_view_buffer(), init_3Space_objects(), LaunchPlayerShip(), RefreshCockpitStatus(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowGetReadyScreen(), ShowTigerClawEscapeScene(), and Title_Sequence().
Definition at line 229 of file pilot.cpp.
References ClearDebugPauseFlags(), dwDebugOverlayKey, and dwDebugOverlayKeyLatch.
Referenced by ClearDebugPauseFlags(), ClearInputKeyState(), ClearInputKeyStatePreservingModifiers(), DrawTextString(), exit_squadron(), HandleSpaceFlightControls(), init_3Space_objects(), init_player_input(), LoadInstallDat(), LogDisplayMode(), PacketLoad(), RunSpaceFlight(), SetInputKeyState(), Title_Sequence(), and WaitForKeyAcknowledge().
Definition at line 433 of file cockpt.c.
References aCockpitHudMessageSlotsTable, ClearHudGunReadouts(), HudMessageSlot::flashCount, and HudMessageSlot::text.
Referenced by clean_up_cockpit(), ClearHudGunReadouts(), and InitializeCockpitResources().
| void ClearHudMessageIfMatching | ( | HudMessageSlot * | slot, |
| const char * | text ) |
Definition at line 426 of file cockpt.c.
References ClearHudMessageIfMatching(), ClearHudMessageSlot(), and HudMessageSlot::text.
Referenced by ClearHudMessageIfMatching(), and remove_message().
| void ClearHudMessageSlot | ( | HudMessageSlot * | slot | ) |
Definition at line 417 of file cockpt.c.
References ClearHudMessageSlot(), DrawHudMessageSlot(), HudMessageSlot::flashCount, and HudMessageSlot::text.
Referenced by ClearGlobalMessage(), ClearHudMessageIfMatching(), ClearHudMessageSlot(), pop_mode(), push_mode(), set_mode(), SetHudMessageSlot(), ShowComponentHitHudMessage(), and UpdateMessage().
Definition at line 800 of file eventmgr.c.
References abInputKeyStateArray, ClearDebugPauseFlags(), and ClearInputKeyState().
Referenced by ClearInputKeyState(), DosMemcpy(), PlaySceneAnimation(), SceneDirector(), and WaitForKeyExceptXOrF12().
Definition at line 787 of file eventmgr.c.
References abInputKeyStateArray, ClearDebugPauseFlags(), and ClearInputKeyStatePreservingModifiers().
Referenced by BarracksScreen(), ClearInputKeyStatePreservingModifiers(), DosMemcpy(), FetchDiskPacketRetrying(), funeral_sequence(), RecRoom(), ResetInputKeyStatePreservingModifiers(), SelectTrainSimMission(), ShowChalkBoard(), Title_Sequence(), ViewMedals(), WaitForInputKey(), and WaitForSceneAdvance().
| void ClearNextTextInputCharacter | ( | short | character | ) |
Definition at line 312 of file trainsim.c.
References ClearNextTextInputCharacter(), ClearTextInputCharacter(), TextContext::cursorX, and pCurTextContext.
Referenced by ClearNextTextInputCharacter(), init_3Space_objects(), and ReadTextInput().
Definition at line 238 of file killbrd.c.
References ClearRoomMenuCursorFrame(), RoomMenu::cursorFrame, and stCurrentRoomMenu.
Referenced by ClearRoomMenuCursorFrame(), CollectRasterClipColours(), and InitializeRoomMenu().
Definition at line 206 of file killbrd.c.
References ClearRoomMenuLabel(), RoomMenu::currentLabel, and stCurrentRoomMenu.
Referenced by ClearRoomMenuLabel(), CollectRasterClipColours(), and UpdateRoomMenuCursor().
Definition at line 1419 of file gr.c.
References bIxAudioEnabled, ClearStreamerTrigger(), and ix_streamer_set_trigger().
Referenced by ClearStreamerTrigger(), CollectRasterClipColours(), and SelectFlightMusicTrack().
| void ClearTextInputCharacter | ( | short | character | ) |
Definition at line 293 of file trainsim.c.
References TextContext::backgroundColour, Viewport::bottom, ClearTextInputCharacter(), ClearViewport(), TextContext::cursorX, TextContext::cursorY, EnterAllocationScope(), TextContext::font, FontHeight(), GetFontCharWidth(), LeaveAllocationScope(), Viewport::left, pCurTextContext, Viewport::right, Viewport::top, and TextContext::viewport.
Referenced by ClearNextTextInputCharacter(), ClearTextInputCharacter(), and init_3Space_objects().
Definition at line 963 of file gr.c.
References ClearViewport(), ClipViewportToScreen(), DIBslam(), DIBslamReal(), FillRasterClip(), Viewport::pixels, Viewport::rowOffsets, stRasterClip, and stScreenView.
Referenced by AllocateViewport(), BarracksScreen(), clear_view_buffer(), ClearTextInputCharacter(), ClearViewport(), CloseLook(), CloseTalk(), CollectRasterClipColours(), death_sequence(), DeBriefing(), DebriefingEstablishingShot(), Dismissed(), DrawConstellationField(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawNavLocationReadout(), ejection_sequence(), EnterPilotNameAndCallsign(), EraseCockpitReadoutRegion(), EraseLastTextInputCharacter(), EraseTextContextBackground(), EstablishingShot(), funeral_sequence(), funeral_wingman(), InflightComputer(), initialize_cockpit(), InitializeConversationViewport(), InitializeTrainSimTextPanel(), landing(), LongTalk(), MedalEstablish(), PinMedal(), PlaySceneAnimation(), PromptForAnswerText(), PromptInsertNumberedDisk(), ReadTextInput(), RecRoom(), RenderSpaceViewFrame(), ReturnToBriefingLongShot(), SceneDirector(), set_new_vdu(), ShowCampaignVictorySequence(), ShowMeanwhileTransition(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), ShowTrainSimHighScores(), stranded_sequence(), Title_Sequence(), unwarp(), UpdateMap(), UpdateSpacePaletteFade(), ViewMedals(), and warp().
Definition at line 350 of file gr.c.
References ClipViewportToScreen(), stRasterClip, stRasterTarget, and ValidateViewportBounds().
Referenced by ClearViewport(), ClipViewportToScreen(), CollectRasterClipColours(), DrawFilledViewportRect(), DrawSpriteTransformed(), DrawViewportBorder(), DrawViewportEllipse(), DrawViewportEllipseShadow(), DrawViewportLine(), DrawViewportPixel(), FillViewportEllipse(), and GetViewportPixel().
| unsigned int close_behind | ( | ) |
References abandoned(), any_enemy(), attacker_in_range(), build_target_list(), close_behind(), dead_ship(), difficulty(), engage(), evaluate_damage(), find_ratio(), find_ships_sphere(), fire_when_ready(), free_cockpit(), free_constellation(), FreeConstellationObject(), FreeShapeSet(), get_first_follow_point(), get_follow_point(), gone_ship(), hostile_sphere(), in_danger(), inherit_leader(), inherit_leader_mission(), init_constellation(), init_vdus(), initialize_cockpit(), InitializeCockpitResources(), InitializeConstellationObject(), LoadPacketResourceList(), LoadShapeSet(), locate_ship(), mine_available(), nearest_enemy_range(), ResetCockpitPaletteEntries(), scan_for_enemy(), select_safe_target(), ships_within_range(), skill_check(), skill_rating(), target_valid(), target_within_range(), and triumph().
Referenced by close_behind(), close_behind(), Mchill(), Msit_n_spin(), and Mzip_past().
Definition at line 164 of file comm.c.
References CloseCommChoiceMenu(), exit_squadron(), get_mode(), pop_mode(), and ShutdownEventManager().
Referenced by BuildCommunicationCommandMenu(), Chosen_communicate_option(), CloseCommChoiceMenu(), HandleCommunicationMenuRequest(), HandleSpaceFlightControls(), and PlaySfxWaveFileByNumber().
| void __stdcall CloseDataFile | ( | unsigned short | fd | ) |
Definition at line 23 of file mono.c.
References CloseDataFile(), and nPacketError.
Referenced by CloseDataFile(), CloseDataFileByHandle(), CreateEmptySaveGameFile(), EnsureSaveGameFile(), get_pilot_talk(), LoadGame(), LoadInstallDat(), OpenDiskDataFile(), OpenPacketSection(), and SaveGame().
| void __stdcall CloseDataFileByHandle | ( | PacketSectionHandle * | p | ) |
Definition at line 438 of file view.c.
References CloseDataFile(), CloseDataFileByHandle(), and PacketSectionHandle::file.
Referenced by CloseDataFileByHandle(), GetPacketSize(), init_3Space_objects(), and PacketLoad().
| unsigned int CloseLook | ( | struct Shape * | shape, |
| short | shot, | ||
| short * | animation, | ||
| char * | text, | ||
| short | duration, | ||
| int | unused ) |
Definition at line 731 of file cmpgn.c.
References aBriefingCharacters, AddPCName(), cBlackColour, CheckEscaped(), ClearViewport(), CloseLook(), DIBslam(), DIBslamReal(), DrawBriefingCharacter(), DrawDebriefingLongShot(), DrawSpriteDefault(), FormatTextBufferFromStart(), IsFrameTickElapsed(), nConvTextColorValue, nDebriefingPodiumX, nFrameSkip, nFrameSkipCounter, pCurrentBriefingAnimShape, pCurrentConversationBackdropShapePtr, RefreshMemoryStatusOverlay(), SetFrameTimerPeriodDirect(), stCurrentConvTextViewport, stSceneBuffer, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by CloseLook(), and SceneDirector().
| unsigned int CloseTalk | ( | struct Shape * | talker, |
| short | mouthFrame, | ||
| short | faceFrame ) |
Definition at line 353 of file cmpgn.c.
References bConversationConstellation, bConversationOverlay, cBlackColour, ClearViewport(), CloseTalk(), cPrimaryViewBufferColour, DrawConstellationField(), DrawSpriteDefault(), MinShort(), nConversationBackdropFrame, nConversationCharacter, nTalkingHeadFace, nTalkingHeadFaceCoordY, nTalkingHeadFaceX, nTalkingHeadMouthX, nTalkingHeadMouthY, nTalkSceneType, pConvOverlayShapePtr, pCurrentConversationBackdropShapePtr, pCurrentConversationSpecialShape, RefreshMemoryStatusOverlay(), and stSceneBuffer.
Referenced by CloseTalk(), LoadFace(), and LongTalk().
Definition at line 2626 of file cockpt.c.
References CaptureSpriteBackground(), cockpit_explosion(), cRenderedPilotHandFrame, DrawPendingCockpitDamage(), DrawSpriteDefault(), FreePacketAndClear(), IsCockpitExplosionActive(), nCockpitExplosionFrame, pCockpitExplosionBackground, pCockpitExplosionShape, PlaySfxWaveFileByNumber(), stCockpitExplosionPosition, stScreenView, 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 480 of file cockpt.c.
References aCockpitHudMessageSlotsTable, CockpitMessage(), and set_global_message().
Referenced by CockpitMessage(), decrement_lock_time(), flag_reached(), and OpenCommMenuForTarget().
| short __stdcall CollectActivePaletteIndices | ( | Viewport * | viewport, |
| unsigned char * | indices, | ||
| short | capacity ) |
Definition at line 71 of file geom.c.
References AllocateTaggedMemory(), CollectActivePaletteIndices(), MarkActivePaletteEntries(), and ReleasePacketHandle().
Referenced by CollectActivePaletteIndices(), FadeViewportPaletteToColour(), and PanToScreen().
| int CollectRasterClipColours | ( | RasterClip * | clip, |
| unsigned int * | colours ) |
References __copyline(), __wipeline(), BlitViewportScanlineRuns(), CaptureSpriteBackground(), CheckHeapBlockSignature(), ClearRoomMenuCursorFrame(), ClearRoomMenuLabel(), ClearStreamerTrigger(), ClearViewport(), ClipViewportToScreen(), CollectRasterClipColours(), CopyViewportContents(), CorrectPointers(), DecodeShapeFrame(), DrawFilledViewportRect(), DrawFontGlyph(), DrawRoomMenuLabel(), DrawShapeFrameScaled(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), DrawSpriteDefault(), DrawSpriteScaled(), DrawSpriteTransformed(), DrawViewportBorder(), DrawViewportEllipse(), DrawViewportEllipseShadow(), DrawViewportLine(), DrawViewportPixel(), DrawViewportPolygonHook(), FillViewportEllipse(), FindMenuRegionAtPoint(), fizzle_fade(), ForceStreamerTrigger(), GetMusicStreamVolume(), GetPaletteEntry(), GetPreparedShapeData(), GetShapeFrameCorners(), GetShapeFrameCount(), GetShapeFrameExtents(), GetStreamerTrigger(), GetTransformedShapeBounds(), GetViewportPixel(), InitializeAudioStreamer(), InitializeRoomMenu(), InitializeRoomViewports(), IsRoomMenuLabelEmpty(), 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_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(), MarkActivePaletteEntries(), PrepareShapeRLEData(), RasterLineHook(), ReadCheaterFlagFromRegistry(), ReadPacketSectionData(), RecRoom(), RefreshRoomMenuLabel(), ResetCampaignData(), RestoreSpriteBackground(), SelectRoomMenuLabel(), SetMusicStreamVolume(), SetPaletteEntry(), SetSolidColourTranslation(), SetStreamerIntensity(), shaded_triangle(), shadow_draw(), ShowChalkBoard(), ShutdownAudioStreamer(), SignalAudioMixerWakeEvent(), SignExtendClipCoord(), snow_viewport(), Streamer_close(), Streamer_open(), Streamer_play(), Streamer_stop(), Streamer_trigger(), triangle(), UpdateStreamerStoppedFlag(), and ValidateViewportBounds().
Referenced by CollectRasterClipColours().
| int CollectUniqueRLEImageFrames | ( | const struct RLEShape * | shape, |
| unsigned int * | frames ) |
References CollectUniqueRLEImageFrames().
Referenced by CollectUniqueRLEImageFrames().
| int CollectUniqueRLEPaletteFrames | ( | const struct RLEShape * | shape, |
| unsigned int * | frames ) |
References CollectUniqueRLEPaletteFrames().
Referenced by CollectUniqueRLEPaletteFrames().
| void coming_home | ( | short | obj | ) |
Definition at line 75 of file brains.c.
References aeShipMissionType, aeShipSide, aeShipTacticArray, aMissionObjectivesArray, aShipDestinationsArray, coming_home(), cruise_home(), fail(), find_objective(), find_ship_index(), get_first_follow_point(), MissionHeaderDisk::homeMissionShip, MISSION_TYPE_ROUT, no_goal(), point_parallel(), MissionObjective::position, reset_tactic(), SIDE_IMPERIAL, stCurrentMissionHeader, TACTIC_CRUISE, TACTIC_HEAD_HOME, and TACTIC_NONE.
Referenced by capital_ship_intelligence(), coming_home(), run_away(), and ship_intelligence().
| unsigned int compute_formation_destination | ( | short | leader, |
| const ShortVector * | offset, | ||
| FixedVector * | destination ) |
Definition at line 206 of file smart.c.
References AddFixedVectors(), aShipVelocity, compute_formation_destination(), and offset_location().
Referenced by compute_formation_destination(), maintain_formation(), and PlaySfxWaveFileByNumber().
| void ComputeVectorDelta | ( | const FixedVector * | from, |
| const FixedVector * | to, | ||
| FixedVector * | delta ) |
Definition at line 314 of file geom.c.
References ComputeVectorDelta(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by accelerate_and_move_object(), auto_pilot_sequence(), check_for_collision(), ComputeObjectToObjectDelta(), ComputeObjectToPointDelta(), ComputeVectorDelta(), distance_between_points(), distance_from_point(), draw_nav_pointer(), explosion_shock_wave(), facing_to_object(), fire(), fire_weapon(), GetShipDistanceToNavPoint(), hemisphere(), init_formation_burst(), IsPointWithinEyeViewCone(), IsPointWithinRange(), new_view(), object_collision(), parse_view_script(), PlaySfxWaveFileByNumber(), point_at(), point_capital_ship_at_object(), point_ship_at_point(), real_crash_time(), send_at_point(), servicetrack(), set_eye_direction_and_position(), set_objective_range(), SetFleetOverviewView(), ships_within_range(), steer_away_from_object(), steer_away_from_predicted_object(), transform_objects_to_your_view(), update_objective_location(), and update_star_field().
| unsigned short __stdcall ConfigureEventManagerPointer | ( | struct Shape * | shape, |
| short | frame ) |
Definition at line 107 of file strdos.c.
References ConfigureEventManagerPointer().
Referenced by ConfigureEventManagerPointer(), DosMemcpy(), and EMStartUp().
| unsigned int ConfigureScrambleActor | ( | short | x, |
| short | y, | ||
| short | deltaX, | ||
| short | deltaY, | ||
| struct Shape * | shape, | ||
| short | scale, | ||
| short | angle, | ||
| signed char | flip, | ||
| short | actorIndex ) |
Definition at line 432 of file cutscene.c.
References ScrambleAnimationActor::angle, ScrambleAnimationActor::animationFrame, aScrambleAnimationActors, ConfigureScrambleActor(), ScrambleAnimationActor::deltaX, ScrambleAnimationActor::deltaY, ScrambleAnimationActor::flip, ScrambleAnimationActor::scale, ScrambleAnimationActor::shape, ScrambleAnimationActor::x, and ScrambleAnimationActor::y.
Referenced by ConfigureScrambleActor(), landing(), scramble(), and ShowCarrierLaunchSequence().
| int ConfirmAwakenAfterBadData | ( | short | slot | ) |
Definition at line 899 of file barracks.c.
References ConfirmAwakenAfterBadData(), SaveGameRecord::description, EnterAllocationScope(), LeaveAllocationScope(), LoadGame(), ReleaseModalTextPanel(), ShowModalMessage(), ShowModalTextPanel(), and WaitForStreamInputKey().
Referenced by ConfirmAwakenAfterBadData(), and HandleBarracksBunkSelection().
| int ConfirmQuitWingCommander | ( | void | ) |
Definition at line 883 of file barracks.c.
References ConfirmQuitWingCommander(), EnterAllocationScope(), LeaveAllocationScope(), ReleaseModalTextPanel(), ShowModalTextPanel(), and WaitForStreamInputKey().
Referenced by BarracksScreen(), and ConfirmQuitWingCommander().
| int ConfirmReplaceFaultyData | ( | short | slot | ) |
Definition at line 919 of file barracks.c.
References bCampaignActive, ConfirmReplaceFaultyData(), SaveGameRecord::description, EnterAllocationScope(), LeaveAllocationScope(), LoadGame(), ReleaseModalTextPanel(), ShowModalTextPanel(), WaitForStreamInputKey(), and WarnLoadGameFirst().
Referenced by ConfirmReplaceFaultyData(), and HandleBarracksBunkSelection().
| unsigned int control_speed | ( | short | obj, |
| unsigned short | range, | ||
| int | desiredSpeed ) |
Definition at line 221 of file smart.c.
References AbsInt(), anShipSpeed, approach_speed(), celerate(), control_speed(), FixedToShortSaturating(), GetShipAccelerationRate(), and MaxShort().
Referenced by chase_location(), control_speed(), goto_formation(), and PlaySfxWaveFileByNumber().
| void __stdcall ConvertChar_Int | ( | char * | text, |
| short | number, | ||
| short | digits ) |
Definition at line 1378 of file eventmgr.c.
References ConvertChar_Int().
Referenced by ConvertChar_Int(), DosMemcpy(), FillGraphicSuffix(), and SetDiskFileNumber().
| void ConvertFixedVectorToShortVector | ( | const FixedVector * | source, |
| ShortVector * | destination ) |
Definition at line 432 of file geom.c.
References ConvertFixedVectorToShortVector(), FixedVector::x, ShortVector::x, FixedVector::y, ShortVector::y, FixedVector::z, and ShortVector::z.
Referenced by ConvertFixedVectorToShortVector().
| void ConvertShortVectorToFixedVector | ( | const ShortVector * | source, |
| FixedVector * | destination ) |
Definition at line 421 of file geom.c.
References ConvertShortVectorToFixedVector(), FixedVector::x, ShortVector::x, FixedVector::y, ShortVector::y, FixedVector::z, and ShortVector::z.
Referenced by ConvertShortVectorToFixedVector().
| void copy_frame | ( | short | source, |
| short | destination ) |
Definition at line 585 of file geom.c.
References aShipFwdVec, aShipRightVector, aShipUpVector, and copy_frame().
Referenced by auto_pilot_sequence(), chase_location(), copy_frame(), drop_mine(), ejection_sequence(), fire_weapon(), generate_stars(), goto_formation(), new_view(), parse_view_script(), RunSpaceFlight(), set_eye_direction_and_position(), set_formation_position(), ShipExplosion(), ShowCarrierLaunchSequence(), try_far_spot(), and update_star_field().
| char *__stdcall CopyFarString | ( | char * | destination, |
| const char * | source ) |
Definition at line 55 of file strdos.c.
References CopyFarString().
Referenced by CopyFarString(), and PlaySfxWaveFileByNumber().
| void CopyGIFPalette | ( | const unsigned char * | gifData, |
| unsigned char * | palette ) |
References CopyGIFPalette().
Referenced by CopyGIFPalette().
| 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 | ( | struct RLEShape * | shape, |
| int | frame, | ||
| unsigned char * | entries ) |
References CopyRLEFramePalette().
Referenced by CopyRLEFramePalette().
Definition at line 2448 of file cockpt.c.
References Viewport::bottom, CopyTrainSimPilotViewToRightVdu(), CopyViewportContents(), Viewport::left, Viewport::right, stPilotHandBackdropView, stPilotHandView, stRightVduViewport, stTrainSimVduSource, and Viewport::top.
Referenced by CopyTrainSimPilotViewToRightVdu(), and update_VDUs().
Definition at line 945 of file gr.c.
References BlitRasterClip(), CopyViewportContents(), and ValidateViewportBounds().
Referenced by AnimateTrainSimTitle(), CollectRasterClipColours(), CopyTrainSimPilotViewToRightVdu(), CopyViewportContents(), DisplayTrainSimHighScoreTable(), DrawBarracksBunks(), DrawNavLocationReadout(), DrawPilotHandFrame(), dump_buffer_to_screen(), InitializeModalTextPanel(), PanToScreen(), PromptInsertNumberedDisk(), RecRoom(), RefreshMemoryStatusOverlay(), ResetPilotHandAnimation(), RestoreModalTextPanel(), and ShowOffscreenBuffer().
Definition at line 189 of file killbrd.c.
References aPilotEntriesList, apWingmanPilotsList, CorrectPointers(), CampaignState::currentDate, CampaignState::currentPilot, CampaignState::elapsedDate, pCurrentCampaignDate, pElapsedCampaignDatePtr, and stCampaignState.
Referenced by CollectRasterClipColours(), CorrectPointers(), LoadGameFromSlot(), and ResetCampaignData().
| long CosFixed | ( | short | degrees | ) |
Definition at line 95 of file mathfp.c.
References CosFixed(), and DEGREES_TO_RADIANS.
Referenced by ConvertSphericalToRectangular(), CosFixed(), draw_target_box(), PlaySfxWaveFileByNumber(), reposition_fixed_child_objects(), rotate_about_i(), rotate_about_j(), and rotate_about_k().
| short count_down | ( | short | obj | ) |
Definition at line 839 of file spc.c.
References asObjectCounterArray, and count_down().
Referenced by count_down(), and house_keep_objects().
| short crash_time | ( | short | obj, |
| short | other ) |
Definition at line 306 of file logic.c.
References aeObjectClass, asCollisionPartnerTable, asCollisionTimes, asObjectScreenXList, crash_time(), OBJECT_CLASS_ASTEROID, and real_crash_time().
Referenced by crash_time(), detect_collisions(), and prevent_collision().
| unsigned int Create_explosion_debris | ( | short | obj | ) |
Definition at line 1010 of file ship.c.
References aaeExplosionDebris, AddFixedVectors(), aeObjectClass, aeObjectTypeList, aShipPositionsArray, aShipVelocity, asObjectCounterArray, asObjScreenAngles, check_next_wave(), Create_explosion_debris(), divide_vector(), FillFixedVectorWithRandomComponents(), find_vacant_3d_object(), OBJECT_CLASS_DUST, OBJECT_TYPE_DEBRIS_DUST, RandomBelowOrEqual(), remove_object(), and set_objects_data().
Referenced by Create_explosion_debris(), and house_keep_objects().
| void Create_ship_hit_debris | ( | short | obj, |
| short | count ) |
Definition at line 968 of file ship.c.
References AddFixedVectors(), aeShipHitDebrisTypes, aShipPositionsArray, aShipVelocity, asObjectCounterArray, Create_ship_hit_debris(), FillFixedVectorWithRandomComponents(), find_vacant_3d_object(), RandomBelowOrEqual(), and set_objects_data().
Referenced by Create_ship_hit_debris(), and inflict_damage().
| void CreateCannedSceneObject | ( | short * | object, |
| short | yaw, | ||
| short | unusedPitch, | ||
| short | distance, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | type, | ||
| short | scale ) |
Definition at line 85 of file ending.c.
References aeObjectClass, aeObjectTypeList, alter_yaw(), apObjShapeArray, aShipFwdVec, aShipPositionsArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, CreateCannedSceneObject(), find_vacant_3d_object(), init_ijk(), OBJECT_CLASS_PLANET, ScaleFixedVector(), and void().
Referenced by CreateCannedSceneObject(), PlaySfxWaveFileByNumber(), and ShowCampaignVictorySequence().
| short __stdcall CreateDataFile | ( | const char * | path | ) |
Definition at line 47 of file mono.c.
References CreateDataFile(), nPacketError, and szDataCreateError.
Referenced by CreateDataFile(), and CreateEmptySaveGameFile().
| void CreateDebugOverlayConsole | ( | HINSTANCE | module, |
| HWND | window, | ||
| short | columns, | ||
| short | rows ) |
Definition at line 168 of file pilot.cpp.
References CreateDebugOverlayConsole(), and pDebugOverlay.
Referenced by CreateDebugOverlayConsole(), init_3Space_objects(), and WinMain().
Definition at line 193 of file barracks.c.
References CampaignState::aceFlags, SaveGameDiskCampaignState::aceFlags, CampaignState::badges, SaveGameDiskCampaignState::badges, SaveGameDiskRecord::campaign, SaveGameRecord::campaign, CampaignState::campaignIndex, SaveGameDiskCampaignState::campaignIndex, CloseDataFile(), CreateDataFile(), CreateEmptySaveGameFile(), CampaignState::currentDate, SaveGameDiskCampaignState::currentDate, CampaignState::currentMission, SaveGameDiskCampaignState::currentMission, CampaignState::currentPilot, SaveGameDiskCampaignState::currentPilot, CampaignState::currentSeries, SaveGameDiskCampaignState::currentSeries, CampaignDate::day, SaveGameDiskRecord::description, SaveGameRecord::description, MissionObjective::displayName, SaveGameDiskObjective::displayName, CampaignState::elapsedDate, SaveGameDiskCampaignState::elapsedDate, MissionObjective::field_4, SaveGameDiskObjective::field_4, MissionObjective::flags, SaveGameDiskObjective::flags, MissionObjective::index, SaveGameDiskObjective::index, MissionObjective::mapX, SaveGameDiskObjective::mapX, MissionObjective::mapY, SaveGameDiskObjective::mapY, CampaignState::medals, SaveGameDiskCampaignState::medals, CampaignState::missionScore, SaveGameDiskCampaignState::missionScore, MissionObjective::name, SaveGameDiskObjective::name, SaveGameDiskRecord::objectives, SaveGameRecord::objectives, SaveGameDiskRecord::occupied, SaveGameRecord::occupied, CampaignState::personalityDeathMission, SaveGameDiskCampaignState::personalityDeathMission, SaveGameDiskRecord::pilots, SaveGameRecord::pilots, CampaignState::playerShipType, SaveGameDiskCampaignState::playerShipType, MissionObjective::position, SaveGameDiskObjective::position, CampaignState::promotionScore, SaveGameDiskCampaignState::promotionScore, PromptInsertNumberedDisk(), CampaignState::seriesHistory, SaveGameDiskCampaignState::seriesHistory, CampaignState::seriesHistoryCount, SaveGameDiskCampaignState::seriesHistoryCount, CampaignState::seriesScore, SaveGameDiskCampaignState::seriesScore, MissionObjective::type, SaveGameDiskObjective::type, WriteDataFileAtOffset(), and CampaignDate::year.
Referenced by CreateEmptySaveGameFile(), and EnsureSaveGameFile().
| int CreateMainWindow | ( | HINSTANCE | instance, |
| HINSTANCE | previous, | ||
| int | showCommand ) |
Definition at line 685 of file winmain.c.
References bMainWindowAlive, CreateMainWindow(), DIBinstall(), hCurrentAppInstance, hMainWindow, hMainWindowDC, hPrevPointer, MainWindowProc(), PumpWindowMessages(), szMainWindowClassName, and szMainWindowTitle.
Referenced by CreateMainWindow(), and WinMain().
| void cruise_home | ( | short | obj | ) |
Definition at line 30 of file brains.c.
References abandoned(), abFlightPathList, abShipNavPtIdx, abShipTurnList, aeObjectClass, aMissionObjectivesArray, approach_cruise_speed(), aShipDestinationsArray, aShipMissionSpotArray, aShipVelocity, cruise_home(), distance_from_object(), distance_from_point(), equ_vector(), fire_afterburner(), flag_objective(), get_follow_point(), no_goal(), normal_speed(), nYourWingman, OBJECT_CLASS_CAPITAL_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 470 of file brains.c.
References abandoned(), abFlightPathList, abShipNavPtIdx, abShipTurnList, acShipTargetTable, aeShipSide, approach_cruise_speed(), approach_full_speed(), approach_half_speed(), aShipDestinationsArray, aShipMissionSpotArray, cruise_to_destination(), distance_from_point(), equ_vector(), flag_reached(), get_facing_range_from_object(), get_follow_point(), nFacingToTargetValue, no_goal(), 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(), and reach_warp().
| short cycle_next_objective | ( | void | ) |
Definition at line 1159 of file cockpt.c.
References abFlightPathList, cCurrentNavPtIdx, cCurrentObjective, cycle_next_objective(), and set_new_objective().
Referenced by check_objectives(), cycle_next_objective(), InflightComputer(), and set_next_destination().
Definition at line 2280 of file cockpt.c.
References acShipTargetTable, acViableTargetList, aeShipSide, build_your_target_list(), cViableTargetCount, cycle_onscreen_targets(), and nTargetLockCountdown.
Referenced by cycle_onscreen_targets(), and SelectCockpitVduMode().
| void damage_ion_drive | ( | short | ship, |
| short | amount, | ||
| short | maximum ) |
Definition at line 132 of file geom.c.
References acShipIonDriveDmg, damage_ion_drive(), and recalc_max_velocity().
Referenced by damage_ion_drive(), internal_damage(), repair_internal_damage(), and your_internal_damage().
| int damage_your_component | ( | char | component, |
| char | amount, | ||
| char | maximum ) |
Definition at line 864 of file cockpt.c.
References acPlayerComponentDamageList, apszComponentNames, cRedColour, damage_your_component(), get_mode(), malf(), MinShort(), ShowComponentHitHudMessage(), and vdu_malf().
Referenced by check_computer_damage(), damage_your_component(), and your_internal_damage().
| unsigned int dead_ship | ( | short | missionShip | ) |
Definition at line 1126 of file logic.c.
References aMissionShips, and dead_ship().
Referenced by close_behind(), dead_ship(), locate_ship(), and triumph().
| unsigned int death_sequence | ( | void | ) |
Definition at line 1645 of file screens.c.
References bEscapePressedFlag, Viewport::bottom, cBlackColour, cCockpitLogicalFile, ClearViewport(), cViewportClearColour, death_sequence(), DIBslam(), DIBslamReal(), DrawSpriteDefault(), dump_buffer_to_screen(), Explosion(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), free_all_slots(), free_cockpit(), FreePacketAndClear(), GetScreenUpdateFlag(), load_all_slots(), nCannedSceneMode, new_view(), nFrameSkipCounter, nMemoryConfig, PlaySfxWaveFileByNumber(), RefreshCockpitStatus(), RestoreGamePalette(), SceneLeaveHook(), spacetrack(), StopMusicUnlessSuppressed(), stScreenView, stSpaceBufferViewport, and Viewport::top.
Referenced by death_sequence(), DosMemcpy(), GameFlow(), and RunAnimationDemoLoop().
| unsigned int DeBriefing | ( | short | series, |
| short | mission ) |
Definition at line 434 of file cmpgn.c.
References bEscapePressedFlag, cBlackColour, ClearViewport(), DeBriefing(), DIBslam(), DIBslamReal(), FetchDiskPacketRetrying(), FullMissionScore(), InitializeConversationText(), InitializeConversationViewport(), LoadBriefingData(), LoadMissionData(), pBriefingPacket, pCurrentConversationBackdropShapePtr, pDebriefingSceneDataPtr, pDebriefingTxtInfo, PlayersMissionScore(), PreloadMusicTrackHook(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ResetScreenClipToFullHeight(), SceneDirector(), SetTextContext(), spacetrack(), stCurrentConvTxtCtx, StopMusicUnlessSuppressed(), and TextContext::viewport.
Referenced by DeBriefing(), GameFlow(), and RunAnimationDemoLoop().
| unsigned int DebriefingEstablishingShot | ( | char * | text, |
| short | duration ) |
Definition at line 850 of file screens.c.
References abDebriefingEstablishDeltas, AddPCName(), cBlackColour, CheckEscaped(), ClearViewport(), DebriefingEstablishingShot(), DIBslam(), DIBslamReal(), DrawDebriefingLongShot(), FormatTextBufferFromStart(), MaxShort(), nConvTextColorValue, nDebriefingLeftX, nDebriefingOfficerX, nDebriefingPilotX, nDebriefingPodiumX, nDebriefingRightX, nFrameSkip, nFrameSkipCounter, RefreshMemoryStatusOverlay(), stCurrentConvTextViewport, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by DebriefingEstablishingShot(), DosMemcpy(), and SceneDirector().
| LRESULT CALLBACK DebugKeyboardHookProc | ( | int | code, |
| WPARAM | key, | ||
| LPARAM | flags ) |
Definition at line 130 of file debug.cpp.
References DebugKeyboardHookProc(), dwDebugOverlayKey, dwDebugOverlayKeyLatch, and hDebugKeyboardHook.
Referenced by DebugKeyboardHookProc().
| void DebugOverlayPrintf | ( | DebugOverlayConsole * | console, |
| const char * | format, | ||
| ... ) |
Definition at line 145 of file debug.cpp.
References DebugOverlayConsole::columns, DebugOverlayConsole::cursorColumn, DebugOverlayConsole::cursorRow, DebugOverlayPrintf(), DebugOverlayConsole::dirtyLines, DebugOverlayConsole::formatBuffer, DebugOverlayConsole::rows, and DebugOverlayConsole::textBuffer.
Referenced by DebugOverlayPrintf().
| DWORD WINAPI DebugOverlayWorkerProc | ( | void * | parameter | ) |
Definition at line 86 of file debug.cpp.
References DebugOverlayConsole::animationState, DebugOverlayConsole::characterHeight, DebugOverlayConsole::characterWidth, DebugOverlayConsole::cursorColumn, DebugOverlayConsole::cursorRow, DebugOverlayWorkerProc(), DebugOverlayConsole::mutex, DebugOverlayConsole::spinnerCharacters, DebugOverlayConsole::spinnerIndex, and DebugOverlayConsole::window.
Referenced by DebugOverlayWorkerProc().
| 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().
| void DecodeShapeFrame | ( | struct Shape * | shape, |
| short | frame, | ||
| unsigned char * | bitmap, | ||
| int | width, | ||
| int | height, | ||
| int | leftExtent, | ||
| int | topExtent ) |
Definition at line 175 of file gr.c.
References DecodeShapeFrame(), and Shape::frameOffsets.
Referenced by CollectRasterClipColours(), DecodeShapeFrame(), and PrepareShapeRLEData().
| void *__stdcall DecompressPacketSection | ( | PacketSectionHandle * | handle, |
| void * | destination, | ||
| unsigned short | flags, | ||
| void * | decompressionWorkspace ) |
Definition at line 444 of file view.c.
References AllocateTaggedMemory(), PacketSectionHandle::compression, DecompressPacketSection(), PacketSectionHandle::file, FinishPacketDecompressionHook(), GetPacketDecompressionResult(), IdentityHandle(), nCurrentPacketDecompressScratchSegment, nPacketDecompressInputPositionValue, nPacketDecompressPending, nPacketDecompressResult, nPacketError, nPktDecompressSourceFile, pLastPacketAllocation, pPacketDecompressionWorkspace, pPktDecompInput, ReadPacketSectionData(), ReleasePacketHandle(), SeekPacketSection(), wPacketCompressionFormatFlags, wPacketDecompressInputSize, and wPacketDecompressionInputSizeOverride.
Referenced by DecompressPacketSection(), init_3Space_objects(), and PacketLoad().
| short decrement_lock_time | ( | short | screenX | ) |
Definition at line 1687 of file cockpt.c.
References bTargetLockAcquired, CheckTargetLockMalfunction(), CockpitMessage(), cRedColour, decrement_lock_time(), malf(), nTargetLockCountdown, PlaySfxWaveFileByNumber(), pszMissileLockedMessage, and void().
Referenced by decrement_lock_time(), and target_locking().
| void defend_mission | ( | short | obj | ) |
Definition at line 720 of file brains.c.
References abShipTurnList, acShipTargetTable, aeShipObjectiveList, anShipMissionShips, approach_half_speed(), change_mission_type(), check_engage_target(), defend_mission(), distance_from_object(), engage(), fail(), find_ship_index(), in_danger(), maneuvering(), MISSION_TYPE_PATROL, no_goal(), nTargetShip, nTgtRange, 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().
| void destroyer_intelligence | ( | short | obj | ) |
Definition at line 895 of file brains.c.
References acShipTargetTable, approach_cruise_speed(), approach_half_speed(), destroyer_intelligence(), fire_turrets(), and orbit_sphere().
Referenced by capital_ship_intelligence(), and destroyer_intelligence().
Definition at line 176 of file pilot.cpp.
References DestroyGlobalDebugOverlayConsole(), and pDebugOverlay.
Referenced by DestroyGlobalDebugOverlayConsole(), init_3Space_objects(), ShutdownGameWindow(), and WinMain().
| short detect_collisions | ( | short | obj | ) |
Definition at line 325 of file logic.c.
References aeObjectClass, asCollisionPartnerTable, asCollisionTimes, crash_time(), detect_collisions(), OBJECT_CLASS_ASTEROID, and OBJECT_CLASS_MISSILE.
Referenced by detect_collisions(), and handle_collisions().
| short detect_enemy_tail | ( | short | obj | ) |
Definition at line 535 of file logic.c.
References acShipTargetTable, aeObjectClass, aeShipSide, aeSpecialManeuvers, being_tailed(), detect_enemy_tail(), OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by check_engage_target(), and detect_enemy_tail().
Definition at line 2394 of file cockpt.c.
References bStickIndicatorFrameState, determine_pilot_hand(), MinShort(), stRotationInput, ShortVector::x, and ShortVector::y.
Referenced by animate_pilot(), and determine_pilot_hand().
| int DIBcascade | ( | int | mode, |
| int * | reportedResult ) |
Definition at line 286 of file dib.c.
References DIBcascade(), DIBerror(), nDIBCascadeLevel, pDirectDraw2, pDirectDrawPalette, pPrimarySurface, and pSecondarySurface.
Referenced by DIBcascade(), DIBinstall(), DIBreInstall(), and PlaySfxWaveFileByNumber().
Definition at line 487 of file dib.c.
References abDIBPixelBackup, DAT_00476640, DAT_00476644, DIBdestroyDIB(), DIBerror(), nDIBCascadeLevel, nDIBFrameHeight, nDIBFrameWidth, pDIBImage, pPrimarySurface, and pSecondarySurface.
Referenced by DIBdestroyDIB(), DIBunInstall(), and PlaySfxWaveFileByNumber().
| void DIBerror | ( | const char * | tag, |
| int | hr ) |
Definition at line 191 of file dib.c.
References COM_RELEASE, DIBerror(), DirectDrawResultToText(), hDIBParentWindow, pDirectDraw2, pPrimarySurface, pSecondarySurface, and szDIBFailureString.
Referenced by DIBcascade(), DIBdestroyDIB(), DIBerror(), DIBinstall(), DIBmakeDIB(), DIBramPalette(), DIBreInstall(), DIBsetPalette(), DIBslamReal(), DIBupdate(), DIBwholePaletteFromTriplets(), DIBwholePaletteFromWords(), and PlaySfxWaveFileByNumber().
| void DIBinstall | ( | HWND | window | ) |
Definition at line 241 of file dib.c.
References abDIBPaletteQuads, abDIBPixelBackup, bDirectDrawModeCascadeEnabled, bPendingDIBSlam, DIBcascade(), DIBerror(), DIBinstall(), DIBmakeDIB(), guidDirectDraw2, hDIBParentWindow, nDIBCascadeLevel, nDIBSlamTotal, and pDirectDraw2.
Referenced by CreateMainWindow(), DIBinstall(), and PlaySfxWaveFileByNumber().
Definition at line 422 of file dib.c.
References abDIBPaletteQuads, abDIBPixelBackup, Viewport::allocation, DAT_00476640, DAT_00476644, DAT_00486058, DIBerror(), DIBmakeDIB(), GetDIBPixelBuffer(), nDIBCascadeLevel, nDIBFrameHeight, nDIBFrameWidth, pDIBImage, pDirectDraw2, pDirectDrawPalette, Viewport::pixels, pPrimarySurface, pSecondarySurface, and stScreenView.
Referenced by DIBinstall(), DIBmakeDIB(), and PlaySfxWaveFileByNumber().
Definition at line 213 of file dib.c.
References COM_RELEASE, DIBpositionWindow(), hDIBParentWindow, pDirectDraw2, pPrimarySurface, and pSecondarySurface.
Referenced by DIBpositionWindow(), PlaySfxWaveFileByNumber(), ReportHeapGuardCorruption(), and ShowNoticeMessageBox().
Definition at line 772 of file dib.c.
References abDIBPaletteQuads, DIBerror(), DIBramPalette(), and pDirectDrawPalette.
Referenced by DIBramPalette(), PanToScreen(), and PlaySfxWaveFileByNumber().
Definition at line 224 of file dib.c.
References bDirectDrawModeCascadeEnabled, DIBcascade(), DIBerror(), DIBreInstall(), DIBslam(), DIBslamReal(), hDIBParentWindow, nDIBCascadeLevel, and pDirectDraw2.
Referenced by DIBreInstall(), PlaySfxWaveFileByNumber(), and PumpWindowMessages().
| void DIBsetPalette | ( | short | index, |
| short * | rgb ) |
Definition at line 794 of file dib.c.
References abDIBPaletteQuads, awPaletteRgbWordsList, DIBerror(), DIBsetPalette(), pDirectDrawPalette, and pPrimarySurface.
Referenced by DIBsetPalette(), PlaySfxWaveFileByNumber(), and SetPaletteEntry().
Definition at line 513 of file dib.c.
References bPendingDIBSlam, and DIBslam().
Referenced by AnimateScrambleWalk(), AnimateTrainSimTitle(), AppendFormattedText(), BarracksScreen(), BlitViewportScanlineRuns(), ClearViewport(), CloseLook(), death_sequence(), DeBriefing(), DebriefingEstablishingShot(), DIBreInstall(), DIBslam(), Dismissed(), DisplayTrainSimHighScoreTable(), DrawDebriefingLongShot(), DrawFormattedText(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawMedals(), DrawNavLocationReadout(), DrawScrambleFrame(), DrawTextAt(), DrawViewportEllipse(), DrawViewportEllipseShadow(), ejection_sequence(), EstablishingShot(), FadeViewportPaletteToColour(), FillViewportEllipse(), fizzle_fade(), FormatTextBufferFromStart(), funeral_player(), InflightComputer(), initialize_cockpit(), landing(), LaunchPlayerShip(), LongTalk(), MedalEstablish(), Office(), PanToScreen(), PinMedal(), PlaySceneAnimation(), PlayScrambleHangarScene(), PlaySfxWaveFileByNumber(), print_subtitle(), PromptForTextInput(), PumpWindowMessages(), ReadTextInput(), RecRoom(), ReleaseModalTextPanel(), RestoreSpriteBackground(), ReturnToBriefingLongShot(), RunSpaceFlight(), RunTrainSim(), SelectTrainSimMission(), shaded_triangle(), shadow_draw(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowChalkBoard(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowMeanwhileTransition(), ShowModalTextPanel(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), ShowTrainSimHighScores(), ShowTrainSimTextMessage(), ShowVictoryScreen(), snow_viewport(), stranded_sequence(), Title_Sequence(), triangle(), UpdateTrainSimHighScores(), ValidateViewportBounds(), ViewMedals(), and visit_the_cinema().
Definition at line 519 of file dib.c.
References bPendingDIBSlam, CaptureMouseCursorBackground(), DIBerror(), DIBslamReal(), DrawMouseCursor(), hDIBParentWindow, nDIBCascadeLevel, nDIBFrameHeight, nDIBFrameWidth, nDIBSlamTotal, pDIBImage, pDirectDraw2, Viewport::pixels, pPrimarySurface, pSecondarySurface, RestoreMouseCursorBackground(), ServiceSoundSystem(), stMouseCursorState, ThrottleFrameAndDrawFps(), UpdateStreamerStoppedFlag(), and MouseCursorState::viewport.
Referenced by AnimateScrambleWalk(), AnimateTrainSimTitle(), BarracksScreen(), CalibrateJoystickInteractive(), ClearViewport(), CloseLook(), death_sequence(), DeBriefing(), DebriefingEstablishingShot(), DIBreInstall(), DIBslamReal(), Dismissed(), DisplayTrainSimHighScoreTable(), DrawDebriefingLongShot(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawMedals(), DrawNavLocationReadout(), DrawScrambleFrame(), ejection_sequence(), EstablishingShot(), FadeViewportPaletteToColour(), funeral_player(), InflightComputer(), initialize_cockpit(), landing(), LaunchPlayerShip(), LongTalk(), MedalEstablish(), Office(), PanToScreen(), PinMedal(), PlaySceneAnimation(), PlayScrambleHangarScene(), PlaySfxWaveFileByNumber(), PromptForTextInput(), PumpWindowMessages(), ReadTextInput(), RecRoom(), ReleaseModalTextPanel(), ReturnToBriefingLongShot(), RunSpaceFlight(), RunTrainSim(), SelectTrainSimMission(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowChalkBoard(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowMeanwhileTransition(), ShowModalTextPanel(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), ShowTrainSimHighScores(), ShowTrainSimTextMessage(), ShowVictoryScreen(), stranded_sequence(), Title_Sequence(), UpdateTrainSimHighScores(), ViewMedals(), and visit_the_cinema().
Definition at line 412 of file dib.c.
References COM_RELEASE, DIBdestroyDIB(), DIBunInstall(), pDirectDraw2, pPrimarySurface, and pSecondarySurface.
Referenced by DIBunInstall(), PlaySfxWaveFileByNumber(), ShutdownGameWindow(), and WinMain().
| void DIBupdate | ( | int | left, |
| int | top, | ||
| int | right, | ||
| int | bottom ) |
Definition at line 665 of file dib.c.
References DIBerror(), DIBupdate(), nDIBCascadeLevel, nDIBFrameWidth, pDIBImage, pDirectDraw2, and pPrimarySurface.
Referenced by DIBupdate(), PlaySfxWaveFileByNumber(), and RefreshMouseCursorDisplay().
Definition at line 917 of file dib.c.
References DIBwaitForVerticalBlank(), and pDirectDraw2.
Referenced by DIBwaitForVerticalBlank(), PlaySfxWaveFileByNumber(), and WaitForVerticalBlankThunk().
| void DIBwholePaletteFromTriplets | ( | unsigned char * | palette | ) |
Definition at line 841 of file dib.c.
References abDIBPaletteQuads, DIBerror(), DIBwholePaletteFromTriplets(), pDirectDraw2, pDirectDrawPalette, and pPrimarySurface.
Referenced by DIBwholePaletteFromTriplets(), PlaySfxWaveFileByNumber(), and SetWholePaletteFromTriplets().
| void DIBwholePaletteFromWords | ( | short * | palette | ) |
Definition at line 879 of file dib.c.
References abDIBPaletteQuads, DIBerror(), DIBwholePaletteFromWords(), pDirectDraw2, pDirectDrawPalette, and pPrimarySurface.
Referenced by DIBwholePaletteFromWords(), PlaySfxWaveFileByNumber(), and RestoreGamePalette().
| short difficulty | ( | void | ) |
Definition at line 154 of file winmain.c.
References difficulty(), and nHazardReferenceSpeed.
Referenced by close_behind(), difficulty(), init_hazard(), and skill_check().
| char * DirectDrawResultToText | ( | int | result | ) |
Definition at line 924 of file dib.c.
References DirectDrawResultToText().
Referenced by DIBerror(), DirectDrawResultToText(), and PlaySfxWaveFileByNumber().
Definition at line 197 of file brains.c.
References bEngageAllowed, and disallow_engage().
Referenced by disallow_engage(), and request().
Definition at line 224 of file pilot.cpp.
References DiskPromptDrawHook().
Referenced by DiskPromptDrawHook(), init_3Space_objects(), and PromptInsertNumberedDisk().
| unsigned int Dismissed | ( | char * | text, |
| short | duration ) |
Definition at line 730 of file screens.c.
References abBriefingPodiumFrames, AddPCName(), aiBriefingLeftPanelVelocity, aiBriefingPodiumVelocity, aiBriefingRightPanelVelocity, cBlackColour, CheckEscaped(), ClearViewport(), DIBslam(), DIBslamReal(), Dismissed(), DrawSpriteDefault(), FetchDiskPacketRetrying(), FormatTextBufferFromStart(), FreePacketAndClear(), nConvTextColorValue, nFrameSkip, nFrameSkipCounter, pCurrentConversationBackdropShapePtr, pSceneBriefingBodyShape, pSceneBriefingPortraitShape, pTalkHeadShape, RefreshMemoryStatusOverlay(), SetTextContext(), stCurrentConvTextViewport, stCurrentConvTxtCtx, stSceneBuffer, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by Dismissed(), DosMemcpy(), and SceneDirector().
| int disobey_formation | ( | short | ship | ) |
Definition at line 133 of file screen.c.
References aiPilotLevel, any_enemy_tail(), disobey_formation(), and report_kilrathi_rout().
Referenced by disobey_formation(), PlaySfxWaveFileByNumber(), and request().
| int DisplayTrainSimHighScoreTable | ( | short | phase | ) |
Definition at line 57 of file trainsim.c.
References ShortRect::bottom, cBlackColour, CheckEscaped(), CopyViewportContents(), DIBslam(), DIBslamReal(), DisplayTrainSimHighScoreTable(), DrawFilledViewportRect(), IsFrameTickElapsed(), ShortRect::left, Viewport::left, ShortRect::right, SetFrameTimerPeriodDirect(), stModalSrcViewport, stTrainSimHighScoreDisplayViewport, stTrainSimPanelBounds, stTrainSimulatorHighScoreBufView, ShortRect::top, and void().
Referenced by DisplayTrainSimHighScoreTable(), init_3Space_objects(), and ShowTrainSimHighScores().
| short dist_from_home | ( | short | obj | ) |
Definition at line 374 of file brains.c.
References aShipMissionSpotArray, dist_from_home(), and distance_from_point().
Referenced by dist_from_home(), and patrol_area().
| short distance_between_points | ( | const FixedVector * | from, |
| const FixedVector * | to ) |
Definition at line 643 of file geom.c.
References ComputeVectorDelta(), distance_between_points(), FixedToShortSaturating(), and Vector_magnitude().
Referenced by auto_pilot_sequence(), distance_between_points(), and init_hazard().
| short distance_from_object | ( | short | obj, |
| short | other ) |
Definition at line 667 of file geom.c.
References aShipPositionsArray, asObjectCollisionRadius, distance_from_object(), and distance_from_point().
Referenced by abandoned(), any_enemy(), approach_and_engage(), attacker_in_range(), auto_pilot_sequence(), build_target_list(), cleanup_objectives(), cruise_home(), defend_mission(), distance_from_object(), escort_mission(), FF_missile_intelligence(), imperial_formation(), in_danger(), mine_intelligence(), nearest_enemy_range(), rendezvous_mission(), report_kilrathi_rout(), return_to_buddy(), return_to_master(), run_away(), scan_for_enemy(), and select_target().
| short distance_from_point | ( | short | obj, |
| const FixedVector * | point ) |
Definition at line 655 of file geom.c.
References aShipPositionsArray, asObjectCollisionRadius, ComputeVectorDelta(), distance_from_point(), FixedToShortSaturating(), Vector_magnitude(), and vToTgt.
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(), and scan_for_enemy().
| void divide_vector | ( | FixedVector * | vector, |
| int | divisor, | ||
| FixedVector * | result ) |
Definition at line 330 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 76 of file mathfp.c.
References DivideFixed().
Referenced by accelerate_and_move_object(), apply_force_to_object(), divide_vector(), DivideFixed(), draw_nav_pointer(), IsPointWithinEyeViewCone(), NormalizeFixedVector(), object_collision(), PlaySfxWaveFileByNumber(), real_crash_time(), rectangular_to_spherical(), rotational_acceleration(), set_ship_rotation_goals(), and transform_objects_to_your_view().
| unsigned int __stdcall DosFarPtrToNear | ( | void * | v | ) |
Definition at line 25 of file strdos.c.
References DosFarPtrToNear().
Referenced by DosFarPtrToNear(), FreeNearHeapBlock(), GetNearHeapBlockSize(), InitializeNearHeap(), and PlaySfxWaveFileByNumber().
References AllocateInputEvent(), AllocateSmallMemoryBlock(), AllocateUntaggedMemory(), ApplyPackedMousePosition(), AwardCampaignMedal(), CaptureMouseCursorBackground(), CheckCursor(), ClearInputKeyState(), ClearInputKeyStatePreservingModifiers(), ConfigureEventManagerPointer(), ConvertChar_Int(), death_sequence(), DebriefingEstablishingShot(), Dismissed(), DosMemcpy(), DosMemset(), draw_sorted_objects_to_buffer(), DrawBriefingCharacter(), DrawBriefingLongShot(), DrawDebriefingLongShot(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawMedals(), DrawMouseCursor(), DrawPodiumShot(), EnterAllocationScope(), EstablishingShot(), EventManagerControlHook(), EventManagerHook(), ExitCleanupHook(), FillGraphicSuffix(), FillRasterBytes(), FinishPacketDecompressionHook(), FlushInputEvents(), FreeIfNotNull(), FreeTalker(), GetCurrentDiskDriveHook(), GetEventManagerStatus(), GetFixedOneMillion(), GetFixedOneMillionAlt(), GetMouseCursorPosition(), GetNavRangeSentinel(), GetNextInputEvent(), GetOriginalFreeMemory(), GetPacketDecompressionResult(), GetShutdownErrorCode(), GetSoundHardwareFlag(), GetStartupErrorCode(), IdentityWord(), InitializeEventManager(), int_value(), intro_drawbackgroundships(), IsFrameTickElapsed(), IsInputEventQueued(), IsVectorWithinRange(), JoystickEdgeHook(), LeaveAllocationScope(), LoadBriefingRoom(), MedalEstablish(), MouseIdleHook(), no_objectives_achieved(), PanToScreen(), ParseTests(), PeekInputEvent(), PinMedal(), PollInputEvent(), QueueInputEvent(), QueueInputEventAtCursor(), RefreshMouseCursorDisplay(), RegisterEventManagerShutdown(), ReleaseInputEvent(), ReleaseInputEventQueue(), ReleaseUntaggedMemory(), RemoveInputEvent(), ResetAllocationDepth(), RestoreMouseCursorBackground(), RetainInputEventsOfType(), ReturnToBriefingLongShot(), SceneDirector(), SelectDiskDriveHook(), set_up_screen_viewport(), SetEventManagerPump(), SetFrameTimerAndWait(), SetFrameTimerPeriod(), SetFrameTimerPeriodDirect(), SetInputKeyState(), SetMouseCursorShape(), SetMouseHomePosition(), SetViewportRect(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowVictoryScreen(), shrink(), shrink_vector(), ShutdownEventManager(), ShutdownHook(), sort_object_depth(), StartupHook(), TalkerInit(), TimerResetHook(), TimerStopHook(), TranslatePolledInputEvent(), ViewMedals(), WaitForFrameTick(), and wing_status().
Referenced by DosMemcpy(), DosMemcpy(), InitializeNearHeap(), LoadGameFromSlot(), LoadMissionData(), SaveGameWithNamePrompt(), SetAwakenBarracksMenuLabel(), and ShutdownNearHeap().
Definition at line 73 of file strdos.c.
References DosMemset().
Referenced by DosMemcpy(), and DosMemset().
| void *__stdcall DosNearPtrToFar | ( | unsigned int | v | ) |
Definition at line 31 of file strdos.c.
References DosNearPtrToFar().
Referenced by AllocateNearHeapBlockByFlags(), AllocateNearHeapBlockFromEnd(), DosNearPtrToFar(), FreeNearHeapBlock(), GetFreeNearHeapBytes(), GetLargestFreeNearHeapBlock(), GetNearHeapBlockSize(), InitializeNearHeap(), MergeAdjacentNearHeapBlocks(), PlaySfxWaveFileByNumber(), PurgeNearHeapBlocks(), ReleaseNearHeapBlock(), and ShutdownNearHeap().
| char *__stdcall DosStrcat | ( | char * | destination, |
| const char * | source ) |
Definition at line 92 of file fade.c.
References DosStrcat(), DosStrchr(), and DosStrcpy().
Referenced by AddPCName(), DosStrcat(), and ExpandCommMessageTokens().
| char *__stdcall DosStrchr | ( | const char * | s, |
| short | c ) |
Definition at line 43 of file strdos.c.
References DosStrchr().
Referenced by AddPCName(), DosStrcat(), DosStrchr(), ExpandCommMessageTokens(), FillGraphicSuffix(), PlaySfxWaveFileByNumber(), and SaveGameWithNamePrompt().
| char *__stdcall DosStrcpy | ( | char * | dst, |
| const char * | src ) |
Definition at line 49 of file strdos.c.
References DosStrcpy().
Referenced by DosStrcat(), DosStrcpy(), DrawRoomMenuLabel(), get_pilot_talk(), LoadAnswerPromptAndResponse(), PlaySfxWaveFileByNumber(), print_message_text(), PromptForPilotField(), ReadRequiredPilotField(), ReadTextInput(), SaveGameWithNamePrompt(), ShowCentredPrompt(), ShowChalkBoard(), ShowComponentHitHudMessage(), and ShowOnScreenMessage().
| short __stdcall DosStrlen | ( | const char * | s | ) |
Definition at line 61 of file strdos.c.
References DosStrlen().
Referenced by AddPCName(), DosStrlen(), EraseLastTextInputCharacter(), ExpandCommMessageTokens(), MeasureMessageWidth(), PlaySfxWaveFileByNumber(), and ReadTextInput().
| char *__stdcall DosStrrchr | ( | char * | s, |
| short | c ) |
Definition at line 37 of file strdos.c.
References DosStrrchr().
Referenced by DosStrrchr(), and PlaySfxWaveFileByNumber().
| int dot_product | ( | const FixedVector * | left, |
| const FixedVector * | right ) |
Definition at line 441 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(), transform_to_objects_frame(), vector_angle(), and vector_length_in_dir().
| void drain_fuel | ( | short | ship, |
| short | amount ) |
Definition at line 124 of file geom.c.
References anShipFuelsTable, drain_fuel(), and recalc_max_velocity().
Referenced by accelerate_and_move_object(), drain_fuel(), housekeep_power_plant_and_fuel(), internal_damage(), and your_internal_damage().
| unsigned int draw_3d_scanner | ( | void | ) |
Definition at line 1544 of file cockpt.c.
References acShipTargetTable, aeObjectClass, aiScannerGridRows, aObjectViewPositionsList, asScannerBackgroundColour, asScannerObjectPositionX, asScannerObjectY, bCockpitlessView, CaptureSpriteBackground(), cBlackColour, cCurrentCockpitView, CockpitScannerGeometry::centerX, CockpitScannerGeometry::centerY, clear_head_up_display(), draw_3d_scanner(), DrawSpriteDefault(), DrawViewportPixel(), get_color(), get_mode(), GetViewportPixel(), nCurrentSpaceFrameValue, nScannerCursorX, nScannerCursorY, nScannerTargetObject, OBJECT_CLASS_SHIP, pRadarMarkerBackground, pTgtLockShapePtr, SphericalVector::radius, rectangular_to_spherical(), rotational_pos_to_scanner_pos(), CockpitLayout::scanner, set_objective_range(), stCockpitLayout, and stScreenView.
Referenced by draw_3d_scanner(), and update_cockpit().
| unsigned int Draw_3Space_Frame | ( | void | ) |
Definition at line 1832 of file main.c.
References Draw_3Space_Frame(), draw_sorted_objects_to_buffer(), nCameraViewMode, nFrameSkip, nFrameSkipCounter, nRenderedSpaceFrame, overlay_head_up_display(), place_exhaust_on_ships(), reposition_fixed_child_objects(), sort_object_depth(), transform_objects_to_your_view(), update_star_field(), and UpdateSpacePaletteFade().
Referenced by Draw_3Space_Frame(), init_3Space_objects(), RefreshCockpitStatus(), RenderSpaceViewFrame(), ShowCampaignVictorySequence(), ShowTigerClawEscapeScene(), and Title_Sequence().
Definition at line 568 of file cockpt.c.
References aacCockpitLightOffFrame, aacCockpitLightOnFrame, aasCockpitLightX, aasCockpitLightY, abCockpitIndicatorStatesArray, abCockpitLightGoalArray, auto_pilot_valid(), bCockpitlessView, cCurrentCockpitView, draw_cockpit_lights(), DrawSpriteDefault(), nRenderedSpaceFrame, pCockpitDamageShape, and stScreenView.
Referenced by draw_cockpit_lights(), and update_cockpit().
Definition at line 2015 of file cockpt.c.
References acObjOwnersTable, aeObjectClass, aMissionObjectivesArray, apObjShapeArray, aShipPositionsArray, asObjDistancesTable, asObjectCollisionRadius, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, cCurrentObjective, ComputeVectorDelta(), DivideFixed(), draw_nav_pointer(), EYE_OBJECT, find_vacant_3d_object(), get_mode(), MultiplyFixed(), nCameraViewMode, nCannedSceneMode, nNavPointerObject, nScreenWidth, OBJECT_CLASS_PLANET, pTgtLockShapePtr, 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 890 of file eventmgr.c.
References aeObjectClass, aeObjectTypeList, anSortedObjects, apObjShapeArray, asObjectDrawPosX, asObjectDrawPosY, asObjectFlipArray, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, draw_sorted_objects_to_buffer(), DrawSpriteDefault(), DrawSpriteScaled(), nCurrentViewCenterPosX, nCurrentViewCenterPosY, nNavPointerObject, OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_STAR, pCurrentConstellationShape, SPACE_OBJECT_COUNT, and stSpaceBufferViewport.
Referenced by DosMemcpy(), Draw_3Space_Frame(), draw_sorted_objects_to_buffer(), and ShowCarrierLaunchSequence().
| void draw_target_box | ( | unsigned short | colour, |
| signed char | object, | ||
| short | solid, | ||
| short | drawLockMarker, | ||
| short | padding, | ||
| ShortRect * | savedBounds ) |
Definition at line 1891 of file cockpt.c.
References aeShipSide, anObjectRollRotationList, anObjPitchRot, apObjShapeArray, asObjectFlipArray, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, ShortRect::bottom, cBlueColour, CosFixed(), cPrimaryViewBufferColour, cRedColour, draw_target_box(), DrawSolidColourSprite(), DrawSpriteDefault(), DrawViewportBorder(), DrawViewportLine(), GetTransformedShapeBounds(), ShortRect::left, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nTargetLockCountdown, nTargetLockMarkerAngle, nTargetLockMarkerX, nTargetLockMarkerY, pTgtLockShapePtr, ShortRect::right, SinFixed(), stSpaceBufferViewport, and ShortRect::top.
Referenced by draw_target_box(), overlay_head_up_display(), and RestoreTransientCockpitGraphics().
| void DrawArcadeScorePanel | ( | short | x, |
| short | y ) |
Definition at line 1869 of file main.c.
References DrawArcadeScorePanel(), DrawFormattedText(), nArcadeTimeRemaining, and nCurrentArcadeScore.
Referenced by DrawArcadeScorePanel(), init_3Space_objects(), and UpdateArcadeScoreDisplay().
| void DrawBarracksBunks | ( | Viewport * | viewport, |
| struct Shape * | shape, | ||
| BarracksAnimationState * | state ) |
Definition at line 764 of file barracks.c.
References aBarracksBunkOrigins, BarracksAnimationState::bunks, CopyViewportContents(), DrawBarracksBunks(), DrawSpriteDefault(), BarracksBunkState::occupied, stRoomScreenViewport, and stSceneBuffer.
Referenced by BarracksScreen(), DrawBarracksBunks(), and HandleBarracksBunkSelection().
Definition at line 789 of file barracks.c.
References CheckCursor(), DrawBarracksStaticDetails(), and DrawSpriteDefault().
Referenced by DrawBarracksStaticDetails(), and UpdateBarracksScreen().
| unsigned int DrawBriefingCharacter | ( | short | character, |
| short | pose, | ||
| short | animationFrame, | ||
| const signed char * | unusedXOffsets, | ||
| const signed char * | unusedYOffsets ) |
Definition at line 1450 of file screens.c.
References aBriefingCharacters, aBriefingPortraitOffsetX, aBriefingPortraitOffsetY, aBriefingPortraitScale, DrawBriefingCharacter(), DrawSpriteScaled(), BriefingCharacterLayout::firstPortraitFrame, pSceneBriefingBodyShape, pSceneBriefingPortraitShape, stSceneBuffer, and void().
Referenced by CloseLook(), DosMemcpy(), DrawBriefingCharacter(), DrawBriefingLongShot(), EstablishingShot(), and ReturnToBriefingLongShot().
| unsigned int DrawBriefingLongShot | ( | void | ) |
Definition at line 637 of file screens.c.
References DrawBriefingCharacter(), DrawBriefingLongShot(), DrawSpriteDefault(), FetchDiskPacketRetrying(), pCurrentBriefingAnimShape, pCurrentConversationBackdropShapePtr, pSceneBriefingBodyShape, pSceneBriefingPortraitShape, RefreshMemoryStatusOverlay(), and stSceneBuffer.
Referenced by DosMemcpy(), DrawBriefingLongShot(), and SceneDirector().
Definition at line 1054 of file cockpt.c.
References DrawCalculatingLabel(), DrawCockpitReadout(), nCurObjectiveRangeValue, nDisplayedObjectiveRange, and szTxtWorkspaceBuffer.
Referenced by check_objectives(), DrawCalculatingLabel(), and show_navigation_disp().
| int DrawCenteredScaledIntroText | ( | const char * | text, |
| short | centreX, | ||
| short | baselineY, | ||
| short | scale ) |
Definition at line 122 of file mono.c.
References DrawCenteredScaledIntroText(), DrawSpriteScaled(), GetTransformedShapeBounds(), MeasureScaledIntroTextWidth(), pIntroFont, ShortRect::right, and stSpaceBufferViewport.
Referenced by DrawCenteredScaledIntroText(), ShowGameOverScreen(), ShowGetReadyScreen(), and ShowVictoryScreen().
| 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 352 of file cockpt.c.
References aCockpitReadouts, cBlackColour, CockpitReadout::context, TextContext::cursorX, DrawCockpitReadout(), DrawFormattedText(), EraseCockpitReadoutRegion(), TextContext::font, CockpitReadout::previousRight, SetTextContext(), SetTextCursor(), stScreenView, and CockpitReadout::y.
Referenced by DrawCalculatingLabel(), DrawCockpitReadout(), DrawTargetRangeReadout(), update_bars(), and update_digital_readouts().
| unsigned int DrawConstellationField | ( | void | ) |
Definition at line 289 of file view.c.
References aConstellationParticlesList, aConstellationStarsTable, asConstellationFrame, asConstellationVelocity, Viewport::bottom, ClearViewport(), cPrimaryViewBufferColour, DrawConstellationField(), DrawSpriteDefault(), ConstellationParticle::frame, Viewport::left, nConstellationDirection, nConstellationParticleTotal, nViewConstellationStarCount, pConstellationViewportPtr, pCurrentConstellationShape, RandomInRange(), Viewport::right, Viewport::top, ConstellationParticle::velocity, ConstellationParticle::x, and ConstellationParticle::y.
Referenced by CloseTalk(), DrawConstellationField(), DrawFuneralLongShot(), funeral_player(), init_3Space_objects(), and RecRoom().
| unsigned int DrawDebriefingLongShot | ( | void | ) |
Definition at line 812 of file screens.c.
References DIBslam(), DIBslamReal(), DrawDebriefingLongShot(), DrawSpriteDefault(), nDebriefingLeftX, nDebriefingOfficerX, nDebriefingPersonality, nDebriefingPilotX, nDebriefingPodiumX, nDebriefingRightX, pCurrentConversationBackdropShapePtr, CampaignState::personalityDeathMission, stCampaignState, and stSceneBuffer.
Referenced by CloseLook(), DebriefingEstablishingShot(), DosMemcpy(), and DrawDebriefingLongShot().
| void DrawFilledViewportRect | ( | Viewport * | viewport, |
| short | left, | ||
| short | top, | ||
| short | right, | ||
| short | bottom, | ||
| short | colour ) |
Definition at line 1033 of file gr.c.
References ShapeFrame::bottom, ClipViewportToScreen(), DrawClippedLine(), DrawFilledViewportRect(), ShapeFrame::left, Viewport::left, ShapeFrame::right, stRasterClip, ShapeFrame::top, and Viewport::top.
Referenced by AnimateTrainSimTitle(), CollectRasterClipColours(), DisplayTrainSimHighScoreTable(), DrawFilledViewportRect(), RenderSpaceViewFrame(), and update_VDUs().
| void DrawFontGlyph | ( | char | character, |
| TextContext * | context, | ||
| int | height, | ||
| int | width, | ||
| int | y ) |
Definition at line 533 of file gr.c.
References abPaletteTranslation, TextContext::backgroundColour, TextContext::colour, TextContext::cursorX, DrawFontGlyph(), TextContext::font, Viewport::pixels, Viewport::rowOffsets, Viewport::top, and TextContext::viewport.
Referenced by CollectRasterClipColours(), DrawFontGlyph(), and DrawTextCharacter().
| void DrawFormattedText | ( | const char * | format, |
| ... ) |
Definition at line 197 of file cockpt.c.
References DIBslam(), DrawFormattedText(), DrawTextCharacter(), FormatTextTokens(), pCurTextContext, Viewport::pixels, stScreenView, and TextContext::viewport.
Referenced by DrawArcadeScorePanel(), DrawCockpitReadout(), DrawFormattedText(), DrawNavMapLabels(), DrawTextInputCursor(), PromptForPilotField(), ReadRequiredPilotField(), ReadTextInput(), show_communications_disp(), show_info_disp(), show_navigation_disp(), show_target_disp(), show_weapon_disp(), ShowChalkBoard(), ShowMemoryStatusDebug(), ShowTrainSimHighScores(), and UpdateInflightNavText().
| unsigned int DrawFuneralLongShot | ( | short | shot, |
| char * | text, | ||
| short | duration ) |
Definition at line 1484 of file screens.c.
References AddPCName(), bConversationConstellation, cBlackColour, CheckEscaped(), ClearViewport(), DIBslam(), DIBslamReal(), DrawConstellationField(), DrawFuneralLongShot(), DrawSpriteDefault(), FormatTextBufferFromStart(), IsFrameTickElapsed(), nConvTextColorValue, pCurrentConversationBackdropShapePtr, RefreshMemoryStatusOverlay(), SetFrameTimerPeriodDirect(), stCurrentConvTextViewport, stSceneBuffer, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by DosMemcpy(), DrawFuneralLongShot(), and SceneDirector().
| short DrawHudMessageSlot | ( | HudMessageSlot * | slot | ) |
Definition at line 383 of file cockpt.c.
References cBlackColour, HudMessageSlot::colour, TextContext::colour, HudMessageSlot::context, HudMessageSlot::drawColour, DrawHudMessageSlot(), DrawTextAt(), HudMessageSlot::flashCount, MaxShort(), nCameraViewMode, nTickCount60Hz, HudMessageSlot::text, HudMessageSlot::x, and HudMessageSlot::y.
Referenced by ClearHudMessageSlot(), DrawHudMessageSlot(), and UpdateMessage().
| void DrawLaunchDoorFrame | ( | short | distance | ) |
Definition at line 55 of file launch.c.
References DrawLaunchDoorFrame(), DrawSpriteScaled(), GetTransformedShapeBounds(), ShortRect::left, nScreenHeight, nScreenWidth, pLaunchDoorShape, ShortRect::right, and stSpaceBufferViewport.
Referenced by DrawLaunchDoorFrame(), init_3Space_objects(), and LaunchPlayerShip().
| unsigned int DrawMedalChest | ( | char * | text, |
| short | duration ) |
Definition at line 322 of file screens.c.
References AddPCName(), cBlackColour, CheckEscaped(), ClearViewport(), DIBslam(), DIBslamReal(), DrawMedalChest(), DrawSpriteDefault(), DrawSpriteScaled(), FormatTextBufferFromStart(), nConvTextColorValue, nCurrentConversationMedalIndex, pMedalSceneShape, RefreshMemoryStatusOverlay(), spacetrack(), stCurrentConvTextViewport, stSceneBuffer, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by DosMemcpy(), DrawMedalChest(), and SceneDirector().
| unsigned int DrawMedalLongShot | ( | short * | animation, |
| char * | text, | ||
| short | duration ) |
Definition at line 375 of file screens.c.
References AddPCName(), cBlackColour, CheckEscaped(), ClearViewport(), DIBslam(), DIBslamReal(), DrawMedalLongShot(), DrawSpriteDefault(), FormatTextBufferFromStart(), nConvTextColorValue, pCurrentConversationBackdropShapePtr, pMedalSceneShape, RefreshMemoryStatusOverlay(), stCurrentConvTextViewport, stSceneBuffer, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by DosMemcpy(), DrawMedalLongShot(), and SceneDirector().
| unsigned int DrawMedals | ( | void | ) |
Definition at line 520 of file screens.c.
References asMedalDisplayX, CampaignState::badges, CampaignState::currentPilot, DIBslam(), DIBslamReal(), DrawMedals(), DrawSpriteDefault(), DrawSpriteScaled(), CampaignState::medals, pCurrentConversationBackdropShapePtr, pMedalSceneShape, PilotRecord::rank, stCampaignState, and stSceneBuffer.
Referenced by DosMemcpy(), DrawMedals(), MedalEstablish(), and ViewMedals().
| void DrawModalTextPanel | ( | ModalTextPanel * | panel, |
| short | x, | ||
| short | y, | ||
| unsigned char | alignment, | ||
| const char * | format, | ||
| ... ) |
Definition at line 96 of file barracks.c.
References TextContext::alignment, ModalTextPanel::context, DrawModalTextPanel(), FormatTextBufferFromStart(), ModalTextPanel::left, SetTextCursor(), and ModalTextPanel::top.
Referenced by DrawModalTextPanel(), PromptForAnswerText(), PromptForTextInput(), and ShowModalTextPanel().
Definition at line 465 of file eventmgr.c.
References bMouseCursorDamagePending, DrawMouseCursor(), DrawSpriteDefault(), MouseCursorState::frame, nEventMousePointerDamageBottom, nMouseCursorDamageLeft, nMouseCursorDamageRight, nMouseCursorShowCount, nMousePointerDamageTopValue, MouseCursorState::shape, stMouseCursorState, MouseCursorState::viewport, MouseCursorState::x, and MouseCursorState::y.
Referenced by DIBslamReal(), DosMemcpy(), DrawMouseCursor(), and RefreshMouseCursorDisplay().
| void DrawNavCrossMarker | ( | short | x, |
| short | y, | ||
| short | size, | ||
| short | shadow, | ||
| unsigned short | colour, | ||
| short | reserve ) |
Definition at line 421 of file nav.c.
References DrawNavCrossMarker(), DrawViewportLine(), ReserveNavMapArea(), stMapNavigationLabelTextContext, 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 447 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 669 of file nav.c.
References abMissionAuxData, abSeriesAuxData, TextContext::alignment, aMissionShips, apszShipMissionTypeNames, aShipPositionsArray, BuildMap(), cBlackColour, cCurrentObjective, cDefaultTextColour, ClearViewport(), CopyViewportContents(), cPrimaryTextColour, TextContext::cursorX, TextContext::cursorY, DIBslam(), DIBslamReal(), DrawNavLocationReadout(), DrawNavMapLegend(), DrawNavTextLine(), InitializeTextContextFromFont(), MissionShipRecord::missionType, nav_note(), MissionHeaderDisk::playerMissionShip, SetScreenClipRect(), SetTextContext(), stCurrentMissionHeader, stCurrentNavMapTxtCtx, stSceneBuffer, stScreenView, szCampaignSector, szDefaultTxtBuf, TextContext::text, and TextContext::viewport.
Referenced by BriefingMap_DisplayMap(), DrawNavLocationReadout(), and ShowConfedNavScan().
Definition at line 303 of file nav.c.
References aNavMapLabels, DrawFormattedText(), DrawNavMapLabels(), and nNavMapLabelCount.
Referenced by BuildMap(), and DrawNavMapLabels().
Definition at line 641 of file nav.c.
References cMissionObjectiveCountValue, DrawNavMapLegend(), DrawSelectedNavLegendEntry(), hidden_objective(), Viewport::left, SetTextCursor(), stSceneBuffer, and visited().
Referenced by DrawNavLocationReadout(), and DrawNavMapLegend().
| void DrawNavPlayerMarker | ( | short | colour, |
| short | reserve ) |
Definition at line 462 of file nav.c.
References aShipPositionsArray, DrawNavPlayerMarker(), DrawNavSquareMarker(), DrawViewportPixel(), Viewport::left, nav_getxy(), stMapNavigationLabelTextContext, 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 317 of file nav.c.
References DrawNavRectangleMarker(), DrawViewportEllipse(), DrawViewportEllipseShadow(), ReserveNavMapArea(), stMapNavigationLabelTextContext, 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 353 of file nav.c.
References DrawNavSquareMarker(), DrawNavSquareOutline(), DrawViewportPixel(), ReserveNavMapArea(), stMapNavigationLabelTextContext, TextContext::viewport, and void().
Referenced by BuildMap(), DrawNavPlayerMarker(), and DrawNavSquareMarker().
| void DrawNavSquareOutline | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned short | size, | ||
| signed char | colour ) |
Definition at line 340 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 1001 of file mission.c.
References TextContext::alignment, AppendTextCharacter(), TextContext::colour, DrawNavTextLine(), DrawTextString(), FormatTextTokens(), pCurTextContext, 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 391 of file nav.c.
References DrawNavTriangleMarker(), DrawNavTriangleOutline(), ReserveNavMapArea(), stMapNavigationLabelTextContext, 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 379 of file nav.c.
References DrawNavTriangleOutline(), and DrawViewportLine().
Referenced by DrawNavTriangleMarker(), and DrawNavTriangleOutline().
| unsigned int DrawPendingCockpitDamage | ( | void | ) |
Definition at line 2586 of file cockpt.c.
References cCockpitLogicalFile, DrawPendingCockpitDamage(), DrawSpriteDefault(), FetchDiskPacketRetrying(), FreePacketAndClear(), Viewport::left, nPendingCockpitDamageValue, pCockpitPilotShape, pCurrentPilotHandShapePtr, stCockpitExplosionPosition, stPilotHandBackdropView, stPilotHandView, stScreenView, Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by cockpit_explosion(), and DrawPendingCockpitDamage().
Definition at line 2425 of file cockpt.c.
References asPilotHandOffsets, asPilotHandOrigins, bStickIndicatorFrameState, cCurrentCockpitView, CopyViewportContents(), cRenderedPilotHandFrame, DrawPilotHandFrame(), DrawSpriteDefault(), Viewport::left, pCurrentPilotHandShapePtr, stPilotHandBackdropView, stPilotHandComposite, stPilotHandView, and Viewport::top.
Referenced by animate_pilot(), and DrawPilotHandFrame().
| unsigned int DrawPodiumShot | ( | void | ) |
Definition at line 1426 of file screens.c.
References DrawPodiumShot(), DrawSpriteDefault(), FetchDiskPacketRetrying(), FreePacketAndClear(), pCurrentConversationBackdropShapePtr, pSceneBriefingBodyShape, pSceneBriefingPortraitShape, pTalkHeadShape, RefreshMemoryStatusOverlay(), and stSceneBuffer.
Referenced by DosMemcpy(), DrawPodiumShot(), and SceneDirector().
| 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, |
| struct RLEShape * | shape, | ||
| int | frame, | ||
| int | x, | ||
| int | y ) |
References DrawRLEImage().
Referenced by DrawRLEImage().
| int DrawRLEImageColor | ( | RasterClip * | clip, |
| struct RLEShape * | 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 DrawRoomMenuLabel | ( | TextContext * | context, |
| const char * | label ) |
Definition at line 218 of file killbrd.c.
References DosStrcpy(), DrawRoomMenuLabel(), FormatTextBufferFromStart(), SetTextContext(), and szTxtWorkspaceBuffer.
Referenced by CollectRasterClipColours(), DrawRoomMenuLabel(), and RefreshRoomMenuLabel().
| unsigned int DrawScrambleActor | ( | short | actorIndex | ) |
Definition at line 373 of file cutscene.c.
References ScrambleAnimationActor::animation, ScrambleAnimationActor::animationFrame, ScrambleAnimationActor::animationState, aScrambleAnimationActors, ScrambleAnimationActor::baseFrame, ScrambleAnimationActor::deltaX, ScrambleAnimationActor::deltaY, DrawScrambleActor(), DrawSpriteScaled(), nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, pScrambleView, ScrambleAnimationActor::x, and ScrambleAnimationActor::y.
Referenced by DrawScrambleActor(), DrawScrambleFrame(), and ShowCarrierLaunchSequence().
| unsigned int DrawScrambleFrame | ( | void | ) |
Definition at line 451 of file cutscene.c.
References aaScrambleShipDetails, acScrambleShipDetailSlots, bScrambleCanopyClosed, DIBslam(), DIBslamReal(), DrawScrambleActor(), DrawScrambleFrame(), DrawSpriteDefault(), DrawSpriteScaled(), ScrambleShipDetail::frame, nFrameSkip, nFrameSkipCounter, nSceneScrambleCanopyFrameValue, nSceneScrambleShipDetailCountValue, nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, nScrambleCanopyOffset, nScrambleCockpitAngle, OBJECT_TYPE_HORNET, OBJECT_TYPE_RAPIER, OBJECT_TYPE_RAPTOR, OBJECT_TYPE_SCIMITAR, CampaignState::playerShipType, pSceneScrambleBgShapePtr, pScrambleCanopyShape, pScrambleCockpitShapePtr, pScrambleDetailShape, pScrambleOverlayShape, pScrambleShipShape, RefreshMemoryStatusOverlay(), stCampaignState, stSceneBuffer, stScrambleCockpitDetail, stScrambleOverlay, stScramblePlayerShipPos, ScrambleShipDetail::x, ShortPoint::x, ScrambleShipDetail::y, and ShortPoint::y.
Referenced by DrawScrambleFrame(), landing(), and scramble().
| void DrawSelectedNavLegendEntry | ( | const char * | text, |
| short | navPoint ) |
Definition at line 631 of file nav.c.
References cCurrentNavPtIdx, cYellowColour, DrawNavTextLine(), and DrawSelectedNavLegendEntry().
Referenced by DrawNavMapLegend(), and DrawSelectedNavLegendEntry().
| void DrawShapeFrameScaled | ( | Viewport * | viewport, |
| struct Shape * | shape, | ||
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| int | angle, | ||
| int | scale ) |
Definition at line 1119 of file gr.c.
References DrawShapeFrameScaled(), and DrawSpriteTransformed().
Referenced by CollectRasterClipColours(), and DrawShapeFrameScaled().
| void DrawSolidColourSprite | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | colour ) |
Definition at line 935 of file gr.c.
References DrawSolidColourSprite(), DrawSpriteTransformed(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), draw_target_box(), DrawSolidColourSprite(), and intro_drawbackgroundships().
| void DrawSolidColourSpriteScaled | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip, | ||
| short | colour ) |
Definition at line 1185 of file gr.c.
References DrawSolidColourSpriteScaled(), DrawSpriteTransformed(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), DrawSolidColourSpriteScaled(), and intro_drawbackgroundships().
Definition at line 660 of file gr.c.
References DrawSpriteDefault(), and DrawSpriteTransformed().
Referenced by AnimateBarracks(), AnimateScrambleWalk(), BuildMap(), CloseLook(), CloseTalk(), cockpit_explosion(), CollectRasterClipColours(), death_sequence(), Dismissed(), draw_3d_scanner(), draw_cockpit_lights(), draw_sorted_objects_to_buffer(), draw_target_box(), DrawBarracksBunks(), DrawBarracksStaticDetails(), DrawBriefingLongShot(), DrawConstellationField(), DrawDebriefingLongShot(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawMedals(), DrawMouseCursor(), DrawMouseCursorIntoViewport(), DrawPendingCockpitDamage(), DrawPilotHandFrame(), DrawPodiumShot(), DrawScrambleFrame(), DrawSpriteDefault(), ejection_sequence(), EnterPilotNameAndCallsign(), EstablishingShot(), explosion_draw(), fire_computer_graphic_missile(), funeral_player(), InflightComputer(), initialize_cockpit(), overlay_head_up_display(), PinMedal(), PlayScrambleHangarScene(), print_subtitle(), real_vid_transmit(), RecRoom(), RestoreTransientCockpitGraphics(), ReturnToBriefingLongShot(), SelectTrainSimMission(), show_communications_disp(), show_damage_disp(), show_target_disp(), show_weapon_disp(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowChalkBoard(), ShowTrainSimHighScores(), TheEndFireWorks(), Title_Sequence(), UpdateDamageDisplay(), vdu_polygon(), and vid_transmit().
| void DrawSpriteScaled | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip ) |
Definition at line 1176 of file gr.c.
References DrawSpriteScaled(), and DrawSpriteTransformed().
Referenced by CollectRasterClipColours(), draw_sorted_objects_to_buffer(), DrawBriefingCharacter(), DrawCenteredScaledIntroText(), DrawLaunchDoorFrame(), DrawMedalChest(), DrawMedals(), DrawScrambleActor(), DrawScrambleFrame(), DrawSpriteScaled(), DrawTitleLogo(), funeral_player(), MedalEstablish(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowTigerClawEscapeScene(), and UpdateSceneAnimationObject().
| void DrawSpriteTransformed | ( | Viewport * | viewport, |
| int | x, | ||
| int | y, | ||
| struct Shape * | shape, | ||
| int | frame, | ||
| int | angle, | ||
| int | scaleX, | ||
| int | scaleY, | ||
| int | flip, | ||
| int | blendMode ) |
Definition at line 489 of file gr.c.
References abShapeTransformPixels, ClipViewportToScreen(), DrawSpriteTransformed(), exit_squadron(), GetPreparedShapeData(), GetShapeFrameCount(), Viewport::left, PrepareShapeRLEData(), RotateRLEImage(), Viewport::rowOffsets, stRasterClip, and Viewport::top.
Referenced by CollectRasterClipColours(), DrawShapeFrameScaled(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), DrawSpriteDefault(), DrawSpriteScaled(), and DrawSpriteTransformed().
Definition at line 679 of file view.c.
References acShipTargetTable, aeObjectClass, aeSpecialManeuvers, asObjDistancesTable, asObjectScreenXList, Viewport::bottom, bTargetLockAcquired, bTargetLockReadoutDirty, cBlackColour, cTargetDisplayObject, DrawCockpitReadout(), DrawTargetRangeReadout(), EraseCockpitReadoutRegion(), InvalidateVduMode(), Viewport::left, nRenderedSpaceFrame, nTargetLockCountdown, OBJECT_CLASS_SHIP, Viewport::right, set_new_vdu(), show_target_disp(), SPECIAL_MANEUVER_UNKNOWN_9, stRightVduViewport, and szTxtWorkspaceBuffer.
Referenced by DrawTargetRangeReadout(), init_3Space_objects(), and update_VDUs().
| unsigned int DrawTextAt | ( | TextContext * | context, |
| short | x, | ||
| short | y, | ||
| const char * | text, | ||
| unsigned char | alignment ) |
Definition at line 239 of file disk.c.
References TextContext::alignment, DIBslam(), DrawTextAt(), DrawTextString(), Viewport::pixels, SetTextContext(), SetTextCursor(), stScreenView, TextContext::text, and TextContext::viewport.
Referenced by DrawHudMessageSlot(), DrawTextAt(), print_message_text(), show_communications_disp(), show_damage_disp(), show_info_disp(), show_navigation_disp(), show_target_disp(), show_weapon_disp(), and UpdateDamageDisplay().
| void __stdcall DrawTextCharacter | ( | char | character | ) |
Definition at line 313 of file mathfp.c.
References TextContext::cursorX, TextContext::cursorY, DrawFontGlyph(), DrawTextCharacter(), TextContext::font, Viewport::left, pCurTextContext, and TextContext::viewport.
Referenced by DrawFormattedText(), DrawTextCharacter(), DrawTextString(), and PlaySfxWaveFileByNumber().
| void DrawTextInputCursor | ( | char | character | ) |
Definition at line 276 of file trainsim.c.
References TextContext::backgroundColour, TextContext::colour, TextContext::cursorX, DrawFormattedText(), DrawTextInputCursor(), and pCurTextContext.
Referenced by DrawTextInputCursor(), init_3Space_objects(), and ReadTextInput().
| void __stdcall DrawTextString | ( | const char * | text | ) |
Definition at line 232 of file mathfp.c.
References TextContext::alignment, ClearDebugPauseFlags(), TextContext::cursorX, TextContext::cursorY, DrawTextCharacter(), DrawTextString(), TextContext::font, Viewport::left, pCurTextContext, PumpMessagesDuringWait(), ShapeFrame::right, Viewport::right, SystemDebugPrintf(), and TextContext::viewport.
Referenced by DrawNavTextLine(), DrawTextAt(), DrawTextString(), FormatTextTokens(), PlaySfxWaveFileByNumber(), and PromptInsertNumberedDisk().
| void DrawTitleLogo | ( | short | distance, |
| short | y ) |
Definition at line 78 of file title.c.
References DrawSpriteScaled(), DrawTitleLogo(), GetTransformedShapeBounds(), ShortRect::left, nScreenWidth, pTitleShape, ShortRect::right, and stSpaceBufferViewport.
Referenced by DrawTitleLogo(), and Title_Sequence().
| void DrawViewportBorder | ( | Viewport * | viewport, |
| short | left, | ||
| short | top, | ||
| short | right, | ||
| short | bottom, | ||
| short | colour ) |
Definition at line 1052 of file gr.c.
References ShapeFrame::bottom, ClipViewportToScreen(), DrawClippedLine(), DrawViewportBorder(), ShapeFrame::left, Viewport::left, ShapeFrame::right, stRasterClip, ShapeFrame::top, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_target_box(), DrawNavSquareOutline(), DrawViewportBorder(), InitializeModalTextPanel(), and PromptInsertNumberedDisk().
| void DrawViewportEllipse | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1075 of file gr.c.
References ClipViewportToScreen(), DIBslam(), DrawRasterEllipse(), DrawViewportEllipse(), Viewport::pixels, stRasterClip, and stScreenView.
Referenced by CollectRasterClipColours(), DrawNavRectangleMarker(), and DrawViewportEllipse().
| void DrawViewportEllipseShadow | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1099 of file gr.c.
References ClipViewportToScreen(), DIBslam(), DrawRasterEllipse(), DrawViewportEllipseShadow(), Viewport::pixels, stRasterClip, and stScreenView.
Referenced by CollectRasterClipColours(), DrawNavRectangleMarker(), and DrawViewportEllipseShadow().
Definition at line 995 of file gr.c.
References ClipViewportToScreen(), DrawClippedLine(), DrawViewportLine(), Viewport::left, stRasterClip, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_target_box(), DrawNavCrossMarker(), DrawNavTriangleOutline(), DrawViewportLine(), show_damage_disp(), show_weapon_disp(), and UpdateDamageDisplay().
Definition at line 976 of file gr.c.
References ClipViewportToScreen(), DrawViewportPixel(), Viewport::left, SetRasterClipPixel(), stRasterClip, and Viewport::top.
Referenced by BuildMap(), clear_head_up_display(), CollectRasterClipColours(), draw_3d_scanner(), DrawNavPlayerMarker(), DrawNavSquareMarker(), and DrawViewportPixel().
| void DrawViewportPolygonHook | ( | Viewport * | viewport, |
| const ShortPoint * | points, | ||
| int | count, | ||
| int | colour ) |
Definition at line 1006 of file gr.c.
References DrawViewportPolygonHook(), and void().
Referenced by CollectRasterClipColours(), DrawViewportPolygonHook(), and triangle().
| int drop_mine | ( | short | obj, |
| signed char | weapon, | ||
| enum ObjectType | type, | ||
| short | lifetime ) |
Definition at line 1951 of file ship.c.
References acObjCollisionGraceTicks, aShipWeaponsTable, asObjectCounterArray, child_object(), copy_frame(), drop_mine(), ShipWeaponSlot::hardpoint, new_object(), remove_weapon(), and RemovePlayerReleaseWeapon().
Referenced by drop_mine(), drop_player_mine(), fire(), and fire_weapon().
| int drop_player_mine | ( | short | obj | ) |
Definition at line 109 of file targ.c.
References aObjectTypeData, aShipWeaponsTable, drop_mine(), drop_player_mine(), and OBJECT_CLASS_MINE.
Referenced by drop_player_mine(), HandleSpaceFlightControls(), and init_3Space_objects().
| unsigned int dump_buffer_to_screen | ( | void | ) |
Definition at line 383 of file main.c.
References bCockpitlessView, BlitViewportScanlineRuns(), Viewport::bottom, CopyViewportContents(), cScreenViewMode, dump_buffer_to_screen(), pScreenViewGeometry, ShowMemoryStatusDebug(), stScreenView, stSpaceBufferViewport, and Viewport::top.
Referenced by death_sequence(), dump_buffer_to_screen(), ejection_sequence(), init_3Space_objects(), LaunchPlayerShip(), RenderSpaceViewFrame(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowOnScreenMessage(), ShowTigerClawEscapeScene(), ShowVictoryScreen(), stranded_sequence(), and Title_Sequence().
| short easy2see | ( | short | obj | ) |
Definition at line 83 of file winmain.c.
References apObjShapeArray, asObjectFlipArray, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, easy2see(), GetTransformedShapeBounds(), nCurrentViewCenterPosX, nCurrentViewCenterPosY, and stSpaceBufferViewport.
Referenced by easy2see(), and object_collision().
| unsigned int ejection_sequence | ( | void | ) |
Definition at line 32 of file eject.c.
References AddFixedVectors(), AllocateTaggedMemory(), alter_pitch(), aObjectTypeData, asEjectionPrimaryFrames, asEjectionSecondaryFrames, asEjectionViewScript, aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, aShipVelocity, asObjectCounterArray, bEscapePressedFlag, bScriptedView, cBlackColour, cCockpitLogicalFile, ClearViewport(), copy_frame(), DIBslam(), DIBslamReal(), DrawSpriteDefault(), dump_buffer_to_screen(), ejection_sequence(), Explosion(), EYE_OBJECT, FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), find_vacant_3d_object(), free_all_slots(), free_cockpit(), GetPacketSize(), GetScreenUpdateFlag(), initialize_scripted_view(), load_all_slots(), LoadPacketIntoBuffer(), MinShort(), negate_vector(), nEjectedPilotObject, new_view(), nFrameSkipCounter, nScriptedViewObject, OBJECT_TYPE_EJECTED_PILOT, pCurrentScreenViewportPkt, pDiskFileRecords, PlaySfxWaveFileByNumber(), PreloadMusicTrackHook(), PromptInsertNumberedDisk(), RefreshCockpitStatus(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReportOutOfMemoryAndExit(), RestoreGamePalette(), ScaleFixedVector(), set_objects_data(), SetMusBreakpt(), ObjectTypeData::shapeSet, spacetrack(), StopMusicUnlessSuppressed(), stScreenView, and stSpaceBufferViewport.
Referenced by ejection_sequence(), and GameFlow().
References EmitGIFDecodedPixel().
Referenced by EmitGIFDecodedPixel().
| void EmitRLEScanlineRun | ( | int | runType, |
| int | trailingCount, | ||
| int | sourceX ) |
References EmitRLEScanlineRun().
Referenced by EmitRLEScanlineRun().
Definition at line 107 of file cockpt.c.
References EmitTextString().
Referenced by EmitTextString(), and FormatTextTokens().
| unsigned int EMShutDown | ( | void | ) |
Definition at line 89 of file init.c.
References EMShutDown(), nEventManagerActive, and ShutdownEventManager().
Referenced by EMShutDown(), and LogMemoryUsage().
| unsigned int EMStartUp | ( | void | ) |
Definition at line 112 of file init.c.
References ConfigureEventManagerPointer(), EMStartUp(), exit_squadron(), get_player_input(), InitializeEventManager(), InitializeEventManagerResources(), LogMemoryUsage(), nMenuInputRepeatDelay, PromptInsertNumberedDisk(), RegisterEventManagerShutdown(), SetEventManagerPump(), MouseCursorState::shape, and stMouseCursorState.
Referenced by EMStartUp(), and LoadOriginFxDrivers().
Definition at line 700 of file music.c.
References EnableMusicForScene(), nWaitForMusicEnabled, and SetMusicOn().
Referenced by EnableMusicForScene(), and init_3Space_objects().
| 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 427 of file comm.c.
References clear_message_time(), EndCommMenu(), EndCommSessionWithWingman(), get_mode(), and pszPendingHudMessage.
Referenced by check_message(), EndCommMenu(), GetScreenUpdateFlag(), HandleSpaceFlightControls(), InflightComputer(), initialize_cockpit(), PlaySfxWaveFileByNumber(), SetHudTextColour(), and vdu_pop_all().
Definition at line 416 of file comm.c.
References apCommunicationPortraitShapesTable, EndCommSessionWithWingman(), FreeCommDisplayResources(), get_mode(), malf_noise(), nCommPortraitIndex, and pop_mode().
Referenced by EndCommMenu(), EndCommSessionWithWingman(), PlaySfxWaveFileByNumber(), and vid_transmit().
| void engage | ( | short | obj, |
| short | target, | ||
| enum ShipObjective | objective ) |
Definition at line 1306 of file logic.c.
References ace_greeting(), ace_status(), acShipRating, acShipTargetTable, aeShipObjectiveList, aiPilotLevel, engage(), and reset_objective().
Referenced by approach_and_engage(), close_behind(), defend_mission(), engage(), escort_mission(), formation_break(), formation_burst(), imperial_formation(), kilrathi_wingman(), rendezvous_mission(), and request().
Definition at line 311 of file barracks.c.
References CloseDataFile(), CreateEmptySaveGameFile(), EnsureSaveGameFile(), OpenDataFileOrDie(), and PromptInsertNumberedDisk().
Referenced by BarracksScreen(), and EnsureSaveGameFile().
Definition at line 550 of file eventmgr.c.
References EnterAllocationScope(), and nMouseCursorShowCount.
Referenced by BarracksScreen(), CentreMouseOnCurrentNavObjective(), ClearTextInputCharacter(), ConfirmAwakenAfterBadData(), ConfirmQuitWingCommander(), ConfirmReplaceFaultyData(), DosMemcpy(), EnterAllocationScope(), EraseLastTextInputCharacter(), HandleBarracksBunkSelection(), InflightComputer(), LoadGameFromSlot(), PollMenuInputDevices(), RecRoom(), SelectTrainSimMission(), ShowConfedNavScan(), Title_Sequence(), and WarnLoadGameFirst().
Definition at line 515 of file trainsim.c.
References PilotRecord::callsign, cCockpitLogicalFile, ClearViewport(), CampaignState::currentPilot, TextContext::cursorY, DrawSpriteDefault(), EnterPilotNameAndCallsign(), FetchDiskPacketRetrying(), InitializeTrainSimTextPanel(), PilotRecord::name, nOriginDevUnlock, PromptForPilotField(), ReleasePacketHandle(), ShowTrainSimTextMessage(), stCampaignState, stScreenView, and stTrainSimTxtContext.
Referenced by EnterPilotNameAndCallsign(), init_3Space_objects(), and UpdateTrainSimHighScores().
| int equ_vector | ( | const FixedVector * | left, |
| const FixedVector * | right ) |
Definition at line 267 of file geom.c.
References equ_vector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by auto_pilot_sequence(), cruise_home(), cruise_to_destination(), and equ_vector().
| void EraseCockpitReadoutAtPosition | ( | signed char | slot, |
| short | left, | ||
| short | top ) |
Definition at line 372 of file cockpt.c.
References aCockpitReadouts, cBlackColour, EraseCockpitReadoutAtPosition(), EraseCockpitReadoutRegion(), stScreenView, and CockpitReadout::y.
Referenced by EraseCockpitReadoutAtPosition().
| void EraseCockpitReadoutRegion | ( | Viewport * | viewport, |
| short | left, | ||
| short | top, | ||
| short | right, | ||
| short | bottom, | ||
| short | colour ) |
Definition at line 253 of file cockpt.c.
References Viewport::bottom, ClearViewport(), EraseCockpitReadoutRegion(), Viewport::left, Viewport::right, and Viewport::top.
Referenced by DrawCockpitReadout(), DrawTargetRangeReadout(), EraseCockpitReadoutAtPosition(), and EraseCockpitReadoutRegion().
Definition at line 619 of file disk.c.
References TextContext::backgroundColour, Viewport::bottom, ClearViewport(), TextContext::cursorX, TextContext::cursorY, DosStrlen(), EnterAllocationScope(), EraseLastTextInputCharacter(), TextContext::font, FontHeight(), GetFontCharWidth(), LeaveAllocationScope(), Viewport::left, MeasureTextPixelWidthClamped(), pCurTextContext, Viewport::right, TextContext::text, Viewport::top, and TextContext::viewport.
Referenced by EraseLastTextInputCharacter(), and ReadTextInput().
| unsigned short EraseTextContextBackground | ( | TextContext * | context | ) |
Definition at line 45 of file trainsim.c.
References TextContext::backgroundColour, cBlackColour, ClearViewport(), EraseTextContextBackground(), and TextContext::viewport.
Referenced by EraseTextContextBackground(), init_3Space_objects(), InitializeModalTextPanel(), InitializeTrainSimTextPanel(), SelectTrainSimMission(), and ShowTrainSimHighScores().
| void escort_buddy | ( | short | obj, |
| short | buddy ) |
Definition at line 580 of file brains.c.
References approach_ship_speed(), escort_buddy(), no_goal(), and point_parallel().
Referenced by escort_buddy(), and escort_mission().
| void escort_mission | ( | short | obj | ) |
Definition at line 588 of file brains.c.
References abShipTurnList, aeShipObjectiveList, anShipMissionShips, change_mission_type(), check_engage_target(), distance_from_object(), engage(), escort_buddy(), escort_mission(), fail(), find_ship_index(), in_danger(), maneuvering(), MISSION_TYPE_PATROL, nTargetShip, nTgtRange, 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 1234 of file cockpt.c.
References aeShipMissionType, escorting_a_ship(), MISSION_TYPE_ESCORT, someone_coming(), and void().
Referenced by escorting_a_ship(), and flag_reached().
| unsigned int EstablishingShot | ( | char * | text, |
| short | duration ) |
Definition at line 584 of file screens.c.
References aBriefingCharacters, AddPCName(), cBlackColour, CheckEscaped(), ClearViewport(), DIBslam(), DIBslamReal(), DrawBriefingCharacter(), DrawSpriteDefault(), EstablishingShot(), FetchDiskPacketRetrying(), FlushInputEvents(), FormatTextBufferFromStart(), nConvTextColorValue, pCurrentBriefingAnimShape, pCurrentConversationBackdropShapePtr, pSceneBriefingBodyShape, pSceneBriefingPortraitShape, RefreshMemoryStatusOverlay(), spacetrack(), stCurrentConvTextViewport, stSceneBuffer, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by DosMemcpy(), EstablishingShot(), and SceneDirector().
| short evaluate_damage | ( | short | obj | ) |
Definition at line 1366 of file logic.c.
References aasShipArmor, acShipDmg, aeObjectClass, aeObjectTypeList, aObjectTypeData, ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, ObjectTypeData::damageCapacity, evaluate_damage(), and OBJECT_CLASS_SHIP.
Referenced by approach_and_engage(), BuildCommunicationCommandMenu(), can_land(), check_destroy_target(), close_behind(), evaluate_damage(), handle_stress(), intelligence_events(), and reset_stress().
Definition at line 134 of file strdos.c.
References EventManagerControlHook().
Referenced by DosMemcpy(), and EventManagerControlHook().
Definition at line 120 of file strdos.c.
References EventManagerHook(), and void().
Referenced by BarracksScreen(), DosMemcpy(), EventManagerHook(), InflightComputer(), InitializeRoomViewports(), RecRoom(), SelectTrainSimMission(), and Title_Sequence().
| void exit_squadron | ( | const char * | msg | ) |
Definition at line 122 of file main.c.
References AbortToDesktop(), ClearDebugPauseFlags(), exit_squadron(), LogMemoryUsage(), SystemDebugPrintf(), and WriteDebugString().
Referenced by BarracksScreen(), CheckHeapBlockSignature(), CloseCommChoiceMenu(), DrawSpriteTransformed(), EMStartUp(), exit_squadron(), FatalErrorAndExit(), init_3Space_objects(), LoadOriginFxDrivers(), main(), MonoDebug_install(), MonoDebug_print(), PacketLoad(), PrepareShapeRLEData(), PushMemoryStackFrame(), RunAnimationDemoLoop(), Streamer_open(), and ValidateViewportBounds().
Definition at line 1199 of file eventmgr.c.
References ExitCleanupHook().
Referenced by DosMemcpy(), ExitCleanupHook(), and main().
| char * ExpandCommMessageTokens | ( | const char * | text | ) |
Definition at line 472 of file comm.c.
References apszPilotRankNames, PilotRecord::callsign, CampaignState::currentPilot, DosStrcat(), DosStrchr(), DosStrlen(), ExpandCommMessageTokens(), PilotRecord::name, PilotRecord::rank, stCampaignState, and szTxtWorkspaceBuffer.
Referenced by ExpandCommMessageTokens(), PlaySfxWaveFileByNumber(), and real_vid_transmit().
| unsigned int ExpandGIFLZWImage | ( | RasterClip * | clip, |
| const unsigned char * | gifData, | ||
| void * | workspace ) |
References ExpandGIFLZWImage().
Referenced by ExpandGIFLZWImage().
| int explode | ( | short | attacker, |
| short | victim ) |
Definition at line 1340 of file ship.c.
References ace_status(), acShipDmg, acShipRating, acShipStressList, aeObjectClass, aeSpecialManeuvers, analyze_kill(), bCurrentPlayerDestroyed, bPlayerVulnerable, explode(), Explosion(), MANEUVER_OUTA_HERE, nArcadeState, nExternalViewShip, OBJECT_CLASS_SHIP, RandomBelowOrEqual(), RATING_ACE_ANGEL, RATING_ACE_ICEMAN, reset_maneuver(), send_message(), SPECIAL_MANEUVER_UNKNOWN_9, the_creator(), and unflag_ace().
Referenced by abandoned(), advance_canned_sequence(), explode(), 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 1200 of file ship.c.
References acObjOwnersTable, acShipRating, aeObjectClass, aeObjectTypeList, aMissionShips, anShipMissionShips, aObjectTypeData, asObjectCounterArray, asObjectScreenXList, awObjectScales, Explosion(), explosion_shock_wave(), find_ship_index(), nCurrentWingmanKilledThisMission, nShipMissionIndices, nYourWingman, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, OBJECT_TYPE_EXPLOSION0, OBJECT_TYPE_EXPLOSION2, OBJECT_TYPE_TURRET, onboard_explosion(), personality_killed(), PlaySfxWaveFileByNumber(), RandomBelow(), RATING_ACE_ICEMAN, send_message(), set_objects_data(), set_special(), ShipExplosion(), SPECIAL_MANEUVER_UNKNOWN_9, and MissionShipRecord::state.
Referenced by death_sequence(), ejection_sequence(), explode(), Explosion(), and ShowGameOverScreen().
Definition at line 2563 of file cockpt.c.
References aaCockpitDamagePositions, anCockpitDamageState, cCockpitLogicalFile, cCurrentCockpitView, DrawSpriteDefault(), explosion_draw(), FetchDiskPacketRetrying(), FreePacketAndClear(), pCockpitPilotShape, and stScreenView.
Referenced by explosion_draw(), initialize_cockpit(), and place_damage_on_cockpit().
| int explosion_shock_wave | ( | short | obj, |
| short | blastDamage ) |
Definition at line 1292 of file ship.c.
References aeObjectClass, apply_force_to_objects_center(), aShipPositionsArray, asObjectCollisionRadius, ComputeVectorDelta(), explosion_shock_wave(), find_ratio(), FixedToShortSaturating(), inflict_damage(), MaxShort(), MinShort(), NormalizeFixedVector(), OBJECT_CLASS_SHIP, ScaleFixedVector(), the_creator(), and Vector_magnitude().
Referenced by Explosion(), explosion_shock_wave(), house_keep_objects(), and pop_flack().
| void extra_hazard | ( | short | obj | ) |
Definition at line 375 of file winmain.c.
References aeObjectClass, extra_hazard(), 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 716 of file geom.c.
References aShipFwdVec, aShipPositionsArray, ComputeVectorDelta(), dot_product(), facing_to_object(), nFacingToTargetValue, and NormalizeFixedVector().
Referenced by facing_to_object(), and imperial_formation().
| unsigned int FadeFlightPaletteEntry | ( | short * | entry | ) |
Definition at line 496 of file main.c.
References FadeFlightPaletteEntry().
Referenced by FadeFlightPaletteEntry(), house_keep(), and init_3Space_objects().
Definition at line 102 of file music.c.
References FadeMusic(), and SoundDebugPrintf().
Referenced by FadeMusic(), and init_3Space_objects().
| void FadeRasterPaletteToPalette | ( | RasterSurface * | surface, |
| const unsigned char * | targetPalette, | ||
| unsigned int | duration ) |
References FadeRasterPaletteToPalette().
Referenced by FadeRasterPaletteToPalette().
| void __stdcall FadeViewportPaletteToColour | ( | Viewport * | viewport, |
| unsigned short | colour, | ||
| short | enabled ) |
Definition at line 2213 of file main.c.
References abPaletteTripletsArray, AllocateTaggedMemory(), CollectActivePaletteIndices(), DIBslam(), DIBslamReal(), FadeViewportPaletteToColour(), GetPaletteEntry(), nVideoMode, ReleasePacketHandle(), SetWholePaletteFromTriplets(), StepPaletteTransition(), and void().
Referenced by death_sequence(), ejection_sequence(), FadeViewportPaletteToColour(), funeral_sequence(), init_3Space_objects(), ShowCampaignVictorySequence(), ShowMeanwhileTransition(), stranded_sequence(), and Title_Sequence().
| void fail | ( | short | obj | ) |
Definition at line 69 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 FatalErrorAndExit | ( | const char * | format, |
| ... ) |
Definition at line 237 of file cockpt.c.
References exit_squadron(), FatalErrorAndExit(), and ShutdownEventManager().
Referenced by FatalErrorAndExit(), ReportOutOfMemoryAndExit(), and ReportPacketLoadError().
| void * FetchDiskPacketRetrying | ( | short | logicalFile, |
| short | section, | ||
| short | flags ) |
Definition at line 126 of file disk.c.
References AllocateViewport(), cBlackColour, ClearInputKeyStatePreservingModifiers(), cPrimaryViewBufferColour, FetchDiskPacketRetrying(), free_viewport(), FreePacketAndClear(), GetFixedOneMillionThunkAlt(), GetPacketSize(), nPacketError, PacketLoad(), pDiskFileRecords, Viewport::pixels, PromptInsertNumberedDisk(), ReportPacketLoadError(), stSceneBuffer, and stSpaceBufferViewport.
Referenced by AwardCampaignMedal(), BarracksScreen(), BriefingMap_LoadShapes(), death_sequence(), DeBriefing(), Dismissed(), DrawBriefingLongShot(), DrawPendingCockpitDamage(), DrawPodiumShot(), ejection_sequence(), EnterPilotNameAndCallsign(), EstablishingShot(), explosion_draw(), FetchDiskPacketRetrying(), funeral_sequence(), get_right_shape(), InflightComputer(), init_constellation(), initialize_cockpit(), InitializeConstellationObject(), InitializeEventManagerResources(), InitializeTextContextFromFont(), landing(), LaunchPlayerShip(), load_ship(), LoadAnswerPromptAndResponse(), LoadBriefingData(), LoadBriefingRoom(), LoadCommDisplayResources(), LoadCommPortraitShape(), LoadFace(), LoadMissionData(), LoadPacketResourceList(), LoadSceneAnimationResources(), LoadShapeSet(), LoadTrainSimOpponentShape(), Office(), PlayScrambleHangarScene(), RecRoom(), ReturnToBriefingLongShot(), scramble(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowChalkBoard(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowMeanwhileTransition(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), ShowTrainSimHighScores(), ShowVictoryScreen(), stranded_sequence(), Title_Sequence(), and ViewMedals().
| void FF_missile_intelligence | ( | short | obj | ) |
Definition at line 1064 of file brains.c.
References acObjOwnersTable, acShipCommunicatorArray, acShipTargetTable, acViableTargetList, aeObjectClass, aeShipSide, aeShipTacticArray, anShipSpeed, asViableTgtDistList, cViableTargetCount, distance_from_object(), FF_missile_intelligence(), get_ship_max_velocity(), nTgtRange, OBJECT_CLASS_SHIP, point_ship(), sort_viable_target_list(), TACTIC_RAM, and vToTgt.
Referenced by FF_missile_intelligence(), and object_intelligence().
Definition at line 1862 of file main.c.
References FigureArcadeTime(), nArcadeTimeRemaining, and nArcadeWave.
Referenced by FigureArcadeTime(), init_3Space_objects(), RunTrainSim(), and set_up_next_wave().
| void FillFixedVectorWithRandomComponents | ( | short | limit, |
| FixedVector * | vector ) |
Definition at line 357 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 __stdcall FillGraphicSuffix | ( | char * | path, |
| short | number, | ||
| short | digits ) |
Definition at line 1363 of file eventmgr.c.
References ConvertChar_Int(), DosStrchr(), and FillGraphicSuffix().
Referenced by DosMemcpy(), FillGraphicSuffix(), and OpenDiskDataFile().
Definition at line 1869 of file screens.c.
References FillRasterBytes().
Referenced by DosMemcpy(), and FillRasterBytes().
| 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 1087 of file gr.c.
References ClipViewportToScreen(), DIBslam(), FillRasterEllipse(), FillViewportEllipse(), Viewport::pixels, stRasterClip, and stScreenView.
Referenced by CollectRasterClipColours(), and FillViewportEllipse().
| short find_child_object | ( | short | parent, |
| enum ObjectClass | objectClass ) |
Definition at line 1399 of file ship.c.
References acObjOwnersTable, aeObjectClass, find_child_object(), and SPACE_OBJECT_COUNT.
Referenced by find_child_object(), and fire().
| short find_child_ship | ( | short | parent, |
| enum ObjectClass | objectClass, | ||
| short | target ) |
Definition at line 1415 of file ship.c.
References acObjOwnersTable, acShipTargetTable, aeObjectClass, and find_child_ship().
Referenced by find_child_ship(), and fire().
| short find_next_gun | ( | short | obj, |
| enum ObjectType | currentGun ) |
Definition at line 22 of file select.c.
References aObjectTypeData, aShipWeaponsTable, find_next_gun(), OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, and ShipWeaponSlot::type.
Referenced by find_next_gun(), init_3Space_objects(), and select_new_gun().
| unsigned int find_next_ship_turn_slot | ( | short | obj | ) |
Definition at line 824 of file mission.c.
References acTurnIntervalArray, acTurnRegulatorsArray, aeObjectClass, aiPilotLevel, anPilotTurnInterval, find_next_ship_turn_slot(), and OBJECT_CLASS_SHIP.
Referenced by find_next_ship_turn_slot(), and init_ship().
| short find_objective | ( | int | type, |
| short | index ) |
Definition at line 26 of file targ.c.
References aMissionObjectivesArray, cMissionObjectiveCountValue, and find_objective().
Referenced by arrive_from_warp(), coming_home(), find_objective(), init_3Space_objects(), and RunSpaceFlight().
| short find_ratio | ( | short | inputMinimum, |
| short | inputMaximum, | ||
| short | input, | ||
| short | outputMinimum, | ||
| short | outputMaximum ) |
Definition at line 1352 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 439 of file logic.c.
References aeObjectClass, aeSpecialManeuvers, find_ship_index(), nLogicLastFoundShipValue, nShipMissionIndices, OBJECT_CLASS_FUTURION, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by check_destroy_target(), cleanup_objectives(), coming_home(), defend_mission(), escort_mission(), Explosion(), find_ship_index(), flag_reached(), get_follow_point(), hidden_objective(), init_ship(), locate_ship(), new_view(), rendezvous_mission(), set_formation_position(), Set_up_ship_info(), SetScale(), and strike_mission().
| short find_ships_sphere | ( | short | missionShip | ) |
Definition at line 1165 of file logic.c.
References ACTIVE_MISSION_NAV_POINT_COUNT, aMissionNavPoints, find_ships_sphere(), MissionNavPoint::missionShips, and MissionNavPoint::type.
Referenced by close_behind(), find_ships_sphere(), locate_ship(), and prepare_mission().
| unsigned int find_squad_center | ( | FixedVector * | center | ) |
Definition at line 610 of file logic.c.
References acFormationMemberLists, AddFixedVectors(), aShipPositionsArray, divide_vector(), find_squad_center(), and zero_vector().
Referenced by find_squad_center(), and init_formation_burst().
| short find_vacant_3d_object | ( | void | ) |
Definition at line 987 of file geom.c.
References aeObjectClass, asObjectScreenXList, find_vacant_3d_object(), and OBJECT_CLASS_NULL.
Referenced by animate_object(), Create_explosion_debris(), Create_ship_hit_debris(), CreateCannedSceneObject(), draw_nav_pointer(), ejection_sequence(), find_vacant_3d_object(), init_constellation(), make_hazard(), make_shard(), new_object(), onboard_explosion(), place_exhaust_on_ships(), ShipExplosion(), ShowTigerClawEscapeScene(), unwarp(), and warp().
| short find_weapon | ( | short | obj, |
| enum ObjectType | weaponType ) |
Definition at line 1888 of file ship.c.
References aShipWeaponsTable, find_weapon(), and ShipWeaponSlot::type.
Referenced by find_weapon(), and mine_available().
| ActiveSoundEntry * FindActiveSoundEntryBySample | ( | IxSample * | sample | ) |
Definition at line 165 of file sound.c.
References FindActiveSoundEntryBySample(), ActiveSoundEntry::next, pActiveSoundHead, IxSound::sample, and ActiveSoundEntry::sound.
Referenced by FindActiveSoundEntryBySample(), init_3Space_objects(), and StopSoundsUsingWave().
| char FindCdRomDriveByVolumeLabel | ( | const char * | label, |
| const char * | directory ) |
Definition at line 215 of file winsys.c.
References FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().
Referenced by FindCdRomDriveByVolumeLabel(), and LocateStreamsDirOnDisc().
| unsigned char * FindIFFChunkData | ( | const char * | chunkId, |
| const unsigned char * | iffData ) |
References FindIFFChunkData().
Referenced by FindIFFChunkData().
| int FindMenuRegionAtPoint | ( | short | x, |
| short | y, | ||
| const TitleMenuRegion * | regions ) |
Definition at line 274 of file killbrd.c.
References FindMenuRegionAtPoint(), TitleMenuRegion::frame, IsPointInRect(), and TitleMenuRegion::left.
Referenced by BarracksScreen(), CollectRasterClipColours(), FindMenuRegionAtPoint(), RecRoom(), SelectTrainSimMission(), and Title_Sequence().
| short FindNearestNavPoint | ( | short | ship | ) |
Definition at line 1967 of file main.c.
References ACTIVE_MISSION_NAV_POINT_COUNT, aMissionNavPoints, FindNearestNavPoint(), GetShipDistanceToNavPoint(), nCurrentNavigationPoint, MissionNavPoint::proximityRadius, and MissionNavPoint::type.
Referenced by abandoned(), FindNearestNavPoint(), init_3Space_objects(), and ReleaseStaleNavTarget().
| signed char *__stdcall FindSceneAnimationCommand | ( | signed char * | script, |
| signed char | command ) |
Definition at line 2094 of file logic.c.
References FindSceneAnimationCommand().
Referenced by FindSceneAnimationCommand(), init_3Space_objects(), and UpdateSceneAnimationObject().
| short FindTrainSimHighScore | ( | short | pilot | ) |
Definition at line 170 of file trainsim.c.
References aHighScoreEntriesArray, and FindTrainSimHighScore().
Referenced by AddRandomTrainSimHighScores(), FindTrainSimHighScore(), init_3Space_objects(), InsertTrainSimHighScore(), and UpdateTrainSimHighScores().
| WaveTableEntry * FindWaveTableEntryByName | ( | const char * | name | ) |
Definition at line 65 of file sound.c.
References FindWaveTableEntryByName(), WaveTableEntry::name, WaveTableEntry::next, and pWaveTableHead.
Referenced by FindWaveTableEntryByName(), init_3Space_objects(), playWAVE(), and StopSoundsUsingWave().
Definition at line 1194 of file eventmgr.c.
References FinishPacketDecompressionHook().
Referenced by DecompressPacketSection(), DosMemcpy(), and FinishPacketDecompressionHook().
| void fire | ( | short | obj, |
| short | target ) |
Definition at line 1445 of file ship.c.
References AddFixedVectors(), anShipSpeed, aObjectTypeData, aShipPositionsArray, aShipVelocity, aShipWeaponsTable, asObjectCounterArray, ComputeVectorDelta(), drop_mine(), find_child_object(), find_child_ship(), fire(), fire_weapon(), get_facing_range_from_object(), launch_object(), ObjectTypeData::lifetime, ObjectTypeData::maximumVelocity, nFacingToTargetValue, nTargetFacingValue, nTgtRange, OBJECT_CLASS_MINE, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_TYPE_DUMB_FIRE_MISSILE, OBJECT_TYPE_FF_MISSILE, OBJECT_TYPE_HEAT_SEEKING_MISSILE, OBJECT_TYPE_IMAGE_RECOGNITION_MISSILE, OBJECT_TYPE_LASER_CANNON, OBJECT_TYPE_MASS_DRIVER_CANNON, OBJECT_TYPE_NEUTRON_PARTICLE_GUN, OBJECT_TYPE_SPACE_MINE, OBJECT_TYPE_TURRET, ObjectTypeData::objectClass, RandomBelowOrEqual(), real_velocity(), ScaleFixedVector(), SPACE_OBJECT_COUNT, and vector_angle().
Referenced by fire(), fire_when_ready(), FireOnAlternateTurns(), Mkill_missile(), Msit_n_spin(), and tanker_intelligence().
| void fire_afterburner | ( | short | obj, |
| short | time ) |
Definition at line 1976 of file ship.c.
References aeSpecialManeuvers, aShipVelocity, asShipAfterburnerTimer, fire_afterburner(), get_ship_max_velocity(), set_special(), SPECIAL_MANEUVER_AFTERBURNER, and Vector_magnitude().
Referenced by cruise_home(), fire_afterburner(), goto_formation(), imperial_formation(), Mburnout(), Mbuzz_debris(), Mfish_hook(), Mget_distance(), Mkickit(), Mturn_n_kick(), Mveer_away(), prepare_for_jump(), prevent_collision(), run_away(), streak_toward(), and your_afterburner().
Definition at line 911 of file cockpt.c.
References Viewport::bottom, CaptureSpriteBackground(), cReleaseWeaponDisplayFrame, cReleaseWeaponDisplayState, cReleaseWeaponDisplayTicks, DrawSpriteDefault(), eReleaseWpnDisplayType, fire_computer_graphic_missile(), get_mode(), nCameraViewMode, OBJECT_TYPE_SPACE_MINE, pCockpitWeaponShapePtr, pReleaseWeaponDisplayBackground, RestoreSpriteBackground(), stLeftVdu, stReleaseWeaponDisplayPosition, Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by fire_computer_graphic_missile(), and update_cockpit().
| int fire_fixed_projectile_weapon | ( | short | obj | ) |
Definition at line 1935 of file ship.c.
References aObjectTypeData, aShipWeaponsTable, ShipWeaponSlot::disabled, fire_fixed_projectile_weapon(), fire_weapon(), OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, and ShipWeaponSlot::type.
Referenced by advance_canned_sequence(), fire_fixed_projectile_weapon(), and fire_players_lasers().
| int fire_flack | ( | short | owner, |
| short | explosion, | ||
| short | range, | ||
| FixedVector * | aim ) |
Definition at line 1604 of file ship.c.
References aObjectTypeData, asObjectCounterArray, fire_flack(), ObjectTypeData::maximumVelocity, MaxShort(), MinShort(), OBJECT_TYPE_TURRET, RandomBelowOrEqual(), send_at_point(), and set_objects_data().
Referenced by fire_flack(), and pop_flack().
| int fire_missile | ( | short | ship | ) |
Definition at line 1905 of file ship.c.
References aObjectTypeData, aShipWeaponsTable, cYellowColour, ShipWeaponSlot::disabled, fire_missile(), fire_weapon(), get_mode(), nTargetLockCountdown, OBJECT_CLASS_MISSILE, OBJECT_TYPE_HEAT_SEEKING_MISSILE, OBJECT_TYPE_IMAGE_RECOGNITION_MISSILE, ObjectTypeData::objectClass, ShowComponentHitHudMessage(), and ShipWeaponSlot::type.
Referenced by fire_missile(), HandleSpaceFlightControls(), Mram_missile(), and Mtarget_missile().
| unsigned int fire_players_lasers | ( | void | ) |
Definition at line 802 of file main.c.
References acShipTargetTable, asObjectCounterArray, asShipWpnEnergyList, fire_fixed_projectile_weapon(), fire_players_lasers(), get_mode(), and SelectCockpitVduMode().
Referenced by fire_players_lasers(), HandleSpaceFlightControls(), init_3Space_objects(), and player_input().
| unsigned int fire_super_brake | ( | short | ship | ) |
Definition at line 1992 of file ship.c.
References asShipAfterburnerTimer, fire_super_brake(), set_special(), and SPECIAL_MANEUVER_SUPER_BRAKE.
Referenced by fire_super_brake(), Mfish_hook(), and Mhard_break().
| int fire_turrets | ( | short | obj | ) |
Definition at line 1682 of file ship.c.
References acFormationMemberLists, acShipTargetTable, aShipPositionsArray, aShipWeaponsTable, asTargetListRangesArray, build_target_list(), fire_turrets(), fire_weapon(), ShipWeaponSlot::hardpoint, hemisphere(), OBJECT_TYPE_TURRET, pop_flack(), position_child(), RandomBelowOrEqual(), and ShipWeaponSlot::type.
Referenced by capital_ship_intelligence(), destroyer_intelligence(), fire_turrets(), and stationary_intelligence().
| int fire_weapon | ( | short | obj, |
| short | weapon ) |
Definition at line 1737 of file ship.c.
References acGunRefireDelay, acObjCollisionGraceTicks, acShipTargetTable, AddFixedVectors(), aeObjectTypeList, aeShipManeuversTable, aeShipTacticArray, aeSpecialManeuvers, ObjectTypeData::animationDelay, anShipSpeed, aObjectTypeData, aShipFwdVec, aShipPositionsArray, aShipUpVector, aShipVelocity, aShipWeaponsTable, asObjectCounterArray, asShipAccumulatedDmg, asShipWpnEnergyList, bCockpitlessView, cCurrentCockpitView, child_object(), ComputeVectorDelta(), copy_frame(), ObjectTypeData::damageCapacity, drop_mine(), fire_weapon(), get_ship_max_velocity(), initialize_ship(), ObjectTypeData::lifetime, MANEUVER_NONE, ObjectTypeData::maximumVelocity, new_object(), OBJECT_CLASS_MINE, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_TYPE_DUMB_FIRE_MISSILE, OBJECT_TYPE_FF_MISSILE, OBJECT_TYPE_HEAT_SEEKING_MISSILE, OBJECT_TYPE_IMAGE_RECOGNITION_MISSILE, OBJECT_TYPE_LASER_CANNON, OBJECT_TYPE_MASS_DRIVER_CANNON, OBJECT_TYPE_NEUTRON_PARTICLE_GUN, OBJECT_TYPE_TURRET, ObjectTypeData::objectClass, PlaySfxWaveFileByNumber(), point_at(), remove_weapon(), RemovePlayerReleaseWeapon(), ScaleFixedVector(), SPECIAL_MANEUVER_NONE, steady_object(), TACTIC_SIT_STILL, vector_component_in_dir(), and Vector_magnitude().
Referenced by fire(), fire_fixed_projectile_weapon(), fire_missile(), fire_turrets(), fire_weapon(), and Mdrop_a_mine().
| void fire_when_ready | ( | short | obj, |
| short | aimed ) |
Definition at line 956 of file logic.c.
References acShipTargetTable, aiPilotLevel, fire(), fire_when_ready(), nFacingToTargetValue, nYourWingman, ship_vs_ship(), and void().
Referenced by close_behind(), fire_when_ready(), Msit_n_fire(), Mstrafe_enemy(), and Mtail_fire().
| void fix_objects_ijk | ( | short | obj | ) |
Definition at line 596 of file geom.c.
References aShipFwdVec, aShipRightVector, aShipUpVector, fix_objects_ijk(), NormalizeFixedVector(), and vector_cross_product().
Referenced by alter_pitch(), alter_roll(), alter_yaw(), fix_objects_ijk(), make_shard(), new_view(), parse_view_script(), point_at(), set_eye_direction_and_position(), and ShowGameOverScreen().
| unsigned int fix_velocity | ( | short | obj | ) |
Definition at line 438 of file ship.c.
References anShipSpeed, aShipFwdVec, aShipVelocity, fix_velocity(), and ScaleFixedVector().
Referenced by arrive_from_warp(), fix_velocity(), and set_speed().
| short FixedToShortSaturating | ( | int | value | ) |
Definition at line 193 of file geom.c.
References FixedToShortSaturating().
Referenced by 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 1322 of file gr.c.
References DIBslam(), fizzle_fade(), Viewport::pixels, RasterLineHook(), stScreenView, and void().
Referenced by CollectRasterClipColours(), and fizzle_fade().
| void flag_ace | ( | short | ace, |
| unsigned char | bits ) |
Definition at line 127 of file logic.c.
References CampaignState::aceFlags, flag_ace(), and stCampaignState.
Referenced by ace_greeting(), flag_ace(), kill_ace(), and prepare_ace().
| void flag_objective | ( | short | objective, |
| unsigned char | flags ) |
Definition at line 1048 of file cockpt.c.
References aMissionObjectivesArray, flag_objective(), and MissionObjective::flags.
Referenced by arrive_from_warp(), check_sighting(), cleanup_objectives(), cruise_home(), flag_objective(), flag_reached(), and RunSpaceFlight().
| void flag_reached | ( | short | objective, |
| short | reached ) |
Definition at line 1249 of file cockpt.c.
References aeObjectTypeList, aMissionObjectivesArray, aMissionShips, anShipMissionShips, aObjectTypeData, cCurrentObjective, CockpitMessage(), cYellowColour, escorting_a_ship(), find_ship_index(), flag_objective(), flag_reached(), OBJECT_TYPE_TIGERS_CLAW, pszObjectiveStatusMessage, send_message(), set_next_destination(), and visited().
Referenced by check_visit(), cruise_to_destination(), and flag_reached().
| short flip_angle | ( | short | ship, |
| short | angle ) |
Definition at line 2000 of file ship.c.
References asObjectFlipArray, asObjScreenAngles, and flip_angle().
Referenced by flip_angle(), and place_exhaust_on_ships().
Definition at line 381 of file eventmgr.c.
References FlushInputEvents(), and ReleaseInputEventQueue().
Referenced by BarracksScreen(), CheckEscaped(), DosMemcpy(), EstablishingShot(), FlushInputEvents(), funeral_sequence(), HandleSpaceFlightControls(), PollMenuInputDevices(), RecRoom(), RunSpaceFlight(), SceneDirector(), ShowChalkBoard(), ShowOnScreenMessage(), ShowTrainSimHighScores(), Title_Sequence(), ViewMedals(), WaitForInputKey(), WaitForKeyAcknowledge(), WaitForKeyExceptXOrF12(), and WaitForSceneAdvance().
Definition at line 137 of file music.c.
References FlushSoundEffect(), SoundDebugPrintf(), and stop_all_sounds().
Referenced by FlushSoundEffect(), and init_3Space_objects().
Definition at line 144 of file music.c.
References FlushSoundEffects(), SoundDebugPrintf(), and stop_all_sounds().
Referenced by FlushSoundEffects(), FlushSoundEffectsAndLog(), init_3Space_objects(), ResetSoundState(), and scramble().
| void FlushSoundEffectsAndLog | ( | int | soundHandle, |
| short | fadeTicks ) |
Definition at line 714 of file music.c.
References FlushSoundEffects(), FlushSoundEffectsAndLog(), szSfxWavePath, and void().
Referenced by accelerate_and_move_object(), FlushSoundEffectsAndLog(), house_keep(), init_3Space_objects(), landing(), PlayScrambleHangarScene(), scramble(), ShowCarrierLaunchSequence(), TheEndFireWorks(), and update_lights().
| unsigned short __stdcall FontHeight | ( | const void * | p | ) |
Definition at line 178 of file mathfp.c.
References FontHeight().
Referenced by AnimateTrainSimTitle(), ClearTextInputCharacter(), EraseLastTextInputCharacter(), FontHeight(), InitializeDiskPromptTextContext(), PlaySfxWaveFileByNumber(), ReadTextInput(), and ShowTrainSimHighScores().
| unsigned int force_view | ( | int | view, |
| short | obj ) |
Definition at line 464 of file spc.c.
References force_view(), nCameraViewMode, and new_view().
Referenced by auto_pilot_sequence(), force_view(), HandleSpaceFlightControls(), InflightComputer(), LaunchPlayerShip(), parse_view_script(), ShowGetReadyScreen(), stranded_sequence(), and visit_the_cinema().
| void ForceStreamerTrigger | ( | int | trigger | ) |
Definition at line 1452 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ForceStreamerTrigger(), ix_streamer_force_trigger(), SoundDebugPrintf(), and Streamer_play().
Referenced by CollectRasterClipColours(), ForceStreamerTrigger(), ProcessMusicScriptCommand(), and Streamer_trigger().
| void formation_break | ( | short | obj | ) |
Definition at line 277 of file brains.c.
References acShipSequence, acShipTargetTable, anPitchGoal, anRollGoal, anYawTarget, engage(), formation_break(), no_goal(), OBJECTIVE_ENGAGE_ENEMY, and steady_object().
Referenced by formation_break(), and imperial_wingman().
| void formation_burst | ( | short | obj | ) |
Definition at line 180 of file brains.c.
References acShipTargetTable, aeShipMissionType, approach_full_speed(), aShipDestinationsArray, asShipTotal, engage(), formation_burst(), MISSION_TYPE_STRIKE, no_goal(), 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 621 of file nav.c.
References FormatNavCoordinates(), and SplitGameClockTicks().
Referenced by FormatNavCoordinates(), and InflightComputer().
| void FormatTextBufferFromStart | ( | const char * | format, |
| ... ) |
Definition at line 211 of file cockpt.c.
References AppendTextCharacter(), DIBslam(), FormatTextBufferFromStart(), FormatTextTokens(), pCurTextContext, Viewport::pixels, stScreenView, TextContext::text, TextContext::textCursor, and TextContext::viewport.
Referenced by CloseLook(), DebriefingEstablishingShot(), Dismissed(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawModalTextPanel(), DrawRoomMenuLabel(), EstablishingShot(), FormatTextBufferFromStart(), funeral_sequence(), funeral_wingman(), landing(), LongTalk(), MedalEstablish(), PinMedal(), PlaySceneAnimation(), PromptInsertNumberedDisk(), ReturnToBriefingLongShot(), SelectTrainSimMission(), ShowCampaignVictorySequence(), ShowChalkBoard(), ShowTigerClawEscapeScene(), ShowTrainSimHighScores(), ShowTrainSimTextMessage(), UpdateArcadeScoreDisplay(), UpdateMap(), and ViewMedals().
Definition at line 116 of file cockpt.c.
References TextContext::alignment, TextContext::backgroundColour, TextContext::colour, TextContext::cursorX, TextContext::cursorY, DrawTextString(), EmitTextString(), FormatTextTokens(), pCurTextContext, and TextContext::text.
Referenced by AppendFormattedText(), DrawFormattedText(), DrawNavTextLine(), FormatTextBufferFromStart(), and FormatTextTokens().
| void FrameStartHook | ( | int | mode | ) |
Definition at line 444 of file screen.c.
References FrameStartHook(), and TimerResetHook().
Referenced by FrameStartHook(), GameFlow(), main(), and PlaySfxWaveFileByNumber().
| void CALLBACK FrameTimerCallback | ( | UINT | timerId, |
| UINT | message, | ||
| DWORD | user, | ||
| DWORD | first, | ||
| DWORD | second ) |
Definition at line 29 of file timer.c.
References bFrameTickPendingFlag, FrameTimerCallback(), and void().
Referenced by FrameTimerCallback(), init_3Space_objects(), and SetMultimediaTimerCallback().
| unsigned int free_3Space | ( | void | ) |
Definition at line 1975 of file logic.c.
References b3SpaceObjectsActive, bViewBufferEnabled, free_3Space(), free_3Space_objects(), free_constellation(), GetScreenUpdateFlag(), remove_all_3d_objects(), and remove_all_hazards().
Referenced by free_3Space(), GameFlow(), init_3Space_objects(), RunAnimationDemoLoop(), RunTrainSim(), ShowCampaignVictorySequence(), ShowTigerClawEscapeScene(), and Title_Sequence().
| unsigned int free_3Space_objects | ( | void | ) |
Definition at line 1990 of file logic.c.
References aCommon3SpaceResources, aMissionResourceDescriptors, ObjectTypeData::animation, aObjectTypeData, free_3Space_objects(), free_ship(), FreeShapeSet(), OBJECT_TYPE_DEBRIS_GLASS, OBJECT_TYPE_DEBRIS_METAL_SHEET, OBJECT_TYPE_DEBRIS_O_RING, OBJECT_TYPE_DEBRIS_PIPE, OBJECT_TYPE_DEBRIS_SHIP_GIRDER_CHUNK, OBJECT_TYPE_DEBRIS_SHIP_TUBING, OBJECT_TYPE_DEBRIS_WING, OBJECT_TYPE_DUMB_FIRE_MISSILE, OBJECT_TYPE_FF_MISSILE, OBJECT_TYPE_IMAGE_RECOGNITION_MISSILE, and ObjectTypeData::shapeSet.
Referenced by free_3Space(), free_3Space_objects(), and init_3Space_objects().
| int free_all_slots | ( | void | ) |
Definition at line 397 of file mission.c.
References aObjectResourceSlotsArray, free_all_slots(), free_ship(), GetScreenUpdateFlag(), initialize_view_buffer(), and release_all_capital_ship_shapes().
Referenced by death_sequence(), ejection_sequence(), free_all_slots(), GameFlow(), RunTrainSim(), ShowCampaignVictorySequence(), ShowTigerClawEscapeScene(), stranded_sequence(), and Title_Sequence().
| unsigned int free_cockpit | ( | void | ) |
Definition at line 1876 of file logic.c.
References aCockpitPrimaryResources, aCockpitSecondaryResources, bCockpitResourcesActive, cCockpitLogicalFile, cCurrentCockpitView, free_cockpit(), free_viewport(), FreeCommDisplayResources(), FreePacketAndClear(), FreeShapeSet(), GetScreenUpdateFlag(), pCockpitExplosionBackground, pCockpitPilotShape, pCurrentPilotHandShapePtr, pCurrentScreenViewportPkt, pDamageDisplayBackground, pRadarMarkerBackground, pReleaseWeaponDisplayBackground, ReleasePacketHandle(), ReleaseTextFont(), stPilotHandBackdropView, and stPilotHandComposite.
Referenced by close_behind(), death_sequence(), ejection_sequence(), free_cockpit(), GameFlow(), InitializeCockpitResources(), RunTrainSim(), and stranded_sequence().
| unsigned int free_constellation | ( | void | ) |
Definition at line 1697 of file logic.c.
References asConstellationObjectIndices, free_constellation(), FreeConstellationObject(), FreePacketAndClear(), and pCurrentConstellationShape.
Referenced by close_behind(), free_3Space(), free_constellation(), funeral_sequence(), RecRoom(), RunAnimationDemoLoop(), and SceneDirector().
| unsigned int free_inflight_music | ( | void | ) |
Definition at line 2024 of file logic.c.
References abAudioPlaybackSlots, free_inflight_music(), nInFlightMusicActive, nInFlightMusicSlotA, nInFlightMusicSlotB, and StopMusicUnlessSuppressed().
Referenced by free_inflight_music(), funeral_sequence(), init_3Space_objects(), and RunSpaceFlight().
| void free_pilot_talk | ( | short | personality | ) |
Definition at line 582 of file mission.c.
References aapszPilotSpeeches, apCommunicationPortraitShapesTable, free_pilot_talk(), and FreePacketAndClear().
Referenced by free_pilot_talk(), FreeAllPilotTalk(), and get_pilot_talk().
| int free_ship | ( | short | slot | ) |
Definition at line 330 of file mission.c.
References aapPacketReferences, aeObjectClass, aeObjectTypeList, ObjectTypeData::animation, aObjectResourceSlotsArray, aObjectTypeData, apObjShapeArray, bCurrentExpandedMemoryAvail, free_ship(), FreePacketAndClear(), OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_TYPE_ASTEROID1, OBJECT_TYPE_ASTEROID2, OBJECT_TYPE_ASTEROID3, OBJECT_TYPE_ASTEROID4, OBJECT_TYPE_ASTEROID5, OBJECT_TYPE_ASTEROID6, OBJECT_TYPE_ASTEROID_FIELD, OBJECT_TYPE_MINE_FIELD, OBJECT_TYPE_ROCK_CHUNK, release_capital_ship_shapes(), remove_object(), ObjectTypeData::shape, ObjectTypeData::shapeSet, and SPACE_LAST_MOVING_OBJECT.
Referenced by free_3Space_objects(), free_all_slots(), free_ship(), new_sphere_shapes(), and ShowCarrierLaunchSequence().
Definition at line 420 of file gameflow.c.
References Viewport::allocation, apViewportAllocations, free_viewport(), nFreeViewCallsValue, nVideoMode, nViewAllocTotal, Viewport::pixels, ReleasePacketHandle(), Viewport::rowOffsets, stSceneBuffer, and stScreenView.
Referenced by BarracksScreen(), BriefingMap_DisplayMap(), FetchDiskPacketRetrying(), free_cockpit(), free_viewport(), GetScreenUpdateFlag(), InflightComputer(), PromptInsertNumberedDisk(), RecRoom(), ResetScreenClipToFullHeight(), RestoreModalTextPanel(), and ShowTrainSimHighScores().
| void FreeBarracksMenuLabel | ( | char ** | label | ) |
Definition at line 351 of file barracks.c.
References apszSaveCampaignMenuLabels, FreeBarracksMenuLabel(), and ReleasePacketHandle().
Referenced by FreeBarracksMenuLabel(), FreeBarracksMenuLabels(), and SetAwakenBarracksMenuLabel().
Definition at line 374 of file barracks.c.
References apszBarracksMenuLabels, apszSaveCampaignMenuLabels, RoomMenu::currentLabel, FreeBarracksMenuLabel(), FreeBarracksMenuLabels(), and stCurrentRoomMenu.
Referenced by BarracksScreen(), FreeBarracksMenuLabels(), and GetBunkInfo().
Definition at line 403 of file comm.c.
References apCommunicationPortraitShapesTable, FreeCommDisplayResources(), FreePacketAndClear(), nCommPortraitIndex, nCommSpeakerObject, nCommSpeakerRating, pCommStaticShape, pConfedCommBackground, and pKilrathiCommBackground.
Referenced by EndCommSessionWithWingman(), free_cockpit(), FreeCommDisplayResources(), and PlaySfxWaveFileByNumber().
| unsigned int FreeConstellationObject | ( | short | object | ) |
Definition at line 1657 of file logic.c.
References apObjShapeArray, FreeConstellationObject(), FreePacketAndClear(), and remove_object().
Referenced by close_behind(), free_constellation(), and FreeConstellationObject().
| void FreeFontWorkspace | ( | FontWorkspace ** | workspace | ) |
Definition at line 174 of file winsys.c.
References FreeFontWorkspace().
Referenced by FreeFontWorkspace(), and ReleaseTextFont().
Definition at line 1147 of file winmain.c.
References GuardedAllocation::block, FreeGuardedAllocation(), GuardedAllocation::next, nGuardedAllocationBytes, pGuardedAllocationHead, pGuardedAllocationTail, ReportHeapGuardCorruption(), and GuardedAllocation::size.
Referenced by FreeGuardedAllocation(), and ReleasePacketHandle().
Definition at line 1147 of file eventmgr.c.
References FreeIfNotNull().
Referenced by DosMemcpy(), FreeIfNotNull(), InitializeNearHeap(), and ShutdownNearHeap().
Definition at line 37 of file mathutil.c.
References FreePacketAndClear(), and ReleasePacketHandle().
Referenced by AwardCampaignMedal(), cockpit_explosion(), death_sequence(), Dismissed(), DrawPendingCockpitDamage(), DrawPodiumShot(), explosion_draw(), FetchDiskPacketRetrying(), free_cockpit(), free_constellation(), free_pilot_talk(), free_ship(), FreeCommDisplayResources(), FreeConstellationObject(), FreePacketAndClear(), FreeShapeSet(), FreeTalker(), funeral_sequence(), load_ship(), LoadAnswerPromptAndResponse(), LoadBriefingRoom(), LoadFace(), RecRoom(), release_all_capital_ship_shapes(), release_capital_ship_shapes(), remove_object(), set_up_action_sphere(), ShipExplosion(), ShowMeanwhileTransition(), stranded_sequence(), Title_Sequence(), and ViewMedals().
| int FreeShapeSet | ( | PacketResourceDescriptor * | resources, |
| unsigned short | releaseFlags ) |
Definition at line 1417 of file logic.c.
References FreePacketAndClear(), FreeShapeSet(), and PacketResourceDescriptor::resource.
Referenced by close_behind(), free_3Space_objects(), free_cockpit(), FreeShapeSet(), and Title_Sequence().
| unsigned int FreeTalker | ( | void | ) |
Definition at line 1202 of file screens.c.
References FreePacketAndClear(), FreeTalker(), pConvOverlayShapePtr, pFaceAnimationCmds, pSceneMouthAnimCmds, and pTalkHeadShape.
Referenced by DosMemcpy(), FreeTalker(), and SceneDirector().
Definition at line 106 of file sound.c.
References FreeWaveTable(), WaveTableEntry::name, WaveTableEntry::next, pWaveTableHead, and pWaveTableTail.
Referenced by FreeWaveTable(), init_3Space_objects(), ServiceAudioStream(), and stop_all_sounds().
| int FullMissionScore | ( | void | ) |
Definition at line 105 of file gameflow.c.
References CampaignState::currentMission, CampaignState::currentSeries, FullMissionScore(), pMissionCampaignInfo, and stCampaignState.
Referenced by DeBriefing(), FullMissionScore(), ParseTests(), and UpdateSeries().
| unsigned int funeral_player | ( | void | ) |
Definition at line 944 of file cutscene.c.
References aFuneralParticlesArray, bFuneralShowTheEnd, DIBslam(), DIBslamReal(), DrawConstellationField(), DrawSpriteDefault(), DrawSpriteScaled(), funeral_player(), nCutsceneFuneralBasePosY, nCutsceneFuneralBaseX, nCutsceneFuneralGuardFrame, nFrameSkip, nFrameSkipCounter, nFuneralCasketPositionX, nFuneralCasketPosY, nFuneralMainDist, nFuneralParticleDistance, nFuneralParticleScale, nFuneralRifleFrame, nSceneFuneralMainScale, pCurrentConversationSpecialShape, print_subtitle(), RefreshMemoryStatusOverlay(), stCutsceneFuneralForeground, stSceneBuffer, Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by funeral_player(), funeral_sequence(), and funeral_wingman().
| unsigned int funeral_sequence | ( | int | playerFuneral | ) |
Definition at line 1049 of file cutscene.c.
References aFuneralParticleOrigins, aFuneralParticlesArray, asCampaignBriefingFiles, asFuneralSceneBySeries, bEscapePressedFlag, bFuneralShowTheEnd, cBlackColour, cBlueColour, ClearInputKeyStatePreservingModifiers(), ClearViewport(), cPrimaryViewBufferColour, CampaignState::currentSeries, FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), FlushInputEvents(), FormatTextBufferFromStart(), free_constellation(), free_inflight_music(), FreePacketAndClear(), funeral_player(), funeral_sequence(), GetMusicMode(), init_constellation(), InitializeConstellationField(), InitializeConversationText(), InitializeConversationViewport(), nCampaignDataSet, nCutsceneFuneralBasePosY, nCutsceneFuneralBaseX, nCutsceneFuneralGuardFrame, nFrameSkipCounter, nFuneralCasketPositionX, nFuneralCasketPosY, nFuneralMainDist, nFuneralParticleDistance, nFuneralRifleFrame, nFuneralSequenceActive, nMusicPlaybackMode, nWaitForMusicEnabled, pCurrentConversationSpecialShape, pIntroFont, PlaySfxWaveFileByNumber(), PreloadMusicTrackHook(), PumpWindowMessages(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ResetScreenClipToFullHeight(), RestoreGamePalette(), SceneDirector(), SetMusBreakpt(), spacetrack(), stCampaignState, stCurrentConvTextViewport, stCutsceneFuneralForeground, StopMusicUnlessSuppressed(), stSceneBuffer, stScreenView, ShortPoint::x, and ShortPoint::y.
Referenced by funeral_sequence(), GameFlow(), and RunAnimationDemoLoop().
| unsigned int funeral_wingman | ( | char * | text, |
| short | duration ) |
Definition at line 1015 of file cutscene.c.
References AddPCName(), bEscapePressedFlag, cBlackColour, CheckEscaped(), ClearViewport(), FormatTextBufferFromStart(), funeral_player(), funeral_wingman(), IsFrameTickElapsed(), nConvTextColorValue, nFrameSkipCounter, PumpWindowMessages(), SetFrameTimerPeriodDirect(), stCurrentConvTextViewport, and szTxtWorkspaceBuffer.
Referenced by funeral_wingman(), and SceneDirector().
| void futurion_intelligence | ( | short | obj | ) |
Definition at line 979 of file brains.c.
References aeObjectClass, asActionCounts, asObjectCounterArray, futurion_intelligence(), nFacingToTargetValue, nTgtRange, and ship_vs_ship().
Referenced by futurion_intelligence(), object_intelligence(), and update_objects_in_space().
Definition at line 23 of file install.c.
References FxDriverShutdownHook().
Referenced by FxDriverShutdownHook(), init_3Space_objects(), and LoadOriginFxDrivers().
| short GameFlow | ( | void | ) |
Definition at line 244 of file gameflow.c.
References AddRandomTrainSimHighScores(), aMissionShips, AwardCampaignMedal(), BarracksScreen(), bCampaignActive, bCampaignStartupMode, bKeyEventQueueEnabled, bOfficeVisitPending, bPanRoomTransition, bPlayerEjectedThisMission, bPlayerShipTypeChanged, bPromotionPending, Briefing(), bSeriesFailed, calculate_damage_level(), CampaignState::campaignIndex, check_stranded(), CampaignState::currentMission, CampaignState::currentPilot, CampaignState::currentSeries, death_sequence(), DeBriefing(), ejection_sequence(), CampaignState::elapsedDate, FrameStartHook(), free_3Space(), free_all_slots(), free_cockpit(), funeral_sequence(), GameFlow(), init_mission(), landing(), LaunchPlayerShip(), MaxShort(), MoveNewCampaign(), nArcadeState, nCampaignDataSet, nCurrentWingmanKilledThisMission, nDebriefingPersonality, nPendingMedalIndex, nPlayerCollisionObject, nPostSeriesSequence, nQueuedCampaignIndex, Office(), MissionHeaderDisk::playerMissionShip, CampaignState::playerShipType, PlayScrambleHangarScene(), pMissionCampaignInfo, PostMission(), CampaignState::promotionScore, PumpWindowMessages(), RandomInRange(), PilotRecord::rank, RecRoom(), RunSpaceFlight(), RunTrainSim(), scramble(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowMeanwhileTransition(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), stCampaignState, stCurrentMissionHeader, stranded_sequence(), MissionShipRecord::type, UpdateSeries(), and CampaignDate::year.
Referenced by GameFlow(), and main().
Definition at line 552 of file music.c.
References any_enemy_tail(), calculate_damage_level(), changetrack(), gametrack(), is_ship_tailing_player_target(), missile_on_tail(), nCombatMusicActive, nCurrentMusicTrack, nCurrentSpaceFrameValue, nInFlightMusicActive, nInitialFlightMusicPending, nMusicStreamSet, nMusicTrackComplete, nTrainSimActive, report_kilrathi_rout(), SoundDebugPrintf(), and spacetrack().
Referenced by gametrack(), init_3Space_objects(), and servicetrack().
| void general_zig | ( | short | ship, |
| short | target, | ||
| short | pitch ) |
Definition at line 800 of file fl.c.
References acShipSequence, advance(), anPitchGoal, anYawTarget, approach_full_speed(), asShipTotal, general_zig(), maneuver_complete(), no_goal(), and void().
Referenced by general_zig(), Mzig_zag(), and Mzig_zag_pitch().
| unsigned int generate_stars | ( | void | ) |
Definition at line 696 of file spc.c.
References aeObjectClass, aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, asObjectViewFrames, copy_frame(), EYE_OBJECT, generate_stars(), nCurrentStarFieldJRotationValue, nStarFieldIRotValue, 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(), set_eye_direction_and_position(), and ShowGameOverScreen().
| short get_color | ( | short | object, |
| unsigned short * | colour ) |
Definition at line 1510 of file cockpt.c.
References acShipTargetTable, aeObjectClass, aeObjectTypeList, aeShipSide, cBlueColour, cDarkGreyColour, cOrangeColour, cPrimaryTextColour, cRedColour, cViewportClearColour, cYellowColour, get_color(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, OBJECT_TYPE_TIGERS_CLAW, SIDE_IMPERIAL, and SIDE_KILRATHI.
Referenced by draw_3d_scanner(), and get_color().
| short get_face | ( | short | rating, |
| unsigned int | side ) |
Definition at line 62 of file comm.c.
References get_face(), and SIDE_KILRATHI.
Referenced by get_face(), init_personalities(), PlaySfxWaveFileByNumber(), and real_vid_transmit().
| void get_facing_range_from_object | ( | short | obj, |
| short | other ) |
Definition at line 691 of file geom.c.
References aShipFwdVec, aShipPositionsArray, asObjectCollisionRadius, dot_product(), get_facing_range_from_object(), get_facing_range_from_point(), negate_vector(), nTargetFacingValue, nTgtRange, and vNormalizedToTarget.
Referenced by cruise_to_destination(), FindEnemyAimingWithinRange(), fire(), get_facing_range_from_object(), heat_seeking_missile_intelligence(), house_keep_objects(), object_intelligence(), prepare_for_jump(), scan_for_enemy(), ship_vs_ship(), and target_locking().
| void get_facing_range_from_point | ( | short | obj, |
| const FixedVector * | point ) |
Definition at line 676 of file geom.c.
References aShipFwdVec, asObjectCollisionRadius, distance_from_point(), dot_product(), get_facing_range_from_point(), nFacingToTargetValue, NormalizeFixedVector(), nTgtRange, vNormalizedToTarget, and vToTgt.
Referenced by chase_location(), get_facing_range_from_object(), get_facing_range_from_point(), goto_formation(), and ship_vs_point().
| unsigned int get_first_follow_point | ( | short | obj, |
| FixedVector * | point ) |
Definition at line 1260 of file logic.c.
References abShipNavPtIdx, aeShipSide, cCurrentNavPtIdx, get_first_follow_point(), get_follow_point(), and SIDE_IMPERIAL.
Referenced by close_behind(), coming_home(), get_first_follow_point(), and reach_warp().
| unsigned int get_follow_point | ( | short | obj, |
| FixedVector * | point ) |
Definition at line 1224 of file logic.c.
References abFlightPathList, abShipNavPtIdx, aeShipSide, aMissionNavPoints, aMissionObjectivesArray, anShipMissionShips, aShipPositionsArray, find_ship_index(), get_follow_point(), MissionNavPoint::position, MissionObjective::position, SIDE_KILRATHI, and MissionObjective::type.
Referenced by close_behind(), cruise_home(), cruise_to_destination(), get_first_follow_point(), and get_follow_point().
| unsigned int get_front_spot | ( | short | obj, |
| unsigned short | distance, | ||
| FixedVector * | point ) |
Definition at line 794 of file logic.c.
References AddFixedVectors(), aShipFwdVec, aShipPositionsArray, get_front_spot(), and ScaleFixedVector().
Referenced by get_front_spot(), and Mchill().
| short get_mode | ( | short | i | ) |
Definition at line 690 of file cockpt.c.
References acVduModeStackDepth, ausVduModeStack, and get_mode().
Referenced by 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(), SetVduModeIfChanged(), ShowComponentHitHudMessage(), update_VDUs(), update_vid_disp(), vdu_pop_all(), and vid_equiv().
| void get_pilot_talk | ( | short | personality | ) |
Definition at line 610 of file mission.c.
References aapszPilotSpeeches, AllocateTaggedMemory(), CloseDataFile(), DosStrcpy(), free_pilot_talk(), get_pilot_talk(), LoadCommPortraitShape(), OpenDataFileOrDie(), pDiskFileRecords, PromptInsertNumberedDisk(), ReadDataFileAtOffset(), and ShowModalMessage().
Referenced by get_pilot_talk(), and init_personalities().
Definition at line 575 of file main.c.
References aInputDevSamples, bInputPollingGuard, InputDeviceSample::buttons, get_player_input(), nCurrentActiveInputDevice, stLastPolledFlightInput, TranslatePolledInputEvent(), UpdateInputDeviceTransitions(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by EMStartUp(), get_player_input(), InflightComputer(), init_3Space_objects(), RunSpaceFlight(), and ShowTheEndScreen().
| unsigned int get_rear_spot | ( | short | obj, |
| unsigned short | distance, | ||
| FixedVector * | point ) |
Definition at line 804 of file logic.c.
References AddFixedVectors(), aShipFwdVec, aShipPositionsArray, get_rear_spot(), and ScaleFixedVector().
Referenced by get_rear_spot().
| void get_right_shape | ( | short | obj, |
| FixedVector * | direction ) |
Definition at line 1341 of file geom.c.
References aapPacketReferences, acDirectionShapeFlip, acDirectionShapeFrame, aDirectionViewRightVector, aDirectionViewUpVectorArray, aeObjectClass, aeObjectTypeList, aObjectResourceSlotsArray, apObjShapeArray, ArcCos(), asCapitalShipViewFramesTable, aShipUpVector, asObjectFlipArray, asObjectViewFrames, asObjScreenAngles, cCapitalShipLogicalFile, DIRECTION_VIEW_COUNT, dot_product(), EYE_OBJECT, FetchDiskPacketRetrying(), get_right_shape(), GetScreenUpdateFlag(), IdentityWord(), initialize_view_buffer(), negate_vector(), NormalizeFixedVector(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_TYPE_KILRATHI_BASE, OBJECT_TYPE_TURRET, SphericalVector::pitch, Viewport::pixels, rectangular_to_spherical(), rotate_about_i(), rotate_about_j(), stSpaceBufferViewport, 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 443 of file mission.c.
References aObjectResourceSlotsArray, and get_shape_slot().
Referenced by get_shape_slot(), and new_sphere_shapes().
| short get_ship_max_velocity | ( | short | obj | ) |
Definition at line 95 of file geom.c.
References acShipRating, aeObjectTypeList, aObjectTypeData, get_ship_max_velocity(), and ObjectTypeData::maximumVelocity.
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 976 of file geom.c.
References aeObjectClass, get_ship_slot(), nFreeShipSlot, and OBJECT_CLASS_NULL.
Referenced by get_ship_slot(), and initialize_ship().
| HINSTANCE GetApplicationInstance | ( | void | ) |
Definition at line 1032 of file winmain.c.
References GetApplicationInstance(), and hCurrentAppInstance.
Referenced by GetApplicationInstance().
Definition at line 1852 of file main.c.
References GetArcadeBonus(), nArcadeTimeRemaining, nArcadeWave, nArcadeWaveBonusValue, and nTrainSimMission.
Referenced by GetArcadeBonus(), init_3Space_objects(), and set_up_next_wave().
| void GetBunkInfo | ( | BarracksAnimationState * | state | ) |
Definition at line 739 of file barracks.c.
References apszBarracksMenuLabels, BarracksAnimationState::bunks, SaveGameRecord::campaign, CampaignState::currentMission, CampaignState::currentSeries, SaveGameRecord::description, FreeBarracksMenuLabels(), GetBunkInfo(), LoadGame(), BarracksBunkState::occupied, and SetBunkMenuLabel().
Referenced by BarracksScreen(), GetBunkInfo(), and HandleBarracksBunkSelection().
| int GetControlKeyState | ( | void | ) |
Definition at line 117 of file winsys.c.
References GetControlKeyState().
Referenced by GetControlKeyState(), HandleSpaceFlightControls(), process_player_input(), and QueueInputEvent().
| short GetCurrentDiskDriveHook | ( | void | ) |
Definition at line 1181 of file eventmgr.c.
References GetCurrentDiskDriveHook().
Referenced by DosMemcpy(), GetCurrentDiskDriveHook(), main(), and OpenDiskDataFile().
| unsigned char * GetDIBPixelBuffer | ( | void | ) |
Definition at line 727 of file dib.c.
References GetDIBPixelBuffer(), and pDIBImage.
Referenced by DIBmakeDIB(), GetDIBPixelBuffer(), InitializeDIBScreenViewport(), and PlaySfxWaveFileByNumber().
| HWND GetDIBWindowHandle | ( | void | ) |
Definition at line 740 of file dib.c.
References GetDIBWindowHandle(), and hDIBParentWindow.
Referenced by GetDIBWindowHandle(), and PlaySfxWaveFileByNumber().
| unsigned short GetEventManagerStatus | ( | void | ) |
Definition at line 79 of file strdos.c.
References GetEventManagerStatus().
Referenced by DosMemcpy(), GetEventManagerStatus(), and LoadOriginFxDrivers().
| unsigned int GetF1KeyLatch | ( | void | ) |
Definition at line 817 of file winmain.c.
References bF1KeyLatch, and GetF1KeyLatch().
Referenced by GetF1KeyLatch(), and HandleSpaceFlightControls().
| unsigned int GetFixedOneMillion | ( | void | ) |
Definition at line 692 of file eventmgr.c.
References GetFixedOneMillion().
Referenced by DosMemcpy(), GetFixedOneMillion(), and GetFixedOneMillionThunk().
| unsigned int GetFixedOneMillionAlt | ( | void | ) |
Definition at line 698 of file eventmgr.c.
References GetFixedOneMillionAlt().
Referenced by DosMemcpy(), GetFixedOneMillionAlt(), and GetFixedOneMillionThunkAlt().
| unsigned int GetFixedOneMillionThunk | ( | short | memoryType | ) |
Definition at line 71 of file ending.c.
References GetFixedOneMillion(), GetFixedOneMillionThunk(), and void().
Referenced by GetFixedOneMillionThunk(), LoadOriginFxDrivers(), and PlaySfxWaveFileByNumber().
| unsigned int GetFixedOneMillionThunkAlt | ( | short | memoryType | ) |
Definition at line 78 of file ending.c.
References GetFixedOneMillionAlt(), GetFixedOneMillionThunkAlt(), and void().
Referenced by FetchDiskPacketRetrying(), GetFixedOneMillionThunkAlt(), LoadOriginFxDrivers(), LogMemoryUsage(), main(), PlaySfxWaveFileByNumber(), ReportPacketLoadError(), SetFleetOverviewView(), and ShowMemoryStatusDebug().
| unsigned short __stdcall GetFontCharWidth | ( | char | i | ) |
Definition at line 184 of file mathfp.c.
References TextContext::font, GetFontCharWidth(), and pCurTextContext.
Referenced by ClearTextInputCharacter(), EraseLastTextInputCharacter(), GetFontCharWidth(), MeasureTextPixelWidthClamped(), and PlaySfxWaveFileByNumber().
| int GetFreeNearHeapBytes | ( | void | ) |
Definition at line 394 of file screen.c.
References DosNearPtrToFar(), GetFreeNearHeapBytes(), nCurrentNearHeapFirstDescriptor, nNearHeapBase, nNearHeapSize, and NearHeapBlock::sizeAndFlags.
Referenced by GetFreeNearHeapBytes(), and PlaySfxWaveFileByNumber().
| unsigned int GetFxDriverInitResult | ( | void | ) |
Definition at line 305 of file init.c.
References GetFxDriverInitResult().
Referenced by GetFxDriverInitResult(), and LoadOriginFxDrivers().
| unsigned int GetFxDriverStatus | ( | void | ) |
Definition at line 317 of file init.c.
References GetFxDriverStatus().
Referenced by GetFxDriverStatus(), and LoadOriginFxDrivers().
| unsigned int GetGameClockTicks | ( | void | ) |
Definition at line 129 of file winsys.c.
References dwGameClockBaseValue, and GetGameClockTicks().
Referenced by GetGameClockTicks(), and SplitGameClockTicks().
| unsigned int GetGIFImageSize | ( | const unsigned char * | gifData | ) |
References GetGIFImageSize().
Referenced by GetGIFImageSize().
| unsigned char * GetHighScoreEntry | ( | short | i | ) |
Definition at line 129 of file trainsim.c.
References aHighScoreEntriesArray, aPilotEntriesList, apszBuiltInHighScoreNames, PilotRecord::callsign, and GetHighScoreEntry().
Referenced by GetHighScoreEntry(), init_3Space_objects(), and ShowTrainSimHighScores().
| unsigned int GetHighScoreValue | ( | short | i | ) |
Definition at line 139 of file trainsim.c.
References aHighScoreEntriesArray, GetHighScoreValue(), and HighScoreEntry::score.
Referenced by GetHighScoreValue(), init_3Space_objects(), and ShowTrainSimHighScores().
| unsigned int GetILBMImageSize | ( | const unsigned char * | iffData | ) |
References GetILBMImageSize().
Referenced by GetILBMImageSize().
| unsigned int GetJoystickButtonEdge | ( | unsigned int | a, |
| short | b ) |
Definition at line 162 of file main.c.
References GetJoystickButtonEdge(), JoystickEdgeHook(), and void().
Referenced by GetJoystickButtonEdge(), init_3Space_objects(), and main().
| short GetJoystickButtons | ( | void | ) |
Definition at line 1005 of file winmain.c.
References aJoystickInfos, and GetJoystickButtons().
Referenced by GetJoystickButtons(), and ReadJoystickButtons().
| void GetJoystickDevCaps | ( | short | joystick, |
| unsigned short * | xMin, | ||
| unsigned short * | xMax, | ||
| unsigned short * | yMin, | ||
| unsigned short * | yMax ) |
Definition at line 1012 of file winmain.c.
References GetJoystickDevCaps(), and SystemDebugPrintf().
Referenced by GetJoystickDevCaps(), and LoadJoystickCalibrationFile().
| int __stdcall GetJoystickPosition | ( | int * | x, |
| int * | y, | ||
| unsigned int * | buttons, | ||
| short | joystick, | ||
| unsigned short | fallback ) |
Definition at line 969 of file winmain.c.
References aJoystickInfos, and GetJoystickPosition().
Referenced by GetJoystickPosition(), SampleBothJoysticks(), and SampleJoystickDevice().
| unsigned short GetJoystickPresentUnused | ( | void | ) |
Definition at line 276 of file damage.c.
References GetJoystickPresentUnused().
Referenced by GetJoystickPresentUnused(), and init_3Space_objects().
| unsigned int GetKeyboardModifiers | ( | void | ) |
Definition at line 123 of file winsys.c.
References GetKeyboardModifiers(), and nSystemKeyDown.
Referenced by GetKeyboardModifiers(), HandleSpaceFlightControls(), and QueueInputEvent().
| short GetLineLength | ( | const char * | text | ) |
Definition at line 159 of file mono.c.
References GetLineLength(), GetShapeFrameExtent(), and pIntroFont.
Referenced by GetLineLength(), and print_subtitle().
| HDC GetMainWindowDeviceContext | ( | void | ) |
Definition at line 1048 of file winmain.c.
References GetMainWindowDeviceContext(), and hMainWindowDC.
Referenced by GetMainWindowDeviceContext().
| HWND GetMainWindowHandle | ( | void | ) |
Definition at line 1040 of file winmain.c.
References GetMainWindowHandle(), and hMainWindow.
Referenced by GetMainWindowHandle().
| unsigned int GetMessagePumpResult | ( | void | ) |
Definition at line 311 of file init.c.
References GetMessagePumpResult().
Referenced by GetMessagePumpResult(), and LogMemoryUsage().
| void __stdcall GetMouseCursorPosition | ( | ShortPoint * | point | ) |
Definition at line 597 of file eventmgr.c.
References GetMouseCursorPosition(), stMouseCursorState, MouseCursorState::x, ShortPoint::x, MouseCursorState::y, and ShortPoint::y.
Referenced by DosMemcpy(), and GetMouseCursorPosition().
| unsigned short GetMusicDriverPresent | ( | short | mode | ) |
Definition at line 65 of file geom.c.
References GetMusicDriverPresent().
Referenced by GetMusicDriverPresent(), and LoadOriginFxDrivers().
| unsigned short GetMusicMode | ( | void | ) |
Definition at line 426 of file music.c.
References GetMusicMode(), nMusicPlaybackMode, and nMusicTrackComplete.
Referenced by funeral_sequence(), GetMusicMode(), and init_3Space_objects().
| unsigned int GetMusicStreamVolume | ( | void | ) |
Definition at line 1471 of file gr.c.
References bIxAudioEnabled, GetMusicStreamVolume(), and ix_streamer_get_volume().
Referenced by CollectRasterClipColours(), and GetMusicStreamVolume().
| unsigned short GetNavRangeSentinel | ( | void | ) |
Definition at line 1102 of file eventmgr.c.
References GetNavRangeSentinel().
Referenced by DosMemcpy(), GetNavRangeSentinel(), and InitializeNearHeap().
| short __stdcall GetNextInputEvent | ( | InputEventState * | event | ) |
Definition at line 228 of file eventmgr.c.
References Viewport::bottom, GetNextInputEvent(), Viewport::left, InputEvent::modifiers, InputEventState::modifiers, pInputEventHead, InputEvent::primaryButton, MouseCursorState::primaryButton, RemoveInputEvent(), Viewport::right, InputEvent::secondaryButton, MouseCursorState::secondaryButton, stMouseCursorState, Viewport::top, InputEvent::type, InputEvent::value, InputEventState::value, MouseCursorState::viewport, InputEvent::x, InputEventState::x, MouseCursorState::x, InputEvent::y, InputEventState::y, and MouseCursorState::y.
Referenced by DosMemcpy(), GetNextInputEvent(), player_input(), and PollInputEvent().
| unsigned short GetOriginalFreeMemory | ( | void | ) |
Definition at line 1108 of file eventmgr.c.
References GetOriginalFreeMemory().
Referenced by DosMemcpy(), GetOriginalFreeMemory(), LogMemoryUsage(), and ShowMemoryStatusDebug().
| unsigned int GetPacketDecompressionResult | ( | void * | packet | ) |
Definition at line 674 of file eventmgr.c.
References GetPacketDecompressionResult(), and void().
Referenced by DecompressPacketSection(), DosMemcpy(), and GetPacketDecompressionResult().
| unsigned int __stdcall GetPacketSize | ( | const char * | filename, |
| short | section ) |
Definition at line 368 of file screen.c.
References CloseDataFileByHandle(), PacketSectionHandle::compression, PacketSectionHandle::dataSize, GetPacketSize(), nPacketError, OpenPacketSection(), and ReadPacketSectionData().
Referenced by ejection_sequence(), FetchDiskPacketRetrying(), GetPacketSize(), LoadPacketAllocated(), LoadPacketResourceList(), PlaySfxWaveFileByNumber(), and ReportPacketLoadError().
| void __stdcall GetPaletteEntry | ( | short | index, |
| short * | rgb ) |
Definition at line 648 of file gr.c.
References GetPaletteEntry(), and GetPaletteEntryAsWords().
Referenced by CollectRasterClipColours(), FadeViewportPaletteToColour(), GetPaletteEntry(), MarkActivePaletteEntries(), PanToScreen(), and SaveGamePalette().
| void GetPaletteEntryAsWords | ( | short | i, |
| short * | rgb ) |
Definition at line 831 of file dib.c.
References abDIBPaletteQuads, and GetPaletteEntryAsWords().
Referenced by GetPaletteEntry(), GetPaletteEntryAsWords(), and PlaySfxWaveFileByNumber().
| unsigned short GetPaletteReadyUnused | ( | void | ) |
Definition at line 72 of file title.c.
References GetPaletteReadyUnused().
Referenced by GetPaletteReadyUnused().
| unsigned int GetPCXImageSize | ( | const unsigned char * | header | ) |
References GetPCXImageSize().
Referenced by GetPCXImageSize().
| short GetPendingMenuAction | ( | void | ) |
Definition at line 145 of file comm.c.
References cPendingCommMenuAction, and GetPendingMenuAction().
Referenced by Chosen_communicate_option(), GetPendingMenuAction(), PlaySfxWaveFileByNumber(), and RefreshCommunicationMenu().
Definition at line 132 of file gr.c.
References GetPreparedShapeData().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), GetPreparedShapeData(), and PrepareShapeRLEData().
| 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 1772 of file cockpt.c.
References GetRectHeight(), Viewport::left, and Viewport::right.
Referenced by GetRectHeight(), and print_message_text().
| unsigned int GetRLEFrameBounds | ( | struct RLEShape * | shape, |
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| unsigned int | flags, | ||
| int * | bounds ) |
References GetRLEFrameBounds().
Referenced by GetRLEFrameBounds().
| unsigned int GetRLEFrameCount | ( | const struct RLEShape * | shape | ) |
References GetRLEFrameCount().
Referenced by GetRLEFrameCount().
| unsigned int GetRLEFrameDimensions | ( | struct RLEShape * | shape, |
| int | frame ) |
References GetRLEFrameDimensions().
Referenced by GetRLEFrameDimensions().
| unsigned int GetRLEFrameExtents | ( | struct RLEShape * | shape, |
| int | frame ) |
References GetRLEFrameExtents().
Referenced by GetRLEFrameExtents().
| unsigned int GetRLEImageOrigin | ( | struct RLEShape * | shape, |
| int | frame ) |
References GetRLEImageOrigin().
Referenced by GetRLEImageOrigin().
| unsigned int GetRLEImageSize | ( | struct RLEShape * | shape, |
| int | frame ) |
References GetRLEImageSize().
Referenced by GetRLEImageSize().
| void GetRLETransformTrig | ( | int | angleTenths, |
| int * | cosine, | ||
| int * | sine ) |
References GetRLETransformTrig().
Referenced by GetRLETransformTrig().
| unsigned int GetScreenUpdateFlag | ( | void | ) |
Definition at line 361 of file main.c.
References EndCommMenu(), free_viewport(), GetScreenUpdateFlag(), message_showing(), Viewport::pixels, and stSpaceBufferViewport.
Referenced by auto_pilot_sequence(), death_sequence(), ejection_sequence(), free_3Space(), free_all_slots(), free_cockpit(), get_right_shape(), GetScreenUpdateFlag(), HandleSpaceFlightControls(), InflightComputer(), init_3Space_objects(), initialize_cockpit(), InitializeCockpitResources(), load_all_slots(), new_sphere_shapes(), RunSpaceFlight(), set_eye_direction_and_position(), and SetFleetOverviewView().
| short __stdcall GetShapeFrameBounds | ( | short * | bounds, |
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame ) |
Definition at line 195 of file mathfp.c.
References ShapeFrame::bottom, Shape::frameOffsets, GetShapeFrameBounds(), ShapeFrame::left, ShapeFrame::right, and ShapeFrame::top.
Referenced by AlignSpriteFrameToRectCorner(), GetShapeFrameBounds(), GetShapeFrameExtent(), PlaySfxWaveFileByNumber(), RecRoom(), SelectTrainSimMission(), and Title_Sequence().
| void GetShapeFrameCorners | ( | unsigned char * | shape, |
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| ShortPoint * | corners, | ||
| int * | cornerCount ) |
Definition at line 1136 of file gr.c.
References ShapeFrameExtents::bottom, CheckHeapBlockSignature(), GetShapeFrameCorners(), ShapeFrameExtents::left, ShapeFrameExtents::right, ShapeFrameExtents::top, ShortPoint::x, and ShortPoint::y.
Referenced by CollectRasterClipColours(), and GetShapeFrameCorners().
| short __stdcall GetShapeFrameCount | ( | struct Shape * | shape | ) |
Definition at line 138 of file gr.c.
References CheckHeapBlockSignature(), Shape::frameOffsets, and GetShapeFrameCount().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), GetShapeFrameCount(), and PrepareShapeRLEData().
| short __stdcall GetShapeFrameExtent | ( | short | x, |
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | extent ) |
Definition at line 187 of file cutscene.c.
References GetShapeFrameBounds(), and GetShapeFrameExtent().
Referenced by AnimateScrambleWalk(), GetLineLength(), GetShapeFrameExtent(), and print_subtitle().
| void GetShapeFrameExtents | ( | struct Shape * | shape, |
| short | frame, | ||
| short * | width, | ||
| short * | height, | ||
| short * | leftExtent, | ||
| short * | topExtent ) |
Definition at line 145 of file gr.c.
References ShapeFrame::bottom, Shape::frameOffsets, GetShapeFrameExtents(), ShapeFrame::left, ShapeFrame::right, and ShapeFrame::top.
Referenced by CollectRasterClipColours(), GetShapeFrameExtents(), and PrepareShapeRLEData().
| int GetShiftKeyState | ( | void | ) |
Definition at line 111 of file winsys.c.
References GetShiftKeyState().
Referenced by GetShiftKeyState(), process_player_input(), QueueInputEvent(), and ReadTextInput().
| int GetShipAccelerationRate | ( | short | ship | ) |
Definition at line 140 of file geom.c.
References ObjectTypeData::acceleration, acShipRating, aeObjectTypeList, aObjectTypeData, GetShipAccelerationRate(), and RATING_ACE_ICEMAN.
Referenced by accelerate_and_move_object(), approach_speed(), control_speed(), and GetShipAccelerationRate().
| short GetShipDistanceToNavPoint | ( | short | ship, |
| MissionNavPoint * | navPoint ) |
Definition at line 1957 of file main.c.
References aShipPositionsArray, ComputeVectorDelta(), FixedToShortSaturating(), GetShipDistanceToNavPoint(), MissionNavPoint::position, and Vector_magnitude().
Referenced by FindNearestNavPoint(), GetShipDistanceToNavPoint(), and init_3Space_objects().
| unsigned short __stdcall GetShutdownErrorCode | ( | unsigned char * | driveState | ) |
Definition at line 1187 of file eventmgr.c.
References GetShutdownErrorCode(), and void().
Referenced by DosMemcpy(), GetShutdownErrorCode(), and main().
| unsigned short GetSoundHardwareFlag | ( | void | ) |
Definition at line 642 of file eventmgr.c.
References GetSoundHardwareFlag().
Referenced by DosMemcpy(), GetSoundHardwareFlag(), and IsSoundHardwarePresent().
| unsigned int GetStartupErrorCode | ( | int | vector | ) |
Definition at line 1154 of file eventmgr.c.
References GetStartupErrorCode(), and void().
Referenced by DosMemcpy(), GetStartupErrorCode(), and main().
| int GetStreamerTrigger | ( | void | ) |
Definition at line 1411 of file gr.c.
References bIxAudioEnabled, GetStreamerTrigger(), and ix_streamer_get_trigger().
Referenced by CollectRasterClipColours(), and GetStreamerTrigger().
| short GetTargetColourIndex | ( | void | ) |
Definition at line 560 of file view.c.
References GetTargetColourIndex(), and nVideoMode.
Referenced by GetTargetColourIndex(), init_3Space_objects(), and LoadOriginFxDrivers().
| short GetTransformedShapeBounds | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip, | ||
| ShortRect * | bounds ) |
Definition at line 1196 of file gr.c.
References aawAbsoluteTrig, ShapeFrame::bottom, ShortRect::bottom, Viewport::bottom, CheckHeapBlockSignature(), Shape::frameOffsets, GetTransformedShapeBounds(), ShapeFrame::left, ShortRect::left, Viewport::left, ShapeFrame::right, ShortRect::right, Viewport::right, ShapeFrame::top, ShortRect::top, Viewport::top, and void().
Referenced by CollectRasterClipColours(), draw_target_box(), DrawCenteredScaledIntroText(), DrawLaunchDoorFrame(), DrawTitleLogo(), easy2see(), GetTransformedShapeBounds(), and MeasureScaledIntroTextWidth().
| short GetVduModeStackDepth | ( | short | i | ) |
Definition at line 717 of file cockpt.c.
References acVduModeStackDepth, and GetVduModeStackDepth().
Referenced by GetVduModeStackDepth(), and vdu_pop_all().
| short GetVectorMagnitude | ( | const FixedVector * | vector | ) |
Definition at line 146 of file spc.c.
References FixedToShortSaturating(), GetVectorMagnitude(), and Vector_magnitude().
Referenced by GetVectorMagnitude().
| int GetViewportPixel | ( | Viewport * | viewport, |
| short | x, | ||
| short | y ) |
Definition at line 986 of file gr.c.
References ClipViewportToScreen(), GetViewportPixel(), Viewport::left, ReadRasterClipPixel(), stRasterClip, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_3d_scanner(), GetViewportPixel(), and PanToScreen().
| unsigned int GetZeroUnused | ( | void | ) |
| int gone_ship | ( | short | missionShip | ) |
Definition at line 1134 of file logic.c.
References aMissionShips, and gone_ship().
Referenced by check_destroy_target(), check_goal(), close_behind(), and gone_ship().
| unsigned int goto_formation | ( | short | obj, |
| const FixedVector * | destination, | ||
| short | leader ) |
Definition at line 323 of file smart.c.
References AddFixedVectors(), anRollGoal, anShipSpeed, approach_full_speed(), approach_min_speed(), approach_ship_speed(), aShipFwdVec, aShipPositionsArray, control_speed(), copy_frame(), fire_afterburner(), get_facing_range_from_point(), goto_formation(), match_roll_orientation(), nFacingToTargetValue, no_goal(), normal_speed(), nTgtRange, point_parallel(), point_ship(), steady_object(), trim_goals(), and vToTgt.
Referenced by goto_formation(), maintain_formation(), and PlaySfxWaveFileByNumber().
| unsigned int goto_location | ( | short | obj, |
| const FixedVector * | destination ) |
Definition at line 297 of file smart.c.
References anShipSpeed, approach_cruise_speed(), approach_full_speed(), approach_half_speed(), FixedToShortSaturating(), goto_location(), MaxShort(), nFacingToTargetValue, no_goal(), nTgtRange, point_ship_at_point(), and ship_vs_point().
Referenced by goto_location(), and PlaySfxWaveFileByNumber().
| short handle_collisions | ( | short | obj | ) |
Definition at line 122 of file smart.c.
References alert_flag(), detect_collisions(), handle_collisions(), prevent_collision(), and start_collision_alert().
Referenced by handle_collisions(), PlaySfxWaveFileByNumber(), and regulate_turn().
| void handle_stress | ( | short | obj, |
| int | event ) |
Definition at line 552 of file smart.c.
References acPilotAggression, acPilotRecovery, acShipStressList, aiPilotLevel, evaluate_damage(), handle_stress(), and MinShort().
Referenced by handle_stress(), intelligence_events(), and PlaySfxWaveFileByNumber().
| void HandleBarracksBunkSelection | ( | Viewport * | viewport, |
| struct Shape * | shape, | ||
| BarracksAnimationState * | state, | ||
| short | region ) |
Definition at line 943 of file barracks.c.
References aMissionObjectivesArray, aPilotEntriesList, BarracksAnimationState::bunks, ConfirmAwakenAfterBadData(), ConfirmReplaceFaultyData(), DrawBarracksBunks(), EnterAllocationScope(), GetBunkInfo(), HandleBarracksBunkSelection(), LeaveAllocationScope(), LoadGameFromSlot(), BarracksBunkState::occupied, SaveGameWithNamePrompt(), and stCampaignState.
Referenced by BarracksScreen(), and HandleBarracksBunkSelection().
Definition at line 328 of file comm.c.
References CanOpenCommMenu(), CloseCommChoiceMenu(), HandleCommunicationMenuRequest(), IsCommChoiceMenuOpen(), message_showing(), OpenCommRecipientMenu(), RefreshCommunicationMenu(), and ResetCommMenuChoices().
Referenced by HandleCommunicationMenuRequest(), PlaySfxWaveFileByNumber(), and show_communications_disp().
| unsigned int HandleFleetOverviewInput | ( | void | ) |
Definition at line 1159 of file main.c.
References aShipFwdVec, aShipRightVector, aShipUpVector, bCurrentKey, cViewObject, EYE_OBJECT, HandleFleetOverviewInput(), nCameraViewMode, nCapitalShipViewDistance, rotate_about_i(), rotate_about_j(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by HandleFleetOverviewInput(), HandleSpaceFlightControls(), and init_3Space_objects().
| int HandleSpaceFlightControls | ( | void | ) |
Definition at line 1362 of file main.c.
References accelerate(), acPlayerComponentDamageList, acShipTargetTable, aeShipObjectiveList, anShipSpeed, anVolumeLevels, any_enemy(), aShipWeaponsTable, auto_pilot_sequence(), bCockpitlessView, bCurrentKey, bEscapePressedFlag, bMissileCameraEnabled, bMouseCursorVisible, Viewport::bottom, bPtrMovedByKeyboardState, bVideoImagesSuppressed, CalibrateJoystickInteractive(), Chosen_communicate_option(), ClearDebugPauseFlags(), CloseCommChoiceMenu(), cPreviousKey, cPrimaryTextColour, cRedColour, cScreenViewMode, cViewObject, drop_player_mine(), EndCommMenu(), fire_missile(), fire_players_lasers(), FlushInputEvents(), force_view(), get_mode(), GetControlKeyState(), GetF1KeyLatch(), GetKeyboardModifiers(), GetScreenUpdateFlag(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), init_player_input(), initialize_cockpit(), initialize_view_buffer(), InvalidateVduMode(), Viewport::left, malf_sound(), message_showing(), nArcadeState, nCameraViewMode, nCommMenuChoiceCount, nCurrentViewCenterPosY, new_view(), nExternalViewShip, nFlightSoundEffectsEnabled, nMusicVolumeSetting, nScreenHeight, nScreenWidth, nSelectedReleaseWeaponIndex, nSfxVolumeSetting, nTargetLockMode, nTrainSimActive, nYourWingman, OBJECT_TYPE_SPACE_MINE, OBJECTIVE_HOLD_FORMATION, player_input(), players_flight_dynamics(), PlaySfxWaveFileByNumber(), RandomInRange(), ReportFramesSkipped(), request(), ResetSoundStateForFlight(), ResetSoundStateForScene(), Viewport::right, SelectCockpitVduMode(), SelectNextExternalViewObject(), SetFrameTimerPeriodDirect(), SetHudMessageText(), SetMessageDisplaySpeed(), SetMousePosition(), SetMusicStreamVolume(), SetSoundEffectsVolume(), SetViewportRect(), ShowGamePausedBanner(), ShowOnScreenMessage(), ShowVersionBanner(), stSpaceBufferViewport, Viewport::top, and your_afterburner().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and RunSpaceFlight().
| unsigned int HasSpeechBuffer | ( | void | ) |
Definition at line 176 of file logic.c.
References anShipAlertFlags, and HasSpeechBuffer().
Referenced by HasSpeechBuffer().
| short have_target | ( | void | ) |
Definition at line 181 of file comm.c.
References acShipTargetTable, have_target(), and unactive().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), CanOpenCommMenu(), have_target(), and PlaySfxWaveFileByNumber().
| void heat_seeking_missile_intelligence | ( | short | obj | ) |
Definition at line 1018 of file brains.c.
References abShipExhaustHeatList, acShipTargetTable, acViableTargetList, aeObjectClass, anShipSpeed, asViableTgtDistList, cViableTargetCount, explode(), get_facing_range_from_object(), get_ship_max_velocity(), heat_seeking_missile_intelligence(), nFacingToTargetValue, nTargetFacingValue, nTgtRange, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, point_ship(), sort_viable_target_list(), and vToTgt.
Referenced by heat_seeking_missile_intelligence(), and object_intelligence().
| short hemisphere | ( | FixedVector * | target, |
| FixedVector * | parent, | ||
| FixedVector * | hardpoint ) |
Definition at line 1592 of file ship.c.
References ComputeVectorDelta(), hemisphere(), and vector_angle().
Referenced by fire_turrets(), and hemisphere().
| short hidden_objective | ( | short | objective | ) |
Definition at line 1098 of file cockpt.c.
References aMissionObjectivesArray, aMissionShips, cMissionObjectiveCountValue, MissionObjective::displayName, find_ship_index(), hidden_objective(), MISSION_TYPE_WARP_ARRIVE, mobile_objective(), and MissionObjective::name.
Referenced by BuildMap(), DrawNavMapLegend(), hidden_objective(), InflightComputer(), SelectNavObjectiveAtPoint(), and set_new_objective().
| unsigned int hit_asteroid | ( | short | asteroid, |
| short | destructionChance ) |
Definition at line 1296 of file spc.c.
References aShipVelocity, explode(), hit_asteroid(), make_shard(), RandomBelowOrEqual(), and vCollisionDelta.
Referenced by hit_asteroid(), and object_collision().
| int hostile_sphere | ( | short | obj, |
| short | navPoint ) |
Definition at line 1270 of file logic.c.
References aeShipSide, aMissionNavPoints, aMissionShips, hostile_sphere(), and MissionNavPoint::missionShips.
Referenced by abandoned(), close_behind(), and hostile_sphere().
| unsigned int house_keep | ( | void | ) |
Definition at line 531 of file main.c.
References abCockpitLightGoalArray, aPaletteFadeEntries, check_hazards(), FadeFlightPaletteEntry(), FlushSoundEffectsAndLog(), house_keep(), nCameraViewMode, nCannedSceneMode, nCurrentDamageAlarmSfxHandle, nCurrentHazardFieldTotal, nCurrentSpaceFrameValue, nTrainSimActive, ReleaseStaleNavTarget(), and SetPaletteEntry().
Referenced by house_keep(), init_3Space_objects(), and Update_3Space().
| unsigned int house_keep_objects | ( | void | ) |
Definition at line 850 of file spc.c.
References abShipExhaustHeatList, abShipNavPtIdx, acObjCollisionGraceTicks, acObjOwnersTable, acPreviousAttackers, aeObjectClass, aeObjectTypeList, aeShipManeuversTable, aeShipSide, aeShipTacticArray, aeSpecialManeuvers, aMissionShips, aObjectTypeData, aShipFwdVec, aShipVelocity, asObjectCounterArray, asObjectScreenXList, awObjectScales, bLandingAuthorized, bPlayerCollisionsEnabled, count_down(), Create_explosion_debris(), explode(), explosion_shock_wave(), get_facing_range_from_object(), house_keep_objects(), ObjectTypeData::lifetime, MANEUVER_WARPING_IN, MANEUVER_WARPING_OUT, nArcadeState, nFacingToTargetValue, normal_speed(), nPlayerCollisionObject, nShipMissionIndices, nTargetFacingValue, nTgtRange, nYourWingman, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_DEBRIS, OBJECT_CLASS_DUST, OBJECT_CLASS_FIXED_OBJECT, OBJECT_CLASS_MINE, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, OBJECT_TYPE_DEBRIS_DUST, OBJECT_TYPE_DUMB_FIRE_MISSILE, OBJECT_TYPE_THRUSTERS, OBJECT_TYPE_TIGERS_CLAW, OBJECT_TYPE_TURRET, onboard_explosion(), RandomBelowOrEqual(), RandomInRange(), remove_object(), reset_maneuver(), send_message(), set_objects_data(), ShipExplosion(), SIDE_KILRATHI, SIDE_NEUTRAL, SPACE_LAST_MOVING_OBJECT, SPECIAL_MANEUVER_UNKNOWN_9, MissionShipRecord::state, TACTIC_RAM, TACTIC_SIT_STILL, TACTIC_WARP_IN, and vector_component_in_dir().
Referenced by house_keep_objects(), ShowCarrierLaunchSequence(), and Update_3Space().
| unsigned int housekeep_power_plant_and_fuel | ( | short | ship | ) |
Definition at line 2127 of file ship.c.
References anShipSpeed, drain_fuel(), and housekeep_power_plant_and_fuel().
Referenced by housekeep_power_plant_and_fuel(), and update_objects_in_space().
| short i_wanna_rout | ( | short | ship, |
| int | pilot ) |
Definition at line 182 of file screen.c.
References aeShipMissionType, any_enemy(), i_wanna_rout(), MISSION_TYPE_CANNED_SEQUENCE, and triumph().
Referenced by i_wanna_rout(), PlaySfxWaveFileByNumber(), and request().
Definition at line 164 of file mathfp.c.
References IdentityHandle().
Referenced by DecompressPacketSection(), IdentityHandle(), and PlaySfxWaveFileByNumber().
| unsigned short IdentityWord | ( | unsigned short | v | ) |
Definition at line 681 of file eventmgr.c.
References IdentityWord().
Referenced by DosMemcpy(), get_right_shape(), and IdentityWord().
| void imperial_formation | ( | short | obj | ) |
Definition at line 230 of file brains.c.
References aeSpecialManeuvers, aiPilotLevel, any_enemy(), approach_ship_speed(), aShipPositionsArray, asShipWingLeaderArray, attacker_in_range(), bEngageAllowed, distance_from_object(), engage(), facing_to_object(), fire_afterburner(), imperial_formation(), maintain_formation(), message_showing(), nAutoEngageTimer, nCameraViewMode, nCurrentWave, nEnemySighting, nTargetShip, nYourWingman, 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_wingleader | ( | short | obj | ) |
Definition at line 464 of file brains.c.
References imperial_wingleader(), and kilrathi_patrol().
Referenced by imperial_wingleader(), and ship_intelligence().
| void imperial_wingman | ( | short | obj | ) |
Definition at line 299 of file brains.c.
References aeShipObjectiveList, check_destroy_target(), check_engage_target(), fail(), formation_break(), 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(), and wingman_mission().
| int in_danger | ( | short | obj | ) |
Definition at line 1006 of file logic.c.
References acShipTargetTable, aeObjectClass, aeShipSide, aeSpecialManeuvers, distance_from_object(), in_danger(), nTargetShip, nTgtRange, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by close_behind(), defend_mission(), escort_mission(), in_danger(), and select_safe_target().
| void IncludeNavMapWorldPoint | ( | int | worldX, |
| int | worldZ ) |
Definition at line 1071 of file mission.c.
References CheckPoint(), IncludeNavMapWorldPoint(), and nav_getxy().
Referenced by IncludeNavMapWorldPoint(), and SetScale().
| int inflict_damage | ( | short | attacker, |
| short | victim, | ||
| short | damage, | ||
| const FixedVector * | impactDirection ) |
Definition at line 503 of file ship.c.
References aasShipArmor, aasShipShield, acObjOwnersTable, aeObjectClass, aeObjectTypeList, aeShipSide, aeSpecialManeuvers, aObjectTypeData, aShipFwdVec, aShipRightVector, asObjectScreenXList, asShipAccumulatedDmg, bPlayerVulnerable, Create_ship_hit_debris(), dot_product(), explode(), inflict_damage(), internal_damage(), nYourWingman, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, PlaySfxWaveFileByNumber(), RandomBelowOrEqual(), send_appropriate_message(), send_message(), SIDE_KILRATHI, SPECIAL_MANEUVER_UNKNOWN_9, and TriggerPlayerHitPaletteFlash().
Referenced by explosion_shock_wave(), inflict_damage(), and object_collision().
Definition at line 822 of file nav.c.
References bCockpitlessView, bEscapePressedFlag, bInflightComputerActive, bInputModeState, BriefingMap_LoadShapes(), cBlackColour, cCurrentNavPtIdx, cDarkGreyColour, CentreMouseOnCurrentNavObjective(), ClearViewport(), cMissionObjectiveCountValue, cScreenViewMode, cViewportClearColour, cycle_next_objective(), DIBslam(), DIBslamReal(), DrawNavPlayerMarker(), DrawSpriteDefault(), EndCommMenu(), EnterAllocationScope(), EventManagerHook(), FetchDiskPacketRetrying(), force_view(), FormatNavCoordinates(), free_viewport(), get_player_input(), GetScreenUpdateFlag(), hidden_objective(), InflightComputer(), initialize_view_buffer(), LeaveAllocationScope(), message_showing(), MoveMenuPointerFromKeyboard(), nMenuInputRepeatDelay, nScreenHeight, nScreenWidth, nTickCount60Hz, pElapsedCampaignDatePtr, PlaySfxWaveFileByNumber(), pNavMapShape, PollInputEvent(), PollJoystickButtonEvents(), PollMenuInputDevices(), ReleasePacketHandle(), ResetMouseCursorFrame(), SelectNavObjectiveAtPoint(), set_new_objective(), SetEventManagerPump(), SetFrameTimerAndWait(), SetMouseCursorShape(), SetRectBounds(), SetTextContext(), SetViewportRect(), MouseCursorState::shape, ShowConfedNavScan(), stCurrentNavMapTxtCtx, stDefaultTxtContext, stMapNavigationLabelTextContext, stMouseCursorState, stSceneBuffer, stScreenView, stSpaceBufferViewport, UpdateInflightNavText(), InputEventState::value, MouseCursorState::viewport, TextContext::viewport, WaitForInputKey(), WarpMouseTo(), MouseCursorState::x, and MouseCursorState::y.
Referenced by InflightComputer(), and SelectCockpitVduMode().
| void inherit_leader | ( | short | obj | ) |
Definition at line 1110 of file logic.c.
References aeObjectClass, asShipWingLeaderArray, 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 1093 of file logic.c.
References aeObjectClass, aeShipMissionType, anShipMissionShips, aShipMissionSpotArray, asShipWingLeaderArray, inherit_leader_mission(), and OBJECT_CLASS_SHIP.
Referenced by close_behind(), inherit_leader(), inherit_leader_mission(), and ship_intelligence().
| unsigned int init_3Space_objects | ( | ) |
References AddRandomTrainSimHighScores(), AlignSpriteFrameToRectCorner(), AllocateActiveSoundEntry(), AllocateViewport(), AllocateWaveTableEntry(), AnimateTrainSimTitle(), ApplyAnswerTextCipher(), arrive_from_warp(), CalcRectangleArea(), calculate_damage_level(), changetrack(), clean_up_cockpit(), clear_view_buffer(), ClearDebugPauseFlags(), ClearNextTextInputCharacter(), ClearTextInputCharacter(), CloseDataFileByHandle(), CreateDebugOverlayConsole(), DecompressPacketSection(), DestroyGlobalDebugOverlayConsole(), DiskPromptDrawHook(), DisplayTrainSimHighScoreTable(), Draw_3Space_Frame(), DrawArcadeScorePanel(), DrawConstellationField(), DrawLaunchDoorFrame(), DrawTargetRangeReadout(), DrawTextInputCursor(), drop_player_mine(), dump_buffer_to_screen(), EnableMusicForScene(), EnterPilotNameAndCallsign(), EraseTextContextBackground(), exit_squadron(), FadeFlightPaletteEntry(), FadeMusic(), FadeViewportPaletteToColour(), FigureArcadeTime(), find_next_gun(), find_objective(), FindActiveSoundEntryBySample(), FindNearestNavPoint(), FindSceneAnimationCommand(), FindTrainSimHighScore(), FindWaveTableEntryByName(), fire_players_lasers(), FlushSoundEffect(), FlushSoundEffects(), FlushSoundEffectsAndLog(), FrameTimerCallback(), free_3Space(), free_3Space_objects(), free_inflight_music(), FreeWaveTable(), FxDriverShutdownHook(), gametrack(), get_player_input(), GetArcadeBonus(), GetHighScoreEntry(), GetHighScoreValue(), GetJoystickButtonEdge(), GetJoystickPresentUnused(), GetMusicMode(), GetScreenUpdateFlag(), GetShipDistanceToNavPoint(), GetTargetColourIndex(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), house_keep(), init_3Space_objects(), init_inflight_music(), init_player_input(), initialize_scripted_view(), initialize_view_buffer(), InitializeAudioSystem(), InitializeConstellationField(), InitializeConversationText(), InitializeConversationViewport(), InitializeDiskPromptTextContext(), InitializeFireworks(), InitializeTrainSimHighScores(), InitializeTrainSimTextPanel(), InsertTrainSimHighScore(), IsHighScoreSlotUsed(), LaunchPlayerShip(), load_common_3Space_objects(), LoadAnswerPromptAndResponse(), LoadInstallDat(), LoadSceneAnimationResources(), LoadTrainSimOpponentShape(), LoadVolumeSettingsFromRegistry(), LoadWingCmdrCfgFile(), LogDisplayMode(), LogMemoryUsage(), main(), MapMusicTrackToStreamerCommand(), MeasureMessageWidth(), new_space_music_changes(), OpenPacketSection(), PacketLoad(), PaletteFadeHook(), parse_view_script(), personality_killed(), player_input(), players_flight_dynamics(), PlaySceneAnimation(), PlaySfxWaveFileByNumber(), PlaySnowStaticSound(), playWAVE(), PreloadMusicTrackHook(), process_player_input(), ProcessMusicScriptCommand(), PromptForAnswerText(), PromptForPilotField(), PumpMessagesDuringWait(), ReadRequiredPilotField(), ReadTextInput(), RefreshCockpitStatus(), RefreshMemoryStatusOverlay(), RegistryQueryValue(), RegistryStoreValue(), ReleaseFinishedSoundEntries(), ReleaseMusicTrackHook(), ReleaseSceneAnimationResources(), ReleaseStaleNavTarget(), remove_all_3d_objects(), RemoveActiveSoundEntry(), RemoveWaveTableEntry(), RenderSpaceViewFrame(), ReportFramesSkipped(), ReportOutOfMemoryAndExit(), ResetDiskPromptTimerHook(), ResetMouseCursorFrame(), ResetScreenClipToFullHeight(), ResetSoundState(), ResetSoundStateForFlight(), ResetSoundStateForScene(), RewriteDiskFileGraphicsExtensions(), RunSpaceFlight(), RunTrainSim(), SaveVolumeSettingsToRegistry(), SceneAnimationGoalReached(), SceneEnterHook(), SceneLeaveHook(), select_guns(), select_new_gun(), select_new_release_weapon(), SelectFlightMusicTrack(), SelectNextExternalViewObject(), SelectPreviousExternalViewObject(), SelectTrainSimMission(), ServiceAudioStream(), ServiceSoundSystem(), servicetrack(), SetConsoleBackgroundColourHook(), SetConsoleTextColourHook(), SetHighScoreEntry(), SetMessageDisplaySpeed(), SetMultimediaTimerCallback(), SetMusBreakpt(), SetMusicOn(), SetSoundEffectsVolume(), show_damage_disp(), show_target_disp(), ShowCarrierLaunchSequence(), ShowGamePausedBanner(), ShowMeanwhileTransition(), ShowMemoryStatusDebug(), ShowModalMessage(), ShowOnScreenMessage(), ShowTrainSimHighScores(), ShowTrainSimTextMessage(), ShowVersionBanner(), SortTrainSimHighScores(), sound_effect(), SoundFxTick(), spacetrack(), stop_all_sounds(), StopMusic(), StopMusicUnlessSuppressed(), StopSoundsUsingWave(), SystemDebugPrintf(), TakeDebugStepFlag(), TheEndFireWorks(), TriggerPlayerHitPaletteFlash(), unwarp(), Update_3Space(), update_scripted_view(), UpdateArcadeScoreDisplay(), UpdateDamageDisplay(), UpdateRoomMenuCursor(), UpdateSceneAnimationObject(), UpdateSpacePaletteFade(), UpdateTrainSimHighScores(), UpdateTrainSimMenuCursor(), wait_for_end_of_music(), WaitForDebugStep(), WaitForKeyAcknowledge(), WaitForKeyExceptXOrF12(), WaitForMusicOrInput(), and warp().
Referenced by init_3Space_objects(), init_3Space_objects(), init_mission(), RunAnimationDemoLoop(), ShowCampaignVictorySequence(), ShowTigerClawEscapeScene(), and Title_Sequence().
| unsigned int init_constellation | ( | short | scene | ) |
Definition at line 1665 of file logic.c.
References asConstellationObjectIndices, FetchDiskPacketRetrying(), find_vacant_3d_object(), init_constellation(), InitializeConstellationObject(), nTrainSimActive, pConstellationDefinitionsPtr, and pCurrentConstellationShape.
Referenced by close_behind(), funeral_sequence(), init_3Space_objects(), init_constellation(), LoadFace(), RecRoom(), and SceneDirector().
| unsigned int init_formation_burst | ( | short | obj | ) |
Definition at line 627 of file logic.c.
References acFormationMemberLists, AddFixedVectors(), aShipDestinationsArray, aShipPositionsArray, build_squad_list(), ComputeVectorDelta(), find_squad_center(), init_formation_burst(), OBJECTIVE_BREAK_FORMATION, reset_objective(), ScaleFixedVector(), and steady_object().
Referenced by approach_and_engage(), init_formation_burst(), and patrol_area().
| void init_hazard | ( | short | obj, |
| FixedVector | position, | ||
| short | moving ) |
Definition at line 200 of file winmain.c.
References acHazardTravelTimeByView, acObjCollisionGraceTicks, AddFixedVectors(), align(), aShipFwdVec, aShipPositionsArray, aShipVelocity, asObjectCounterArray, asteroid_velocity(), bIntroSecondaryScene, cCurrentCockpitView, HazardField::center, difficulty(), distance_between_points(), init_hazard(), kilrathi_near(), MaxShort(), nActiveHazards, OBJECT_TYPE_ASTEROID1, OBJECT_TYPE_ASTEROID_FIELD, OBJECT_TYPE_SPACE_MINE, pActiveHazardField, 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 568 of file geom.c.
References anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, aShipFwdVec, aShipRightVector, aShipUpVector, init_ijk(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by CreateCannedSceneObject(), init_ijk(), initialize_scripted_view(), InitializeConstellationObject(), set_background_objects_rotation(), and set_objects_data().
| unsigned int init_inflight_music | ( | void | ) |
Definition at line 2015 of file logic.c.
References init_inflight_music(), nCombatMusicActive, nInFlightMusicActive, and nInitialFlightMusicPending.
Referenced by init_3Space_objects(), init_inflight_music(), and RunSpaceFlight().
| unsigned int init_intelligence_data | ( | short | obj | ) |
Definition at line 893 of file mission.c.
References abShipTurnList, acShipRating, acShipStressList, advance_canned_sequence(), aeShipManeuversTable, aeShipMissionType, aeShipSide, aeShipTacticArray, aeSpecialManeuvers, aiPilotLevel, aMissionNavPoints, anShipMissionShips, apCannedSequenceList, aShipMissionSpotArray, clear_alert(), MissionHeaderDisk::homeMissionShip, init_intelligence_data(), locate_ship(), MANEUVER_WARPING_IN, MISSION_TYPE_CANNED_SEQUENCE, MISSION_TYPE_COME_HOME, MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, MISSION_TYPE_GOTO_WARP, MISSION_TYPE_STRIKE, MISSION_TYPE_WARP_ARRIVE, MISSION_TYPE_WINGMAN, nCurrentNavigationPoint, MissionNavPoint::position, RATING_ACE_SPIRIT, RATING_PROVINCIAL, SIDE_KILRATHI, SPECIAL_MANEUVER_NONE, stCurrentMissionHeader, and TACTIC_WARP_IN.
Referenced by init_intelligence_data(), and Set_up_ship_info().
| unsigned int init_mission | ( | short | series, |
| short | mission ) |
Definition at line 99 of file mission.c.
References aMissionResourceDescriptors, aObjectTypeData, init_3Space_objects(), init_mission(), InitializeCockpitResources(), LoadMissionData(), LoadPacketResourceList(), nAvailableGameMemory, nSceneResourceBudgetValue, OBJECT_TYPE_DEBRIS_METAL_SHEET, OBJECT_TYPE_DEBRIS_WING, CampaignState::playerShipType, prepare_mission(), ObjectTypeData::shapeSet, and stCampaignState.
Referenced by GameFlow(), init_mission(), main(), and RunTrainSim().
| unsigned int init_personalities | ( | void | ) |
Definition at line 640 of file mission.c.
References ACTIVE_MISSION_SHIP_COUNT, aMissionShips, get_face(), get_pilot_talk(), init_personalities(), prepare_ace(), SIDE_IMPERIAL, and SIDE_KILRATHI.
Referenced by init_personalities(), and InitializeCockpitResources().
Definition at line 564 of file main.c.
References bMouseCursorVisible, bPtrMovedByKeyboardState, ClearDebugPauseFlags(), init_player_input(), Viewport::left, nCurrentViewCenterPosY, Viewport::right, SetMousePosition(), and stSpaceBufferViewport.
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), init_player_input(), process_player_input(), and PumpWindowMessages().
| short init_ship | ( | short | missionShip, |
| short | navPoint ) |
Definition at line 849 of file mission.c.
References add_hazard_field(), AddFixedVectors(), aMissionNavPoints, aMissionShips, MissionShipRecord::behaviour, check_futurion(), find_next_ship_turn_slot(), find_ship_index(), init_ship(), initialize_ship(), is_alive(), is_team_member(), MISSION_TYPE_CANNED_SEQUENCE, MissionShipRecord::missionType, MissionShipRecord::navPoint, OBJECT_TYPE_ASTEROID_FIELD, OBJECT_TYPE_MINE_FIELD, MissionShipBehaviour::pilot, MissionShipRecord::position, Set_up_ship_info(), 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 1716 of file logic.c.
References anVduModeCache, cBlackColour, cPrimaryTextColour, init_vdus(), InitializeTextContextFromFont(), nTrainSimActive, set_mode(), stLeftVdu, stLeftVduTextContext, stRightVduTxtContext, stRightVduViewport, stScreenView, szDefaultTxtBuf, TextContext::text, and TextContext::viewport.
Referenced by close_behind(), init_vdus(), and InitializeCockpitResources().
Definition at line 355 of file screen.c.
References AllocateViewport(), Viewport::bottom, InitFullScreenViewport(), Viewport::left, pFullScreenRecord, Viewport::right, and Viewport::top.
Referenced by InitFullScreenViewport(), and PlaySfxWaveFileByNumber().
Definition at line 135 of file winsys.c.
References dwGameClockBaseValue, and InitGameClockEpoch().
Referenced by InitGameClockEpoch(), and WinMain().
| unsigned int initialize_cockpit | ( | int | requestedMode | ) |
Definition at line 1481 of file logic.c.
References apCockpitShapesList, bCockpitlessView, bIntroSceneResourcesActive, Viewport::bottom, bViewBufferEnabled, cBlackColour, cCockpitLogicalFile, cCurrentCockpitView, clear_head_up_display(), ClearViewport(), cPrimaryViewBufferColour, cScreenViewMode, DIBslam(), DIBslamReal(), DrawSpriteDefault(), EndCommMenu(), explosion_draw(), FetchDiskPacketRetrying(), GetScreenUpdateFlag(), initialize_cockpit(), initialize_view_buffer(), InvalidateVduMode(), Viewport::left, message_showing(), nScreenHeight, nScreenWidth, pCinematicViewBackdropPtr, Viewport::pixels, pLogicRearViewBackdropPtr, ReleasePacketHandle(), reset_cockpit(), ResetCockpitPaletteEntries(), ResetPilotHandAnimation(), Viewport::right, set_up_screen_viewport(), SetViewportRect(), stModalSrcViewport, stScreenView, stSpaceBufferViewport, Viewport::top, and update_VDUs().
Referenced by close_behind(), HandleSpaceFlightControls(), initialize_cockpit(), new_view(), RunSpaceFlight(), and SetFleetOverviewView().
| unsigned int initialize_direction_view_frame | ( | short | yaw, |
| short | pitch, | ||
| signed char | frame ) |
Definition at line 232 of file init.c.
References aDirectionViewForwardVector, aDirectionViewRightVector, aDirectionViewUpVectorArray, initialize_direction_view_frame(), rotate_about_i(), and rotate_about_j().
Referenced by initialize_direction_view_frame(), and initialize_direction_view_frames().
| unsigned int initialize_direction_view_frames | ( | void | ) |
Definition at line 250 of file init.c.
References initialize_direction_view_frame(), and initialize_direction_view_frames().
Referenced by initialize_direction_view_frames(), and LoadOriginFxDrivers().
| short initialize_object | ( | short | obj, |
| enum ObjectType | type, | ||
| short | owner ) |
Definition at line 67 of file ship.c.
References aShipPositionsArray, aShipVelocity, initialize_object(), set_objects_data(), and zero_vector().
Referenced by initialize_object(), initialize_ship(), and new_object().
| void initialize_scripted_view | ( | const short * | script | ) |
Definition at line 175 of file view.c.
References aShipVelocity, asObjectCollisionRadius, bScriptedView, init_ijk(), initialize_scripted_view(), parse_view_script(), pCurrentViewScriptPtr, and zero_vector().
Referenced by ejection_sequence(), init_3Space_objects(), initialize_scripted_view(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowTigerClawEscapeScene(), and Title_Sequence().
| short initialize_ship | ( | enum ObjectType | type, |
| short | owner ) |
Definition at line 102 of file ship.c.
References aeShipSide, get_ship_slot(), initialize_object(), initialize_ship(), and SIDE_NEUTRAL.
Referenced by fire_weapon(), init_ship(), and initialize_ship().
| unsigned int initialize_view_buffer | ( | void | ) |
Definition at line 371 of file main.c.
References AllocateViewport(), bViewBufferEnabled, cPrimaryViewBufferColour, initialize_view_buffer(), Viewport::pixels, ReportOutOfMemoryAndExit(), and stSpaceBufferViewport.
Referenced by auto_pilot_sequence(), free_all_slots(), get_right_shape(), HandleSpaceFlightControls(), InflightComputer(), init_3Space_objects(), initialize_cockpit(), initialize_view_buffer(), new_sphere_shapes(), RunSpaceFlight(), and set_eye_direction_and_position().
| void InitializeAudioStreamer | ( | HWND | window | ) |
Definition at line 1356 of file gr.c.
References bIxAudioEnabled, 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 25 of file sound.c.
References bAudioSystemInitialized, bIxAudioEnabled, InitializeAudioSystem(), ix_system_configure(), ix_system_init(), and ix_system_set_voice_count().
Referenced by init_3Space_objects(), InitializeAudioSystem(), and WinMain().
| void InitializeBarracksAnimation | ( | BarracksAnimationState * | state | ) |
Definition at line 329 of file barracks.c.
References BarracksBunkState::animationFrame, BarracksBunkState::animationPeriod, BarracksAnimationState::animationTick, BarracksBunkState::animationTick, BarracksAnimationState::blinkDelay, BarracksAnimationState::bunks, BarracksAnimationState::eyesOpen, BarracksAnimationState::fallingDelay, BarracksAnimationState::fallingVelocity, BarracksAnimationState::fallingY, BarracksAnimationState::impactFrame, InitializeBarracksAnimation(), BarracksAnimationState::menuLabel, and RandomInRange().
Referenced by BarracksScreen(), and InitializeBarracksAnimation().
| unsigned int InitializeCockpitReadout | ( | signed char | slot, |
| TextContext * | context ) |
Definition at line 341 of file cockpt.c.
References aCockpitReadouts, CockpitReadout::context, TextContext::cursorX, TextContext::cursorY, InitializeCockpitReadout(), CockpitReadout::previousRight, CockpitReadout::x, and CockpitReadout::y.
Referenced by InitializeCockpitReadout(), InitializeCockpitResources(), show_navigation_disp(), and show_target_disp().
| unsigned int InitializeCockpitResources | ( | signed char | mode | ) |
Definition at line 1741 of file logic.c.
References aCockpitPrimaryResources, aCockpitSecondaryResources, AllocateTaggedMemory(), AllocateViewport(), aObjectTypeData, aShipWeaponsTable, bCockpitResourcesActive, bCommVideoEnabled, ShortRect::bottom, bRadioSilence, cBlackColour, cCockpitLogicalFile, cCurrentCockpitView, clear_cockpit_damage(), ClearHudGunReadouts(), cPrimaryTextColour, free_cockpit(), GetScreenUpdateFlag(), init_personalities(), init_vdus(), InitializeCockpitReadout(), InitializeCockpitResources(), InitializeTextContextFromFont(), ShortRect::left, Viewport::left, CockpitLayout::leftVduBounds, LoadPacketAllocated(), LoadShapeSet(), MaxShort(), MeasureShapeFrameStorage(), nCockpitExplosionFrame, nMemoryConfig, nSceneResourceBudgetValue, OBJECT_CLASS_MISSILE, pCockpitExplosionBackground, pCockpitExplosionShape, pCockpitWeaponShapePtr, pCurrentPilotHandShapePtr, pCurrentScreenViewportPkt, pDamageDisplayBackground, CockpitLayout::pilotHandBounds, pRadarMarkerBackground, pReleaseWeaponDisplayBackground, pTgtLockShapePtr, CockpitLayout::readoutOrigins, reset_cockpit(), ResetScannerContacts(), ShortRect::right, CockpitLayout::rightVduBounds, SetTextContext(), SetTextCursor(), SetViewportRect(), stCockpitBar, stCockpitLayout, stCurrentCockpitReadoutTextCtx, stLeftVdu, stPilotHandBackdropView, stPilotHandComposite, stPilotHandView, stRightVduViewport, stScreenView, ShortRect::top, TextContext::viewport, ShortPoint::x, and ShortPoint::y.
Referenced by close_behind(), init_mission(), InitializeCockpitResources(), and RunAnimationDemoLoop().
| unsigned int InitializeConstellationField | ( | Viewport * | viewport, |
| short | direction, | ||
| short | density ) |
Definition at line 238 of file view.c.
References aConstellationParticlesList, aConstellationStarsTable, asConstellationFrame, asConstellationVelocity, Viewport::bottom, ConstellationParticle::frame, ConstellationStar::frame, InitializeConstellationField(), Viewport::left, nConstellationDirection, nConstellationParticleTotal, nViewConstellationStarCount, pConstellationViewportPtr, RandomInRange(), Viewport::right, Viewport::top, ConstellationParticle::velocity, ConstellationParticle::x, ConstellationStar::x, ConstellationParticle::y, and ConstellationStar::y.
Referenced by funeral_sequence(), init_3Space_objects(), InitializeConstellationField(), LoadFace(), RecRoom(), and SceneDirector().
| unsigned int InitializeConstellationObject | ( | const ConstellationObjectDefinition * | definition, |
| short | object ) |
Definition at line 1633 of file logic.c.
References aeObjectClass, aeObjectTypeList, alter_pitch(), alter_roll(), alter_yaw(), apObjShapeArray, aShipFwdVec, aShipPositionsArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, FetchDiskPacketRetrying(), init_ijk(), InitializeConstellationObject(), OBJECT_CLASS_PLANET, OBJECT_TYPE_HORNET, ConstellationObjectDefinition::pitch, ConstellationObjectDefinition::roll, ScaleFixedVector(), ConstellationObjectDefinition::shapePacket, and ConstellationObjectDefinition::yaw.
Referenced by close_behind(), init_constellation(), and InitializeConstellationObject().
| unsigned int InitializeConversationText | ( | void | ) |
Definition at line 448 of file main.c.
References TextContext::alignment, cBlackColour, cViewportClearColour, InitializeConversationText(), InitializeTextContextFromFont(), SetTextContext(), stCurrentConvTextViewport, stCurrentConvTxtCtx, stModalSrcViewport, szDefaultTxtBuf, TextContext::text, Viewport::top, and TextContext::viewport.
Referenced by AwardCampaignMedal(), DeBriefing(), funeral_sequence(), init_3Space_objects(), InitializeConversationText(), landing(), LoadBriefingRoom(), Office(), RecRoom(), ShowCampaignVictorySequence(), ShowMeanwhileTransition(), ShowTigerClawEscapeScene(), and ViewMedals().
| unsigned int InitializeConversationViewport | ( | void | ) |
Definition at line 422 of file main.c.
References AllocateViewport(), Viewport::bottom, cBlackColour, ClearViewport(), InitializeConversationViewport(), Viewport::left, ReportPacketLoadError(), Viewport::right, stModalSrcViewport, stSceneBuffer, stScreenView, and Viewport::top.
Referenced by AwardCampaignMedal(), DeBriefing(), funeral_sequence(), init_3Space_objects(), InitializeConversationViewport(), landing(), LoadBriefingRoom(), Office(), PlayScrambleHangarScene(), scramble(), ShowMeanwhileTransition(), and ShowTheEndScreen().
| unsigned short __stdcall InitializeDIBScreenViewport | ( | Viewport * | viewport, |
| unsigned short | colour ) |
Definition at line 327 of file screen.c.
References awScreenRowOffsets, Viewport::bottom, GetDIBPixelBuffer(), InitializeDIBScreenViewport(), Viewport::left, nVideoMode, pAllocatedScreenViewport, Viewport::pixels, pScreenAllocPtr, Viewport::right, Viewport::rowOffsets, ScreenAllocation::state, stCurrentScreenAlloc, SystemDebugPrintf(), Viewport::top, ScreenAllocation::viewport, and void().
Referenced by InitializeDIBScreenViewport(), InitializeGameTextContexts(), and PlaySfxWaveFileByNumber().
| unsigned short InitializeDiskPromptTextContext | ( | void | ) |
Definition at line 28 of file install.c.
References TextContext::alignment, bGraphicsActive, ShortRect::bottom, cBlackColour, cViewportClearColour, TextContext::font, FontHeight(), InitializeDiskPromptTextContext(), InitializeGameTextContexts(), InitializeTextContextFromFont(), ShortRect::left, MeasureTextPixelWidthClamped(), nDiskPromptBorderColour, Viewport::pixels, ShortRect::right, stDefaultTxtContext, stDiskPromptBounds, stDiskPromptTextContext, stDiskPromptViewport, stScreenView, szTxtWorkspaceBuffer, TextContext::text, ShortRect::top, and TextContext::viewport.
Referenced by init_3Space_objects(), InitializeDiskPromptTextContext(), and LoadOriginFxDrivers().
| short __stdcall InitializeEventManager | ( | short | period, |
| unsigned short(* | initialize )(void), | ||
| void * | configuration ) |
Definition at line 90 of file strdos.c.
References InitializeEventManager(), and nEventManagerActive.
Referenced by DosMemcpy(), EMStartUp(), and InitializeEventManager().
| unsigned short InitializeEventManagerResources | ( | void | ) |
Definition at line 97 of file init.c.
References DAT_0059a9f0, FetchDiskPacketRetrying(), MouseCursorState::frame, InitializeEventManagerResources(), nInputTickScale, nUnusedInputTimerFlag, pMouseCursorResource, MouseCursorState::shape, stMouseCursorState, stScreenView, and MouseCursorState::viewport.
Referenced by EMStartUp(), and InitializeEventManagerResources().
| unsigned int InitializeFireworks | ( | void | ) |
Definition at line 186 of file view.c.
References aFireworksList, FireworkState::frame, and InitializeFireworks().
Referenced by init_3Space_objects(), InitializeFireworks(), ShowTheEndScreen(), and ShowVictoryScreen().
| unsigned int InitializeGameTextContexts | ( | void | ) |
Definition at line 209 of file init.c.
References TextContext::alignment, cBlackColour, cPrimaryTextColour, cRedColour, InitializeDIBScreenViewport(), InitializeGameTextContexts(), InitializeTextContextFromFont(), SetTextContext(), stDefaultTxtContext, stHudMessageTextContext, stModalSrcViewport, stScreenView, stSpaceBufferViewport, szDefaultTxtBuf, TextContext::text, and TextContext::viewport.
Referenced by InitializeDiskPromptTextContext(), InitializeGameTextContexts(), and LoadOriginFxDrivers().
| short InitializeModalTextPanel | ( | ModalTextPanel * | panel, |
| short | fontIndex, | ||
| ShortRect | bounds, | ||
| short | clearColour, | ||
| short | backgroundColour, | ||
| short | borderColour ) |
Definition at line 64 of file barracks.c.
References AllocateViewport(), ModalTextPanel::bottom, ModalTextPanel::context, CopyViewportContents(), DrawViewportBorder(), EraseTextContextBackground(), InitializeModalTextPanel(), InitializeTextContextFromFont(), ModalTextPanel::left, Viewport::left, pCurTextContext, ModalTextPanel::previousContext, ResetStringBuilder(), ModalTextPanel::right, ModalTextPanel::savedBackground, stDefaultTxtContext, stModalSrcViewport, szTxtWorkspaceBuffer, TextContext::text, ModalTextPanel::top, ModalTextPanel::viewport, and TextContext::viewport.
Referenced by InitializeModalTextPanel(), PromptForAnswerText(), PromptForTextInput(), and ShowModalTextPanel().
| unsigned short InitializeNearHeap | ( | void | ) |
Definition at line 95 of file nearheap.c.
References AllocateTaggedMemory(), DosFarPtrToNear(), DosMemcpy(), DosNearPtrToFar(), FreeIfNotNull(), GetNavRangeSentinel(), InitializeNearHeap(), nNearHeapActive, nNearHeapBase, nNearHeapMaxDescriptors, nNearHeapRelocationBytes, nNearHeapSize, pCurrentNearHeapAlloc, and PurgeNearHeapBlocks().
Referenced by InitializeNearHeap().
| void InitializeRoomMenu | ( | const TitleMenuRegion * | regions, |
| char ** | labels, | ||
| Viewport * | viewport, | ||
| char * | text, | ||
| unsigned char | alignment ) |
Definition at line 254 of file killbrd.c.
References TextContext::alignment, ClearRoomMenuCursorFrame(), RoomMenu::currentLabel, cViewportClearColour, InitializeRoomMenu(), InitializeTextContextFromFont(), RoomMenu::labels, pszBlankRoomMenuLabel, RoomMenu::regions, stCurrentRoomMenu, RoomMenu::text, TextContext::text, TextContext::textCursor, and TextContext::viewport.
Referenced by BarracksScreen(), CollectRasterClipColours(), InitializeRoomMenu(), and RecRoom().
Definition at line 287 of file killbrd.c.
References AllocateViewport(), Viewport::bottom, cBlackColour, EventManagerHook(), InitializeRoomViewports(), Viewport::left, nMenuInputRepeatDelay, nSavedRoomCtrlX, PollMenuInputDevices(), Viewport::right, SetEventManagerPump(), stCurrentRoomMouseView, stRoomDisplayView, stRoomScreenViewport, stSceneBuffer, stScreenView, Viewport::top, and UpdateRoomMenuCursor().
Referenced by BarracksScreen(), CollectRasterClipColours(), InitializeRoomViewports(), and RecRoom().
| unsigned int InitializeTextContextFromFont | ( | TextContext * | context, |
| short | fontIndex, | ||
| unsigned char | colour, | ||
| signed char | background ) |
Definition at line 192 of file disk.c.
References AllocateFontWorkspace(), apFontWorkspaces, apTextFonts, TextContext::backgroundColour, TextContext::colour, FetchDiskPacketRetrying(), TextContext::font, TextContext::fontWorkspace, InitializeTextContextFromFont(), and SetTextContext().
Referenced by BuildMap(), CalibrateJoystickInteractive(), DrawNavLocationReadout(), init_vdus(), InitializeCockpitResources(), InitializeConversationText(), InitializeDiskPromptTextContext(), InitializeGameTextContexts(), InitializeModalTextPanel(), InitializeRoomMenu(), InitializeTextContextFromFont(), InitializeTrainSimTextPanel(), SelectTrainSimMission(), ShowChalkBoard(), ShowMemoryStatusDebug(), and ShowTrainSimHighScores().
Definition at line 199 of file trainsim.c.
References aHighScoreEntriesArray, InitializeTrainSimHighScores(), RandomBelowOrEqual(), RandomInRange(), and SetHighScoreEntry().
Referenced by init_3Space_objects(), InitializeTrainSimHighScores(), and ResetCampaignData().
Definition at line 484 of file trainsim.c.
References cBlackColour, cDefaultTextColour, ClearViewport(), EraseTextContextBackground(), InitializeTextContextFromFont(), InitializeTrainSimTextPanel(), Viewport::left, ResetStringBuilder(), SetTextContext(), stScreenView, stTrainSimPanelBounds, stTrainSimPanelViewport, stTrainSimTxtContext, szDefaultTxtBuf, TextContext::text, and TextContext::viewport.
Referenced by EnterPilotNameAndCallsign(), init_3Space_objects(), InitializeTrainSimTextPanel(), and UpdateTrainSimHighScores().
| short InsertTrainSimHighScore | ( | short | pilot, |
| unsigned int | score ) |
Definition at line 184 of file trainsim.c.
References FindTrainSimHighScore(), InsertTrainSimHighScore(), SetHighScoreEntry(), and SortTrainSimHighScores().
Referenced by AddRandomTrainSimHighScores(), init_3Space_objects(), InsertTrainSimHighScore(), and UpdateTrainSimHighScores().
References InstallRasterDriverCallbacks().
Referenced by InstallRasterDriverCallbacks().
| short int_value | ( | char ** | text | ) |
Definition at line 944 of file screens.c.
References int_value().
Referenced by DosMemcpy(), int_value(), and ParseTests().
| void intelligence_events | ( | short | obj | ) |
Definition at line 599 of file smart.c.
References acShipAiCooldowns, acShipStressList, acShipTargetTable, acWingmanMessageStatesArray, aeObjectClass, aeSpecialManeuvers, aiIntelligenceEvent, anShipSpeed, any_enemy(), evaluate_damage(), handle_stress(), intelligence_events(), missile_on_tail(), nFacingToTargetValue, nTargetFacingValue, nTgtRange, nYourWingman, OBJECT_CLASS_SHIP, OBJECTIVE_NONE, process_maneuver_node(), RandomBelow(), reset_objective(), reset_stress(), select_target(), send_message(), ship_vs_ship(), SPECIAL_MANEUVER_UNKNOWN_9, and unactive().
Referenced by intelligence_events(), maneuvering(), and PlaySfxWaveFileByNumber().
| int internal_damage | ( | short | attacker, |
| short | victim, | ||
| short | damage, | ||
| short | quadrant ) |
Definition at line 660 of file ship.c.
References aasShipMaximumShieldTable, aasShipShield, acShipCommunicatorArray, acShipDestroyedWeaponCountArray, acShipDmg, acShipRating, aeObjectClass, aeObjectTypeList, aeShipSide, anShipFuelsTable, any_enemy(), aObjectTypeData, aShipWeaponsTable, asShipAccumulatedDmg, call_enemy(), damage_ion_drive(), ObjectTypeData::damageCapacity, drain_fuel(), explode(), 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 inflict_damage(), and internal_damage().
| int intfract_sign | ( | int | sign, |
| int | magnitude ) |
Definition at line 962 of file eventmgr.c.
References aeObjectClass, aeObjectTypeList, apObjShapeArray, asObjectDrawPosX, asObjectDrawPosY, asObjectFlipArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, cPrimaryViewBufferColour, DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), intro_drawbackgroundships(), nNavPointerObject, OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_STAR, pCurrentConstellationShape, SPACE_OBJECT_COUNT, and stSpaceBufferViewport.
Referenced by DosMemcpy(), intro_drawbackgroundships(), and Title_Sequence().
| void InvalidateVduMode | ( | short | i | ) |
Definition at line 764 of file cockpt.c.
References anVduModeCache, and InvalidateVduMode().
Referenced by check_objectives(), DrawTargetRangeReadout(), HandleSpaceFlightControls(), initialize_cockpit(), InvalidateVduMode(), RefreshCommunicationMenu(), remove_weapon(), RunTrainSim(), select_new_gun(), select_new_release_weapon(), SelectCockpitVduMode(), set_next_destination(), and UpdateDamageDisplay().
| unsigned int is_alive | ( | int | pilot | ) |
Definition at line 74 of file mission.c.
References ace_status(), is_alive(), nArcadeState, CampaignState::personalityDeathMission, and stCampaignState.
Referenced by init_ship(), is_alive(), and prepare_mission().
| int is_ship_tailing_player_target | ( | short | obj | ) |
Definition at line 552 of file logic.c.
References acShipTargetTable, being_tailed(), is_ship_tailing_player_target(), and unactive().
Referenced by gametrack(), and is_ship_tailing_player_target().
| unsigned int is_team_member | ( | short | missionShip | ) |
Definition at line 805 of file mission.c.
References MissionHeaderDisk::initialMissionShips, is_team_member(), MissionHeaderDisk::playerMissionShip, and stCurrentMissionHeader.
Referenced by auto_pilot_sequence(), init_ship(), and is_team_member().
| unsigned short IsCockpitExplosionActive | ( | void | ) |
Definition at line 247 of file cockpt.c.
References IsCockpitExplosionActive(), and nCockpitExplosionFrame.
Referenced by cockpit_explosion(), IsCockpitExplosionActive(), place_damage_on_cockpit(), RestoreCockpitExplosionBackground(), RestoreCockpitExplosionIfVisible(), and RestoreTransientCockpitGraphics().
| short IsCommChoiceMenuOpen | ( | void | ) |
Definition at line 139 of file comm.c.
References get_mode(), and IsCommChoiceMenuOpen().
Referenced by BuildCommunicationCommandMenu(), HandleCommunicationMenuRequest(), IsCommChoiceMenuOpen(), PlaySfxWaveFileByNumber(), RefreshCommunicationMenu(), and show_communications_disp().
| short IsCommMenuIdle | ( | void | ) |
Definition at line 105 of file comm.c.
References IsCommMenuIdle(), and nCommMenuChoiceCount.
Referenced by BuildCommunicationCommandMenu(), IsCommMenuIdle(), and PlaySfxWaveFileByNumber().
| int IsFrameTickElapsed | ( | void | ) |
Definition at line 629 of file eventmgr.c.
References bFrameTickPendingFlag, and IsFrameTickElapsed().
Referenced by BarracksScreen(), CloseLook(), DisplayTrainSimHighScoreTable(), DosMemcpy(), DrawFuneralLongShot(), funeral_wingman(), IsFrameTickElapsed(), LongTalk(), PinMedal(), PlaySceneAnimation(), RecRoom(), ShowCampaignVictorySequence(), and WaitForSceneAdvance().
| short IsHighScoreSlotUsed | ( | short | i | ) |
Definition at line 227 of file trainsim.c.
References aHighScoreEntriesArray, IsHighScoreSlotUsed(), and HighScoreEntry::pilotIndex.
Referenced by init_3Space_objects(), IsHighScoreSlotUsed(), and ShowTrainSimHighScores().
| short __stdcall IsInputEventQueued | ( | short | type | ) |
Definition at line 371 of file eventmgr.c.
References IsInputEventQueued(), InputEvent::next, and pInputEventHead.
Referenced by CheckEscaped(), DosMemcpy(), IsInputEventQueued(), player_input(), and WaitForKeyAcknowledge().
| int IsPairEqualityDifferentFromFlag | ( | const unsigned int * | values | ) |
Definition at line 274 of file geom.c.
References IsPairEqualityDifferentFromFlag().
Referenced by IsPairEqualityDifferentFromFlag().
| short IsPointInNavMapLabel | ( | short | label, |
| short | x, | ||
| short | y ) |
Definition at line 271 of file nav.c.
References aNavMapLabels, IsPointInNavMapLabel(), and NavMapLabel::x.
Referenced by FindNavMapLabelAtPoint(), IsPointInNavMapLabel(), and SelectNavObjectiveAtPoint().
| short __stdcall IsPointInRect | ( | short | x, |
| short | y, | ||
| const short * | rect ) |
Definition at line 217 of file mathfp.c.
References IsPointInRect().
Referenced by FindMenuRegionAtPoint(), IsPointInRect(), PlaySfxWaveFileByNumber(), SplitPackedPoint(), UpdateRoomMenuCursor(), UpdateTitleMenuCursor(), and UpdateTrainSimMenuCursor().
| unsigned short IsPointWithinEyeViewCone | ( | const FixedVector * | point | ) |
Definition at line 1161 of file geom.c.
References aShipPositionsArray, asObjectCollisionRadius, ComputeVectorDelta(), DivideFixed(), EYE_OBJECT, IsPointWithinEyeViewCone(), transform_to_objects_frame(), Vector_magnitude(), and FixedVector::z.
Referenced by IsPointWithinEyeViewCone().
| unsigned int IsPointWithinRange | ( | const FixedVector * | from, |
| const FixedVector * | to, | ||
| short | range ) |
Definition at line 913 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 481 of file screen.c.
References aiPktHandleDeltas, apPacketHandlesList, IsPushedPacketHandle(), and nPacketHandleTotal.
Referenced by IsPushedPacketHandle(), PacketLoad(), and PlaySfxWaveFileByNumber().
| char IsRoomMenuLabelEmpty | ( | void | ) |
Definition at line 212 of file killbrd.c.
References RoomMenu::currentLabel, IsRoomMenuLabelEmpty(), and stCurrentRoomMenu.
Referenced by CollectRasterClipColours(), IsRoomMenuLabelEmpty(), and RefreshRoomMenuLabel().
| unsigned short IsSoundHardwarePresent | ( | short | device | ) |
Definition at line 450 of file screen.c.
References GetSoundHardwareFlag(), and IsSoundHardwarePresent().
Referenced by IsSoundHardwarePresent(), LoadOriginFxDrivers(), and PlaySfxWaveFileByNumber().
| unsigned int IsVectorWithinRange | ( | FixedVector * | vector, |
| short | range ) |
Definition at line 1212 of file eventmgr.c.
References IsVectorWithinRange(), and Vector_magnitude().
Referenced by check_for_collision(), DosMemcpy(), IsPointWithinRange(), IsVectorWithinRange(), and ships_within_range().
| int __fastcall ix_sound_is_playing | ( | IxSound * | sound | ) |
Definition at line 355 of file sound.cpp.
References IxSound::flags, ix_sound_is_playing(), and IX_SOUND_PLAYING.
Referenced by CollectRasterClipColours(), ix_sound_is_playing(), PlaySnowStaticSound(), and ReleaseFinishedSoundEntries().
Definition at line 188 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(), and stop_all_sounds().
Definition at line 102 of file sound.cpp.
References IxSample::flags, IxSound::flags, IxSample::frequency, 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(), nActiveVoices, IxSound::next, nSystemVoices, pIdleSoundList, IxSound::pitchOffset, pPlayingSoundList, pQueuedSoundList, IxSound::previous, IxSound::priority, IxSound::sample, IxSample::sampleCount, IxSound::startTime, and IxSound::stopTime.
Referenced by CollectRasterClipColours(), ix_sound_start(), PlaySnowStaticSound(), and playWAVE().
Definition at line 209 of file sound.cpp.
References IxSound::flags, 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, pIdleSoundList, pPlayingSoundList, pQueuedSoundList, and IxSound::previous.
Referenced by CollectRasterClipColours(), ix_sound_release(), ix_sound_stop(), ix_system_delete_sound(), ix_system_service_sounds(), and stop_all_sounds().
Definition at line 336 of file streamer.cpp.
References dwIxStreamerStatus, hStreamerWakeupEvent, 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 349 of file streamer.cpp.
References dwIxStreamerStatus, hStreamerWakeupEvent, 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 297 of file streamer.cpp.
References csStreamer, dwIxStreamerStatus, hStreamerWakeupEvent, 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, pIxStreamerInputBuffer, pMusicStreamBranchList, IxStreamFile::previous, pStreamedMusicAudioChunks, pStreamerLzoBuffer, pStreamerPackageInfo, pStreamerPacketOffsetTable, pStreamerPackFile, pStreamFileBlocks, pStreamFileEntries, pStreamIdleFiles, and pStreamTriggerList.
Referenced by CollectRasterClipColours(), ix_streamer_close_stream_file(), ix_streamer_destroy(), ix_streamer_open_stream_file(), and Streamer_close().
Definition at line 102 of file streamer.cpp.
References ix_dsp_configure(), and ix_streamer_configure().
Referenced by CollectRasterClipColours(), InitializeAudioStreamer(), ix_streamer_configure(), and SignalAudioMixerWakeEvent().
Definition at line 81 of file streamer.cpp.
References csIxStreamerThread, csStreamer, csStreamerFileList, dwIxStreamerStatus, hStreamerWakeupEvent, 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(), ix_streamer_destroy(), and ShutdownAudioStreamer().
| void ix_streamer_force_trigger | ( | char | trigger | ) |
Definition at line 423 of file streamer.cpp.
References adwStreamCallStack, IxStreamerTrigger::audioChunk, IxStreamerHeader::audioChunkCount, csStreamer, dwIxStreamerStatus, IxStreamerAudioChunk::firstTrigger, hStreamerWakeupEvent, ix_dsps_stop(), ix_log_printf(), IX_STREAMER_DSP_PLAYING, IX_STREAMER_FILE, ix_streamer_force_trigger(), IX_STREAMER_HAS_AUDIO, nStreamCallStackIndex, nStreamerAudioBlock, pStreamedMusicAudioChunks, pStreamerPackageInfo, pStreamTriggerList, and IxStreamerAudioChunk::triggerCount.
Referenced by CollectRasterClipColours(), ForceStreamerTrigger(), and ix_streamer_force_trigger().
| char ix_streamer_get_trigger | ( | void | ) |
Definition at line 417 of file streamer.cpp.
References cStreamerBranchTag, and ix_streamer_get_trigger().
Referenced by CollectRasterClipColours(), GetStreamerTrigger(), and ix_streamer_get_trigger().
| unsigned short ix_streamer_get_volume | ( | void | ) |
Definition at line 491 of file streamer.cpp.
References ix_streamer_get_volume(), and nStreamerVolume.
Referenced by CollectRasterClipColours(), GetMusicStreamVolume(), and ix_streamer_get_volume().
| int ix_streamer_init | ( | void | ) |
Definition at line 51 of file streamer.cpp.
References csIxStreamerThread, csStreamer, csStreamerFileList, dwIxStreamerStatus, dwIxStreamerThreadId, hStreamerWakeupEvent, hStreamThread, 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 123 of file streamer.cpp.
References IxStreamerHeader::audioBufferSize, IxStreamerHeader::audioChunkCount, IxStreamerHeader::audioChunkTableOffset, IxStreamerHeader::bitsPerSample, IxStreamerHeader::branchCount, IxStreamerHeader::branchTableOffset, IxStreamerHeader::channels, IxStreamerHeader::dspConfigValue, dwIxStreamerAudioBufferSize, dwIxStreamerStatus, dwStreamBytesPerSecond, IxStreamerHeader::fileBufferSize, IxStreamerHeader::fileChunkCount, IxStreamerHeader::fileChunkTableOffset, IxStreamerHeader::fileEntryCount, IxStreamerHeader::fileEntryTableOffset, IxStreamerHeader::frequency, hStreamerWakeupEvent, 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(), nIxStreamerCurrentFileChunk, nStreamCallStackIndex, nStreamerAudioBlock, nStreamerVolume, IxStreamerHeader::packetCount, IxStreamerHeader::packetTableOffset, pIxMalloc(), pIxStreamerInputBuffer, pMusicStreamBranchList, pStreamedMusicAudioChunks, pStreamerLzoBuffer, pStreamerPackageInfo, pStreamerPacketOffsetTable, pStreamerPackFile, pStreamFileBlocks, pStreamFileEntries, pStreamIdleFiles, pStreamTriggerList, 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 386 of file streamer.cpp.
References bStreamerIntensityLevel, 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 402 of file streamer.cpp.
References cStreamerBranchTag, and ix_streamer_set_trigger().
Referenced by ClearStreamerTrigger(), CollectRasterClipColours(), ix_streamer_set_trigger(), and Streamer_trigger().
| void ix_streamer_set_volume | ( | unsigned short | volume | ) |
Definition at line 475 of file streamer.cpp.
References csStreamer, dwIxStreamerStatus, ix_dsps_set_volume(), ix_streamer_set_volume(), and nStreamerVolume.
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 ix_system_delete_all_samples(), ix_system_delete_sample(), IxSample::next, and pSamples.
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 ix_system_delete_all_sounds(), ix_system_delete_sound(), IxSound::next, pIdleSoundList, pPlayingSoundList, and pQueuedSoundList.
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(), 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 dwSoundStateFlags, ix_dsp_get_voice_count(), ix_dsp_init(), ix_log_printf(), IX_SYSTEM_FILE, ix_system_init(), ix_system_set_master_volume(), nActiveVoices, nSystemVoices, pIdleSoundList, pPlayingSoundList, pQueuedSoundList, and pSamples.
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_init().
Definition at line 139 of file system.cpp.
References IxSample::ix_sample_construct(), ix_system_new_sample(), and pIxMalloc().
Referenced by CollectRasterClipColours(), ix_system_new_sample(), PlaySnowStaticSound(), and playWAVE().
Definition at line 173 of file system.cpp.
References ix_system_new_sound(), IxSound::ix_system_sound_construct_centred(), and pIxMalloc().
Referenced by CollectRasterClipColours(), ix_system_new_sound(), PlaySnowStaticSound(), and playWAVE().
Definition at line 46 of file system.cpp.
References IxSound::flags, IxSample::frequency, 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, pPlayingSoundList, pQueuedSoundList, 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 ix_dsp_get_voice_count(), ix_dsp_set_voice_count(), ix_log_printf(), IX_SYSTEM_FILE, ix_system_set_voice_count(), nActiveVoices, and nSystemVoices.
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_set_voice_count().
Definition at line 93 of file system.cpp.
References dwSoundStateFlags, 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 1120 of file eventmgr.c.
References JoystickEdgeHook(), and void().
Referenced by DosMemcpy(), GetJoystickButtonEdge(), and JoystickEdgeHook().
| void kill_ace | ( | short | ace | ) |
Definition at line 133 of file logic.c.
References ace_status(), flag_ace(), kill_ace(), and unflag_ace().
Referenced by kill_ace(), and personality_killed().
| short kilrathi_near | ( | short | obj, |
| short | range ) |
Definition at line 501 of file cockpt.c.
References aeObjectClass, aeShipSide, aShipPositionsArray, IsPointWithinRange(), kilrathi_near(), OBJECT_CLASS_SHIP, and SIDE_KILRATHI.
Referenced by auto_pilot_sequence(), auto_pilot_valid(), init_hazard(), and kilrathi_near().
| void kilrathi_patrol | ( | short | obj | ) |
Definition at line 440 of file brains.c.
References aeShipObjectiveList, aeShipTacticArray, check_engage_target(), fail(), formation_burst(), kilrathi_patrol(), maneuvering(), OBJECTIVE_BREAK_FORMATION, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOLD_FORMATION, OBJECTIVE_NONE, OBJECTIVE_WANDER, patrol_area(), and TACTIC_APPROACH_TARGET.
Referenced by imperial_wingleader(), kilrathi_patrol(), and ship_intelligence().
| void kilrathi_wingman | ( | short | obj | ) |
Definition at line 324 of file brains.c.
References acShipTargetTable, aeShipObjectiveList, asShipWingLeaderArray, change_mission_type(), check_engage_target(), engage(), fail(), formation_burst(), 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().
| unsigned int landing | ( | signed char | damageLevel | ) |
Definition at line 761 of file cutscene.c.
References acScrambleShipDetailSlots, anLandingDamageDetailCounts, apLandingCanopyFrames, apszLandingDamageComments, bEscapePressedFlag, bScrambleCanopyClosed, cBlackColour, cBlueColour, cCockpitLogicalFile, ClearViewport(), ConfigureScrambleActor(), DIBslam(), DIBslamReal(), DrawScrambleFrame(), FetchDiskPacketRetrying(), FlushSoundEffectsAndLog(), FormatTextBufferFromStart(), InitializeConversationText(), InitializeConversationViewport(), landing(), nFrameSkipCounter, nRenderedSpaceFrame, nSceneScrambleCanopyFrameValue, nSceneScrambleShipDetailCountValue, nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, nScrambleCanopyOffset, nScrambleCockpitAngle, OBJECT_TYPE_HORNET, OBJECT_TYPE_RAPIER, OBJECT_TYPE_RAPTOR, OBJECT_TYPE_SCIMITAR, CampaignState::playerShipType, PlaySfxWaveFileByNumber(), PollJoystickButtonEvents(), PreloadMusicTrackHook(), pSceneScrambleBgShapePtr, pScrambleCanopyShape, pScrambleCockpitShapePtr, pScrambleDetailShape, pScrambleOverlayShape, pScrambleShipShape, pScrambleView, PumpWindowMessages(), RandomInRange(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ResetScreenClipToFullHeight(), SetEventManagerPump(), spacetrack(), stCampaignState, stCurrentConvTextViewport, StopMusicUnlessSuppressed(), stSceneBuffer, stScrambleCockpitDetail, stScrambleOverlay, stScramblePlayerShipPos, WaitForSceneAdvance(), ShortPoint::x, and ShortPoint::y.
Referenced by GameFlow(), landing(), and RunAnimationDemoLoop().
| int launch_object | ( | short | parent, |
| short | child, | ||
| FixedVector | direction, | ||
| short | speed ) |
Definition at line 1431 of file ship.c.
References AddFixedVectors(), aShipVelocity, launch_object(), NormalizeFixedVector(), ScaleFixedVector(), and vector_component_in_dir().
Referenced by fire(), and launch_object().
Definition at line 84 of file launch.c.
References bEscapePressedFlag, changetrack(), clear_view_buffer(), DIBslam(), DIBslamReal(), DrawLaunchDoorFrame(), dump_buffer_to_screen(), FetchDiskPacketRetrying(), force_view(), LaunchPlayerShip(), nCannedSceneMode, nFrameSkipCounter, pLaunchDoorShape, PlaySfxWaveFileByNumber(), PumpWindowMessages(), RefreshCockpitStatus(), ReleasePacketHandle(), ResetSoundState(), spacetrack(), StopMusicUnlessSuppressed(), and update_cockpit().
Referenced by GameFlow(), init_3Space_objects(), LaunchPlayerShip(), and RunAnimationDemoLoop().
Definition at line 556 of file eventmgr.c.
References LeaveAllocationScope(), and nMouseCursorShowCount.
Referenced by BarracksScreen(), CentreMouseOnCurrentNavObjective(), ClearTextInputCharacter(), ConfirmAwakenAfterBadData(), ConfirmQuitWingCommander(), ConfirmReplaceFaultyData(), DosMemcpy(), EraseLastTextInputCharacter(), HandleBarracksBunkSelection(), InflightComputer(), LeaveAllocationScope(), LoadGameFromSlot(), PollMenuInputDevices(), RecRoom(), SelectTrainSimMission(), ShowConfedNavScan(), SuspendMouseCursor(), Title_Sequence(), and WarnLoadGameFirst().
| int load_all_slots | ( | void | ) |
Definition at line 413 of file mission.c.
References aObjectResourceSlotsArray, GetScreenUpdateFlag(), load_all_slots(), load_ship(), and release_all_capital_ship_shapes().
Referenced by death_sequence(), ejection_sequence(), and load_all_slots().
| unsigned int load_common_3Space_objects | ( | void | ) |
Definition at line 1930 of file logic.c.
References aCommon3SpaceResources, ObjectTypeData::animation, aObjectTypeData, load_common_3Space_objects(), load_ship(), LoadShapeSet(), OBJECT_TYPE_DEBRIS_GLASS, OBJECT_TYPE_DEBRIS_O_RING, OBJECT_TYPE_DEBRIS_PIPE, OBJECT_TYPE_DEBRIS_SHIP_GIRDER_CHUNK, OBJECT_TYPE_DEBRIS_SHIP_TUBING, OBJECT_TYPE_DUMB_FIRE_MISSILE, OBJECT_TYPE_FF_MISSILE, OBJECT_TYPE_HEAT_SEEKING_MISSILE, OBJECT_TYPE_IMAGE_RECOGNITION_MISSILE, OBJECT_TYPE_LASER_CANNON, OBJECT_TYPE_TURRET, and ObjectTypeData::shapeSet.
Referenced by init_3Space_objects(), init_3Space_objects(), and load_common_3Space_objects().
| int load_ship | ( | enum ObjectType | type, |
| short | slot ) |
Definition at line 202 of file mission.c.
References aapPacketReferences, aeObjectClass, aeObjectTypeList, ObjectResourceSlot::animation, ObjectTypeData::animation, aObjectResourceSlotsArray, aObjectTypeData, apObjShapeArray, asCapitalShipViewFramesTable, bCurrentExpandedMemoryAvail, cCurrentObjResourceLogicalFile, FetchDiskPacketRetrying(), FreePacketAndClear(), load_ship(), nMemoryConfig, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, OBJECT_TYPE_ASTEROID1, OBJECT_TYPE_ASTEROID2, OBJECT_TYPE_ASTEROID3, OBJECT_TYPE_ASTEROID4, OBJECT_TYPE_ASTEROID5, OBJECT_TYPE_ASTEROID6, OBJECT_TYPE_ASTEROID_FIELD, OBJECT_TYPE_MINE_FIELD, OBJECT_TYPE_ROCK_CHUNK, ObjectResourceSlot::shape, ObjectTypeData::shape, ObjectResourceSlot::shapeSet, ObjectTypeData::shapeSet, SPACE_LAST_MOVING_OBJECT, and ObjectResourceSlot::type.
Referenced by load_all_slots(), load_common_3Space_objects(), load_ship(), new_sphere_shapes(), and prepare_mission().
| void LoadAnswerPromptAndResponse | ( | short | entry, |
| char * | prompt, | ||
| char * | response ) |
Definition at line 101 of file pilot.cpp.
References DosStrcpy(), FetchDiskPacketRetrying(), FreePacketAndClear(), LoadAnswerPromptAndResponse(), and PromptInsertNumberedDisk().
Referenced by init_3Space_objects(), LoadAnswerPromptAndResponse(), and PromptForAnswerText().
| unsigned int LoadBriefingData | ( | short | series, |
| short | mission ) |
Definition at line 513 of file cmpgn.c.
References apRecRoomSceneDataList, apRecRoomTxtDataArray, asCampaignBriefingFiles, BriefingPacketHeader::briefingScene, BriefingPacketHeader::briefingText, BriefingPacketHeader::debriefingScene, BriefingPacketHeader::debriefingText, FetchDiskPacketRetrying(), LoadBriefingData(), nCampaignDataSet, pBriefingPacket, pBriefingSceneInfo, pCurrentBriefingTextData, pDebriefingSceneDataPtr, pDebriefingTxtInfo, BriefingPacketHeader::recRoomScene0, BriefingPacketHeader::recRoomScene1, BriefingPacketHeader::recRoomScene2, BriefingPacketHeader::recRoomText0, BriefingPacketHeader::recRoomText1, and BriefingPacketHeader::recRoomText2.
Referenced by Briefing(), DeBriefing(), LoadBriefingData(), and RecRoom().
| unsigned int LoadBriefingRoom | ( | void | ) |
Definition at line 182 of file screens.c.
References bEscapePressedFlag, FetchDiskPacketRetrying(), FreePacketAndClear(), InitializeConversationText(), InitializeConversationViewport(), LoadBriefingRoom(), pBriefingCloseupShape, pBriefingSceneInfo, pCurrentBriefingAnimShape, pCurrentBriefingTextData, pCurrentConversationBackdropShapePtr, pSceneBriefingBodyShape, pSceneBriefingPortraitShape, ReleaseTextFont(), ResetScreenClipToFullHeight(), SceneDirector(), SetTextContext(), spacetrack(), stCurrentConvTxtCtx, and StopMusicUnlessSuppressed().
Referenced by Briefing(), DosMemcpy(), and LoadBriefingRoom().
| short LoadCommDisplayResources | ( | short | rating, |
| enum Side | side ) |
Definition at line 444 of file comm.c.
References FetchDiskPacketRetrying(), LoadCommDisplayResources(), pCommStaticShape, pConfedCommBackground, pKilrathiCommBackground, SIDE_IMPERIAL, and SIDE_KILRATHI.
Referenced by LoadCommDisplayResources(), PlaySfxWaveFileByNumber(), and real_vid_transmit().
| void LoadCommPortraitShape | ( | short | face, |
| signed char | alternate ) |
Definition at line 72 of file comm.c.
References apCommunicationPortraitShapesTable, FetchDiskPacketRetrying(), and LoadCommPortraitShape().
Referenced by get_pilot_talk(), LoadCommPortraitShape(), PlaySfxWaveFileByNumber(), and real_vid_transmit().
| unsigned int LoadFace | ( | short | face | ) |
Definition at line 190 of file cmpgn.c.
References aTalkingHeadOrigins, bConversationConstellation, Viewport::bottom, CloseTalk(), TalkingHeadOrigin::faceX, TalkingHeadOrigin::faceY, FetchDiskPacketRetrying(), FreePacketAndClear(), init_constellation(), InitializeConstellationField(), LoadFace(), TalkingHeadOrigin::mouthX, TalkingHeadOrigin::mouthY, nConversationBackdropFrame, nConversationCharacter, nTalkingHeadFace, nTalkingHeadFaceCoordY, nTalkingHeadFaceX, nTalkingHeadMouthX, nTalkingHeadMouthY, pConvOverlayShapePtr, pTalkHeadShape, stConstellationViewport, and stSceneBuffer.
Referenced by LoadFace(), and SceneDirector().
| int LoadGame | ( | short | slot, |
| SaveGameRecord * | gameRecord ) |
Definition at line 585 of file barracks.c.
References CampaignState::aceFlags, SaveGameDiskCampaignState::aceFlags, CampaignState::badges, SaveGameDiskCampaignState::badges, SaveGameDiskRecord::campaign, SaveGameRecord::campaign, CampaignState::campaignIndex, SaveGameDiskCampaignState::campaignIndex, CloseDataFile(), CampaignState::currentDate, SaveGameDiskCampaignState::currentDate, CampaignState::currentMission, SaveGameDiskCampaignState::currentMission, CampaignState::currentPilot, SaveGameDiskCampaignState::currentPilot, CampaignState::currentSeries, SaveGameDiskCampaignState::currentSeries, CampaignDate::day, SaveGameDiskRecord::description, SaveGameRecord::description, MissionObjective::displayName, SaveGameDiskObjective::displayName, CampaignState::elapsedDate, SaveGameDiskCampaignState::elapsedDate, MissionObjective::field_4, SaveGameDiskObjective::field_4, MissionObjective::flags, SaveGameDiskObjective::flags, MissionObjective::index, SaveGameDiskObjective::index, LoadGame(), MissionObjective::mapX, SaveGameDiskObjective::mapX, MissionObjective::mapY, SaveGameDiskObjective::mapY, CampaignState::medals, SaveGameDiskCampaignState::medals, CampaignState::missionScore, SaveGameDiskCampaignState::missionScore, MissionObjective::name, SaveGameDiskObjective::name, SaveGameDiskRecord::objectives, SaveGameRecord::objectives, SaveGameRecord::occupied, OpenDataFileOrDie(), CampaignState::personalityDeathMission, SaveGameDiskCampaignState::personalityDeathMission, SaveGameDiskRecord::pilots, SaveGameRecord::pilots, CampaignState::playerShipType, SaveGameDiskCampaignState::playerShipType, MissionObjective::position, SaveGameDiskObjective::position, CampaignState::promotionScore, SaveGameDiskCampaignState::promotionScore, PromptInsertNumberedDisk(), ReadDataFileAtOffset(), CampaignState::seriesHistory, SaveGameDiskCampaignState::seriesHistory, CampaignState::seriesHistoryCount, SaveGameDiskCampaignState::seriesHistoryCount, CampaignState::seriesScore, SaveGameDiskCampaignState::seriesScore, MissionObjective::type, SaveGameDiskObjective::type, and CampaignDate::year.
Referenced by AnySavedGames(), ConfirmAwakenAfterBadData(), ConfirmReplaceFaultyData(), GetBunkInfo(), LoadGame(), and LoadGameFromSlot().
| void LoadGameFromSlot | ( | short | slot, |
| CampaignState * | campaign, | ||
| PilotRecord * | pilots, | ||
| MissionObjective * | objectives ) |
Definition at line 686 of file barracks.c.
References asCampaignPilotFiles, bCampaignActive, PilotRecord::callsign, SaveGameRecord::campaign, CampaignState::campaignIndex, CorrectPointers(), CampaignState::currentPilot, DosMemcpy(), EnterAllocationScope(), LeaveAllocationScope(), LoadGame(), LoadGameFromSlot(), LoadPacketIntoBuffer(), nCampaignDataSet, nOriginDevUnlock, nQueuedCampaignIndex, SaveGameRecord::objectives, pConstellationDefinitionsPtr, SaveGameRecord::pilots, pMissionCampaignInfo, ReleaseModalTextPanel(), ShowModalMessage(), and ShowModalTextPanel().
Referenced by HandleBarracksBunkSelection(), and LoadGameFromSlot().
| unsigned int LoadGamePaletteFile | ( | void | ) |
Definition at line 62 of file init.c.
References abLegacyVideoModeColours, asConversationTextColours, asLegacyConversationTextColours, cBlueColour, LoadGamePaletteFile(), LoadPaletteTripletsFile(), nVideoMode, PromptInsertNumberedDisk(), ResetCockpitPaletteEntries(), and SaveGamePalette().
Referenced by LoadGamePaletteFile(), and LoadOriginFxDrivers().
| unsigned short LoadInstallDat | ( | void | ) |
Definition at line 126 of file install.c.
References AllocateTaggedMemory(), ClearDebugPauseFlags(), CloseDataFile(), LoadInstallDat(), DiskFileRecord::logicalFile, DiskFileRecord::name, OpenDataFileOrDie(), pDiskFileRecords, PumpMessagesDuringWait(), ReadDataFileAtOffset(), ReleasePacketHandle(), and SystemDebugPrintf().
Referenced by init_3Space_objects(), LoadInstallDat(), and main().
| void LoadJoystickCalibrationFile | ( | short | horizontalRange, |
| short | verticalRange, | ||
| short | horizontalDeadZone, | ||
| short | verticalDeadZone ) |
Definition at line 39 of file joycal.c.
References GetJoystickDevCaps(), LoadJoystickCalibrationFile(), nCurrentActiveInputDevice, nCurrentJoystickFailureValue, nCurrentJoystickLeftScale, nJoystickCalibrationMaximumX, nJoystickCalibrationMaxY, nJoystickCalibrationMinimumX, nJoystickCalibrationMinimumY, nJoystickCentreX, nJoystickCentreY, nJoystickDownScaleValue, nJoystickHorizontalDeadZone, nJoystickRightScale, nJoystickUpScale, nJoystickVertDeadZoneValue, nStickMaxX, nStickMaxY, nStickMinimumPositionX, nStickMinimumPositionY, and SampleBothJoysticks().
Referenced by CalibrateJoystickInteractive(), LoadJoystickCalibrationFile(), LoadOriginFxDrivers(), and PlaySfxWaveFileByNumber().
| unsigned int LoadMissionData | ( | short | series, |
| short | mission ) |
Definition at line 586 of file cmpgn.c.
References abMissionAuxData, abSeriesAuxData, ACTIVE_MISSION_NAV_POINT_COUNT, aMissionNavPoints, aMissionObjectiveSources, aMissionShips, asMissionDataFiles, MissionShipRecord::behaviour, MissionObjectiveDisk::description, MissionObjectiveSource::description, DosMemcpy(), MissionHeaderDisk::entryNavPoint, FetchDiskPacketRetrying(), MissionHeaderDisk::field_16, MissionShipDisk::field_2c, MissionShipRecord::field_2c, MissionShipDisk::field_2e, MissionShipRecord::field_2e, MissionShipDisk::field_5, MissionShipRecord::field_9, MissionShipDisk::formationIndex, MissionShipRecord::formationIndex, MissionShipDisk::formationSpot, MissionShipRecord::formationSpot, MissionHeaderDisk::homeMissionShip, MissionObjectiveDisk::index, MissionObjectiveSource::index, MissionHeaderDisk::initialMissionShips, MissionShipDisk::leader, MissionShipRecord::leader, MissionShipDisk::leaderMissionIndex, MissionShipRecord::leaderMissionIndex, LoadMissionData(), MISSION_OBJECTIVE_COUNT, MissionNavPoint::missionShips, MissionNavPointDisk::missionShips, MissionShipDisk::missionType, MissionShipRecord::missionType, MissionNavPoint::name, MissionNavPointDisk::name, MissionShipDisk::navPoint, MissionShipRecord::navPoint, nCampaignDataSet, MissionShipBehaviour::pilot, MissionShipDisk::pilot, MissionShipDisk::pitch, MissionShipRecord::pitch, MissionHeaderDisk::playerMissionShip, MissionNavPoint::position, MissionNavPointDisk::position, MissionShipDisk::position, MissionShipRecord::position, MissionNavPoint::preloadObjectTypes, MissionNavPointDisk::preloadObjectTypes, MissionNavPoint::proximityRadius, MissionNavPointDisk::proximityRadius, MissionShipDisk::rating, MissionShipRecord::rating, ReleasePacketHandle(), MissionShipDisk::side, MissionShipRecord::side, MissionShipDisk::speed, MissionShipRecord::speed, MissionShipDisk::state, MissionShipRecord::state, stCurrentMissionHeader, MissionShipDisk::targetMissionIndex, MissionShipRecord::targetMissionIndex, MissionNavPointDisk::triggers, MissionNavPoint::type, MissionNavPointDisk::type, MissionObjectiveDisk::type, MissionObjectiveSource::type, MissionShipDisk::type, and MissionShipRecord::type.
Referenced by BarracksScreen(), Briefing(), DeBriefing(), init_mission(), and LoadMissionData().
| unsigned int LoadOriginFxDrivers | ( | void | ) |
Definition at line 125 of file init.c.
References acGraphicsModeByAnimationSpeed, anBaseMemoryReservationByVideoMode, anExpandedMemoryReservationByVideoMode, anFullMusicMemoryReservationByVideoMode, bCurrentExpandedMemoryAvail, bGraphicsActive, bSlowSceneAnimation, dwOriginalFreeMem, EMStartUp(), exit_squadron(), FxDriverShutdownHook(), GetEventManagerStatus(), GetFixedOneMillionThunk(), GetFixedOneMillionThunkAlt(), GetFxDriverInitResult(), GetFxDriverStatus(), GetMusicDriverPresent(), GetTargetColourIndex(), initialize_direction_view_frames(), InitializeDiskPromptTextContext(), InitializeGameTextContexts(), IsSoundHardwarePresent(), LoadGamePaletteFile(), LoadJoystickCalibrationFile(), LoadOriginFxDrivers(), LoadPacketAllocated(), LoadSpaceflightResources(), nAvailableGameMemory, nFrameSkip, nInputDoubleClickInterval, nMemoryConfig, nMusicPlaybackMode, nNearHeapMaxDescriptors, pConstellationDefinitionsPtr, pMissionCampaignInfo, PollJoystickButtonEvents(), PromptInsertNumberedDisk(), RewriteDiskFileGraphicsExtensions(), SetEventManagerPump(), SetFrameTimerPeriodDirect(), ShutdownVideoHook(), SystemDebugPrintf(), and szInsufficientMemory.
Referenced by LoadOriginFxDrivers(), and main().
| void * LoadPacketAllocated | ( | short | logicalFile, |
| short | section ) |
Definition at line 94 of file disk.c.
References AllocateTaggedMemory(), GetPacketSize(), LoadPacketAllocated(), nPacketError, PacketLoad(), pDiskFileRecords, PromptInsertNumberedDisk(), and ReportPacketLoadError().
Referenced by InitializeCockpitResources(), LoadOriginFxDrivers(), LoadPacketAllocated(), and RecRoom().
Definition at line 80 of file disk.c.
References LoadPacketIntoBuffer(), PacketLoad(), pDiskFileRecords, PromptInsertNumberedDisk(), and ReportPacketLoadError().
Referenced by ejection_sequence(), LoadGameFromSlot(), LoadPacketIntoBuffer(), and StartNewCampaign().
| int LoadPacketResourceList | ( | PacketResourceDescriptor * | resources, |
| short | flags, | ||
| int | availableBytes ) |
Definition at line 1429 of file logic.c.
References FetchDiskPacketRetrying(), GetPacketSize(), LoadPacketResourceList(), PacketResourceDescriptor::logicalFile, DiskFileRecord::name, pDiskFileRecords, PromptInsertNumberedDisk(), PacketResourceDescriptor::resource, and PacketResourceDescriptor::section.
Referenced by close_behind(), init_mission(), LoadPacketResourceList(), and Title_Sequence().
| unsigned short __stdcall LoadPaletteTripletsFile | ( | const char * | path | ) |
Definition at line 299 of file auto.c.
References AllocateTaggedMemory(), LoadPaletteTripletsFile(), ReleasePacketHandle(), and SetWholePaletteFromTriplets().
Referenced by LoadGamePaletteFile(), and LoadPaletteTripletsFile().
| unsigned short LoadSceneAnimationResources | ( | short | scene, |
| short | variant ) |
Definition at line 2058 of file logic.c.
References asSceneAnimationLogicalFiles, FetchDiskPacketRetrying(), LoadSceneAnimationResources(), pCurrentSceneAnimationPrimaryShape, pSceneAnimationDefinitionsPtr, pSceneAnimationObjects, pSceneAnimationPacketPtr, pSceneAnimationSceneDataPtr, pSceneAnimationSecondaryShape, and pSceneAnimationTextData.
Referenced by init_3Space_objects(), LoadSceneAnimationResources(), and ShowMeanwhileTransition().
| int LoadShapeSet | ( | PacketResourceDescriptor * | resources, |
| unsigned short | flags, | ||
| short | defaultLogicalFile ) |
Definition at line 1395 of file logic.c.
References FetchDiskPacketRetrying(), LoadShapeSet(), PacketResourceDescriptor::logicalFile, PacketResourceDescriptor::resource, and PacketResourceDescriptor::section.
Referenced by close_behind(), InitializeCockpitResources(), load_common_3Space_objects(), LoadShapeSet(), and LoadSpaceflightResources().
| unsigned int LoadSpaceflightResources | ( | void | ) |
Definition at line 274 of file init.c.
References aCockpitResourceDescriptors, aCommon3SpaceResources, aMissionResourceDescriptors, aObjectTypeData, apCommunicationPortraitShapesTable, bCurrentExpandedMemoryAvail, LoadShapeSet(), LoadSpaceflightResources(), OBJECT_TYPE_DEBRIS_GLASS, OBJECT_TYPE_DEBRIS_METAL_SHEET, OBJECT_TYPE_DEBRIS_O_RING, OBJECT_TYPE_DEBRIS_PIPE, OBJECT_TYPE_DEBRIS_SHIP_GIRDER_CHUNK, OBJECT_TYPE_DEBRIS_SHIP_TUBING, OBJECT_TYPE_DEBRIS_WING, and ObjectTypeData::shapeSet.
Referenced by LoadOriginFxDrivers(), and LoadSpaceflightResources().
| struct Shape * LoadTrainSimOpponentShape | ( | int | opponent | ) |
Definition at line 697 of file trainsim.c.
References cCurrentObjResourceLogicalFile, FetchDiskPacketRetrying(), and LoadTrainSimOpponentShape().
Referenced by init_3Space_objects(), LoadTrainSimOpponentShape(), and SelectTrainSimMission().
Definition at line 362 of file sound.c.
References LoadVolumeSettingsFromRegistry(), nMusicVolumeSetting, nSfxVolumeSetting, RegistryQueryValue(), RegistryStoreValue(), szMusicVolumeValueName, and szSfxVolumeValueName.
Referenced by init_3Space_objects(), LoadVolumeSettingsFromRegistry(), and main().
| short LoadWingCmdrCfgFile | ( | short | argc, |
| char ** | argv ) |
Definition at line 95 of file install.c.
References LoadWingCmdrCfgFile(), pCurrentStartupArgumentsPtr, and szTxtWorkspaceBuffer.
Referenced by init_3Space_objects(), LoadWingCmdrCfgFile(), and main().
| int locate_ship | ( | short | missionShip, |
| FixedVector * | point ) |
Definition at line 1200 of file logic.c.
References AddFixedVectors(), aMissionNavPoints, aMissionShips, aShipPositionsArray, dead_ship(), find_ship_index(), find_ships_sphere(), locate_ship(), and zero_vector().
Referenced by close_behind(), init_intelligence_data(), locate_ship(), and LocateMobileObjective().
| short LocateMobileObjective | ( | short | objective | ) |
Definition at line 1204 of file cockpt.c.
References aMissionObjectivesArray, 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 188 of file winsys.c.
References FindCdRomDriveByVolumeLabel(), LocateStreamsDirOnDisc(), and szStreamsDir.
Referenced by LocateStreamsDirOnDisc(), PromptInsertCorrectCd(), and Streamer_open().
Definition at line 1662 of file cockpt.c.
References bTargetLockReadoutDirty, lock_off(), nTargetLockCountdown, pszMissileLockedMessage, and remove_message().
Referenced by CheckTargetLockMalfunction(), lock_off(), and target_locking().
| void LogDisplayMode | ( | const char * | mode | ) |
Definition at line 736 of file view.c.
References ClearDebugPauseFlags(), LogDisplayMode(), PumpMessagesDuringWait(), and SystemDebugPrintf().
Referenced by AllocateViewport(), CalcRectangleArea(), init_3Space_objects(), and LogDisplayMode().
| short LogMemoryUsage | ( | void | ) |
Definition at line 102 of file main.c.
References dwOriginalFreeMem, EMShutDown(), GetFixedOneMillionThunkAlt(), GetMessagePumpResult(), GetOriginalFreeMemory(), LogMemoryUsage(), MessagePumpHook(), MouseIdleHook(), nOriginDevUnlock, nSavedDosInterruptVector, ShutdownHook(), ShutdownVideoHook(), and SystemDebugPrintf().
Referenced by EMStartUp(), exit_squadron(), init_3Space_objects(), LogMemoryUsage(), PumpWindowMessages(), and ReportPacketLoadError().
| unsigned int LongTalk | ( | struct Shape * | talker, |
| char * | text, | ||
| short * | mouthCommands, | ||
| short * | faceCommands, | ||
| short | duration ) |
Definition at line 260 of file cmpgn.c.
References AddPCName(), cBlackColour, CheckEscaped(), ClearViewport(), CloseTalk(), DIBslam(), DIBslamReal(), FormatTextBufferFromStart(), IsFrameTickElapsed(), LongTalk(), nConvTextColorValue, nFrameSkip, nFrameSkipCounter, SetFrameTimerPeriodDirect(), stCurrentConvTextViewport, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by LongTalk(), and SceneDirector().
| void look_at | ( | short | obj | ) |
Definition at line 166 of file geom.c.
References aShipPositionsArray, EYE_OBJECT, look_at(), and point_at().
Referenced by look_at(), new_view(), and set_eye_direction_and_position().
| long Magnitude | ( | int | value | ) |
Definition at line 115 of file mathfp.c.
References Magnitude().
Referenced by Magnitude(), and PlaySfxWaveFileByNumber().
| int main | ( | short | argc, |
| char ** | argv ) |
Definition at line 171 of file main.c.
References abDiskPromptDriveStates, anVolumeLevels, bCampaignActive, bCampaignStartupMode, bCurrentExpandedMemoryAvail, bCurrentRunningFromHardDiskFlag, bDirectDrawModeCascadeEnabled, bEscapePressedFlag, bPlayerCollisionResponse, bPlayerVulnerable, bSavedGameExists, bShowFrameRate, bSlowSceneAnimation, CampaignState::currentMission, CampaignState::currentSeries, DosInterruptHandlerHook(), exit_squadron(), ExitCleanupHook(), FrameStartHook(), GameFlow(), GetCurrentDiskDriveHook(), GetFixedOneMillionThunkAlt(), GetJoystickButtonEdge(), GetShutdownErrorCode(), GetStartupErrorCode(), init_mission(), LoadInstallDat(), LoadOriginFxDrivers(), LoadVolumeSettingsFromRegistry(), LoadWingCmdrCfgFile(), main(), nMainArcadeStartupParameterValue, nMusicPlaybackMode, nMusicVolumeSetting, nOriginDevUnlock, nSavedDosInterruptVector, nSfxVolumeSetting, nShowMemoryStatus, nStartNavPointOverride, nVideoMode, pCurrentStartupArgumentsPtr, pGameVersion, ResetCampaignData(), RunAnimationDemoLoop(), RunSpaceFlight(), SetCinematicFrameTiming(), SetMusicStreamVolume(), SetSoundEffectsVolume(), ShutdownHook(), StartNewCampaign(), StartupHook(), stCampaignState, stInitialCampaignState, SystemDebugPrintf(), Title_Sequence(), and WaitForKeyAcknowledge().
Referenced by init_3Space_objects(), main(), and WinMain().
| unsigned int maintain_formation | ( | short | obj | ) |
Definition at line 367 of file smart.c.
References aShipDestinationsArray, aShipFormationDeltaList, asShipWingLeaderArray, compute_formation_destination(), goto_formation(), and maintain_formation().
Referenced by imperial_formation(), kilrathi_wingman(), maintain_formation(), PlaySfxWaveFileByNumber(), and run_away().
| LRESULT CALLBACK MainWindowProc | ( | HWND | window, |
| UINT | message, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam ) |
Definition at line 823 of file winmain.c.
References bEscapePressedFlag, bF1KeyLatch, bHostPrimaryMouseButton, bHostSecondaryMouseButton, bKeyEventQueueEnabled, bMainWindowAlive, bPtrMovedByKeyboardState, hMainWindow, MainWindowProc(), nGuardedAllocationBytes, nGuardedAllocationPeakBytes, nGuardedAllocationTotalBytes, nHostMouseMessageX, nHostMouseMessageY, nSystemKeyDown, QueueInputEvent(), ReportSpaceFlightMaxFps(), SetInputKeyState(), SignalAudioMixerWakeEvent(), and szMemoryUsage.
Referenced by CreateMainWindow(), and MainWindowProc().
| short make_hazard | ( | void | ) |
Definition at line 361 of file winmain.c.
References find_vacant_3d_object(), init_hazard(), make_hazard(), and try_far_spot().
Referenced by make_hazard(), start_hazard_field(), and update_hazards().
| void make_shard | ( | short | asteroid, |
| FixedVector | direction ) |
Definition at line 105 of file winmain.c.
References acObjOwnersTable, AddFixedVectors(), alter_pitch(), alter_yaw(), aShipFwdVec, aShipPositionsArray, aShipVelocity, asObjectCollisionRadius, asObjectCounterArray, find_vacant_3d_object(), fix_objects_ijk(), make_shard(), OBJECT_TYPE_ROCK_CHUNK, RandomInRange(), real_velocity(), set_objects_data(), SetVectorFixedPoint(), and signed_random().
Referenced by hit_asteroid(), and make_shard().
| void MakeRandomNormalizedVector | ( | FixedVector * | vector | ) |
Definition at line 374 of file geom.c.
References MakeRandomNormalizedVector(), NormalizeFixedVector(), RandomInRange(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by MakeRandomNormalizedVector().
| void MakeRandomVectorFixed | ( | short | minimum, |
| short | maximum, | ||
| FixedVector * | vector ) |
Definition at line 349 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 829 of file cockpt.c.
References acPlayerComponentDamageList, 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 2231 of file cockpt.c.
References malf_noise(), PlaySfxWaveFileByNumber(), PlaySnowStaticSound(), set_new_vdu(), snow_viewport(), stLeftVdu, and stRightVduViewport.
Referenced by EndCommSessionWithWingman(), malf_noise(), real_vid_transmit(), set_new_vdu(), update_dead_disp(), and vdu_malf().
Definition at line 823 of file cockpt.c.
References malf_sound(), and PlaySfxWaveFileByNumber().
Referenced by check_target(), HandleSpaceFlightControls(), and malf_sound().
| void manage_hazard | ( | short | obj, |
| short | slot ) |
Definition at line 396 of file winmain.c.
References aeObjectTypeList, approach(), asObjDistancesTable, asObjectScreenXList, manage_hazard(), nRenderedSpaceFrame, OBJECT_TYPE_SPACE_MINE, ok_hazard_spot(), real_velocity(), and remove_hazard().
Referenced by manage_hazard(), and update_hazards().
| void maneuver_complete | ( | short | ship | ) |
Definition at line 90 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(), Mdrop_a_mine(), Mfish_hook(), Mfull_ahead(), Mget_distance(), Mgloat(), Mhard_break(), Mhard_turn(), Mkickit(), Mkill_missile(), Mline_up_drop(), Mram_missile(), Mreset(), Mroll_over(), Msplit_left(), Msplit_right(), Mtarget_missile(), Mthink(), Mtight_loop(), Mtry2tail(), Mturn_n_kick(), Mturn_n_spin(), Mveer_away(), Mwabble(), Mzip_past(), perform_maneuver(), ShipAiState35(), ShipAiState44(), and try2rout().
| void maneuvering | ( | short | obj, |
| short | newTarget ) |
Definition at line 172 of file brains.c.
References acShipTargetTable, 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 MapMusicTrackToStreamerCommand | ( | int | track | ) |
Definition at line 253 of file music.c.
References MapMusicTrackToStreamerCommand(), and SoundDebugPrintf().
Referenced by init_3Space_objects(), MapMusicTrackToStreamerCommand(), and ProcessMusicScriptCommand().
Definition at line 499 of file screen.c.
References aiPktHandleDeltas, apPacketHandlesList, MapPacketHandleToBlock(), and nPacketHandleTotal.
Referenced by MapPacketHandleToBlock(), PlaySfxWaveFileByNumber(), and ReleasePacketHandle().
Definition at line 633 of file gr.c.
References GetPaletteEntry(), MarkActivePaletteEntries(), and void().
Referenced by CollectActivePaletteIndices(), CollectRasterClipColours(), and MarkActivePaletteEntries().
| short match_roll_orientation | ( | short | obj, |
| short | reference ) |
Definition at line 730 of file geom.c.
References ArcCos(), aShipRightVector, aShipUpVector, dot_product(), 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 287 of file ship.c.
References match_rotation_goal(), MaxShort(), and MinShort().
Referenced by match_rotation_goal(), rotate_eye_to_goal(), and rotate_object_to_goal().
Definition at line 412 of file winmain.c.
References aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, aShipVelocity, HazardField::center, match_ship_to_eye(), nHazardReferenceSpeed, pActiveHazardField, and ScaleFixedVector().
Referenced by match_ship_to_eye(), and update_hazards().
| int MaxInt | ( | int | a, |
| int | b ) |
Definition at line 210 of file geom.c.
References MaxInt().
Referenced by MaxInt(), and object_collision().
| short MaxShort | ( | short | a, |
| short | b, | ||
| ... ) |
Definition at line 29 of file mathutil.c.
References MaxShort().
Referenced by approach_and_engage(), auto_position(), chase_location(), check_destroy_target(), CheckPoint(), control_speed(), DebriefingEstablishingShot(), DrawHudMessageSlot(), explosion_shock_wave(), fire_flack(), GameFlow(), GetViewportIntersection(), goto_location(), init_hazard(), InitializeCockpitResources(), internal_damage(), match_rotation_goal(), MaxShort(), new_view(), personality_killed(), pop_flack(), prevent_collision(), real_crash_time(), remove_hazard(), ReportFramesSkipped(), revise_shields(), rotational_pos_to_scanner_pos(), set_eye_direction_and_position(), SetScale(), skill_rating(), start_dust(), UpdateSeries(), and your_internal_damage().
| void Mbest_strafe | ( | short | ship, |
| short | target ) |
Definition at line 713 of file fl.c.
References Mbest_strafe(), Mstrafe_enemy(), Mzip_past(), and nTargetFacingValue.
Referenced by Mbest_strafe(), Msit_n_fire(), and Mtarget_laser().
| void Mburnout | ( | short | ship, |
| short | target ) |
Definition at line 390 of file fl.c.
References acShipSequence, advance(), aeSpecialManeuvers, anYawTarget, fire_afterburner(), maneuver_complete(), Mburnout(), no_goal(), SPECIAL_MANEUVER_NONE, and void().
Referenced by Mburnout(), and Mkill_missile().
| void Mbuzz_debris | ( | short | ship | ) |
Definition at line 668 of file fl.c.
References acShipSequence, advance(), aeSpecialManeuvers, approach_full_speed(), fire_afterburner(), maneuver_complete(), Mbuzz_debris(), nFacingToTargetValue, no_goal(), SPECIAL_MANEUVER_NONE, and veer_random().
Referenced by Mbuzz_debris().
| void Mchill | ( | short | ship, |
| short | target ) |
Definition at line 199 of file fl.c.
References acShipSequence, chase_location(), close_behind(), get_front_spot(), Mchill(), and reset_maneuver().
Referenced by Mchill().
| void Mcorkscrew | ( | short | ship | ) |
Definition at line 845 of file fl.c.
References acShipSequence, advance(), anRollGoal, anYawTarget, approach_full_speed(), asShipTotal, maneuver_complete(), Mcorkscrew(), and no_goal().
Referenced by Mcorkscrew().
| void Mdrop_a_mine | ( | short | ship | ) |
Definition at line 210 of file fl.c.
References approach_full_speed(), fire_weapon(), maneuver_complete(), Mdrop_a_mine(), mine_available(), and nTgtRange.
Referenced by Mdrop_a_mine().
| short MeasureMessageWidth | ( | const char * | text | ) |
Definition at line 1218 of file main.c.
References bMessageSpeed, DosStrlen(), MeasureMessageWidth(), and MinShort().
Referenced by init_3Space_objects(), MeasureMessageWidth(), real_vid_transmit(), and ShowOnScreenMessage().
| int MeasureScaledIntroTextWidth | ( | const char * | text, |
| short | scale ) |
Definition at line 93 of file mono.c.
References GetTransformedShapeBounds(), MeasureScaledIntroTextWidth(), pIntroFont, ShortRect::right, and stSpaceBufferViewport.
Referenced by DrawCenteredScaledIntroText(), and MeasureScaledIntroTextWidth().
| int __stdcall MeasureShapeFrameStorage | ( | struct Shape * | shape, |
| short | frame ) |
Definition at line 349 of file mathfp.c.
References Shape::frameOffsets, and MeasureShapeFrameStorage().
Referenced by InitializeCockpitResources(), MeasureShapeFrameStorage(), and PlaySfxWaveFileByNumber().
| short __stdcall MeasureTextPixelWidthClamped | ( | const char * | text | ) |
Definition at line 18 of file geom.c.
References GetFontCharWidth(), and MeasureTextPixelWidthClamped().
Referenced by EraseLastTextInputCharacter(), InitializeDiskPromptTextContext(), MeasureTextPixelWidthClamped(), PromptForTextInput(), ReadTextInput(), ShowModalTextPanel(), and ShowTrainSimHighScores().
| unsigned int MedalEstablish | ( | char * | text, |
| short | duration ) |
Definition at line 438 of file screens.c.
References AddPCName(), asMedalDisplayX, cBlackColour, CheckEscaped(), ClearViewport(), DIBslam(), DIBslamReal(), DrawMedals(), DrawSpriteScaled(), FormatTextBufferFromStart(), MedalEstablish(), nConvTextColorValue, nCurrentConversationMedalIndex, pMedalSceneShape, RefreshMemoryStatusOverlay(), stCurrentConvTextViewport, stSceneBuffer, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by DosMemcpy(), MedalEstablish(), and SceneDirector().
| unsigned short MergeAdjacentNearHeapBlocks | ( | int | descriptorAddress | ) |
Definition at line 25 of file nearheap.c.
References NearHeapBlock::address, DosNearPtrToFar(), MergeAdjacentNearHeapBlocks(), nCurrentNearHeapFirstDescriptor, and NearHeapBlock::sizeAndFlags.
Referenced by MergeAdjacentNearHeapBlocks(), and ReleaseNearHeapBlock().
| short message_showing | ( | void | ) |
Definition at line 776 of file cockpt.c.
References message_showing(), and nCurrentNoticeTimer.
Referenced by check_message(), GetScreenUpdateFlag(), 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 457 of file screen.c.
References MessagePumpHook(), and TimerStopHook().
Referenced by LogMemoryUsage(), MessagePumpHook(), and PlaySfxWaveFileByNumber().
| void Mfish_hook | ( | short | ship, |
| short | target ) |
Definition at line 483 of file fl.c.
References acShipSequence, advance(), aeObjectTypeList, anYawTarget, aObjectTypeData, approach_full_speed(), ObjectTypeData::cruiseVelocity, fire_afterburner(), fire_super_brake(), 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 | ) |
Definition at line 185 of file fl.c.
References approach_full_speed(), asShipTotal, maneuver_complete(), and Mfull_ahead().
Referenced by Mfull_ahead().
| void Mget_distance | ( | short | ship, |
| short | target ) |
Definition at line 780 of file fl.c.
References approach_full_speed(), fire_afterburner(), maneuver_complete(), Mget_distance(), MinShort(), nFacingToTargetValue, no_goal(), normal_speed(), nTgtRange, and steer_away_from_object().
Referenced by Mget_distance().
| void Mgloat | ( | short | ship, |
| short | target ) |
Definition at line 569 of file fl.c.
References acShipSequence, advance(), anPitchGoal, asShipTotal, 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 262 of file fl.c.
References acShipSequence, advance(), asShipTotal, fire_super_brake(), maneuver_complete(), Mhard_break(), set_special(), and SPECIAL_MANEUVER_KILL_ENGINES.
Referenced by Mhard_break().
| void Mhard_turn | ( | short | ship | ) |
Definition at line 466 of file fl.c.
References acShipSequence, advance(), anYawTarget, approach_full_speed(), maneuver_complete(), Mhard_turn(), no_goal(), and RandomBelowOrEqual().
Referenced by Mhard_turn().
| short mine_available | ( | short | obj | ) |
Definition at line 1389 of file logic.c.
References find_weapon(), mine_available(), and OBJECT_TYPE_SPACE_MINE.
Referenced by close_behind(), Mdrop_a_mine(), mine_available(), and pick_regular_maneuver().
| void mine_intelligence | ( | short | obj | ) |
Definition at line 992 of file brains.c.
References aeObjectClass, aeObjectTypeList, aObjectTypeData, asObjectCounterArray, distance_from_object(), explode(), mine_intelligence(), OBJECT_CLASS_SHIP, and RandomBelowOrEqual().
Referenced by mine_intelligence(), and object_intelligence().
| int MinInt | ( | int | a, |
| int | b ) |
Definition at line 203 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 20 of file mathutil.c.
References MinShort().
Referenced by approach_and_engage(), asteroid_velocity(), auto_pilot_sequence(), check_destroy_target(), CheckPoint(), CloseTalk(), damage_your_component(), determine_pilot_hand(), ejection_sequence(), explosion_shock_wave(), fire_flack(), GetViewportIntersection(), handle_stress(), internal_damage(), match_rotation_goal(), MeasureMessageWidth(), Mget_distance(), MinShort(), nearest_enemy_range(), prevent_collision(), replenish_weapon_energy_bank(), ReportFramesSkipped(), rnd_aim(), rotational_pos_to_scanner_pos(), show_target_disp(), and skill_check().
| int missile_on_tail | ( | short | obj | ) |
Definition at line 562 of file logic.c.
References acShipTargetTable, aeObjectClass, missile_on_tail(), and OBJECT_CLASS_MISSILE.
Referenced by gametrack(), intelligence_events(), missile_on_tail(), Mkill_missile(), and update_missile_warning().
| void Mkickit | ( | short | ship | ) |
Definition at line 413 of file fl.c.
References acShipSequence, advance(), aeSpecialManeuvers, fire_afterburner(), maneuver_complete(), Mkickit(), and SPECIAL_MANEUVER_NONE.
Referenced by Mkickit().
| void Mkill_missile | ( | short | ship, |
| short | target ) |
Definition at line 749 of file fl.c.
References acShipTargetTable, fire(), MANEUVER_BURNOUT, maneuver_complete(), MANEUVER_FISH_HOOK, Mburnout(), Mfish_hook(), missile_on_tail(), Mkill_missile(), nFacingToTargetValue, nTargetShip, nTgtRange, point_ship_at_object(), reset_maneuver(), and ship_vs_ship().
Referenced by Mkill_missile().
| void Mline_up_drop | ( | short | ship, |
| short | target ) |
Definition at line 97 of file fl.c.
References aeSpecialManeuvers, anRollGoal, aShipPositionsArray, maneuver_complete(), Mline_up_drop(), no_goal(), point_ship_at_point(), and SPECIAL_MANEUVER_NORMAL.
Referenced by Mline_up_drop(), and perform_maneuver().
| short mobile_objective | ( | short | objective | ) |
Definition at line 1433 of file cockpt.c.
References aMissionObjectivesArray, and mobile_objective().
Referenced by BuildMap(), hidden_objective(), LocateMobileObjective(), mobile_objective(), SetScale(), and update_objective_location().
Definition at line 331 of file mono.c.
References bMonoDebugAvailable, exit_squadron(), hMonoDebugDriver, and MonoDebug_install().
Referenced by MonoDebug_install(), and WinMain().
| void MonoDebug_print | ( | const char * | text | ) |
Definition at line 393 of file mono.c.
References bMonoDebugAvailable, exit_squadron(), hMonoDebugDriver, MonoDebug_print(), and MonoDebug_remove().
Referenced by MonoDebug_print(), and SoundDebugPrintf().
Definition at line 361 of file mono.c.
References bMonoDebugAvailable, hMonoDebugDriver, and MonoDebug_remove().
Referenced by MonoDebug_print(), MonoDebug_remove(), and SendMonoDebugCommand3().
Definition at line 1091 of file eventmgr.c.
References MouseIdleHook().
Referenced by DosMemcpy(), LogMemoryUsage(), and MouseIdleHook().
| void MoveMenuPointerFromKeyboard | ( | InputEventState * | event | ) |
Definition at line 551 of file disk.c.
References bPtrMovedByKeyboardState, MoveMenuPointerFromKeyboard(), nKeyboardPointerStep, QueueInputEvent(), RetainInputEventsOfType(), SetMousePosition(), stHostMouseState, stMouseCursorState, InputEventState::value, MouseCursorState::x, and MouseCursorState::y.
Referenced by BarracksScreen(), InflightComputer(), MoveMenuPointerFromKeyboard(), RecRoom(), SelectTrainSimMission(), and Title_Sequence().
| unsigned int MoveNewCampaign | ( | void | ) |
Definition at line 213 of file gameflow.c.
References CampaignState::currentMission, CampaignDate::day, MoveNewCampaign(), pCurrentCampaignDate, RandomInRange(), stCampaignState, and CampaignDate::year.
Referenced by GameFlow(), and MoveNewCampaign().
| void MoveObjectAlongDirection | ( | short | obj, |
| const FixedVector * | direction, | ||
| short | distance ) |
Definition at line 873 of file geom.c.
References AddFixedVectors(), aShipPositionsArray, MoveObjectAlongDirection(), and SetVectorFixedPoint().
Referenced by MoveObjectAlongDirection().
| void Mram_missile | ( | short | ship, |
| short | target ) |
Definition at line 655 of file fl.c.
References approach_full_speed(), fire_missile(), maneuver_complete(), Mram_missile(), nFacingToTargetValue, no_goal(), nTgtRange, and point_ship_at_object().
Referenced by Mram_missile().
| void Mreset | ( | short | ship | ) |
Definition at line 933 of file fl.c.
References maneuver_complete(), and Mreset().
Referenced by Mreset().
| void Mroll_over | ( | short | ship | ) |
Definition at line 452 of file fl.c.
References acShipSequence, advance(), anRollGoal, approach_full_speed(), maneuver_complete(), Mroll_over(), and RandomBelowOrEqual().
Referenced by Mroll_over().
| void Mrout_me | ( | short | ship | ) |
Definition at line 921 of file fl.c.
References Mrout_me(), and try2rout().
Referenced by Mrout_me().
| void Msit_n_fire | ( | short | ship, |
| short | target ) |
Definition at line 723 of file fl.c.
References aeObjectClass, approach_cruise_speed(), approach_zero_speed(), fire_when_ready(), Mbest_strafe(), Msit_n_fire(), no_goal(), nTgtRange, OBJECT_CLASS_CAPITAL_SHIP, and point_ship_at_object().
Referenced by Msit_n_fire().
| void Msit_n_spin | ( | short | ship, |
| short | target ) |
Definition at line 290 of file fl.c.
References acShipSequence, AddFixedVectors(), advance(), anShipSpeed, approach_speed(), aShipFwdVec, aShipPositionsArray, asShipTotal, close_behind(), fire(), MANEUVER_CHILL, MANEUVER_ROLL_OVER, Msit_n_spin(), nFacingToTargetValue, no_goal(), nTgtRange, 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 539 of file fl.c.
References acShipSequence, advance(), anYawTarget, maneuver_complete(), Msplit_left(), and no_goal().
Referenced by Msplit_left().
| void Msplit_right | ( | short | ship | ) |
Definition at line 554 of file fl.c.
References acShipSequence, advance(), anYawTarget, maneuver_complete(), Msplit_right(), and no_goal().
Referenced by Msplit_right().
| void Mstrafe_enemy | ( | short | ship, |
| short | target ) |
Definition at line 695 of file fl.c.
References anPitchGoal, anYawTarget, approach_cruise_speed(), fire_when_ready(), Mstrafe_enemy(), point_ship_at_object(), and ship_vs_ship().
Referenced by Mbest_strafe(), Mstrafe_enemy(), and Mstrafe_n_roll().
| void Mstrafe_n_roll | ( | short | ship, |
| short | target ) |
Definition at line 739 of file fl.c.
References anRollGoal, asObjectCounterArray, Mstrafe_enemy(), and Mstrafe_n_roll().
Referenced by Mstrafe_n_roll().
| void Msuicide_run | ( | short | ship, |
| short | target ) |
Definition at line 772 of file fl.c.
References approach_full_speed(), Msuicide_run(), no_goal(), and point_ship_at_object().
Referenced by Msuicide_run().
| void Mtail_fire | ( | short | ship, |
| short | target ) |
Definition at line 594 of file fl.c.
References asObjectCollisionRadius, chase_speed(), fire_when_ready(), Mtail_fire(), no_goal(), and point_ship_at_object().
Referenced by Mtail_fire(), and Mzip_past().
| void Mtarget_laser | ( | short | ship, |
| short | target ) |
Definition at line 915 of file fl.c.
References Mbest_strafe(), and Mtarget_laser().
Referenced by Mtarget_laser().
| void Mtarget_missile | ( | short | ship, |
| short | target ) |
Definition at line 626 of file fl.c.
References acObjOwnersTable, aeObjectClass, approach_cruise_speed(), fire_missile(), maneuver_complete(), MANEUVER_STRAFE_ENEMY, Mtarget_missile(), nFacingToTargetValue, no_goal(), nTargetFacingValue, nTgtRange, OBJECT_CLASS_MISSILE, point_ship_at_object(), RandomBelowOrEqual(), and reset_maneuver().
Referenced by Mtarget_missile().
| void Mthink | ( | short | ship | ) |
Definition at line 224 of file fl.c.
References approach_cruise_speed(), asShipTotal, maneuver_complete(), and Mthink().
Referenced by Mthink().
| void Mtight_loop | ( | short | ship | ) |
Definition at line 234 of file fl.c.
References acShipSequence, advance(), anPitchGoal, approach_cruise_speed(), maneuver_complete(), Mtight_loop(), and no_goal().
Referenced by Mtight_loop().
| void Mtry2tail | ( | short | ship, |
| short | target ) |
Definition at line 525 of file fl.c.
References approach_full_speed(), maneuver_complete(), Mtry2tail(), no_goal(), point_ship_at_object(), RandomBelowOrEqual(), unactive(), and veer_random().
Referenced by Mtry2tail().
| void Mturn_n_kick | ( | short | ship | ) |
Definition at line 429 of file fl.c.
References acShipSequence, advance(), aeSpecialManeuvers, approach_full_speed(), fire_afterburner(), maneuver_complete(), Mturn_n_kick(), no_goal(), SPECIAL_MANEUVER_NONE, and veer_random().
Referenced by Mturn_n_kick().
| void Mturn_n_spin | ( | short | ship, |
| short | target ) |
Definition at line 359 of file fl.c.
References acShipSequence, advance(), asShipTotal, maneuver_complete(), Mturn_n_spin(), no_goal(), nTargetFacingValue, 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 67 of file mathfp.c.
References MultiplyFixed().
Referenced by accelerate_and_move_object(), apply_force_to_object(), approach_speed(), ConvertSphericalToRectangular(), dot_product(), draw_nav_pointer(), MultiplyFixed(), object_collision(), PlaySfxWaveFileByNumber(), reposition_fixed_child_objects(), rotate_about_i(), rotate_about_j(), rotate_about_k(), rotational_acceleration(), ScaleFixedVector(), transform_objects_to_your_view(), update_digital_readouts(), vector_cross_product(), and vector_length_in_dir().
| void Mveer_away | ( | short | ship, |
| short | target ) |
Definition at line 871 of file fl.c.
References acShipSequence, advance(), approach_full_speed(), asObjectCollisionRadius, fire_afterburner(), maneuver_complete(), Mveer_away(), nFacingToTargetValue, nManeuverProximityRange, no_goal(), normal_speed(), nTgtRange, RandomBelowOrEqual(), steer_away_from_object(), and veer_random().
Referenced by Mveer_away(), and perform_maneuver().
| void Mwabble | ( | short | ship | ) |
Definition at line 113 of file fl.c.
References anPitchGoal, anRollGoal, anYawTarget, approach_full_speed(), asShipTotal, maneuver_complete(), Mwabble(), no_goal(), RandomBelowOrEqual(), and signed_random().
Referenced by Mwabble().
| void Mzig_zag | ( | short | ship, |
| short | target ) |
Definition at line 833 of file fl.c.
References general_zig(), and Mzig_zag().
Referenced by Mzig_zag().
| void Mzig_zag_pitch | ( | short | ship, |
| short | target ) |
Definition at line 839 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 605 of file fl.c.
References approach_full_speed(), asObjectCollisionRadius, close_behind(), maneuver_complete(), Mtail_fire(), Mzip_past(), no_goal(), nTargetFacingValue, point_ship_behind_object(), point_ship_below_object(), and unactive().
Referenced by Mbest_strafe(), and Mzip_past().
| void nav_getxy | ( | short * | x, |
| short * | y, | ||
| int | worldX, | ||
| int | worldZ ) |
Definition at line 1039 of file mission.c.
References nav_getxy(), nNavMapCoordinateScaling, and ScaleNavMapCoordinates().
Referenced by Build_objective_list(), BuildMap(), DrawNavHazardMarker(), DrawNavPlayerMarker(), IncludeNavMapWorldPoint(), nav_getxy(), and SetScale().
| char * nav_note | ( | short | objective | ) |
Definition at line 658 of file nav.c.
References aMissionObjectivesArray, MissionObjective::name, and nav_note().
Referenced by DrawNavLocationReadout(), and nav_note().
| short NavMapLabelFits | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | height ) |
Definition at line 90 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 96 of file nav.c.
References NavMapLabelFits(), NavMapLabelPositionAvailable(), NavMapPointInsideReservedArea(), and nNavMapReservedAreaCount.
Referenced by NavMapLabelPositionAvailable(), and TryPlaceNavMapLabel().
| short NavMapPointInsideReservedArea | ( | short | area, |
| short | x, | ||
| short | y ) |
Definition at line 81 of file nav.c.
References aNavMapExclusionRects, ShortRect::bottom, 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 280 of file winmain.c.
References HazardField::center, HazardField::innerRadius, IsPointWithinRange(), and near_field().
Referenced by check_hazards(), and near_field().
| short nearest_enemy_range | ( | short | obj | ) |
Definition at line 908 of file logic.c.
References aeObjectClass, aeShipSide, aeSpecialManeuvers, distance_from_object(), MinShort(), nearest_enemy_range(), nTargetShip, OBJECT_CLASS_SHIP, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by close_behind(), and nearest_enemy_range().
| void negate_vector | ( | FixedVector * | vector | ) |
Definition at line 288 of file geom.c.
References negate_vector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by ejection_sequence(), get_facing_range_from_object(), get_right_shape(), negate_vector(), new_view(), object_collision(), set_background_objects_rotation(), set_eye_direction_and_position(), and skew_randomly().
| short new_object | ( | enum ObjectType | type, |
| short | owner ) |
Definition at line 91 of file ship.c.
References borrow_dust(), find_vacant_3d_object(), initialize_object(), and new_object().
Referenced by drop_mine(), fire_weapon(), new_object(), and pop_flack().
| void new_space_music_changes | ( | short | attacker, |
| short | victim ) |
Definition at line 480 of file music.c.
References acShipRating, aeShipMissionType, aeShipSide, anShipMissionShips, MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, new_space_music_changes(), nInFlightMusicActive, nShipMissionIndices, nTrainSimActive, nYourWingman, RandomInRange(), report_kilrathi_rout(), SIDE_IMPERIAL, SIDE_KILRATHI, and spacetrack().
Referenced by analyze_kill(), init_3Space_objects(), and new_space_music_changes().
| int new_sphere_shapes | ( | MissionNavPoint * | navPoint | ) |
Definition at line 484 of file mission.c.
References aObjectResourceSlotsArray, free_ship(), get_shape_slot(), GetScreenUpdateFlag(), initialize_view_buffer(), load_ship(), new_sphere_shapes(), MissionNavPoint::preloadObjectTypes, release_all_capital_ship_shapes(), shape_loaded(), shape_needed(), and ObjectResourceSlot::type.
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 472 of file spc.c.
References AddFixedVectors(), aeObjectClass, aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, aShipVelocity, asObjectCollisionRadius, bAlternateChaseView, bScriptedView, ComputeVectorDelta(), copy_frame(), cViewObject, EYE_OBJECT, find_ship_index(), fix_objects_ijk(), generate_stars(), initialize_cockpit(), look_at(), MaxShort(), nCameraViewMode, nCarrierMissionShipIndexValue, nCurrentExternalViewDistance, negate_vector(), new_view(), nExternalViewAngle, nExternalViewShip, nEyePitchRate, nEyePitchTargetValue, nEyeRollRate, nEyeRollTargetValue, nEyeYawGoalValue, nEyeYawRate, NormalizeFixedVector(), nYourWingman, OBJECT_CLASS_CAPITAL_SHIP, position_relative_ijk(), ScaleFixedVector(), set_eye_direction_and_position(), SetFleetOverviewView(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by death_sequence(), ejection_sequence(), force_view(), HandleSpaceFlightControls(), new_view(), RunSpaceFlight(), and set_eye_direction_and_position().
| signed char no_goal | ( | short | ship | ) |
Definition at line 495 of file logic.c.
References anPitchGoal, anRollGoal, anYawTarget, and no_goal().
Referenced by chase_location(), coming_home(), cruise_home(), cruise_to_destination(), defend_mission(), escort_buddy(), formation_break(), formation_burst(), general_zig(), goto_formation(), goto_location(), Mburnout(), Mbuzz_debris(), Mcorkscrew(), Mfish_hook(), Mget_distance(), Mhard_turn(), Mline_up_drop(), Mram_missile(), Msit_n_fire(), Msit_n_spin(), Msplit_left(), Msplit_right(), Msuicide_run(), Mtail_fire(), Mtarget_missile(), Mtight_loop(), Mtry2tail(), Mturn_n_kick(), Mturn_n_spin(), Mveer_away(), Mwabble(), Mzip_past(), no_goal(), orbit_sphere(), patrol_area(), prepare_for_jump(), prevent_collision(), rendezvous_mission(), return_to_buddy(), streak_toward(), and tanker_intelligence().
| short no_objectives_achieved | ( | void | ) |
Definition at line 914 of file screens.c.
References achieved(), cMissionObjectiveCountValue, and no_objectives_achieved().
Referenced by DosMemcpy(), no_objectives_achieved(), and ParseTests().
| short normal_speed | ( | short | obj | ) |
Definition at line 220 of file logic.c.
References aeSpecialManeuvers, asShipMaximumSpeedArray, normal_speed(), real_velocity(), and SPECIAL_MANEUVER_AFTERBURNER.
Referenced by cruise_home(), 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 900 of file geom.c.
References NormalizeAndScaleVector(), NormalizeFixedVector(), and ScaleFixedVector().
Referenced by accelerate_and_move_object(), NormalizeAndScaleVector(), and SetVectorFixedPoint().
| short NormalizeFixedVector | ( | FixedVector * | vector | ) |
Definition at line 471 of file geom.c.
References DivideFixed(), NormalizeFixedVector(), Vector_magnitude(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by auto_pilot_sequence(), explosion_shock_wave(), facing_to_object(), fix_objects_ijk(), get_facing_range_from_point(), get_right_shape(), launch_object(), MakeRandomNormalizedVector(), match_roll_orientation(), new_view(), NormalizeAndScaleVector(), NormalizeFixedVector(), object_collision(), position_relative(), set_background_objects_rotation(), set_eye_direction_and_position(), vector_angle(), and vector_length_in_dir().
Definition at line 2520 of file cockpt.c.
References acShipRating, acWingmanMessageStatesArray, aeObjectClass, aeShipObjectiveList, aeShipSide, message_showing(), nCannedSceneMode, nCommSpeakerObject, npc_communication(), nTrainSimActive, OBJECT_CLASS_SHIP, OBJECTIVE_DESTROY_SHIP, OBJECTIVE_ENGAGE_ENEMY, RandomBelowOrEqual(), SIDE_KILRATHI, and vid_equiv().
Referenced by npc_communication(), and update_cockpit().
| int object_collision | ( | short | obj | ) |
Definition at line 1322 of file spc.c.
References acLastCollisionObjects, acObjCollisionGraceTicks, acObjOwnersTable, acPreviousAttackers, acShipAiCooldowns, AddFixedVectors(), aeObjectClass, anShipSpeed, aObjectViewPositionsList, aPaletteFadeEntries, apply_force_to_object(), aShipPositionsArray, aShipVelocity, asObjectCollisionRadius, asObjectCounterArray, asObjectScreenXList, asShipAccumulatedDmg, awObjectScales, awObjMassArray, bPlayerCollisionResponse, check_for_collision(), ComputeVectorDelta(), DivideFixed(), easy2see(), explode(), hit_asteroid(), inflict_damage(), MaxInt(), MinInt(), MultiplyFixed(), nCameraViewMode, negate_vector(), NormalizeFixedVector(), OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_MINE, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, object_collision(), OBJECT_TYPE_LASER_SPARK, SphericalVector::pitch, PlaySfxWaveFileByNumber(), rectangular_to_spherical(), remove_object(), rotational_acceleration(), ScaleFixedVector(), set_objects_data(), SubtractFixedVectors(), vCollisionDelta, vector_component_in_dir(), Vector_magnitude(), SphericalVector::yaw, and zero_vector().
Referenced by object_collision(), and update_objects_in_space().
| unsigned int object_intelligence | ( | short | obj | ) |
Definition at line 1545 of file spc.c.
References acShipTargetTable, aeObjectClass, aeObjectTypeList, anShipSpeed, capital_ship_intelligence(), FF_missile_intelligence(), futurion_intelligence(), get_facing_range_from_object(), get_ship_max_velocity(), heat_seeking_missile_intelligence(), mine_intelligence(), nCannedSceneMode, nCurrentSpaceFrameValue, nExternalViewShip, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_FUTURION, OBJECT_CLASS_MINE, OBJECT_CLASS_MISSILE, OBJECT_CLASS_SHIP, object_intelligence(), OBJECT_TYPE_DUMB_FIRE_MISSILE, OBJECT_TYPE_FF_MISSILE, OBJECT_TYPE_HEAT_SEEKING_MISSILE, OBJECT_TYPE_IMAGE_RECOGNITION_MISSILE, point_ship(), ship_intelligence(), update_canned_sequence(), and vToTgt.
Referenced by object_intelligence(), and update_objects_in_space().
| unsigned int objective_lost | ( | short | objective | ) |
Definition at line 1360 of file cockpt.c.
References aMissionObjectivesArray, aMissionShips, MissionObjective::index, objective_lost(), and MissionShipRecord::state.
Referenced by check_objectives(), and objective_lost().
| const char * objective_name | ( | short | objective | ) |
Definition at line 1070 of file cockpt.c.
References aMissionObjectivesArray, cMissionObjectiveCountValue, MissionObjective::displayName, objective_name(), and sighted().
Referenced by BuildMap(), objective_name(), and show_navigation_disp().
| unsigned int Office | ( | void | ) |
Definition at line 478 of file cmpgn.c.
References asCampaignBriefingFiles, bEscapePressedFlag, BriefingPacketHeader::briefingScene, BriefingPacketHeader::briefingText, DIBslam(), DIBslamReal(), FetchDiskPacketRetrying(), InitializeConversationText(), InitializeConversationViewport(), nCampaignDataSet, Office(), pCurrentConversationBackdropShapePtr, PreloadMusicTrackHook(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ResetScreenClipToFullHeight(), SceneDirector(), spacetrack(), and StopMusicUnlessSuppressed().
Referenced by GameFlow(), Office(), and RunAnimationDemoLoop().
| unsigned int offset_location | ( | short | obj, |
| const ShortVector * | offset, | ||
| FixedVector * | location ) |
Definition at line 192 of file smart.c.
References aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, offset_location(), position_relative(), ShortVector::x, ShortVector::y, and ShortVector::z.
Referenced by compute_formation_destination(), offset_location(), PlaySfxWaveFileByNumber(), and set_formation_position().
| short ok_hazard_spot | ( | short | obj | ) |
Definition at line 349 of file winmain.c.
References aShipPositionsArray, asObjectScreenXList, IsPointWithinRange(), ok_hazard_spot(), and rear_sphere().
Referenced by manage_hazard(), and ok_hazard_spot().
| int onboard_explosion | ( | short | obj | ) |
Definition at line 620 of file ship.c.
References AddFixedVectors(), aShipPositionsArray, aShipVelocity, asObjectCollisionRadius, asObjectCounterArray, awObjectScales, find_vacant_3d_object(), MakeRandomVectorFixed(), OBJECT_TYPE_EXPLOSION2, onboard_explosion(), and set_objects_data().
Referenced by Explosion(), house_keep_objects(), internal_damage(), and onboard_explosion().
| void OpenCommMenuForTarget | ( | const char * | heading, |
| const char * | message ) |
Definition at line 132 of file comm.c.
References CockpitMessage(), cYellowColour, OpenCommMenuForTarget(), and pszCommMenuHeading.
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), OpenCommMenuForTarget(), and PlaySfxWaveFileByNumber().
Definition at line 157 of file comm.c.
References OpenCommRecipientMenu(), push_mode(), and SetPendingMenuAction().
Referenced by HandleCommunicationMenuRequest(), OpenCommRecipientMenu(), and PlaySfxWaveFileByNumber().
| short __stdcall OpenDataFileOrDie | ( | const char * | path | ) |
Definition at line 297 of file winsys.c.
References nPacketError, and OpenDataFileOrDie().
Referenced by EnsureSaveGameFile(), get_pilot_talk(), LoadGame(), LoadInstallDat(), OpenDataFileOrDie(), OpenDiskDataFile(), OpenPacketSection(), and SaveGame().
| short OpenDiskDataFile | ( | short | logicalFile | ) |
Definition at line 288 of file disk.c.
References abDiskPromptDriveStates, bCurrentRunningFromHardDiskFlag, CloseDataFile(), FillGraphicSuffix(), GetCurrentDiskDriveHook(), OpenDataFileOrDie(), OpenDiskDataFile(), pDiskFileRecords, SelectDiskDriveHook(), and szDiskMarkerFile.
Referenced by OpenDiskDataFile(), and PromptInsertNumberedDisk().
| short __stdcall OpenPacketSection | ( | const char * | filename, |
| short | section, | ||
| PacketSectionHandle * | handle ) |
Definition at line 371 of file view.c.
References CloseDataFile(), PacketSectionHandle::compression, PacketSectionHandle::dataOffset, PacketSectionHandle::dataSize, PacketSectionHandle::file, PacketSectionHandle::finalSection, nPacketError, OpenDataFileOrDie(), OpenPacketSection(), PacketSectionHandle::position, ReadDataFileAtOffset(), PacketSectionHandle::sectionCount, and SeekDataFile().
Referenced by GetPacketSize(), init_3Space_objects(), OpenPacketSection(), and PacketLoad().
| void orbit_sphere | ( | short | obj | ) |
Definition at line 855 of file brains.c.
References aMissionNavPoints, distance_from_point(), nCurrentNavigationPoint, no_goal(), 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().
| unsigned int overlay_head_up_display | ( | void | ) |
Definition at line 2080 of file cockpt.c.
References abMouseCursorBackground, acShipTargetTable, bCockpitlessView, bMouseCursorVisible, bTargetBracketVisible, CaptureSpriteBackground(), cCurrentCockpitView, cLastTargetObject, cRedColour, cYellowColour, DAT_0046c05c, draw_target_box(), DrawSpriteDefault(), MouseCursorState::frame, message_showing(), nCommSpeakerObject, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nPendingHudMessageColour, nRenderedSpaceFrame, nSavedMouseCursorY, nStoredMouseCursorPosX, nTargetLockCountdown, nTargetLockMode, overlay_head_up_display(), pszPendingHudMessage, pTgtLockShapePtr, MouseCursorState::shape, ShowHudTextLine(), stMouseCursorState, stPreviousTargetBracketBounds, stSpaceBufferViewport, stTargetBracketBounds, target_locking(), MouseCursorState::viewport, MouseCursorState::x, and MouseCursorState::y.
Referenced by Draw_3Space_Frame(), and overlay_head_up_display().
| void *__stdcall PacketLoad | ( | const char * | filename, |
| short | section, | ||
| void * | destination, | ||
| unsigned short | flags, | ||
| void * | decompressionWorkspace ) |
Definition at line 20 of file pload.c.
References AllocateTaggedMemory(), ClearDebugPauseFlags(), CloseDataFileByHandle(), PacketSectionHandle::compression, PacketSectionHandle::dataSize, DecompressPacketSection(), exit_squadron(), IsPushedPacketHandle(), nPacketError, OpenPacketSection(), PacketLoad(), pLastPacketAllocation, PumpMessagesDuringWait(), ReadPacketSectionData(), and SystemDebugPrintf().
Referenced by FetchDiskPacketRetrying(), init_3Space_objects(), LoadPacketAllocated(), LoadPacketIntoBuffer(), and PacketLoad().
Definition at line 132 of file music.c.
References PaletteFadeHook().
Referenced by init_3Space_objects(), PaletteFadeHook(), and ShowCarrierLaunchSequence().
Definition at line 1571 of file screens.c.
References AllocateTaggedMemory(), CachePaletteEntryFromWords(), CollectActivePaletteIndices(), CopyViewportContents(), DIBramPalette(), DIBslam(), DIBslamReal(), GetPaletteEntry(), GetViewportPixel(), Viewport::left, nVideoMode, PanToScreen(), ReleasePacketHandle(), StepPaletteTransition(), Viewport::top, and WaitForVerticalBlankThunk().
Referenced by DosMemcpy(), PanToScreen(), RecRoom(), ShowMeanwhileTransition(), and ShowTheEndScreen().
| unsigned int parse_view_script | ( | void | ) |
Definition at line 36 of file view.c.
References AddFixedVectors(), alter_pitch(), alter_roll(), alter_yaw(), aShipFwdVec, aShipPositionsArray, aShipVelocity, asObjectCounterArray, bScriptedView, ComputeVectorDelta(), copy_frame(), fix_objects_ijk(), force_view(), nEyePitchRate, nEyePitchTargetValue, nEyeRollRate, nEyeRollTargetValue, nEyeYawGoalValue, nEyeYawRate, nScriptedViewObject, nShipMissionIndices, parse_view_script(), pCurrentViewScriptPtr, ScaleFixedVector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by init_3Space_objects(), initialize_scripted_view(), parse_view_script(), and update_scripted_view().
| unsigned int ParseFaceAnimation | ( | char * | text, |
| short * | commands ) |
Definition at line 27 of file cmpgn.c.
References ParseFaceAnimation().
Referenced by ParseFaceAnimation(), and SceneDirector().
| unsigned int ParseMouthAnimation | ( | char * | text, |
| short * | commands ) |
Definition at line 65 of file cmpgn.c.
References asMouthFramesByPhoneme, and ParseMouthAnimation().
Referenced by ParseMouthAnimation(), and SceneDirector().
| ConversationSceneRecord * ParseTests | ( | ConversationSceneRecord * | record, |
| ConversationSceneRecord * | sceneData, | ||
| unsigned char * | textData ) |
Definition at line 964 of file screens.c.
References ace_status(), achieved(), bOfficeVisitPending, bPlayerEjectedThisMission, bPlayerShipTypeChanged, bPromotionPending, CampaignState::elapsedDate, FullMissionScore(), int_value(), CampaignState::missionScore, nCurrentConversationMedalIndex, no_objectives_achieved(), nPlayerKillTotal, nPreviousPlayerShipType, nWingmanKillCount, ParseTests(), CampaignState::playerShipType, PlayersMissionScore(), sighted(), stCampaignState, ConversationSceneRecord::testsOffset, wing_status(), and CampaignDate::year.
Referenced by DosMemcpy(), ParseTests(), and SceneDirector().
| void patrol_area | ( | short | obj | ) |
Definition at line 391 of file brains.c.
References acShipTargetTable, aeShipTacticArray, alter_tactic(), approach_cruise_speed(), approach_full_speed(), aShipMissionSpotArray, dist_from_home(), fail(), init_formation_burst(), no_goal(), nTgtRange, patrol_area(), point_ship_at_object(), point_ship_at_point(), reset_tactic(), scan_and_lock(), ship_vs_point(), ship_vs_ship(), TACTIC_APPROACH_TARGET, TACTIC_HEAD_HOME, TACTIC_LOOK_OUT, TACTIC_NONE, trim_goals(), and unactive().
Referenced by kilrathi_patrol(), and patrol_area().
| short __stdcall PeekInputEvent | ( | InputEventState * | event, |
| short | type ) |
Definition at line 343 of file eventmgr.c.
References InputEventState::modifiers, InputEvent::next, PeekInputEvent(), pInputEventHead, InputEventState::timestamp, InputEvent::type, InputEventState::type, InputEventState::value, InputEventState::x, and InputEventState::y.
Referenced by CheckEscaped(), DosMemcpy(), PeekInputEvent(), ShowChalkBoard(), and ViewMedals().
| void perform_maneuver | ( | short | obj | ) |
Definition at line 939 of file fl.c.
References abManeuverRerollChance, acShipTargetTable, aeShipManeuversTable, apShipAiManeuverHandlers, asObjectCollisionRadius, bCurrentManeuverReroll, maneuver_complete(), MANEUVER_GLOAT, MANEUVER_LINE_UP_DROP, MANEUVER_VEER_AWAY, Mgloat(), Mline_up_drop(), Mveer_away(), nManeuverProximityRange, nTargetFacingValue, nTgtRange, perform_maneuver(), RandomBelowOrEqual(), SetManeuverProximityRange(), ship_vs_ship(), try2reset_maneuver(), and unactive().
Referenced by maneuvering(), and perform_maneuver().
| unsigned int personality_killed | ( | short | personality | ) |
Definition at line 124 of file targ.c.
References CampaignState::currentMission, CampaignState::currentSeries, kill_ace(), MaxShort(), CampaignState::missionScore, personality_killed(), CampaignState::personalityDeathMission, CampaignState::promotionScore, and stCampaignState.
Referenced by Explosion(), init_3Space_objects(), and personality_killed().
| enum ShipManeuver pick_from_list | ( | const ManeuverChoice * | choice, |
| short | obj ) |
Definition at line 481 of file smart.c.
References aeShipManeuversTable, MANEUVER_NONE, MANEUVER_UNKNOWN_45, pick_from_list(), ManeuverChoice::primary, RandomBelow(), RandomBelowOrEqual(), ManeuverChoice::secondary, and ManeuverChoice::threshold.
Referenced by pick_from_list(), pick_kilrathi_maneuver(), PlaySfxWaveFileByNumber(), and process_maneuver_node().
| enum ShipManeuver pick_kilrathi_maneuver | ( | short | obj, |
| int | event ) |
Definition at line 507 of file smart.c.
References aiPilotLevel, aKilrathiManeuverChoices, any_defense(), MANEUVER_STRAFE_ENEMY, MANEUVER_UNKNOWN_45, MANEUVER_UNKNOWN_46, pick_from_list(), pick_kilrathi_maneuver(), and stress_morale().
Referenced by pick_kilrathi_maneuver(), PlaySfxWaveFileByNumber(), and process_maneuver_node().
| enum ShipManeuver pick_regular_maneuver | ( | short | obj, |
| int | event ) |
Definition at line 428 of file smart.c.
References acShipTargetTable, aeObjectClass, aeShipManeuversTable, aiIntelligenceEvent, aiPilotLevel, any_defense(), MANEUVER_DROP_A_MINE, 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, mine_available(), OBJECT_CLASS_CAPITAL_SHIP, pick_regular_maneuver(), RandomBelow(), RandomBelowOrEqual(), and stress_morale().
Referenced by pick_regular_maneuver(), PlaySfxWaveFileByNumber(), and process_maneuver_node().
| short pilot_hit | ( | short | obj | ) |
Definition at line 600 of file ship.c.
References acPilotHitPointsArray, asObjectCounterArray, bPlayerVulnerable, nArcadeState, pilot_hit(), RandomBelowOrEqual(), set_special(), skill_check(), and SPECIAL_MANEUVER_BLOWING_UP.
Referenced by internal_damage(), pilot_hit(), and your_internal_damage().
| unsigned int PinMedal | ( | char * | text, |
| short | duration ) |
Definition at line 480 of file screens.c.
References AddPCName(), cBlackColour, CheckEscaped(), ClearViewport(), DIBslam(), DIBslamReal(), DrawSpriteDefault(), FormatTextBufferFromStart(), IsFrameTickElapsed(), nConvTextColorValue, pCurrentConversationBackdropShapePtr, PinMedal(), pMedalSceneShape, RefreshMemoryStatusOverlay(), SetFrameTimerPeriodDirect(), stCurrentConvTextViewport, stSceneBuffer, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by DosMemcpy(), PinMedal(), and SceneDirector().
| void place_damage_on_cockpit | ( | short | damage | ) |
Definition at line 2660 of file cockpt.c.
References aaCockpitDamagePositions, anCockpitDamageState, cCurrentCockpitView, explosion_draw(), IsCockpitExplosionActive(), nCameraViewMode, nCockpitExplosionFrame, nPendingCockpitDamageValue, nTrainSimActive, pCockpitExplosionShape, place_damage_on_cockpit(), and stCockpitExplosionPosition.
Referenced by place_damage_on_cockpit(), and your_internal_damage().
| unsigned int place_exhaust_on_ships | ( | void | ) |
Definition at line 2017 of file ship.c.
References abShipExhaustHeatList, aeObjectClass, aeObjectTypeList, aeSpecialManeuvers, anShipSpeed, aObjectTypeData, asObjDistancesTable, asObjectFlipArray, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, awObjectScales, find_vacant_3d_object(), flip_angle(), OBJECT_CLASS_MISSILE, OBJECT_TYPE_THRUSTERS, place_exhaust_on_ships(), RandomInRange(), set_objects_data(), SPECIAL_MANEUVER_AFTERBURNER, and SPECIAL_MANEUVER_KILL_ENGINES.
Referenced by Draw_3Space_Frame(), and place_exhaust_on_ships().
| void PlaceNavMapLabel | ( | short | x, |
| short | y, | ||
| unsigned short | colour, | ||
| const char * | text ) |
Definition at line 167 of file nav.c.
References aNavMapLabels, NavMapLabel::colour, nNavMapLabelCount, PlaceNavMapLabel(), ReserveNavMapArea(), NavMapLabel::text, and TryPlaceNavMapLabel().
Referenced by AddUniqueObjectiveNavLabel(), BuildMap(), DrawNavHazardMarker(), and PlaceNavMapLabel().
| long PlanarMagnitude | ( | int | x, |
| int | y ) |
Definition at line 121 of file mathfp.c.
References PlanarMagnitude().
Referenced by apply_force_to_object(), PlanarMagnitude(), PlaySfxWaveFileByNumber(), rectangular_to_spherical(), and set_ship_rotation_goals().
| void PlayCockpitSelectionSfx | ( | short | selectionSound | ) |
Definition at line 2924 of file cockpt.c.
References PlayCockpitSelectionSfx(), PlaySfxWaveFileByNumber(), and void().
Referenced by PlayCockpitSelectionSfx(), and SelectCockpitVduMode().
| unsigned int player_input | ( | void | ) |
Definition at line 846 of file main.c.
References accelerate(), aeSpecialManeuvers, asInputButton2DoubleClick, asMousePitchThresholds, asMouseYawThresholds, bAfterburnerButtonLatched, bCockpitlessView, bCurrentKey, bCurrentKeyboardEvtQueued, bFlightRollLatch, bHostPrimaryMouseButton, bHostSecondaryMouseButton, bJoystickEventQueued, bMouseAfterburnerControl, bMouseButtonEventQueuedFlag, bMouseCursorVisible, bMouseMoveEvtQueued, Viewport::bottom, InputDeviceSample::buttons, cCurrentCockpitView, cPreviousKey, dwLastSecondaryButtonPress, fire_players_lasers(), MouseCursorState::frame, GetNextInputEvent(), IsInputEventQueued(), Viewport::left, InputEventState::modifiers, nCurrentActiveInputDevice, nCurrentViewCenterPosY, nInputTickScale, nMousePitchInput, nMouseYawInput, nTickCount60Hz, player_input(), PollInputEvent(), PollKeyboardState(), process_player_input(), Viewport::right, SPECIAL_MANEUVER_AFTERBURNER, stLastPolledFlightInput, stMouseCursorState, stPreviousFlightInput, stPreviousRotationInput, stRotationInput, stSpaceBufferViewport, Viewport::top, TranslatePolledInputEvent(), InputEventState::value, WarpMouseTo(), wCurrentInputModifiers, InputDeviceSample::x, MouseCursorState::x, ShortVector::x, InputDeviceSample::y, InputEventState::y, MouseCursorState::y, ShortVector::y, and ShortVector::z.
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and player_input().
| unsigned int player_wingman | ( | short | obj | ) |
Definition at line 49 of file auto.c.
References asShipWingLeaderArray, and player_wingman().
Referenced by auto_pilot_sequence(), auto_position(), and player_wingman().
| unsigned int players_flight_dynamics | ( | void | ) |
Definition at line 815 of file main.c.
References aeSpecialManeuvers, anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, aObjectTypeData, asObjectCounterArray, players_flight_dynamics(), CampaignState::playerShipType, SPECIAL_MANEUVER_BLOWING_UP, SPECIAL_MANEUVER_NONE, stCampaignState, stRotationInput, ShortVector::x, ShortVector::y, and ShortVector::z.
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and players_flight_dynamics().
| int PlayersMissionScore | ( | void | ) |
Definition at line 122 of file gameflow.c.
References achieved(), CampaignState::currentMission, CampaignState::currentSeries, PlayersMissionScore(), pMissionCampaignInfo, and stCampaignState.
Referenced by DeBriefing(), ParseTests(), PlayersMissionScore(), and UpdateSeries().
| void PlaySceneAnimation | ( | char * | text, |
| short | animation, | ||
| short | duration ) |
Definition at line 2418 of file logic.c.
References AddPCName(), bEscapePressedFlag, bSceneAnimationWaitCommand, bSlowSceneAnimation, cBlackColour, CheckEscaped(), ClearInputKeyState(), ClearViewport(), DIBslam(), DIBslamReal(), FormatTextBufferFromStart(), IsFrameTickElapsed(), SceneAnimationObject::layer, nConvTextColorValue, nFrameSkip, nFrameSkipCounter, nSceneAnimationDelayFrames, pCurrentSceneAnimationPrimaryShape, PlaySceneAnimation(), pSceneAnimationDefinitionsPtr, pSceneAnimationObjects, pSceneAnimationSecondaryShape, RefreshMemoryStatusOverlay(), SetFrameTimerPeriodDirect(), stCurrentConvTextViewport, stSceneBuffer, szTxtWorkspaceBuffer, and UpdateSceneAnimationObject().
Referenced by init_3Space_objects(), PlaySceneAnimation(), and SceneDirector().
| unsigned int PlayScrambleHangarScene | ( | void | ) |
Definition at line 279 of file cutscene.c.
References AnimateScrambleWalk(), bEscapePressedFlag, cCutsceneScrambleWalkTime, cScrambleLeftWalkerFrame, cScrambleRightWalkerFrame, cScrambleWalkerPair, DIBslam(), DIBslamReal(), DrawSpriteDefault(), FetchDiskPacketRetrying(), FlushSoundEffectsAndLog(), InitializeConversationViewport(), nFrameSkip, nFrameSkipCounter, nMemoryConfig, nSceneScrambleWalkerPositionY, nScrambleBackgroundX, nScrambleLeftWalkerX, nScrambleRightWalkerX, pCurrentScrambleHangarShape, PlayScrambleHangarScene(), PlaySfxWaveFileByNumber(), PreloadMusicTrackHook(), PumpWindowMessages(), RandomWord(), RefreshMemoryStatusOverlay(), ReleasePacketHandle(), ResetScreenClipToFullHeight(), SceneLeaveHook(), spacetrack(), and stSceneBuffer.
Referenced by GameFlow(), PlayScrambleHangarScene(), and RunAnimationDemoLoop().
| void PlaySfxWaveFileByNumber | ( | ) |
References AllocateTaggedMemory(), any_defense(), AppendCommMenuChoice(), AppendTextCharacter(), ArcCos(), ArcSin(), bad_target(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), CachePaletteEntryFromWords(), can_land(), CanOpenCommMenu(), chase_location(), chase_speed(), Chosen_communicate_option(), cleanup_objectives(), CloseCommChoiceMenu(), compute_formation_destination(), control_speed(), CopyFarString(), CosFixed(), CreateCannedSceneObject(), DIBcascade(), DIBdestroyDIB(), DIBerror(), DIBinstall(), DIBmakeDIB(), DIBpositionWindow(), DIBramPalette(), DIBreInstall(), DIBsetPalette(), DIBslam(), DIBslamReal(), DIBunInstall(), DIBupdate(), DIBwaitForVerticalBlank(), DIBwholePaletteFromTriplets(), DIBwholePaletteFromWords(), DirectDrawResultToText(), disobey_formation(), DivideFixed(), DosFarPtrToNear(), DosNearPtrToFar(), DosStrchr(), DosStrcpy(), DosStrlen(), DosStrrchr(), DrawTextCharacter(), DrawTextString(), EndCommMenu(), EndCommSessionWithWingman(), ExpandCommMessageTokens(), FontHeight(), FrameStartHook(), FreeCommDisplayResources(), get_face(), GetDIBPixelBuffer(), GetDIBWindowHandle(), GetFixedOneMillionThunk(), GetFixedOneMillionThunkAlt(), GetFontCharWidth(), GetFreeNearHeapBytes(), GetPacketSize(), GetPaletteEntryAsWords(), GetPendingMenuAction(), GetShapeFrameBounds(), goto_formation(), goto_location(), handle_collisions(), handle_stress(), HandleCommunicationMenuRequest(), have_target(), i_wanna_rout(), IdentityHandle(), InitFullScreenViewport(), InitializeDIBScreenViewport(), intelligence_events(), IsCommChoiceMenuOpen(), IsCommMenuIdle(), IsPointInRect(), IsPushedPacketHandle(), IsSoundHardwarePresent(), LoadCommDisplayResources(), LoadCommPortraitShape(), LoadJoystickCalibrationFile(), Magnitude(), maintain_formation(), MapPacketHandleToBlock(), MeasureShapeFrameStorage(), MessagePumpHook(), MultiplyFixed(), offset_location(), OpenCommMenuForTarget(), OpenCommRecipientMenu(), pick_from_list(), pick_kilrathi_maneuver(), pick_regular_maneuver(), PlanarMagnitude(), PlaySfxWaveFileByNumber(), PollJoystickButtonEvents(), PollMenuInputDevices(), prevent_collision(), PrintPaletteAllocationMap(), process_maneuver_node(), PushMemoryStackFrame(), RandomBelow(), RandomBelowOrEqual(), RandomInRange(), RandomWord(), ReadCalibratedJoystick(), real_vid_transmit(), RefreshCommunicationMenu(), regulate_turn(), ReleaseContiguousPaletteEntries(), ReleasePacketHandle(), ReleaseVideoResourcesHook(), reply(), ReportSpaceFlightMaxFps(), request(), ReserveContiguousPaletteEntries(), reset_stress(), ResetCommMenuChoices(), ResetTextCursor(), SeedRandomFromClock(), select_target(), SelectCommRecipient(), SendCommMenuChoice(), SetCinematicFrameTiming(), SetPendingMenuAction(), SetSpaceFlightFrameTiming(), SetTextContext(), SetTextCursor(), SetWholePaletteFromTriplets(), ShouldSuspendCursorForRect(), show_communications_disp(), show_info_disp(), ShowCampaignVictorySequence(), ShowCentredPrompt(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), ShutdownVideoHook(), SinFixed(), SplitPackedPoint(), steer_away_from_object(), steer_away_from_predicted_object(), stress_morale(), talk_equiv(), ThrottleFrameAndDrawFps(), too_busy(), UnionRectBounds(), UpdateInputDeviceTransitions(), Vector_magnitude(), veer_random(), WaitForVerticalBlankThunk(), and wingman_dead().
Referenced by accelerate(), animate_object(), animate_shape(), AnimateBarracks(), CheckTargetLockMalfunction(), Chosen_communicate_option(), cockpit_explosion(), death_sequence(), decrement_lock_time(), ejection_sequence(), Explosion(), fire_weapon(), funeral_sequence(), HandleSpaceFlightControls(), inflict_damage(), InflightComputer(), init_3Space_objects(), landing(), LaunchPlayerShip(), malf_noise(), malf_sound(), object_collision(), PlayCockpitSelectionSfx(), PlayScrambleHangarScene(), PlaySfxWaveFileByNumber(), PlaySfxWaveFileByNumber(), PlayTargetLockSfx(), scramble(), servicetrack(), ShowCarrierLaunchSequence(), update_lights(), and your_afterburner().
Definition at line 292 of file sound.c.
References AllocateWaveTableEntry(), bIxAudioEnabled, 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(), pSnowStaticSound, pSnowStaticWave, ReleaseFinishedSoundEntries(), and WaveTableEntry::sample.
Referenced by init_3Space_objects(), malf_noise(), and PlaySnowStaticSound().
Definition at line 817 of file cockpt.c.
References PlaySfxWaveFileByNumber(), and PlayTargetLockSfx().
Referenced by PlayTargetLockSfx().
| void playWAVE | ( | const char * | filename, |
| int | looping, | ||
| int | volume ) |
Definition at line 215 of file sound.c.
References AllocateActiveSoundEntry(), AllocateWaveTableEntry(), bIxAudioEnabled, FindWaveTableEntryByName(), IxSample::flags, IxSample::ix_sample_load_wav(), 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, and ActiveSoundEntry::sound.
Referenced by init_3Space_objects(), PlaySfxWaveFileByNumber(), and playWAVE().
| void point_at | ( | short | obj, |
| FixedVector | point ) |
Definition at line 152 of file geom.c.
References aShipFwdVec, aShipPositionsArray, ComputeVectorDelta(), fix_objects_ijk(), point_at(), shrink(), shrink_vector(), and void().
Referenced by approach(), auto_pilot_sequence(), fire_weapon(), init_hazard(), look_at(), point_at(), and SetFleetOverviewView().
| void point_capital_ship_at_object | ( | short | obj, |
| short | other ) |
Definition at line 818 of file geom.c.
References aShipPositionsArray, ComputeVectorDelta(), point_capital_ship_at_object(), and point_ship().
Referenced by point_capital_ship_at_object(), and tanker_intelligence().
| void point_parallel | ( | short | obj, |
| short | other ) |
Definition at line 866 of file geom.c.
References aShipFwdVec, point_parallel(), and point_ship().
Referenced by coming_home(), escort_buddy(), goto_formation(), point_parallel(), and return_to_buddy().
| void point_perpendicular | ( | short | obj, |
| short | other ) |
Definition at line 860 of file geom.c.
References aShipPositionsArray, point_perpendicular(), and point_perpendicular_to_point().
Referenced by defend_mission(), point_perpendicular(), and return_to_master().
| void point_perpendicular_to_point | ( | short | obj, |
| const FixedVector * | point ) |
Definition at line 850 of file geom.c.
References anYawTarget, 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 793 of file geom.c.
References acShipPointingModeList, anPitchGoal, anYawTarget, 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(), run_away(), and ShipAiState35().
| void point_ship_at_object | ( | short | obj, |
| short | other ) |
Definition at line 812 of file geom.c.
References aShipPositionsArray, point_ship_at_object(), and point_ship_at_point().
Referenced by imperial_formation(), Mkill_missile(), Mram_missile(), Msit_n_fire(), Msit_n_spin(), Mstrafe_enemy(), Msuicide_run(), Mtail_fire(), Mtarget_missile(), Mtry2tail(), Mturn_n_spin(), patrol_area(), point_ship_at_object(), rendezvous_mission(), return_to_buddy(), and streak_toward().
| void point_ship_at_point | ( | short | obj, |
| const FixedVector * | point ) |
Definition at line 802 of file geom.c.
References aShipPositionsArray, ComputeVectorDelta(), point_ship(), and point_ship_at_point().
Referenced by cruise_home(), cruise_to_destination(), goto_location(), Mline_up_drop(), Msit_n_spin(), 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 828 of file geom.c.
References aShipFwdVec, aShipPositionsArray, asObjectCollisionRadius, point_ship_at_point(), point_ship_behind_object(), and position_relative().
Referenced by Mzip_past(), and point_ship_behind_object().
| void point_ship_below_object | ( | short | obj, |
| short | other ) |
Definition at line 839 of file geom.c.
References aShipPositionsArray, aShipUpVector, asObjectCollisionRadius, point_ship_at_point(), point_ship_below_object(), and position_relative().
Referenced by Mzip_past(), and point_ship_below_object().
| short __stdcall PollInputEvent | ( | InputEventState * | event, |
| short | filter ) |
Definition at line 336 of file eventmgr.c.
References GetNextInputEvent(), PollInputEvent(), and PumpWindowMessages().
Referenced by BarracksScreen(), CheckEscaped(), DosMemcpy(), InflightComputer(), player_input(), PollInputEvent(), RecRoom(), SelectTrainSimMission(), Title_Sequence(), WaitForInputKey(), WaitForSceneAdvance(), and WarnLoadGameFirst().
Definition at line 76 of file input.c.
References aInputDevSamples, asInputBtn1ChangedTable, asInputButton1DoubleClicksList, asInputButton2ChangedTable, asInputButton2DoubleClick, bInputPollingGuard, nCurrentActiveInputDevice, PollJoystickButtonEvents(), MouseCursorState::primaryButton, QueueInputEventAtCursor(), MouseCursorState::secondaryButton, stHostMouseState, and UpdateInputDeviceTransitions().
Referenced by InflightComputer(), landing(), LoadOriginFxDrivers(), PlaySfxWaveFileByNumber(), PollJoystickButtonEvents(), SceneDirector(), ShowTrainSimHighScores(), Title_Sequence(), and UpdateTrainSimHighScores().
| unsigned int PollKeyboardState | ( | void | ) |
Definition at line 62 of file winsys.c.
References nClearedKeyboard, nClearKeyState, nDeleteKeyDown, nDownArrowKeyState, nEndKeyDown, nHomeState, nInsertKeyDown, nLeftArrowKeyState, nOemCommaKeyPressed, nOemPeriodKeyStatus, nPageDownKeyHeld, nPageUpKeyState, nRightArrowKeyHeld, nUpArrowKeyState, and PollKeyboardState().
Referenced by player_input(), and PollKeyboardState().
Definition at line 110 of file input.c.
References aInputDevSamples, asInputBtn1ChangedTable, asInputButton1DoubleClicksList, asInputButton2ChangedTable, bInputPollingGuard, EnterAllocationScope(), MouseCursorState::flags, FlushInputEvents(), LeaveAllocationScope(), nCurrentActiveInputDevice, nMenuPointerSpeed, PollMenuInputDevices(), MouseCursorState::primaryButton, QueueInputEventAtCursor(), MouseCursorState::secondaryButton, SetMousePosition(), stHostMouseState, stMouseCursorState, UpdateInputDeviceTransitions(), InputDeviceSample::x, MouseCursorState::x, InputDeviceSample::y, and MouseCursorState::y.
Referenced by InflightComputer(), InitializeRoomViewports(), PlaySfxWaveFileByNumber(), PollMenuInputDevices(), RecRoom(), RunTrainSim(), SelectTrainSimMission(), Title_Sequence(), and UpdateTrainSimHighScores().
| short pop_flack | ( | short | obj, |
| short | range, | ||
| FixedVector * | hardpoint ) |
Definition at line 1641 of file ship.c.
References acShipTargetTable, AddFixedVectors(), aObjectTypeData, aShipPositionsArray, asObjectCounterArray, explosion_shock_wave(), fire_flack(), MaxShort(), new_object(), OBJECT_TYPE_EXPLOSION0, OBJECT_TYPE_TURRET, pop_flack(), RandomBelow(), RandomBelowOrEqual(), real_velocity(), rnd_aim(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by fire_turrets(), and pop_flack().
| void pop_mode | ( | short | i | ) |
Definition at line 732 of file cockpt.c.
References aCockpitHudMessageSlotsTable, acVduModeStackDepth, ClearHudMessageSlot(), and pop_mode().
Referenced by CloseCommChoiceMenu(), EndCommSessionWithWingman(), pop_mode(), and vdu_pop_all().
| void position_child | ( | short | parent, |
| short | hardpoint, | ||
| FixedVector * | position ) |
Definition at line 950 of file geom.c.
References aChildOffsets, aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, 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 172 of file geom.c.
References AddFixedVectors(), NormalizeFixedVector(), position_relative(), and ScaleFixedVector().
Referenced by 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 183 of file geom.c.
References aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, position_relative(), and position_relative_ijk().
Referenced by auto_position(), new_view(), position_relative_ijk(), SetFleetOverviewView(), and try_far_spot().
Definition at line 40 of file gameflow.c.
References acShipRating, add_statistics(), CampaignState::badges, CAMPAIGN_BADGE_FIFTEEN_MISSIONS, CAMPAIGN_BADGE_FIRST_MISSION, CAMPAIGN_BADGE_FIVE_KILLS, CAMPAIGN_BADGE_FIVE_MISSIONS, CAMPAIGN_BADGE_SHIP_TYPE_BASE, CAMPAIGN_BADGE_TEN_MISSIONS, CAMPAIGN_BADGE_TWENTY_FIVE_KILLS, CampaignState::currentPilot, PilotRecord::kills, PilotRecord::missions, nPlayerKillTotal, nWingmanKillCount, nYourWingman, CampaignState::personalityDeathMission, CampaignState::playerShipType, PostMission(), CampaignState::promotionScore, RandomInRange(), and stCampaignState.
Referenced by GameFlow(), and PostMission().
| unsigned int PreloadMusicTrackHook | ( | short | track | ) |
Definition at line 2044 of file logic.c.
References PreloadMusicTrackHook(), and void().
Referenced by AwardCampaignMedal(), BarracksScreen(), Briefing(), DeBriefing(), ejection_sequence(), funeral_sequence(), init_3Space_objects(), landing(), Office(), PlayScrambleHangarScene(), PreloadMusicTrackHook(), RecRoom(), RunTrainSim(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowMeanwhileTransition(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), and Title_Sequence().
| void prepare_ace | ( | short | ace | ) |
Definition at line 153 of file logic.c.
References flag_ace(), prepare_ace(), and unflag_ace().
Referenced by init_personalities(), and prepare_ace().
| void prepare_for_jump | ( | short | obj | ) |
Definition at line 509 of file brains.c.
References aeShipSide, anShipSpeed, anYawTarget, asShipTotal, fire_afterburner(), get_facing_range_from_object(), nFacingToTargetValue, no_goal(), nTargetFacingValue, nTgtRange, 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 116 of file mission.c.
References acPlayerComponentDamageList, aMissionShips, bCurrentPlayerDestroyed, MissionShipRecord::behaviour, bInitialFormationSetup, bLandingAuthorized, Build_objective_list(), MissionHeaderDisk::entryNavPoint, find_ships_sphere(), init_ship(), MissionHeaderDisk::initialMissionShips, is_alive(), load_ship(), MISSION_SHIP_SCAN_LIMIT, CampaignState::missionScore, MissionShipRecord::navPoint, nCarrierMissionShipIndexValue, nCurrentWingmanKilledThisMission, nFreeShipSlot, nMissionMedalScoreValue, nPlayerKillTotal, nStartNavPointOverride, nTargetLockMode, nTrainSimActive, nWingmanKillCount, nYourWingman, OBJECT_TYPE_TIGERS_CLAW, MissionShipBehaviour::pilot, MissionHeaderDisk::playerMissionShip, CampaignState::playerShipType, prepare_mission(), set_objects_data(), Set_up_ship_info(), stCampaignState, stCurrentMissionHeader, and MissionShipRecord::type.
Referenced by init_mission(), and prepare_mission().
Definition at line 369 of file gr.c.
References abShapeRLEBuffer, AllocateTaggedMemory(), CheckHeapBlockSignature(), DecodeShapeFrame(), exit_squadron(), GetPreparedShapeData(), GetShapeFrameCount(), GetShapeFrameExtents(), PrepareShapeRLEData(), ReleasePacketHandle(), and void().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), and PrepareShapeRLEData().
| void prevent_collision | ( | short | obj | ) |
Definition at line 77 of file smart.c.
References abCollisionAlertTargets, approach_full_speed(), approach_zero_speed(), aShipPositionsArray, clear_alert(), crash_time(), fire_afterburner(), MaxShort(), MinShort(), nFacingToTargetValue, no_goal(), normal_speed(), nTargetFacingValue, prevent_collision(), ship_vs_point(), steer_away_from_predicted_object(), try2end_collision_alert(), and veer_random().
Referenced by handle_collisions(), PlaySfxWaveFileByNumber(), and prevent_collision().
| void print_message_text | ( | char * | text, |
| unsigned short | colour ) |
Definition at line 1778 of file cockpt.c.
References asHudMessageOrigins, TextContext::backgroundColour, bCockpitlessView, cCurrentCockpitView, TextContext::colour, DosStrcpy(), DrawTextAt(), GetRectHeight(), print_message_text(), pszDisplayedHudMessage, pszPendingHudMessage, SetRectBounds(), stHudMessageTextContext, and TextContext::viewport.
Referenced by print_message_text(), SetHudTextColour(), and ShowHudTextLine().
| int print_subtitle | ( | Viewport * | viewport, |
| short | colour, | ||
| const char * | text ) |
Definition at line 197 of file mono.c.
References DIBslam(), DrawSpriteDefault(), GetLineLength(), GetShapeFrameExtent(), pIntroFont, Viewport::pixels, print_subtitle(), and stScreenView.
Referenced by funeral_player(), print_subtitle(), ShowMeanwhileTransition(), ShowTheEndScreen(), stranded_sequence(), and Title_Sequence().
Definition at line 79 of file video.c.
References awPalEntryAllocation, and PrintPaletteAllocationMap().
Referenced by PlaySfxWaveFileByNumber(), and PrintPaletteAllocationMap().
| unsigned int process_maneuver_node | ( | short | obj, |
| int | event ) |
Definition at line 527 of file smart.c.
References acShipRating, aeShipManeuversTable, aeShipSide, aRatedManeuverChoices, pick_from_list(), pick_kilrathi_maneuver(), pick_regular_maneuver(), process_maneuver_node(), reset_maneuver(), SIDE_KILRATHI, and stress_morale().
Referenced by intelligence_events(), PlaySfxWaveFileByNumber(), and process_maneuver_node().
| int process_player_input | ( | void | ) |
Definition at line 605 of file main.c.
References anVolumeLevels, bCurrentKey, bMouseCursorVisible, Viewport::bottom, cPreviousKey, GetControlKeyState(), GetShiftKeyState(), init_player_input(), Viewport::left, nMusicVolumeSetting, nSfxVolumeSetting, process_player_input(), Viewport::right, SaveVolumeSettingsToRegistry(), SetMusicStreamVolume(), SetSoundEffectsVolume(), ShowOnScreenMessage(), stRotationInput, stSpaceBufferViewport, Viewport::top, WarpMouseTo(), ShortVector::x, ShortVector::y, and ShortVector::z.
Referenced by init_3Space_objects(), player_input(), and process_player_input().
| int ProcessMusicScriptCommand | ( | int | track, |
| int | command, | ||
| short | enabled ) |
Definition at line 345 of file music.c.
References bMusicCommandSuppressed, ForceStreamerTrigger(), MapMusicTrackToStreamerCommand(), nCurrentMusicTrack, nMusicStreamSet, ProcessMusicScriptCommand(), SelectFlightMusicTrack(), SetStreamerIntensity(), SoundDebugPrintf(), StopMusic(), and Streamer_trigger().
Referenced by init_3Space_objects(), ProcessMusicScriptCommand(), and spacetrack().
| short PromptForAnswerText | ( | short | entry | ) |
Definition at line 131 of file pilot.cpp.
References ApplyAnswerTextCipher(), ShortRect::bottom, cBlackColour, ClearViewport(), cRedColour, cViewportClearColour, DrawModalTextPanel(), InitializeModalTextPanel(), ShortRect::left, LoadAnswerPromptAndResponse(), PromptForAnswerText(), PromptForTextInput(), ReleaseTextFont(), RestoreModalTextPanel(), ShortRect::right, stScreenView, szComponentHitMessage, szHudMessageBuf, and ShortRect::top.
Referenced by init_3Space_objects(), and PromptForAnswerText().
| void PromptForPilotField | ( | short | x, |
| short | y, | ||
| const char * | label, | ||
| char * | destination, | ||
| short | maximumLength, | ||
| const char * | defaultText ) |
Definition at line 470 of file trainsim.c.
References TextContext::alignment, DosStrcpy(), DrawFormattedText(), Viewport::left, PromptForPilotField(), ReadTextInput(), SetTextCursor(), stTrainSimPanelViewport, and stTrainSimTxtContext.
Referenced by EnterPilotNameAndCallsign(), init_3Space_objects(), and PromptForPilotField().
| short PromptForTextInput | ( | short | x, |
| short | y, | ||
| const char * | prompt, | ||
| char * | destination, | ||
| short | maximumLength, | ||
| short | inputMode ) |
Definition at line 492 of file barracks.c.
References ShortRect::bottom, cBlackColour, cBlueColour, cRedColour, cViewportClearColour, DIBslam(), DIBslamReal(), DrawModalTextPanel(), InitializeModalTextPanel(), ShortRect::left, MeasureTextPixelWidthClamped(), PromptForTextInput(), ReadTextInput(), RestoreModalTextPanel(), ShortRect::right, stModalTextBounds, and ShortRect::top.
Referenced by PromptForAnswerText(), PromptForTextInput(), and SaveGameWithNamePrompt().
| int PromptInsertCorrectCd | ( | void | ) |
Definition at line 278 of file winsys.c.
References LocateStreamsDirOnDisc(), and PromptInsertCorrectCd().
Referenced by PromptInsertCorrectCd(), and WinMain().
| void __stdcall PromptInsertNumberedDisk | ( | short | logicalFile | ) |
Definition at line 322 of file disk.c.
References AllocateViewport(), bGraphicsActive, Viewport::bottom, cBlackColour, ClearViewport(), CopyViewportContents(), cPrimaryViewBufferColour, cViewportClearColour, DiskFileRecord::diskNumber, DiskPromptDrawHook(), DrawTextString(), DrawViewportBorder(), FormatTextBufferFromStart(), free_viewport(), ShortRect::left, Viewport::left, nDiskPromptBorderColour, OpenDiskDataFile(), pCurTextContext, pDiskFileRecords, Viewport::pixels, PromptInsertNumberedDisk(), ResetDiskPromptTimerHook(), ShortRect::right, Viewport::right, SetTextContext(), SetTextCursor(), stDiskPromptBgView, stDiskPromptBounds, stDiskPromptTextContext, stDiskPromptViewport, stSceneBuffer, stSpaceBufferViewport, szTxtWorkspaceBuffer, Viewport::top, and WaitForInputKey().
Referenced by CreateEmptySaveGameFile(), ejection_sequence(), EMStartUp(), EnsureSaveGameFile(), FetchDiskPacketRetrying(), get_pilot_talk(), LoadAnswerPromptAndResponse(), LoadGame(), LoadGamePaletteFile(), LoadOriginFxDrivers(), LoadPacketAllocated(), LoadPacketIntoBuffer(), LoadPacketResourceList(), PromptInsertNumberedDisk(), and SaveGame().
| char PumpMessagesDuringWait | ( | void | ) |
Definition at line 188 of file pilot.cpp.
References pDebugOverlay, and PumpMessagesDuringWait().
Referenced by DrawTextString(), init_3Space_objects(), LoadInstallDat(), LogDisplayMode(), PacketLoad(), PumpMessagesDuringWait(), SetInputKeyState(), WaitForInputKey(), WaitForKeyAcknowledge(), and WaitForKeyExceptXOrF12().
| unsigned int PumpWindowMessages | ( | void | ) |
Definition at line 740 of file winmain.c.
References bMainWindowAlive, bMainWindowMinimized, bWindowMessagePumpActive, DIBreInstall(), DIBslam(), DIBslamReal(), hMainWindow, init_player_input(), LogMemoryUsage(), nTickCount60Hz, pCurrentEventManagerPump, PumpWindowMessages(), and ShutdownGameWindow().
Referenced by AnimateScrambleWalk(), CheckEscaped(), CreateMainWindow(), funeral_sequence(), funeral_wingman(), GameFlow(), landing(), LaunchPlayerShip(), PlayScrambleHangarScene(), PollInputEvent(), PumpWindowMessages(), scramble(), ShowCarrierLaunchSequence(), ShowChalkBoard(), Title_Sequence(), ViewMedals(), and WaitForKeyAcknowledge().
| void PurgeNearHeapBlocks | ( | unsigned short | flags | ) |
Definition at line 69 of file nearheap.c.
References NearHeapBlock::address, DosNearPtrToFar(), nCurrentNearHeapFirstDescriptor, nNearHeapActive, nNearHeapBase, nNearHeapMaxDescriptors, nNearHeapSize, PurgeNearHeapBlocks(), ReleaseNearHeapBlock(), and NearHeapBlock::sizeAndFlags.
Referenced by InitializeNearHeap(), and PurgeNearHeapBlocks().
| void push_mode | ( | short | i, |
| int | state ) |
Definition at line 723 of file cockpt.c.
References aCockpitHudMessageSlotsTable, acVduModeStackDepth, ausVduModeStack, ClearHudMessageSlot(), and push_mode().
Referenced by OpenCommRecipientMenu(), push_mode(), and real_vid_transmit().
Definition at line 463 of file screen.c.
References aiPktHandleDeltas, apPacketHandlesList, exit_squadron(), nPacketHandleTotal, and PushMemoryStackFrame().
Referenced by AllocateTaggedMemory(), PlaySfxWaveFileByNumber(), and PushMemoryStackFrame().
| void QueueInputEvent | ( | int | type, |
| int | x, | ||
| int | y, | ||
| int | value, | ||
| int | primaryButton, | ||
| int | secondaryButton, | ||
| unsigned int | timestamp ) |
Definition at line 114 of file eventmgr.c.
References AllocateInputEvent(), GetControlKeyState(), GetKeyboardModifiers(), GetShiftKeyState(), InputEvent::modifiers, InputEvent::next, pInputEventHead, pInputEventTail, InputEvent::previous, InputEvent::primaryButton, QueueInputEvent(), ReleaseInputEventQueue(), InputEvent::secondaryButton, InputEvent::type, InputEvent::value, InputEvent::x, and InputEvent::y.
Referenced by DosMemcpy(), MainWindowProc(), MoveMenuPointerFromKeyboard(), QueueInputEvent(), QueueInputEventAtCursor(), RunSpaceFlight(), and TranslatePolledInputEvent().
| void QueueInputEventAtCursor | ( | unsigned short | type, |
| short | primaryButton, | ||
| short | secondaryButton ) |
Definition at line 63 of file eventmgr.c.
References QueueInputEvent(), QueueInputEventAtCursor(), stMouseCursorState, MouseCursorState::x, and MouseCursorState::y.
Referenced by DosMemcpy(), PollJoystickButtonEvents(), PollMenuInputDevices(), and QueueInputEventAtCursor().
| void random_radial | ( | const FixedVector * | center, |
| short | radius, | ||
| FixedVector * | position ) |
Definition at line 363 of file geom.c.
References AddFixedVectors(), FillFixedVectorWithRandomComponents(), random_radial(), and RandomBelowOrEqual().
Referenced by approve_xyz(), and random_radial().
| short RandomBelow | ( | short | n | ) |
Definition at line 29 of file mathfp.c.
References RandomBelow().
Referenced by AddRandomTrainSimHighScores(), call_enemy(), check_destroy_target(), Explosion(), init_hazard(), intelligence_events(), Mgloat(), pick_from_list(), pick_regular_maneuver(), PlaySfxWaveFileByNumber(), pop_flack(), RandomBelow(), request(), run_away(), select_target(), skew_randomly(), streak_toward(), and try_far_spot().
| short RandomBelowOrEqual | ( | short | n | ) |
Definition at line 59 of file mathfp.c.
References RandomBelowOrEqual().
Referenced by abandoned(), accelerate_and_move_object(), AddRandomTrainSimHighScores(), any_defense(), asteroid_velocity(), check_for_lost_control(), CheckTargetLockMalfunction(), Create_explosion_debris(), Create_ship_hit_debris(), explode(), fire(), fire_flack(), fire_turrets(), hit_asteroid(), house_keep_objects(), inflict_damage(), init_hazard(), InitializeTrainSimHighScores(), internal_damage(), Mfish_hook(), Mhard_turn(), mine_intelligence(), Mroll_over(), Mtarget_missile(), Mtry2tail(), Mveer_away(), Mwabble(), npc_communication(), perform_maneuver(), pick_from_list(), pick_regular_maneuver(), pilot_hit(), PlaySfxWaveFileByNumber(), pop_flack(), random_radial(), RandomBelowOrEqual(), repair_internal_damage(), ReturnToBriefingLongShot(), rnd_aim(), rnd_sign(), select_safe_target(), select_weighted_value(), send_appropriate_message(), ShowCampaignVictorySequence(), ShowTheEndScreen(), ShowVictoryScreen(), signed_random(), skill_check(), start_lock(), tanker_intelligence(), try2allow_engage(), update_hazards(), veer_random(), and your_internal_damage().
| short __stdcall RandomInRange | ( | short | lo, |
| short | hi ) |
Definition at line 49 of file mathfp.c.
References RandomInRange().
Referenced by AddRandomTrainSimHighScores(), animate_object(), AnimateBarracks(), ChooseRandomSignedMagnitude(), DrawConstellationField(), GameFlow(), generate_stars(), HandleSpaceFlightControls(), house_keep_objects(), InitializeBarracksAnimation(), InitializeConstellationField(), InitializeTrainSimHighScores(), internal_damage(), landing(), make_shard(), MakeRandomNormalizedVector(), malf(), MoveNewCampaign(), new_space_music_changes(), place_exhaust_on_ships(), PlaySfxWaveFileByNumber(), PostMission(), RandomInRange(), RecRoom(), replenish_weapon_energy_bank(), ShowTheEndScreen(), ShowTrainSimHighScores(), ShowVictoryScreen(), start_dust(), update_star_field(), and vid_transmit().
| unsigned short RandomWord | ( | void | ) |
Definition at line 43 of file mathfp.c.
References RandomWord().
Referenced by PlayScrambleHangarScene(), PlaySfxWaveFileByNumber(), and RandomWord().
Definition at line 527 of file gr.c.
References RasterLineHook(), and void().
Referenced by __copyline(), __wipeline(), CollectRasterClipColours(), fizzle_fade(), RasterLineHook(), shaded_triangle(), shadow_draw(), snow_viewport(), and triangle().
| void reach_warp | ( | short | obj | ) |
Definition at line 536 of file brains.c.
References accelerate_and_jump(), aeShipTacticArray, aShipDestinationsArray, cruise_to_destination(), fail(), 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 159 of file joycal.c.
References aInputDevSamples, InputDeviceSample::buttons, nCurrentActiveInputDevice, nCurrentJoystickFailureValue, nCurrentJoystickLeftScale, nCurrentJoystickRawCoordX, nCurrentJoystickRawCoordY, nJoystickCentreX, nJoystickCentreY, nJoystickDownScaleValue, nJoystickHorizontalDeadZone, nJoystickRightScale, nJoystickUpScale, nJoystickVertDeadZoneValue, nStickMaxX, nStickMaxY, nStickMinimumPositionX, nStickMinimumPositionY, ReadCalibratedJoystick(), SampleJoystickDevice(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by PlaySfxWaveFileByNumber(), ReadCalibratedJoystick(), and UpdateInputDeviceTransitions().
| int ReadCheaterFlagFromRegistry | ( | void | ) |
Definition at line 1499 of file gr.c.
References ReadCheaterFlagFromRegistry(), szCheaterRegistryValue, and szGameRegistryKey.
Referenced by CheckLauncherAndConfig(), CollectRasterClipColours(), and ReadCheaterFlagFromRegistry().
| int __stdcall ReadDataFileAtOffset | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | length, | ||
| void * | data ) |
Definition at line 61 of file mono.c.
References nPacketError, ReadDataFileAtOffset(), and szDataFileReadError.
Referenced by get_pilot_talk(), LoadGame(), LoadInstallDat(), OpenPacketSection(), ReadDataFileAtOffset(), and ReadPacketSectionData().
| unsigned int ReadGIFDataSubBlockByte | ( | void | ) |
References ReadGIFDataSubBlockByte().
Referenced by ReadGIFDataSubBlockByte().
| unsigned int ReadGIFLZWCode | ( | void | ) |
References ReadGIFLZWCode().
Referenced by ReadGIFLZWCode().
| short ReadJoystickButtons | ( | void | ) |
Definition at line 982 of file mission.c.
References GetJoystickButtons(), and ReadJoystickButtons().
Referenced by ReadJoystickButtons().
| short __stdcall ReadPacketSectionData | ( | PacketSectionHandle * | handle, |
| void * | destination, | ||
| unsigned int | length ) |
Definition at line 894 of file killbrd.c.
References PacketSectionHandle::dataOffset, PacketSectionHandle::dataSize, PacketSectionHandle::file, PacketSectionHandle::position, ReadDataFileAtOffset(), and ReadPacketSectionData().
Referenced by CollectRasterClipColours(), DecompressPacketSection(), GetPacketSize(), PacketLoad(), and ReadPacketSectionData().
| void ReadPerformanceCounter | ( | LARGE_INTEGER * | p | ) |
Definition at line 405 of file mono.c.
References ReadPerformanceCounter().
Referenced by ReadPerformanceCounter(), and RunSpaceFlight().
| int ReadRasterClipPixel | ( | RasterClip * | clip, |
| int | x, | ||
| int | y ) |
References ReadRasterClipPixel().
Referenced by GetViewportPixel(), and ReadRasterClipPixel().
| void ReadRequiredPilotField | ( | short | x, |
| short | y, | ||
| const char * | label, | ||
| char * | destination, | ||
| short | maximumLength ) |
Definition at line 454 of file trainsim.c.
References TextContext::alignment, DosStrcpy(), DrawFormattedText(), Viewport::left, ReadRequiredPilotField(), ReadTextInput(), SetTextCursor(), stTrainSimPanelViewport, and stTrainSimTxtContext.
Referenced by init_3Space_objects(), and ReadRequiredPilotField().
| short ReadTextInput | ( | char * | destination, |
| short | maximumLength, | ||
| short | mode ) |
Definition at line 323 of file trainsim.c.
References TextContext::backgroundColour, bKeyEventQueueEnabled, Viewport::bottom, cBlackColour, ClearNextTextInputCharacter(), ClearViewport(), TextContext::cursorX, TextContext::cursorY, DIBslam(), DIBslamReal(), DosStrcpy(), DosStrlen(), DrawFormattedText(), DrawTextInputCursor(), EraseLastTextInputCharacter(), TextContext::font, FontHeight(), GetShiftKeyState(), Viewport::left, MeasureTextPixelWidthClamped(), pCurTextContext, ReadTextInput(), Viewport::right, SetTextCursor(), TextContext::text, Viewport::top, TextContext::viewport, and WaitForStreamInputKey().
Referenced by init_3Space_objects(), PromptForPilotField(), PromptForTextInput(), ReadRequiredPilotField(), and ReadTextInput().
| short real_crash_time | ( | short | obj, |
| short | other ) |
Definition at line 230 of file logic.c.
References AddFixedVectors(), aShipPositionsArray, aShipVelocity, asObjectCollisionRadius, ComputeVectorDelta(), DivideFixed(), FixedToShortSaturating(), MaxShort(), real_crash_time(), ScaleFixedVector(), and Vector_magnitude().
Referenced by crash_time(), and real_crash_time().
| short real_velocity | ( | short | obj | ) |
Definition at line 431 of file ship.c.
References aShipVelocity, FixedToShortSaturating(), real_velocity(), and Vector_magnitude().
Referenced by fire(), imperial_formation(), make_shard(), manage_hazard(), Mfish_hook(), normal_speed(), pop_flack(), real_velocity(), and update_hazards().
| void real_vid_transmit | ( | short | obj, |
| short | message ) |
Definition at line 515 of file comm.c.
References aapszPilotSpeeches, acShipRating, aeObjectTypeList, aeShipSide, aObjectTypeData, apCommunicationPortraitShapesTable, apszKilrathiAceNames, apWingmanPilotsList, bCommVideoEnabled, bVideoImagesSuppressed, DrawSpriteDefault(), ExpandCommMessageTokens(), get_face(), Viewport::left, LoadCommDisplayResources(), LoadCommPortraitShape(), malf_noise(), MeasureMessageWidth(), nCommPortraitIndex, nCommSpeakerObject, nCommSpeakerRating, pConfedCommBackground, pKilrathiCommBackground, push_mode(), real_vid_transmit(), ShowCentredPrompt(), SIDE_IMPERIAL, stRightVduViewport, and Viewport::top.
Referenced by PlaySfxWaveFileByNumber(), real_vid_transmit(), and vid_equiv().
| short rear_sphere | ( | void | ) |
Definition at line 342 of file winmain.c.
References find_ratio(), nHazardReferenceSpeed, and rear_sphere().
Referenced by ok_hazard_spot(), and rear_sphere().
| short recalc_max_velocity | ( | short | ship | ) |
Definition at line 106 of file geom.c.
References acShipIonDriveDmg, anShipFuelsTable, asShipMaximumSpeedArray, celerate(), get_ship_max_velocity(), and recalc_max_velocity().
Referenced by damage_ion_drive(), drain_fuel(), recalc_max_velocity(), and set_objects_data().
| short RecRoom | ( | void | ) |
Definition at line 331 of file killbrd.c.
References abShotglassIdleAnimation, apRecRoomAnimations, apRecRoomFigureShapes, apRecRoomSceneDataList, apRecRoomTxtDataArray, apszRecRoomBaseLabels, apszRecRoomMenuLabels, apWingmanPilotsList, aRecRoomCharacterOrigins, aRecRoomMenuRegions, asCampaignPilotFiles, bEscapePressedFlag, bInputModeState, TitleMenuRegion::bottom, Viewport::bottom, bPanRoomTransition, cBlackColour, ClearInputKeyStatePreservingModifiers(), ClearViewport(), CopyViewportContents(), CampaignState::currentMission, CampaignState::currentSeries, DIBslam(), DIBslamReal(), DrawConstellationField(), DrawSpriteDefault(), EnterAllocationScope(), EventManagerHook(), FetchDiskPacketRetrying(), FindMenuRegionAtPoint(), FlushInputEvents(), free_constellation(), free_viewport(), FreePacketAndClear(), GetShapeFrameBounds(), init_constellation(), InitializeConstellationField(), InitializeConversationText(), InitializeRoomMenu(), InitializeRoomViewports(), IsFrameTickElapsed(), LeaveAllocationScope(), ShortRect::left, TitleMenuRegion::left, Viewport::left, LoadBriefingData(), LoadPacketAllocated(), MoveMenuPointerFromKeyboard(), nCampaignDataSet, nInputTickScale, nMenuInputRepeatDelay, nMenuPointerSpeed, nSavedRoomCtrlX, nTickCount60Hz, PanToScreen(), pBriefingPacket, pCurrentConversationBackdropShapePtr, PollInputEvent(), PollMenuInputDevices(), pRecRoomBgShape, pRecRoomRoster, PreloadMusicTrackHook(), RandomInRange(), RecRoom(), RefreshRoomMenuLabel(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), TitleMenuRegion::right, Viewport::right, SceneDirector(), SetEventManagerPump(), SetFrameTimerPeriodDirect(), SetViewportRect(), ShouldSuspendCursorForRect(), ShowChalkBoard(), ShowMemoryStatusDebug(), spacetrack(), stCampaignState, stConstellationViewport, stCurrentRoomMouseView, stMouseCursorState, StopMusicUnlessSuppressed(), stRoomDisplayView, stRoomScreenViewport, stSceneBuffer, stScreenView, szDefaultTxtBuf, TitleMenuRegion::top, Viewport::top, UnionRectBounds(), UpdateRoomMenuCursor(), InputEventState::value, MouseCursorState::viewport, WarpMouseTo(), InputEventState::x, ShortPoint::x, InputEventState::y, and ShortPoint::y.
Referenced by CollectRasterClipColours(), GameFlow(), RecRoom(), and RunAnimationDemoLoop().
| void rectangular_to_spherical | ( | const FixedVector * | rectangular, |
| SphericalVector * | spherical ) |
Definition at line 383 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().
| unsigned int RefreshCockpitStatus | ( | void | ) |
Definition at line 1948 of file main.c.
References clear_view_buffer(), Draw_3Space_Frame(), nFrameSkipCounter, RefreshCockpitStatus(), and Update_3Space().
Referenced by death_sequence(), ejection_sequence(), init_3Space_objects(), LaunchPlayerShip(), RefreshCockpitStatus(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowVictoryScreen(), and stranded_sequence().
Definition at line 315 of file comm.c.
References BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), GetPendingMenuAction(), InvalidateVduMode(), IsCommChoiceMenuOpen(), nCommMenuReuseMode, and RefreshCommunicationMenu().
Referenced by Chosen_communicate_option(), HandleCommunicationMenuRequest(), PlaySfxWaveFileByNumber(), RefreshCommunicationMenu(), and talk_equiv().
| unsigned int RefreshMemoryStatusOverlay | ( | void | ) |
Definition at line 467 of file main.c.
References CopyViewportContents(), RefreshMemoryStatusOverlay(), ShowMemoryStatusDebug(), stSceneBuffer, stScreenView, and WaitForVerticalBlankThunk().
Referenced by AnimateScrambleWalk(), CloseLook(), CloseTalk(), DebriefingEstablishingShot(), Dismissed(), DrawBriefingLongShot(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawPodiumShot(), DrawScrambleFrame(), EstablishingShot(), funeral_player(), init_3Space_objects(), MedalEstablish(), PinMedal(), PlaySceneAnimation(), PlayScrambleHangarScene(), RefreshMemoryStatusOverlay(), ReturnToBriefingLongShot(), ShowTheEndScreen(), and ViewMedals().
Definition at line 525 of file eventmgr.c.
References bEventMouseCursorDrawnFlag, bMouseCursorDamagePending, CaptureMouseCursorBackground(), DIBupdate(), DrawMouseCursor(), nEventMousePointerDamageBottom, nMouseCursorDamageLeft, nMouseCursorDamageRight, nMousePointerDamageTopValue, RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
Referenced by DosMemcpy(), RefreshMouseCursorDisplay(), and ThrottleFrameAndDrawFps().
Definition at line 228 of file killbrd.c.
References RoomMenu::currentLabel, DrawRoomMenuLabel(), IsRoomMenuLabelEmpty(), pszBlankRoomMenuLabel, RefreshRoomMenuLabel(), stCurrentRoomMenu, and RoomMenu::text.
Referenced by CollectRasterClipColours(), RecRoom(), RefreshRoomMenuLabel(), and UpdateBarracksScreen().
Definition at line 85 of file strdos.c.
References RegisterEventManagerShutdown().
Referenced by DosMemcpy(), EMStartUp(), and RegisterEventManagerShutdown().
| LONG RegistryQueryValue | ( | HKEY | key, |
| LPCSTR | name, | ||
| DWORD | type, | ||
| LPBYTE | data, | ||
| DWORD | size ) |
Definition at line 348 of file sound.c.
References RegistryQueryValue().
Referenced by init_3Space_objects(), LoadVolumeSettingsFromRegistry(), and RegistryQueryValue().
| void RegistryStoreValue | ( | HKEY | key, |
| LPCSTR | name, | ||
| DWORD | type, | ||
| const BYTE * | data, | ||
| DWORD | size ) |
Definition at line 355 of file sound.c.
References RegistryStoreValue().
Referenced by init_3Space_objects(), LoadVolumeSettingsFromRegistry(), RegistryStoreValue(), and SaveVolumeSettingsToRegistry().
| int regulate_turn | ( | short | obj | ) |
Definition at line 135 of file smart.c.
References abShipTurnList, acTurnIntervalArray, acTurnRegulatorsArray, aeObjectClass, aeSpecialManeuvers, handle_collisions(), OBJECT_CLASS_CAPITAL_SHIP, regulate_turn(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by capital_ship_intelligence(), PlaySfxWaveFileByNumber(), regulate_turn(), and ship_intelligence().
| int release_all_capital_ship_shapes | ( | void | ) |
Definition at line 170 of file mission.c.
References aeObjectClass, apObjShapeArray, asCapitalShipViewFramesTable, FreePacketAndClear(), OBJECT_CLASS_CAPITAL_SHIP, and release_all_capital_ship_shapes().
Referenced by free_all_slots(), load_all_slots(), new_sphere_shapes(), and release_all_capital_ship_shapes().
| int release_capital_ship_shapes | ( | enum ObjectType | type | ) |
Definition at line 185 of file mission.c.
References aeObjectTypeList, aObjectTypeData, apObjShapeArray, asCapitalShipViewFramesTable, FreePacketAndClear(), OBJECT_CLASS_CAPITAL_SHIP, and release_capital_ship_shapes().
Referenced by free_ship(), and release_capital_ship_shapes().
| void __stdcall ReleaseContiguousPaletteEntries | ( | short | firstEntry | ) |
Definition at line 65 of file video.c.
References awPalEntryAllocation, and ReleaseContiguousPaletteEntries().
Referenced by PlaySfxWaveFileByNumber(), and ReleaseContiguousPaletteEntries().
Definition at line 179 of file sound.c.
References ix_sound_is_playing(), ix_system_delete_sound(), ActiveSoundEntry::next, pActiveSoundHead, ReleaseFinishedSoundEntries(), RemoveActiveSoundEntry(), and ActiveSoundEntry::sound.
Referenced by init_3Space_objects(), PlaySnowStaticSound(), playWAVE(), and ReleaseFinishedSoundEntries().
| void ReleaseInputEvent | ( | InputEvent * | event | ) |
Definition at line 101 of file eventmgr.c.
References aiInputEventSlotUsedTable, aInputEvtPool, and ReleaseInputEvent().
Referenced by DosMemcpy(), ReleaseInputEvent(), ReleaseInputEventQueue(), RemoveInputEvent(), and RetainInputEventsOfType().
Definition at line 164 of file eventmgr.c.
References InputEvent::next, pInputEventHead, pInputEventTail, ReleaseInputEvent(), and ReleaseInputEventQueue().
Referenced by DosMemcpy(), FlushInputEvents(), QueueInputEvent(), and ReleaseInputEventQueue().
Definition at line 163 of file barracks.c.
References DIBslam(), DIBslamReal(), pModalTextPanel, ReleaseModalTextPanel(), ReleasePacketHandle(), and RestoreModalTextPanel().
Referenced by CalibrateJoystickInteractive(), ConfirmAwakenAfterBadData(), ConfirmQuitWingCommander(), ConfirmReplaceFaultyData(), LoadGameFromSlot(), ReleaseModalTextPanel(), ShowModalMessage(), ShowOnScreenMessage(), and WarnLoadGameFirst().
| unsigned int ReleaseMusicTrackHook | ( | short | track | ) |
Definition at line 2051 of file logic.c.
References ReleaseMusicTrackHook(), and void().
Referenced by AwardCampaignMedal(), BarracksScreen(), Briefing(), DeBriefing(), ejection_sequence(), funeral_sequence(), init_3Space_objects(), landing(), Office(), RecRoom(), ReleaseMusicTrackHook(), RunTrainSim(), scramble(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowMeanwhileTransition(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), and Title_Sequence().
| int ReleaseNearHeapBlock | ( | int | descriptorAddress | ) |
Definition at line 49 of file nearheap.c.
References DosNearPtrToFar(), MergeAdjacentNearHeapBlocks(), nCurrentNearHeapFirstDescriptor, nNearHeapBase, nNearHeapSize, ReleaseNearHeapBlock(), and NearHeapBlock::sizeAndFlags.
Referenced by FreeNearHeapBlock(), PurgeNearHeapBlocks(), and ReleaseNearHeapBlock().
Definition at line 50 of file ending.c.
References aapPacketReferences, FreeGuardedAllocation(), MapPacketHandleToBlock(), and ReleasePacketHandle().
Referenced by AllocateViewport(), AwardCampaignMedal(), BarracksScreen(), Briefing(), BriefingMap_DisplayMap(), CollectActivePaletteIndices(), DeBriefing(), DecompressPacketSection(), ejection_sequence(), EnterPilotNameAndCallsign(), FadeViewportPaletteToColour(), free_cockpit(), free_viewport(), FreeBarracksMenuLabel(), FreePacketAndClear(), funeral_sequence(), InflightComputer(), initialize_cockpit(), landing(), LaunchPlayerShip(), LoadInstallDat(), LoadMissionData(), LoadPaletteTripletsFile(), Office(), PanToScreen(), PlayScrambleHangarScene(), PlaySfxWaveFileByNumber(), PrepareShapeRLEData(), RecRoom(), ReleaseModalTextPanel(), ReleasePacketHandle(), ReleaseSceneAnimationResources(), ReleaseTextFont(), ReleaseUntaggedMemory(), scramble(), SelectTrainSimMission(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowChalkBoard(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowModalTextPanel(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), ShowTrainSimHighScores(), ShowVictoryScreen(), StepPaletteTransition(), and Title_Sequence().
Definition at line 2085 of file logic.c.
References pCurrentSceneAnimationPrimaryShape, pSceneAnimationDefinitionsPtr, pSceneAnimationPacketPtr, pSceneAnimationSecondaryShape, ReleasePacketHandle(), and ReleaseSceneAnimationResources().
Referenced by init_3Space_objects(), ReleaseSceneAnimationResources(), and ShowMeanwhileTransition().
| unsigned int ReleaseStaleNavTarget | ( | void | ) |
Definition at line 1984 of file main.c.
References FindNearestNavPoint(), nCurrentNavigationPoint, ReleaseStaleNavTarget(), and set_up_action_sphere().
Referenced by auto_pilot_sequence(), house_keep(), init_3Space_objects(), and ReleaseStaleNavTarget().
| unsigned int ReleaseTextFont | ( | short | fontIndex | ) |
Definition at line 222 of file disk.c.
References apFontWorkspaces, apTextFonts, FreeFontWorkspace(), ReleasePacketHandle(), and ReleaseTextFont().
Referenced by AwardCampaignMedal(), BarracksScreen(), BriefingMap_DisplayMap(), CalibrateJoystickInteractive(), DeBriefing(), free_cockpit(), funeral_sequence(), landing(), LoadBriefingRoom(), Office(), PromptForAnswerText(), RecRoom(), ReleaseTextFont(), SelectTrainSimMission(), ShowCampaignVictorySequence(), ShowChalkBoard(), ShowMeanwhileTransition(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), and ShowTrainSimHighScores().
Definition at line 663 of file eventmgr.c.
References ReleasePacketHandle(), and ReleaseUntaggedMemory().
Referenced by DosMemcpy(), and ReleaseUntaggedMemory().
Definition at line 190 of file mathfp.c.
References ReleaseVideoResourcesHook().
Referenced by PlaySfxWaveFileByNumber(), ReleaseVideoResourcesHook(), and ShutdownVideoHook().
| unsigned int remove_all_3d_objects | ( | void | ) |
Definition at line 1963 of file logic.c.
References remove_all_3d_objects(), and remove_object().
Referenced by free_3Space(), init_3Space_objects(), init_3Space_objects(), and remove_all_3d_objects().
Definition at line 141 of file winmain.c.
References abHazardObjects, pActiveHazardField, remove_all_hazards(), and remove_hazard().
Referenced by check_hazards(), free_3Space(), remove_all_hazards(), set_up_action_sphere(), start_hazard_field(), and Title_Sequence().
| void remove_hazard | ( | signed char | hazard | ) |
Definition at line 132 of file winmain.c.
References aiSoundEffectSourceActiveArray, MaxShort(), nActiveHazards, remove_hazard(), and remove_object().
Referenced by manage_hazard(), remove_all_hazards(), and remove_hazard().
| void remove_message | ( | const char * | text | ) |
Definition at line 495 of file cockpt.c.
References aCockpitHudMessageSlotsTable, ClearHudMessageIfMatching(), and remove_message().
Referenced by lock_off(), and remove_message().
Definition at line 432 of file mission.c.
References remove_nav_point_objects(), and remove_object().
Referenced by remove_nav_point_objects(), and ShowCarrierLaunchSequence().
Definition at line 2008 of file cockpt.c.
References nNavPointerObject, remove_nav_pointer(), and remove_object().
Referenced by draw_nav_pointer(), and remove_nav_pointer().
| void remove_object | ( | short | obj | ) |
Definition at line 1002 of file geom.c.
References abHazardObjects, acShipRating, acWingmanMessageStatesArray, aeObjectClass, aeShipManeuversTable, aeShipSide, apObjShapeArray, asCapitalShipViewFramesTable, asObjDistancesTable, asObjectScreenXList, clear_alert(), FreePacketAndClear(), MANEUVER_NONE, nNavPointerObject, nYourWingman, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_NULL, remove_object(), and SIDE_NEUTRAL.
Referenced by animate_shape(), auto_pilot_sequence(), Create_explosion_debris(), cruise_home(), 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(), and set_up_action_sphere().
| unsigned int remove_weapon | ( | short | obj, |
| short | weapon ) |
Definition at line 132 of file ship.c.
References any_selected(), aObjectTypeData, aShipWeaponsTable, get_mode(), InvalidateVduMode(), nSelectedReleaseWeaponIndex, OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, remove_weapon(), select_new_gun(), and select_new_release_weapon().
Referenced by drop_mine(), fire_weapon(), internal_damage(), remove_weapon(), RemovePlayerReleaseWeapon(), and your_internal_damage().
| void RemoveActiveSoundEntry | ( | ActiveSoundEntry * | entry | ) |
Definition at line 138 of file sound.c.
References ActiveSoundEntry::next, pActiveSoundHead, pActiveSoundTail, and RemoveActiveSoundEntry().
Referenced by init_3Space_objects(), ReleaseFinishedSoundEntries(), RemoveActiveSoundEntry(), and StopSoundsUsingWave().
| void RemoveInputEvent | ( | InputEvent * | event | ) |
Definition at line 202 of file eventmgr.c.
References InputEvent::next, pInputEventHead, pInputEventTail, InputEvent::previous, ReleaseInputEvent(), and RemoveInputEvent().
Referenced by DosMemcpy(), GetNextInputEvent(), and RemoveInputEvent().
| void RemovePlayerReleaseWeapon | ( | signed char | weapon | ) |
Definition at line 885 of file cockpt.c.
References aShipWeaponsTable, aWeaponDisplayPositions, cReleaseWeaponDisplayFrame, cReleaseWeaponDisplayState, cReleaseWeaponDisplayTicks, eReleaseWpnDisplayType, nSelectedReleaseWeaponIndex, pReleaseWeaponDisplayBackground, remove_weapon(), RemovePlayerReleaseWeapon(), select_new_release_weapon(), stReleaseWeaponDisplayPosition, stWpnDispOrigin, ShortPoint::x, and ShortPoint::y.
Referenced by drop_mine(), fire_weapon(), and RemovePlayerReleaseWeapon().
| void RemoveWaveTableEntry | ( | WaveTableEntry * | entry | ) |
Definition at line 78 of file sound.c.
References WaveTableEntry::name, WaveTableEntry::next, pWaveTableHead, pWaveTableTail, and RemoveWaveTableEntry().
Referenced by init_3Space_objects(), and RemoveWaveTableEntry().
| unsigned int RenderSpaceViewFrame | ( | void | ) |
Definition at line 1913 of file main.c.
References aShipPositionsArray, bCockpitlessView, check_message(), ClearViewport(), cPrimaryViewBufferColour, Draw_3Space_Frame(), DrawFilledViewportRect(), dump_buffer_to_screen(), nArcadeBonusCountdown, nArcadeState, nArcadeWave, nArcadeWaveBonusValue, nCameraViewMode, nCurrentArcadeScore, nCurrentWave, nTrainSimActive, RenderSpaceViewFrame(), RestoreCockpitExplosionIfVisible(), RestoreTransientCockpitGraphics(), Viewport::right, stSpaceBufferViewport, UpdateArcadeScoreDisplay(), Vector_magnitude(), and zero_vector().
Referenced by init_3Space_objects(), RenderSpaceViewFrame(), RunSpaceFlight(), Title_Sequence(), and visit_the_cinema().
| void rendezvous_mission | ( | short | obj | ) |
Definition at line 767 of file brains.c.
References aeShipObjectiveList, anShipMissionShips, approach_cruise_speed(), approach_full_speed(), attacker_in_range(), change_mission_type(), check_engage_target(), distance_from_object(), engage(), find_ship_index(), maneuvering(), MISSION_TYPE_DEFEND, MISSION_TYPE_PATROL, no_goal(), nTargetShip, 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 940 of file ship.c.
References acPlayerComponentDamageList, acShipDmg, aeObjectTypeList, aObjectTypeData, damage_ion_drive(), RandomBelowOrEqual(), repair_internal_damage(), and ReportComponentRepaired().
Referenced by repair_internal_damage(), and update_cockpit().
| unsigned int replenish_shields | ( | short | ship | ) |
Definition at line 2135 of file ship.c.
References aasShipMaximumShieldTable, aasShipShield, acPlayerComponentDamageList, aeObjectTypeList, aObjectTypeData, nCurrentSpaceFrameValue, and replenish_shields().
Referenced by replenish_shields(), and update_objects_in_space().
| unsigned int replenish_weapon_energy_bank | ( | short | ship | ) |
Definition at line 2158 of file ship.c.
References aasShipMaximumShieldTable, aasShipShield, acPlayerComponentDamageList, asShipWpnEnergyList, MinShort(), RandomInRange(), and replenish_weapon_energy_bank().
Referenced by replenish_weapon_energy_bank(), and update_objects_in_space().
| void reply | ( | short | ship, |
| short | accepted ) |
Definition at line 123 of file screen.c.
References reply(), and send_message().
Referenced by PlaySfxWaveFileByNumber(), reply(), and request().
| int report_kilrathi_rout | ( | int | mode | ) |
Definition at line 391 of file logic.c.
References aeObjectClass, aeShipMissionType, aeShipObjectiveList, aeShipSide, aeSpecialManeuvers, check_next_wave(), distance_from_object(), MISSION_TYPE_ROUT, nCurrentWave, OBJECT_CLASS_SHIP, OBJECTIVE_DESTROY_SHIP, OBJECTIVE_ENGAGE_ENEMY, report_kilrathi_rout(), SIDE_KILRATHI, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by auto_pilot_sequence(), disobey_formation(), gametrack(), new_space_music_changes(), report_kilrathi_rout(), and reset_mission_type().
| short ReportComponentRepaired | ( | short | component, |
| short | minimumDamage ) |
Definition at line 923 of file ship.c.
References acPlayerComponentDamageList, apszComponentNames, cRedColour, ReportComponentRepaired(), and ShowComponentHitHudMessage().
Referenced by repair_internal_damage(), and ReportComponentRepaired().
| void ReportFramesSkipped | ( | short | adjustment | ) |
Definition at line 1353 of file main.c.
References MaxShort(), MinShort(), nFrameSkip, ReportFramesSkipped(), and ShowOnScreenMessage().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and ReportFramesSkipped().
Definition at line 1092 of file winmain.c.
References DIBpositionWindow(), and ReportHeapGuardCorruption().
Referenced by CheckAllGuardedAllocations(), FreeGuardedAllocation(), and ReportHeapGuardCorruption().
| void ReportOutOfMemoryAndExit | ( | const char * | resource | ) |
Definition at line 1277 of file main.c.
References FatalErrorAndExit(), ReportOutOfMemoryAndExit(), ShowModalMessage(), and szInsufficientMemory.
Referenced by BriefingMap_LoadShapes(), ejection_sequence(), init_3Space_objects(), initialize_view_buffer(), and ReportOutOfMemoryAndExit().
| void ReportPacketLoadError | ( | void * | packet, |
| short | logicalFile, | ||
| short | retry, | ||
| short | section, | ||
| const char * | sourceTag ) |
Definition at line 48 of file disk.c.
References FatalErrorAndExit(), GetFixedOneMillionThunkAlt(), GetPacketSize(), LogMemoryUsage(), nPacketError, pDiskFileRecords, pszPacketAllocationOperation, pszPacketLoadErrorFormat, pszPacketReadOperation, ReportPacketLoadError(), and szDefaultTxtBuf.
Referenced by FetchDiskPacketRetrying(), InitializeConversationViewport(), LoadPacketAllocated(), LoadPacketIntoBuffer(), and ReportPacketLoadError().
| void ReportSpaceFlightMaxFps | ( | float | adjustment | ) |
Definition at line 153 of file dib.c.
References bSpaceFlightFrameTiming, fSpaceFlightFrameRate, ReportSpaceFlightMaxFps(), SetHudMessageText(), SetSpaceFlightFrameTiming(), and szSpaceFlightFpsCapMessage.
Referenced by MainWindowProc(), PlaySfxWaveFileByNumber(), and ReportSpaceFlightMaxFps().
| unsigned int reposition_fixed_child_objects | ( | void | ) |
Definition at line 2074 of file ship.c.
References acObjOwnersTable, aeObjectClass, aeObjectTypeList, asObjDistancesTable, asObjectFlipArray, asObjectScreenXList, asObjectScreenYArray, asObjScreenAngles, asObjScreenScalesArray, awObjectScales, CosFixed(), MultiplyFixed(), OBJECT_CLASS_FIXED_OBJECT, OBJECT_TYPE_THRUSTERS, OBJECT_TYPE_TURRET, reposition_fixed_child_objects(), SinFixed(), and SPACE_LAST_MOVING_OBJECT.
Referenced by Draw_3Space_Frame(), and reposition_fixed_child_objects().
| void request | ( | short | requester, |
| short | ship, | ||
| short | command ) |
Definition at line 204 of file screen.c.
References acShipRating, acShipTargetTable, aeObjectClass, aeShipObjectiveList, aeShipSide, aeSpecialManeuvers, aiPilotLevel, allow_engage(), alter_objective(), bad_target(), bEngageAllowed, bLandingAuthorized, bRadioSilence, can_land(), cleanup_objectives(), disallow_engage(), disobey_formation(), engage(), i_wanna_rout(), nAutoEngageTimer, OBJECT_CLASS_SHIP, OBJECTIVE_BREAK_FORMATION, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOLD_FORMATION, RandomBelow(), reply(), request(), reset_objective(), send_message(), SPECIAL_MANEUVER_UNKNOWN_9, too_busy(), and try2rout().
Referenced by Chosen_communicate_option(), HandleSpaceFlightControls(), PlaySfxWaveFileByNumber(), and request().
| short __stdcall ReserveContiguousPaletteEntries | ( | short | entryCount | ) |
Definition at line 35 of file video.c.
References awPalEntryAllocation, and ReserveContiguousPaletteEntries().
Referenced by PlaySfxWaveFileByNumber(), and ReserveContiguousPaletteEntries().
| void ReserveNavMapArea | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | height ) |
Definition at line 132 of file nav.c.
References aNavMapExclusionRects, ShortRect::bottom, ShortRect::left, nNavMapReservedAreaCount, ReserveNavMapArea(), ShortRect::right, and ShortRect::top.
Referenced by DrawNavCrossMarker(), DrawNavRectangleMarker(), DrawNavSquareMarker(), DrawNavTriangleMarker(), PlaceNavMapLabel(), and ReserveNavMapArea().
Definition at line 540 of file cockpt.c.
References abCockpitIndicatorStatesArray, abCockpitLightGoalArray, and reset_cockpit().
Referenced by initialize_cockpit(), InitializeCockpitResources(), and reset_cockpit().
| void reset_maneuver | ( | short | ship, |
| short | maneuver ) |
Definition at line 712 of file logic.c.
References acShipSequence, aeShipManeuversTable, asShipTotal, and reset_maneuver().
Referenced by alter_tactic(), explode(), house_keep_objects(), maneuver_complete(), Mchill(), Mkill_missile(), Msit_n_spin(), Mtarget_missile(), process_maneuver_node(), reset_maneuver(), reset_tactic(), ShipAiState35(), and try2reset_maneuver().
| unsigned int reset_mission_type | ( | short | obj, |
| enum ShipMissionType | missionType ) |
Definition at line 653 of file logic.c.
References aeShipMissionType, aeShipSide, 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(), rendezvous_mission(), reset_mission_type(), Set_up_ship_info(), and try2rout().
| unsigned int reset_objective | ( | short | ship, |
| enum ShipObjective | objective ) |
Definition at line 676 of file logic.c.
References aeShipObjectiveList, reset_objective(), reset_tactic(), steady_object(), and TACTIC_NONE.
Referenced by clean_up_cockpit(), defend_mission(), 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 382 of file smart.c.
References acPilotAggression, acShipStressList, aiPilotLevel, evaluate_damage(), find_ratio(), and reset_stress().
Referenced by intelligence_events(), PlaySfxWaveFileByNumber(), and reset_stress().
| unsigned int reset_tactic | ( | short | ship, |
| enum ShipTactic | tactic ) |
Definition at line 694 of file logic.c.
References acShipTargetTable, aeShipTacticArray, MANEUVER_NONE, reset_maneuver(), and reset_tactic().
Referenced by capital_ship_intelligence(), coming_home(), cruise_home(), cruise_to_destination(), patrol_area(), prepare_for_jump(), reach_warp(), reset_objective(), reset_tactic(), and warp_arrival().
| short __stdcall ResetAllocationDepth | ( | int | x, |
| int | y ) |
Definition at line 387 of file eventmgr.c.
References nMouseCursorShowCount, ResetAllocationDepth(), and void().
Referenced by DosMemcpy(), and ResetAllocationDepth().
Definition at line 881 of file killbrd.c.
References aInitialPilotRecords, aPilotEntriesList, CorrectPointers(), InitializeTrainSimHighScores(), ResetCampaignData(), stCampaignState, and stInitialCampaignState.
Referenced by CollectRasterClipColours(), main(), ResetCampaignData(), and StartNewCampaign().
| unsigned int ResetCockpitPaletteEntries | ( | void | ) |
Definition at line 1457 of file logic.c.
References aPaletteFadeEntries, asDamageFlashColour, cPrimaryViewBufferColour, ResetCockpitPaletteEntries(), and SetPaletteEntry().
Referenced by close_behind(), initialize_cockpit(), LoadGamePaletteFile(), ResetCockpitPaletteEntries(), and RunSpaceFlight().
| void ResetCommMenuChoices | ( | short | reuse | ) |
Definition at line 89 of file comm.c.
References abCommMenuChoiceCommands, apszCommMenuChoiceTextTable, nCommMenuChoiceCount, nCommMenuReuseMode, and ResetCommMenuChoices().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), HandleCommunicationMenuRequest(), PlaySfxWaveFileByNumber(), and ResetCommMenuChoices().
| void ResetDiskPromptTimerHook | ( | int | mode, |
| int | interval ) |
Definition at line 203 of file pilot.cpp.
References ResetDiskPromptTimerHook(), and void().
Referenced by init_3Space_objects(), PromptInsertNumberedDisk(), and ResetDiskPromptTimerHook().
References ResetGIFLZWDictionary().
Referenced by ResetGIFLZWDictionary().
Definition at line 2175 of file main.c.
References ResetMouseCursorFrame(), SetMouseCursorShape(), MouseCursorState::shape, and stMouseCursorState.
Referenced by InflightComputer(), init_3Space_objects(), and ResetMouseCursorFrame().
Definition at line 146 of file nav.c.
References nNavMapLabelCount, and ResetNavMapLabels().
Referenced by BuildMap(), and ResetNavMapLabels().
Definition at line 126 of file nav.c.
References nNavMapReservedAreaCount, and ResetNavMapReservedAreas().
Referenced by BuildMap(), and ResetNavMapReservedAreas().
Definition at line 2479 of file cockpt.c.
References animate_pilot(), CopyViewportContents(), cRenderedPilotHandFrame, pCurrentPilotHandShapePtr, ResetPilotHandAnimation(), stPilotHandBackdropView, and stPilotHandView.
Referenced by initialize_cockpit(), and ResetPilotHandAnimation().
Definition at line 1443 of file cockpt.c.
References asScannerObjectPositionX, nScannerTargetObject, and ResetScannerContacts().
Referenced by InitializeCockpitResources(), and ResetScannerContacts().
| unsigned int ResetScreenClipToFullHeight | ( | void | ) |
Definition at line 439 of file main.c.
References Viewport::bottom, free_viewport(), ResetScreenClipToFullHeight(), stSceneBuffer, stScreenView, and Viewport::top.
Referenced by AwardCampaignMedal(), DeBriefing(), funeral_sequence(), init_3Space_objects(), landing(), LoadBriefingRoom(), Office(), PlayScrambleHangarScene(), ResetScreenClipToFullHeight(), scramble(), ShowMeanwhileTransition(), and ShowTheEndScreen().
Definition at line 669 of file music.c.
References bAfterburnerSfxEnabled, FlushSoundEffects(), nCurrentDamageAlarmSfxHandle, and ResetSoundState().
Referenced by auto_pilot_sequence(), init_3Space_objects(), LaunchPlayerShip(), ResetSoundState(), ResetSoundStateForFlight(), ResetSoundStateForScene(), ShowCarrierLaunchSequence(), ShowGetReadyScreen(), and Title_Sequence().
Definition at line 684 of file music.c.
References nFlightSoundEffectsEnabled, ResetSoundState(), and ResetSoundStateForFlight().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and ResetSoundStateForFlight().
Definition at line 677 of file music.c.
References nFlightSoundEffectsEnabled, ResetSoundState(), and ResetSoundStateForScene().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and ResetSoundStateForScene().
| char *__stdcall ResetStringBuilder | ( | TextContext * | context | ) |
Definition at line 411 of file mono.c.
References ResetStringBuilder(), TextContext::text, and TextContext::textCursor.
Referenced by InitializeModalTextPanel(), InitializeTrainSimTextPanel(), ResetStringBuilder(), RunTrainSim(), and ShowTrainSimHighScores().
Definition at line 401 of file mathfp.c.
References TextContext::cursorX, TextContext::cursorY, pCurTextContext, and ResetTextCursor().
Referenced by PlaySfxWaveFileByNumber(), and ResetTextCursor().
Definition at line 2611 of file cockpt.c.
References IsCockpitExplosionActive(), nCockpitExplosionFrame, pCockpitExplosionBackground, pCockpitExplosionShape, RestoreCockpitExplosionBackground(), RestoreSpriteBackground(), stCockpitExplosionPosition, stScreenView, ShortPoint::x, and ShortPoint::y.
Referenced by RestoreCockpitExplosionBackground(), RestoreCockpitExplosionIfVisible(), and update_cockpit().
Definition at line 2161 of file cockpt.c.
References IsCockpitExplosionActive(), pCockpitExplosionBackground, RestoreCockpitExplosionBackground(), and RestoreCockpitExplosionIfVisible().
Referenced by RenderSpaceViewFrame(), and RestoreCockpitExplosionIfVisible().
Definition at line 76 of file winmain.c.
References awPaletteRgbWordsList, DIBwholePaletteFromWords(), RestoreGamePalette(), and WaitForVerticalBlankThunk().
Referenced by death_sequence(), ejection_sequence(), funeral_sequence(), RestoreGamePalette(), ShowCampaignVictorySequence(), ShowMeanwhileTransition(), stranded_sequence(), and Title_Sequence().
| void RestoreModalTextPanel | ( | ModalTextPanel * | panel | ) |
Definition at line 115 of file barracks.c.
References CopyViewportContents(), free_viewport(), pCurTextContext, ModalTextPanel::previousContext, RestoreModalTextPanel(), ModalTextPanel::savedBackground, and ModalTextPanel::viewport.
Referenced by PromptForAnswerText(), PromptForTextInput(), ReleaseModalTextPanel(), RestoreModalTextPanel(), and ShowModalTextPanel().
Definition at line 494 of file eventmgr.c.
References abCursorSaveArea, bEventMouseCursorDrawnFlag, MouseCursorState::frame, nEventMousePointerDamageBottom, nMouseCursorDamageLeft, nMouseCursorDamageRight, nMouseCursorShowCount, nMousePointerDamageTopValue, nMousePointerDrawnX, nMousePointerDrawnY, RestoreMouseCursorBackground(), RestoreSpriteBackground(), MouseCursorState::shape, stMouseCursorState, and MouseCursorState::viewport.
Referenced by DIBslamReal(), DosMemcpy(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
| void RestoreSpriteBackground | ( | Viewport * | viewport, |
| unsigned char * | background, | ||
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame ) |
Definition at line 799 of file gr.c.
References Viewport::bottom, DIBslam(), Shape::frameOffsets, Viewport::left, Viewport::pixels, RestoreSpriteBackground(), Viewport::right, SPRITE_ROW_OFFSET, stScreenView, Viewport::top, and void().
Referenced by clear_head_up_display(), CollectRasterClipColours(), fire_computer_graphic_missile(), RestoreCockpitExplosionBackground(), RestoreMouseCursorBackground(), RestoreSpriteBackground(), RestoreTransientCockpitGraphics(), SetMouseCursorShape(), and UpdateDamageDisplay().
| unsigned int RestoreTransientCockpitGraphics | ( | void | ) |
Definition at line 2170 of file cockpt.c.
References abMouseCursorBackground, acShipTargetTable, bCockpitlessView, bMouseCursorVisible, CaptureSpriteBackground(), cLastTargetObject, cPrimaryViewBufferColour, cRenderedPilotHandFrame, draw_target_box(), DrawSpriteDefault(), MouseCursorState::frame, IsCockpitExplosionActive(), nCockpitExplosionFrame, nSavedMouseCursorY, nStoredMouseCursorPosX, nTargetLockMode, pCockpitExplosionBackground, pCockpitExplosionShape, pszDisplayedHudMessage, pszPendingHudMessage, RestoreSpriteBackground(), RestoreTransientCockpitGraphics(), SetHudTextColour(), MouseCursorState::shape, stCockpitExplosionPosition, stMouseCursorState, stPreviousTargetBracketBounds, stScreenView, stTargetBracketBounds, MouseCursorState::viewport, ShortPoint::x, and ShortPoint::y.
Referenced by RenderSpaceViewFrame(), and RestoreTransientCockpitGraphics().
| void RetainInputEventsOfType | ( | int | type | ) |
Definition at line 179 of file eventmgr.c.
References InputEvent::next, pInputEventHead, pInputEventTail, InputEvent::previous, ReleaseInputEvent(), and RetainInputEventsOfType().
Referenced by DosMemcpy(), MoveMenuPointerFromKeyboard(), and RetainInputEventsOfType().
| void return_to_buddy | ( | short | obj, |
| short | buddy ) |
Definition at line 568 of file brains.c.
References approach_cruise_speed(), distance_from_object(), no_goal(), 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 708 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().
| unsigned int ReturnToBriefingLongShot | ( | char * | text, |
| short | duration ) |
Definition at line 661 of file screens.c.
References aBriefingCharacters, aBriefingPortraitOffsetX, aBriefingPortraitOffsetY, AddPCName(), BriefingCharacterLayout::animationPhase, cBlackColour, CheckEscaped(), ClearViewport(), DIBslam(), DIBslamReal(), DrawBriefingCharacter(), DrawSpriteDefault(), FetchDiskPacketRetrying(), FormatTextBufferFromStart(), nConvTextColorValue, pCurrentBriefingAnimShape, pCurrentConversationBackdropShapePtr, pSceneBriefingBodyShape, pSceneBriefingPortraitShape, RandomBelowOrEqual(), RefreshMemoryStatusOverlay(), ReturnToBriefingLongShot(), spacetrack(), stCurrentConvTextViewport, StopMusicUnlessSuppressed(), stSceneBuffer, szTxtWorkspaceBuffer, and WaitForSceneAdvance().
Referenced by DosMemcpy(), ReturnToBriefingLongShot(), and SceneDirector().
| void revise_shields | ( | short | obj | ) |
Definition at line 781 of file ship.c.
References aasShipMaximumShieldTable, aeObjectTypeList, aObjectTypeData, MaxShort(), and revise_shields().
Referenced by revise_shields(), and your_internal_damage().
| unsigned short RewriteDiskFileGraphicsExtensions | ( | short | videoMode | ) |
Definition at line 65 of file install.c.
References DiskFileRecord::name, pDiskFileRecords, and RewriteDiskFileGraphicsExtensions().
Referenced by init_3Space_objects(), LoadOriginFxDrivers(), and RewriteDiskFileGraphicsExtensions().
| int rnd_aim | ( | short | radius, |
| short | speed, | ||
| short | maximum ) |
Definition at line 1631 of file ship.c.
References MinShort(), RandomBelowOrEqual(), rnd_aim(), and rnd_sign().
Referenced by pop_flack(), and rnd_aim().
| short rnd_sign | ( | short | v | ) |
Definition at line 1623 of file ship.c.
References RandomBelowOrEqual(), and rnd_sign().
Referenced by rnd_aim(), and rnd_sign().
| unsigned int room_for_me | ( | short | obj, |
| short | minimum ) |
Definition at line 670 of file mission.c.
References room_for_me().
Referenced by approve_xyz(), and room_for_me().
| void rotate_about_i | ( | short | angle, |
| FixedVector * | j, | ||
| FixedVector * | k ) |
Definition at line 508 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(), HandleFleetOverviewInput(), initialize_direction_view_frame(), rotate_about_i(), try_far_spot(), and update_star_field().
| void rotate_about_j | ( | short | angle, |
| FixedVector * | i, | ||
| FixedVector * | k ) |
Definition at line 528 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(), HandleFleetOverviewInput(), initialize_direction_view_frame(), rotate_about_j(), try_far_spot(), and update_star_field().
| void rotate_about_k | ( | short | angle, |
| FixedVector * | i, | ||
| FixedVector * | j ) |
Definition at line 548 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 123 of file spc.c.
References anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, match_rotation_goal(), nEyePitchRate, nEyePitchTargetValue, nEyeRollRate, nEyeRollTargetValue, nEyeYawGoalValue, nEyeYawRate, 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 1035 of file spc.c.
References alter_pitch(), alter_roll(), alter_yaw(), anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, ClampVectorTo30(), and rotate_object().
Referenced by rotate_object(), set_eye_direction_and_position(), and update_objects_in_space().
| int rotate_object_to_goal | ( | short | obj | ) |
Definition at line 328 of file ship.c.
References aeObjectTypeList, aeSpecialManeuvers, alert_flag(), anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, anPitchGoal, anRollGoal, anYawTarget, aObjectTypeData, asObjectCounterArray, match_rotation_goal(), ObjectTypeData::pitchRate, ObjectTypeData::rollRate, rotate_object_to_goal(), set_special(), skill_check(), SPECIAL_MANEUVER_BLOWING_UP, SPECIAL_MANEUVER_NONE, and ObjectTypeData::yawRate.
Referenced by rotate_object_to_goal(), and update_objects_in_space().
| int RotateRLEImage | ( | RasterClip * | clip, |
| struct RLEShape * | 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 1101 of file geom.c.
References aeObjectClass, anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, asObjAfterburnerVelocities, asObjectCollisionRadius, check_for_lost_control(), ClampTo30(), DivideFixed(), 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 ) |
Definition at line 1392 of file cockpt.c.
References asScannerObjectPositionX, asScannerObjectY, cCurrentCockpitView, CockpitScannerGeometry::centerX, CockpitScannerGeometry::centerY, CockpitScannerGeometry::maximumX, CockpitScannerGeometry::maximumY, MaxShort(), CockpitScannerGeometry::minimumX, CockpitScannerGeometry::minimumY, MinShort(), nScannerCursorX, nScannerCursorY, SphericalVector::pitch, rotational_pos_to_scanner_pos(), CockpitLayout::scanner, stCockpitLayout, and SphericalVector::yaw.
Referenced by draw_3d_scanner(), rotational_pos_to_scanner_pos(), and set_objective_range().
| void run_away | ( | short | obj | ) |
Definition at line 105 of file brains.c.
References aeShipMissionType, aeShipSide, any_enemy(), approach_full_speed(), asShipWingLeaderArray, coming_home(), distance_from_object(), fire_afterburner(), 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().
| unsigned int RunAnimationDemoLoop | ( | signed char | animation | ) |
Definition at line 1337 of file cutscene.c.
References AwardCampaignMedal(), BarracksScreen(), Briefing(), CampaignState::currentMission, CampaignState::currentSeries, death_sequence(), DeBriefing(), exit_squadron(), free_3Space(), free_constellation(), funeral_sequence(), init_3Space_objects(), InitializeCockpitResources(), landing(), LaunchPlayerShip(), nCurrentConversationMedalIndex, Office(), PlayScrambleHangarScene(), RecRoom(), RunAnimationDemoLoop(), scramble(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowMeanwhileTransition(), ShowTigerClawEscapeScene(), stCampaignState, Title_Sequence(), and WaitForInputKey().
Referenced by main(), and RunAnimationDemoLoop().
| int RunSpaceFlight | ( | short | entryNavPoint | ) |
Definition at line 1994 of file main.c.
References aMissionShips, bCockpitEnabled, bCockpitlessView, bInputModeState, bMouseAfterburnerControl, bMouseCursorVisible, Viewport::bottom, bPtrMovedByKeyboardState, ClearDebugPauseFlags(), copy_frame(), cScreenViewMode, DIBslam(), DIBslamReal(), find_objective(), flag_objective(), FlushInputEvents(), free_inflight_music(), get_player_input(), GetScreenUpdateFlag(), HandleSpaceFlightControls(), init_inflight_music(), initialize_cockpit(), initialize_view_buffer(), Viewport::left, liFlightAfterCockpitCounter, liFlightAfterInputCounter, liFlightFrameEndCounter, liFrameStart, liRenderDoneCounter, liSimulationDone, nArcadeState, MissionShipRecord::navPoint, nCurrentViewCenterPosY, nDrawDelta, new_view(), nFlightFrameTicks, nFlightPresentDelta, nFrameSkipCounter, nHudDelta, nInputTicks, nScreenHeight, nScreenWidth, nSimulationDelta, nTrainSimActive, nUnusedFlightProfileTicksA, nUnusedFlightProfileTicksB, nUnusedFlightProfileTicksC, MissionHeaderDisk::playerMissionShip, QueueInputEvent(), ReadPerformanceCounter(), RenderSpaceViewFrame(), ResetCockpitPaletteEntries(), Viewport::right, RunSpaceFlight(), set_up_action_sphere(), SetCinematicFrameTiming(), SetEventManagerPump(), SetMouseCursorShape(), SetMousePosition(), SetSpaceFlightFrameTiming(), SetViewportRect(), MouseCursorState::shape, stCurrentMissionHeader, stMouseCursorState, stSpaceBufferViewport, Viewport::top, Update_3Space(), update_cockpit(), MouseCursorState::viewport, and WarpMouseTo().
Referenced by GameFlow(), init_3Space_objects(), main(), RunSpaceFlight(), and RunTrainSim().
Definition at line 847 of file trainsim.c.
References aasShipMaximumShieldTable, aasShipShield, acPlayerComponentDamageList, acShipDmg, aeObjectTypeList, aObjectTypeData, bCampaignStartupMode, bInputModeState, bKeyEventQueueEnabled, CampaignState::campaignIndex, cCockpitLogicalFile, cCurrentCockpitView, DIBslam(), DIBslamReal(), FigureArcadeTime(), free_3Space(), free_all_slots(), free_cockpit(), init_mission(), InvalidateVduMode(), nArcadeBonusCountdown, nArcadeState, nArcadeTimeRemaining, nArcadeWave, nCampaignDataSet, nCannedSceneMode, nCurrentArcadeScore, nCurrentWave, nTrainSimActive, nTrainSimMission, PollMenuInputDevices(), PreloadMusicTrackHook(), ReleaseMusicTrackHook(), ResetStringBuilder(), RunSpaceFlight(), RunTrainSim(), SelectTrainSimMission(), set_up_next_wave(), SetEventManagerPump(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowTrainSimHighScores(), ShowVictoryScreen(), stCampaignState, stHudMessageTextContext, and UpdateTrainSimHighScores().
Referenced by GameFlow(), init_3Space_objects(), RunTrainSim(), and StartNewCampaign().
Definition at line 990 of file mission.c.
References aInputDevSamples, nCurrentActiveInputDevice, SampleActiveJoystickDevice(), and SampleJoystickDevice().
Referenced by SampleActiveJoystickDevice().
| short __stdcall SampleBothJoysticks | ( | InputDeviceSample * | samples, |
| short | fallback ) |
Definition at line 945 of file mission.c.
References GetJoystickPosition(), and SampleBothJoysticks().
Referenced by LoadJoystickCalibrationFile(), and SampleBothJoysticks().
| int __stdcall SampleJoystickDevice | ( | InputDeviceSample * | samples, |
| short | joystick, | ||
| unsigned short | fallback ) |
Definition at line 958 of file mission.c.
References InputDeviceSample::buttons, GetJoystickPosition(), nCurrentActiveInputDevice, SampleJoystickDevice(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by CalibrateJoystickInteractive(), ReadCalibratedJoystick(), SampleActiveJoystickDevice(), SampleJoystickDevice(), UpdateInputDeviceTransitions(), WaitForJoystickButtonPress(), and WaitForJoystickButtonRelease().
| short SaveGame | ( | short | slot, |
| SaveGameRecord * | gameRecord ) |
Definition at line 395 of file barracks.c.
References CampaignState::aceFlags, SaveGameDiskCampaignState::aceFlags, CampaignState::badges, SaveGameDiskCampaignState::badges, SaveGameDiskRecord::campaign, SaveGameRecord::campaign, CampaignState::campaignIndex, SaveGameDiskCampaignState::campaignIndex, CloseDataFile(), CampaignState::currentDate, SaveGameDiskCampaignState::currentDate, CampaignState::currentMission, SaveGameDiskCampaignState::currentMission, CampaignState::currentPilot, SaveGameDiskCampaignState::currentPilot, CampaignState::currentSeries, SaveGameDiskCampaignState::currentSeries, CampaignDate::day, SaveGameDiskRecord::description, SaveGameRecord::description, MissionObjective::displayName, SaveGameDiskObjective::displayName, CampaignState::elapsedDate, SaveGameDiskCampaignState::elapsedDate, MissionObjective::field_4, SaveGameDiskObjective::field_4, MissionObjective::flags, SaveGameDiskObjective::flags, MissionObjective::index, SaveGameDiskObjective::index, MissionObjective::mapX, SaveGameDiskObjective::mapX, MissionObjective::mapY, SaveGameDiskObjective::mapY, CampaignState::medals, SaveGameDiskCampaignState::medals, CampaignState::missionScore, SaveGameDiskCampaignState::missionScore, MissionObjective::name, SaveGameDiskObjective::name, SaveGameDiskRecord::objectives, SaveGameRecord::objectives, SaveGameDiskRecord::occupied, SaveGameRecord::occupied, OpenDataFileOrDie(), CampaignState::personalityDeathMission, SaveGameDiskCampaignState::personalityDeathMission, SaveGameDiskRecord::pilots, SaveGameRecord::pilots, CampaignState::playerShipType, SaveGameDiskCampaignState::playerShipType, MissionObjective::position, SaveGameDiskObjective::position, CampaignState::promotionScore, SaveGameDiskCampaignState::promotionScore, PromptInsertNumberedDisk(), SaveGame(), CampaignState::seriesHistory, SaveGameDiskCampaignState::seriesHistory, CampaignState::seriesHistoryCount, SaveGameDiskCampaignState::seriesHistoryCount, CampaignState::seriesScore, SaveGameDiskCampaignState::seriesScore, MissionObjective::type, SaveGameDiskObjective::type, WriteDataFileAtOffset(), and CampaignDate::year.
Referenced by SaveGame(), and SaveGameWithNamePrompt().
Definition at line 61 of file winmain.c.
References awPaletteRgbWordsList, GetPaletteEntry(), and SaveGamePalette().
Referenced by LoadGamePaletteFile(), SaveGamePalette(), and ShowMeanwhileTransition().
| void SaveGameWithNamePrompt | ( | short | slot, |
| CampaignState * | campaign, | ||
| PilotRecord * | pilots, | ||
| MissionObjective * | objectives ) |
Definition at line 547 of file barracks.c.
References apszBarracksMenuLabels, apszSaveCampaignMenuLabels, bCampaignActive, SaveGameRecord::campaign, SaveGameRecord::description, DosMemcpy(), DosStrchr(), DosStrcpy(), SaveGameRecord::objectives, SaveGameRecord::occupied, SaveGameRecord::pilots, PromptForTextInput(), SaveGame(), SaveGameWithNamePrompt(), ShowModalMessage(), and WarnLoadGameFirst().
Referenced by HandleBarracksBunkSelection(), and SaveGameWithNamePrompt().
Definition at line 392 of file sound.c.
References nMusicVolumeSetting, nSfxVolumeSetting, RegistryStoreValue(), SaveVolumeSettingsToRegistry(), szMusicVolumeValueName, and szSfxVolumeValueName.
Referenced by init_3Space_objects(), process_player_input(), and SaveVolumeSettingsToRegistry().
| void ScaleFixedVector | ( | const FixedVector * | vector, |
| int | scale, | ||
| FixedVector * | result ) |
Definition at line 322 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(), chase_location(), CreateCannedSceneObject(), ejection_sequence(), explosion_shock_wave(), fire(), fire_weapon(), fix_velocity(), generate_stars(), get_front_spot(), get_rear_spot(), init_formation_burst(), init_hazard(), InitializeConstellationObject(), launch_object(), match_ship_to_eye(), Msit_n_spin(), new_view(), NormalizeAndScaleVector(), object_collision(), parse_view_script(), position_relative(), real_crash_time(), ScaleFixedVector(), servicetrack(), set_eye_direction_and_position(), SetFleetOverviewView(), ShowGameOverScreen(), ShowTigerClawEscapeScene(), start_dust(), steer_away_from_predicted_object(), Title_Sequence(), update_star_field(), and vector_component_in_dir().
| void ScaleNavMapCoordinates | ( | short * | x, |
| short * | y, | ||
| short | mapX, | ||
| short | mapY ) |
Definition at line 1030 of file mission.c.
References nNavMapCenterPositionY, nNavMapCentreX, nNavMapScale, and ScaleNavMapCoordinates().
Referenced by BuildMap(), CentreMouseOnCurrentNavObjective(), nav_getxy(), ScaleNavMapCoordinates(), and SelectNavObjectiveAtPoint().
| void ScaleNavMapMarkerSize | ( | short * | size | ) |
Definition at line 1024 of file mission.c.
References nNavMapScale, and ScaleNavMapMarkerSize().
Referenced by DrawNavHazardMarker(), and ScaleNavMapMarkerSize().
| short scan_and_lock | ( | short | obj, |
| int | scanRange, | ||
| enum ShipTactic | newTactic ) |
Definition at line 382 of file brains.c.
References acShipTargetTable, aeShipTacticArray, 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 856 of file logic.c.
References aeObjectClass, aeShipSide, aeSpecialManeuvers, aShipPositionsArray, distance_from_object(), distance_from_point(), get_facing_range_from_object(), nTargetShip, nTgtRange, OBJECT_CLASS_SHIP, scan_for_enemy(), and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by approach_and_engage(), capital_ship_intelligence(), close_behind(), cruise_to_destination(), defend_mission(), scan_and_lock(), scan_for_enemy(), and select_target().
| short __stdcall SceneAnimationGoalReached | ( | short | delta, |
| short | current, | ||
| short | goal ) |
Definition at line 2135 of file logic.c.
References SceneAnimationGoalReached().
Referenced by init_3Space_objects(), SceneAnimationGoalReached(), and UpdateSceneAnimationObject().
| unsigned int SceneDirector | ( | short | sceneType, |
| unsigned char * | sceneData, | ||
| unsigned char * | textData ) |
Definition at line 1212 of file screens.c.
References asConversationTextColours, bConversationConstellation, bConversationOverlay, bEscapePressedFlag, bInputModeState, cBlackColour, cCurrentObjective, ClearInputKeyState(), ClearViewport(), CloseLook(), DebriefingEstablishingShot(), Dismissed(), DrawBriefingLongShot(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawPodiumShot(), ConversationSceneRecord::duration, EstablishingShot(), ConversationSceneRecord::faceAnimationOffset, FlushInputEvents(), free_constellation(), FreeTalker(), funeral_wingman(), init_constellation(), InitializeConstellationField(), LoadFace(), LongTalk(), MedalEstablish(), ConversationSceneRecord::mouthAnimationOffset, nConversationCharacter, nConvTextColorValue, nTalkingHeadFace, nTalkSceneType, ParseFaceAnimation(), ParseMouthAnimation(), ParseTests(), pBriefingCloseupShape, pFaceAnimationCmds, PinMedal(), PlaySceneAnimation(), PollJoystickButtonEvents(), pSceneMouthAnimCmds, pTalkHeadShape, ReturnToBriefingLongShot(), SceneDirector(), SetEventManagerPump(), ConversationSceneRecord::shot, stConstellationViewport, stCurrentConvTextViewport, stSceneBuffer, ConversationSceneRecord::talker, TalkerInit(), ConversationSceneRecord::testsOffset, ConversationSceneRecord::textColour, ConversationSceneRecord::textOffset, and UpdateMap().
Referenced by AwardCampaignMedal(), DeBriefing(), DosMemcpy(), funeral_sequence(), LoadBriefingRoom(), Office(), RecRoom(), SceneDirector(), and ShowMeanwhileTransition().
Definition at line 163 of file pilot.cpp.
References SceneEnterHook().
Referenced by init_3Space_objects(), SceneEnterHook(), and Title_Sequence().
| void SceneLeaveHook | ( | ) |
Definition at line 151 of file music.c.
References SceneLeaveHook().
Referenced by death_sequence(), init_3Space_objects(), PlayScrambleHangarScene(), and SceneLeaveHook().
| unsigned int score_for_kill | ( | short | pilot, |
| short | victim ) |
Definition at line 1111 of file ship.c.
References aeObjectTypeList, aeShipSide, affect_mission_score(), OBJECT_TYPE_DORKIR, OBJECT_TYPE_DRALTHI, OBJECT_TYPE_FRALTHI, OBJECT_TYPE_GRATHA, OBJECT_TYPE_JALTHI, OBJECT_TYPE_KILRATHI_BASE, OBJECT_TYPE_KRANT, OBJECT_TYPE_LUMBARI, OBJECT_TYPE_RALARI, OBJECT_TYPE_SALTHI, OBJECT_TYPE_SIVAR, OBJECT_TYPE_SNAKEIR, OBJECT_TYPE_SPIKERI, score_for_kill(), and SIDE_KILRATHI.
Referenced by analyze_kill(), and score_for_kill().
| unsigned int scramble | ( | void | ) |
Definition at line 596 of file cutscene.c.
References bEscapePressedFlag, bScrambleCanopyClosed, cCockpitLogicalFile, ConfigureScrambleActor(), DrawScrambleFrame(), FetchDiskPacketRetrying(), FlushSoundEffects(), FlushSoundEffectsAndLog(), InitializeConversationViewport(), nFrameSkipCounter, nMemoryConfig, nSceneScrambleCanopyFrameValue, nSceneScrambleShipDetailCountValue, nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, nScrambleCanopyOffset, nScrambleCockpitAngle, OBJECT_TYPE_HORNET, OBJECT_TYPE_RAPIER, OBJECT_TYPE_RAPTOR, OBJECT_TYPE_SCIMITAR, CampaignState::playerShipType, PlaySfxWaveFileByNumber(), pSceneScrambleBgShapePtr, pScrambleCanopyShape, pScrambleCockpitShapePtr, pScrambleShipShape, pScrambleView, PumpWindowMessages(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ResetScreenClipToFullHeight(), scramble(), stCampaignState, StopMusicUnlessSuppressed(), stSceneBuffer, stScrambleCockpitDetail, stScrambleOverlay, stScramblePlayerShipPos, WaitForSceneAdvance(), ShortPoint::x, and ShortPoint::y.
Referenced by GameFlow(), RunAnimationDemoLoop(), and scramble().
| int ScrollRasterClipWrapped | ( | RasterClip * | clip, |
| int | deltaX, | ||
| int | deltaY, | ||
| int | mode, | ||
| unsigned int | fillOrScratch ) |
References ScrollRasterClipWrapped().
Referenced by ScrollRasterClipWrapped().
| void __stdcall SeedRandomFromClock | ( | int | seed | ) |
Definition at line 37 of file mathfp.c.
References SeedRandomFromClock().
Referenced by PlaySfxWaveFileByNumber(), and SeedRandomFromClock().
| int __stdcall SeekDataFile | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | origin ) |
Definition at line 79 of file mono.c.
References nPacketError, SeekDataFile(), and szSeekDataError.
Referenced by OpenPacketSection(), SeekDataFile(), and SeekPacketSection().
| int __stdcall SeekPacketSection | ( | PacketSectionHandle * | handle, |
| int | offset, | ||
| short | origin ) |
Definition at line 34 of file geom.c.
References PacketSectionHandle::dataOffset, PacketSectionHandle::dataSize, PacketSectionHandle::file, PacketSectionHandle::position, SeekDataFile(), and SeekPacketSection().
Referenced by DecompressPacketSection(), and SeekPacketSection().
| int select_guns | ( | short | obj, |
| short | selectedGun ) |
Definition at line 55 of file select.c.
References aObjectTypeData, aShipWeaponsTable, ShipWeaponSlot::disabled, OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, select_guns(), and ShipWeaponSlot::type.
Referenced by init_3Space_objects(), select_guns(), and select_new_gun().
| unsigned int select_new_gun | ( | void | ) |
Definition at line 83 of file select.c.
References eSelectedGunType, find_next_gun(), get_mode(), InvalidateVduMode(), select_guns(), and select_new_gun().
Referenced by init_3Space_objects(), remove_weapon(), select_new_gun(), and SelectCockpitVduMode().
| unsigned int select_new_release_weapon | ( | enum ObjectType | preferredType | ) |
Definition at line 93 of file select.c.
References aObjectTypeData, aShipWeaponsTable, ShipWeaponSlot::disabled, get_mode(), InvalidateVduMode(), nSelectedReleaseWeaponIndex, OBJECT_CLASS_PROJECTILE, select_new_release_weapon(), and ShipWeaponSlot::type.
Referenced by init_3Space_objects(), remove_weapon(), RemovePlayerReleaseWeapon(), select_new_release_weapon(), and SelectCockpitVduMode().
| int select_safe_target | ( | short | obj | ) |
Definition at line 1070 of file logic.c.
References acFormationMemberLists, build_target_list(), in_danger(), nTargetShip, RandomBelowOrEqual(), and select_safe_target().
Referenced by close_behind(), and select_safe_target().
| unsigned int select_target | ( | short | obj | ) |
Definition at line 154 of file smart.c.
References acShipTargetTable, aeShipSide, attacker_in_range(), distance_from_object(), RandomBelow(), scan_for_enemy(), select_target(), and SIDE_KILRATHI.
Referenced by capital_ship_intelligence(), check_engage_target(), intelligence_events(), PlaySfxWaveFileByNumber(), and select_target().
| short select_weighted_value | ( | short * | choices | ) |
Definition at line 575 of file logic.c.
References RandomBelowOrEqual(), and select_weighted_value().
Referenced by select_weighted_value().
| void SelectCockpitVduMode | ( | short | vdu, |
| int | mode ) |
Definition at line 2945 of file cockpt.c.
References asVduSelectionSound, bCurrentKey, cycle_onscreen_targets(), get_mode(), InflightComputer(), InvalidateVduMode(), malf(), nCameraViewMode, nCurrentDmgDispTicks, PlayCockpitSelectionSfx(), select_new_gun(), select_new_release_weapon(), SelectCockpitVduMode(), set_mode(), show_communications_disp(), talk_equiv(), update_VDUs(), vdu_malf(), and vdu_pop_all().
Referenced by fire_players_lasers(), HandleSpaceFlightControls(), and SelectCockpitVduMode().
| void SelectCommRecipient | ( | short | recipient | ) |
Definition at line 197 of file comm.c.
References cCommMenuRecipient, SelectCommRecipient(), and SetPendingMenuAction().
Referenced by BuildCommunicationRecipientMenu(), Chosen_communicate_option(), PlaySfxWaveFileByNumber(), and SelectCommRecipient().
| unsigned short __stdcall SelectDiskDriveHook | ( | short | drive | ) |
Definition at line 1175 of file eventmgr.c.
References SelectDiskDriveHook().
Referenced by DosMemcpy(), OpenDiskDataFile(), and SelectDiskDriveHook().
| void SelectFlightMusicTrack | ( | int | track | ) |
Definition at line 156 of file music.c.
References ClearStreamerTrigger(), nMusicStreamSet, SelectFlightMusicTrack(), SoundDebugPrintf(), Streamer_close(), and Streamer_open().
Referenced by init_3Space_objects(), ProcessMusicScriptCommand(), and SelectFlightMusicTrack().
| short SelectNavObjectiveAtPoint | ( | short | mouseX, |
| short | mouseY ) |
Definition at line 760 of file nav.c.
References abFlightPathList, aMissionObjectivesArray, awMapNavObjectiveLabelIndex, cCurrentNavPtIdx, hidden_objective(), IsPointInNavMapLabel(), ScaleNavMapCoordinates(), SelectNavObjectiveAtPoint(), and set_new_objective().
Referenced by InflightComputer(), and SelectNavObjectiveAtPoint().
| unsigned int SelectNextExternalViewObject | ( | void | ) |
Definition at line 1112 of file main.c.
References aeObjectClass, cViewObject, OBJECT_CLASS_SHIP, and SelectNextExternalViewObject().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and SelectNextExternalViewObject().
| unsigned int SelectPreviousExternalViewObject | ( | void | ) |
Definition at line 1142 of file main.c.
References aeObjectClass, cViewObject, OBJECT_CLASS_SHIP, and SelectPreviousExternalViewObject().
Referenced by init_3Space_objects(), and SelectPreviousExternalViewObject().
| void SelectRoomMenuLabel | ( | short | i | ) |
Definition at line 244 of file killbrd.c.
References RoomMenu::currentLabel, RoomMenu::labels, SelectRoomMenuLabel(), and stCurrentRoomMenu.
Referenced by CollectRasterClipColours(), SelectRoomMenuLabel(), and UpdateRoomMenuCursor().
| short SelectTrainSimMission | ( | short * | mission | ) |
Definition at line 706 of file trainsim.c.
References TextContext::alignment, AlignSpriteFrameToRectCorner(), aTrainSimMissionRegions, bEscapePressedFlag, bInputModeState, cBlackColour, cDefaultTextColour, ClearInputKeyStatePreservingModifiers(), DIBslam(), DIBslamReal(), DrawSpriteDefault(), EnterAllocationScope(), EraseTextContextBackground(), EventManagerHook(), FindMenuRegionAtPoint(), FormatTextBufferFromStart(), GetShapeFrameBounds(), InitializeTextContextFromFont(), LeaveAllocationScope(), Viewport::left, LoadTrainSimOpponentShape(), MoveMenuPointerFromKeyboard(), nMenuInputRepeatDelay, PollInputEvent(), PollMenuInputDevices(), ReleasePacketHandle(), ReleaseTextFont(), SelectTrainSimMission(), SetEventManagerPump(), SetTextContext(), SetTextCursor(), stCurrentTrainSimTitleDisplayViewport, stMouseCursorState, stScreenView, stTrainSimPanelBounds, stTrainSimTxtContext, Viewport::top, UpdateTrainSimMenuCursor(), InputEventState::value, MouseCursorState::viewport, TextContext::viewport, WarpMouseTo(), InputEventState::x, and InputEventState::y.
Referenced by init_3Space_objects(), RunTrainSim(), and SelectTrainSimMission().
| void send_appropriate_message | ( | short | attacker, |
| short | victim ) |
Definition at line 480 of file ship.c.
References acObjOwnersTable, aeObjectClass, aeShipSide, aeSpecialManeuvers, nYourWingman, OBJECT_CLASS_SHIP, RandomBelowOrEqual(), send_appropriate_message(), send_message(), SIDE_KILRATHI, and SPECIAL_MANEUVER_UNKNOWN_9.
Referenced by inflict_damage(), and send_appropriate_message().
| int send_at_point | ( | short | obj, |
| FixedVector * | point, | ||
| short | speed ) |
Definition at line 1389 of file ship.c.
References aShipPositionsArray, aShipVelocity, ComputeVectorDelta(), send_at_point(), and SetVectorFixedPoint().
Referenced by fire_flack(), and send_at_point().
| void send_message | ( | short | obj, |
| short | message ) |
Definition at line 2489 of file cockpt.c.
References acShipRating, acWingmanMessageStatesArray, aeObjectClass, aeObjectTypeList, aeShipSide, anShipMissionShips, bRadioSilence, nCannedSceneMode, nShipMissionIndices, nTrainSimActive, nYourWingman, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, OBJECT_TYPE_TIGERS_CLAW, send_message(), and SIDE_KILRATHI.
Referenced by ace_greeting(), analyze_kill(), explode(), Explosion(), flag_reached(), house_keep_objects(), imperial_formation(), inflict_damage(), intelligence_events(), internal_damage(), reply(), request(), send_appropriate_message(), send_message(), and try2rout().
| void SendCommMenuChoice | ( | short | i | ) |
Definition at line 126 of file comm.c.
References AppendCommMenuChoice(), apszCommMenuText, and SendCommMenuChoice().
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), PlaySfxWaveFileByNumber(), and SendCommMenuChoice().
Definition at line 37 of file sound.c.
References bAudioSystemInitialized, bIxAudioEnabled, FreeWaveTable(), ix_system_delete_all_samples(), ix_system_delete_all_sounds(), ix_system_shutdown(), and ServiceAudioStream().
Referenced by init_3Space_objects(), ServiceAudioStream(), and WinMain().
Definition at line 334 of file sound.c.
References ix_system_service_sounds(), and ServiceSoundSystem().
Referenced by DIBslamReal(), init_3Space_objects(), and ServiceSoundSystem().
Definition at line 605 of file music.c.
References AddFixedVectors(), aeObjectClass, aiSoundEffectSourceActiveArray, aShipPositionsArray, aShipVelocity, asObjDistancesTable, asObjectScreenXList, asPreviousObjectDistance, ComputeVectorDelta(), dot_product(), EYE_OBJECT, gametrack(), nCurrentSpaceFrameValue, nFlightSoundEffectsEnabled, nPassingShipAudioCooldown, nPassingShipSoundCountdown, nPassingShipSoundObject, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_SHIP, PlaySfxWaveFileByNumber(), ScaleFixedVector(), servicetrack(), and SPACE_OBJECT_COUNT.
Referenced by init_3Space_objects(), servicetrack(), and Update_3Space().
| unsigned short set_alert | ( | short | obj, |
| unsigned int | bits ) |
Definition at line 182 of file logic.c.
References anShipAlertFlags, and set_alert().
Referenced by set_alert(), start_collision_alert(), and try2end_collision_alert().
| void set_background_objects_rotation | ( | short | obj, |
| FixedVector * | direction ) |
Definition at line 1315 of file geom.c.
References alter_pitch(), alter_yaw(), ArcCos(), aShipRightVector, aShipUpVector, asObjScreenAngles, asObjScreenScalesArray, dot_product(), EYE_OBJECT, init_ijk(), negate_vector(), NormalizeFixedVector(), SphericalVector::pitch, rectangular_to_spherical(), 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 152 of file spc.c.
References acShipTargetTable, AddFixedVectors(), aeObjectClass, aeShipTacticArray, aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, aShipVelocity, bAlternateChaseView, bCockpitlessView, bScriptedView, ComputeVectorDelta(), copy_frame(), cViewObject, divide_vector(), EYE_OBJECT, fix_objects_ijk(), generate_stars(), GetScreenUpdateFlag(), initialize_view_buffer(), look_at(), match_roll_orientation(), MaxShort(), nCameraViewMode, nCapitalShipViewDistance, nCurrentExternalViewDistance, negate_vector(), new_view(), nExternalViewAngle, nExternalViewShip, nEyeRollRate, nEyeRollTargetValue, NormalizeFixedVector(), nScreenHeight, nScreenWidth, OBJECT_CLASS_NULL, rotate_eye_to_goal(), rotate_object(), ScaleFixedVector(), set_eye_direction_and_position(), SetFleetOverviewView(), SetVectorFixedPoint(), SetViewportRect(), shrink_vector(), stSpaceBufferViewport, SubtractFixedVectors(), TACTIC_CRUISE, update_scripted_view(), Vector_magnitude(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by new_view(), set_eye_direction_and_position(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), and Update_3Space().
| unsigned int set_formation_position | ( | short | obj, |
| const MissionShipRecord * | record ) |
Definition at line 733 of file mission.c.
References aaFormationPositions, aMissionShips, anShipSpeed, aShipFormationDeltaList, aShipPositionsArray, bInitialFormationSetup, copy_frame(), find_ship_index(), MissionShipRecord::formationIndex, MissionShipRecord::formationSpot, 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 470 of file cockpt.c.
References aCockpitHudMessageSlotsTable, Viewport::bottom, Viewport::left, set_global_message(), SetHudMessageSlot(), stRightVduTxtContext, and stRightVduViewport.
Referenced by auto_pilot_valid(), CockpitMessage(), and set_global_message().
| unsigned short set_message_time | ( | unsigned short | v | ) |
Definition at line 782 of file cockpt.c.
References nCurrentNoticeTimer, and set_message_time().
Referenced by set_message_time(), and SetHudMessageText().
| void set_mode | ( | short | i, |
| int | state ) |
Definition at line 697 of file cockpt.c.
References aCockpitHudMessageSlotsTable, acVduModeStackDepth, ausVduModeStack, ClearHudMessageSlot(), get_mode(), and set_mode().
Referenced by init_vdus(), SelectCockpitVduMode(), set_mode(), SetVduModeIfChanged(), and vdu_malf().
| int set_new_objective | ( | short | pathIndex | ) |
Definition at line 1131 of file cockpt.c.
References abFlightPathList, aeShipObjectiveList, aMissionObjectivesArray, cCurrentNavPtIdx, cCurrentObjective, cMissionObjectiveCountValue, 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 739 of file cockpt.c.
References anVduModeCache, cBlackColour, cDarkGreenColour, ClearViewport(), get_mode(), malf_noise(), set_new_vdu(), stLeftVdu, and stRightVduViewport.
Referenced by DrawTargetRangeReadout(), malf_noise(), set_new_vdu(), show_communications_disp(), show_damage_disp(), show_info_disp(), show_weapon_disp(), update_vid_disp(), and vid_transmit().
Definition at line 1179 of file cockpt.c.
References abFlightPathList, cCurrentNavPtIdx, cMissionObjectiveCountValue, cycle_next_objective(), InvalidateVduMode(), set_new_objective(), set_next_destination(), and visited().
Referenced by arrive_from_warp(), flag_reached(), and set_next_destination().
| unsigned int set_objective_range | ( | short | showOnScanner | ) |
Definition at line 1490 of file cockpt.c.
References aMissionObjectivesArray, aShipPositionsArray, cCurrentObjective, ComputeVectorDelta(), LocateMobileObjective(), nCurObjectiveRangeValue, 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(), and set_objective_range().
| void set_objects_data | ( | short | obj, |
| enum ObjectType | type, | ||
| short | owner ) |
Definition at line 173 of file ship.c.
References aasShipArmor, aasShipMaximumShieldTable, aasShipShield, acLastCollisionObjects, acObjOwnersTable, acPilotHitPointsArray, acPreviousAttackers, acShipDmg, acShipIonDriveDmg, acShipTargetTable, aeObjectClass, aeObjectTypeList, ObjectTypeData::afterburnerVelocity, animate_shape(), ObjectTypeData::animation, anShipFuelsTable, aObjectTypeData, apObjShapeArray, ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, aShipWeaponsTable, asObjAfterburnerVelocities, asObjectAnimationDelay, asObjectAnimIndexes, asObjectCollisionRadius, asObjectFlipArray, asObjectViewFrames, asObjScreenAngles, asShipAccumulatedDmg, asShipWpnEnergyList, awObjectScales, awObjMassArray, ObjectTypeData::collisionRadius, eSelectedGunType, init_ijk(), ObjectTypeData::lifetime, ObjectTypeData::mass, nSelectedReleaseWeaponIndex, OBJECT_CLASS_DUST, OBJECT_CLASS_MISSILE, OBJECT_CLASS_PROJECTILE, OBJECT_CLASS_SHIP, OBJECT_TYPE_ASTEROID1, OBJECT_TYPE_ASTEROID2, OBJECT_TYPE_ASTEROID3, OBJECT_TYPE_ASTEROID4, OBJECT_TYPE_ASTEROID5, OBJECT_TYPE_ASTEROID6, OBJECT_TYPE_DEBRIS_METAL_SHEET, OBJECT_TYPE_DEBRIS_PIPE, OBJECT_TYPE_DEBRIS_SHIP_GIRDER_CHUNK, OBJECT_TYPE_DEBRIS_WING, OBJECT_TYPE_EXPLOSION0, OBJECT_TYPE_EXPLOSION1, OBJECT_TYPE_EXPLOSION2, OBJECT_TYPE_ROCK_CHUNK, OBJECT_TYPE_SPACE_DUST, ObjectTypeData::objectClass, recalc_max_velocity(), ObjectTypeData::scale, set_objects_data(), ObjectTypeData::shapeSet, ObjectTypeData::shieldAft, ObjectTypeData::shieldFore, ObjectTypeData::weaponLoadout, and ObjectTypeData::yawRate.
Referenced by animate_object(), Create_explosion_debris(), Create_ship_hit_debris(), ejection_sequence(), 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(), ShowTigerClawEscapeScene(), start_dust(), unwarp(), update_star_field(), and warp().
| int set_ship_rotation_goals | ( | short | obj, |
| short | turnRate, | ||
| const FixedVector * | direction, | ||
| short | pointingMode, | ||
| short * | yawGoal, | ||
| short * | pitchGoal ) |
Definition at line 748 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().
| unsigned int set_special | ( | short | ship, |
| enum SpecialManeuver | special ) |
Definition at line 729 of file logic.c.
References aeSpecialManeuvers, alert_flag(), set_special(), SPECIAL_MANEUVER_BLOWING_UP, and SPECIAL_MANEUVER_NONE.
Referenced by accelerate_and_move_object(), check_for_lost_control(), cruise_home(), cruise_to_destination(), 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 57 of file auto.c.
References anShipSpeed, fix_velocity(), and set_speed().
Referenced by auto_pilot_sequence(), and set_speed().
| void set_sphere_point | ( | const MissionShipRecord * | record, |
| FixedVector * | position ) |
Definition at line 65 of file mission.c.
References AddFixedVectors(), 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().
| int set_up_action_sphere | ( | short | navPoint | ) |
Definition at line 519 of file mission.c.
References acShipSpawnNavPt, aeObjectClass, aeShipMissionType, aMissionNavPoints, aMissionShips, apObjShapeArray, asObjectScreenXList, bLandingAuthorized, clean_up_cockpit(), cMissionObjectiveCountValue, explode(), FreePacketAndClear(), init_ship(), LocateMobileObjective(), MISSION_TYPE_ROUT, MissionNavPoint::missionShips, nCurrentHazardFieldTotal, nCurrentNavigationPoint, nCurrentWave, nEnemySighting, new_sphere_shapes(), nShipMissionIndices, OBJECT_CLASS_CAPITAL_SHIP, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, remove_all_hazards(), remove_object(), set_up_action_sphere(), MissionShipRecord::state, MissionNavPoint::triggers, and MissionNavPoint::type.
Referenced by ReleaseStaleNavTarget(), RunSpaceFlight(), set_up_action_sphere(), ShowCampaignVictorySequence(), ShowTigerClawEscapeScene(), and Title_Sequence().
Definition at line 687 of file mission.c.
References aMissionNavPoints, approve_xyz(), FigureArcadeTime(), GetArcadeBonus(), init_ship(), MissionNavPoint::missionShips, nArcadeBonusCountdown, nCannedSceneMode, nCurrentNavigationPoint, nCurrentWave, new_sphere_shapes(), nTrainSimActive, set_up_next_wave(), spacetrack(), and MissionNavPoint::type.
Referenced by check_next_wave(), RunTrainSim(), and set_up_next_wave().
| void set_up_screen_viewport | ( | signed char | mode | ) |
Definition at line 1016 of file eventmgr.c.
References aScreenViewportGeometry, bCockpitlessView, cCurrentCockpitView, cScreenViewMode, ScreenViewportGeometry::height, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nScreenHeight, nScreenWidth, nViewportOriginPositionX, nViewportOriginPositionY, ScreenViewportGeometry::originX, ScreenViewportGeometry::originY, pCurrentScreenViewportPkt, pScreenViewGeometry, set_up_screen_viewport(), and ScreenViewportGeometry::width.
Referenced by DosMemcpy(), initialize_cockpit(), and set_up_screen_viewport().
| unsigned int Set_up_ship_info | ( | short | obj, |
| short | missionShip, | ||
| signed char | navPoint ) |
Definition at line 765 of file mission.c.
References abShipExhaustHeatList, acPreviousAttackers, acShipCommunicatorArray, acShipDestroyedWeaponCountArray, acShipDmg, acShipIonDriveDmg, acShipPointingModeList, acShipSpawnNavPt, acWingmanMessageStatesArray, aeShipSide, aiPilotLevel, alter_pitch(), alter_roll(), alter_yaw(), aMissionShips, anShipMissionShips, anShipSpeed, apCannedSequenceList, asActionCounts, asCannedCommands, asCapitalShipViewFramesTable, aShipPositionsArray, aShipVelocity, asShipAccumulatedDmg, asShipWingLeaderArray, MissionShipRecord::behaviour, find_ship_index(), init_intelligence_data(), MissionShipRecord::leaderMissionIndex, MissionShipRecord::missionType, nShipMissionIndices, MissionShipBehaviour::pilot, MissionShipRecord::pitch, reset_mission_type(), MissionShipRecord::roll, set_formation_position(), set_sphere_point(), Set_up_ship_info(), MissionShipRecord::side, MissionShipRecord::speed, MissionShipRecord::targetMissionIndex, MissionShipRecord::yaw, and zero_vector().
Referenced by init_ship(), prepare_mission(), and Set_up_ship_info().
| void SetAwakenBarracksMenuLabel | ( | char ** | label, |
| short | series, | ||
| short | mission, | ||
| char * | description ) |
Definition at line 362 of file barracks.c.
References AllocateTaggedMemory(), DosMemcpy(), FreeBarracksMenuLabel(), SetAwakenBarracksMenuLabel(), and szTxtWorkspaceBuffer.
Referenced by SetAwakenBarracksMenuLabel(), and SetBunkMenuLabel().
| void SetBunkMenuLabel | ( | short | occupied, |
| short | side, | ||
| char ** | label, | ||
| short | series, | ||
| short | mission, | ||
| char * | description ) |
Definition at line 724 of file barracks.c.
References apszSaveCampaignMenuLabels, SetAwakenBarracksMenuLabel(), and SetBunkMenuLabel().
Referenced by GetBunkInfo(), and SetBunkMenuLabel().
Definition at line 182 of file dib.c.
References bSpaceFlightFrameTiming, fCinematicFrameRate, nFrameDeadlineMs, nFrameIntervalMs, and SetCinematicFrameTiming().
Referenced by main(), PlaySfxWaveFileByNumber(), RunSpaceFlight(), and SetCinematicFrameTiming().
| unsigned int SetCockpitLightBlink | ( | signed char | light, |
| short | interval ) |
Definition at line 550 of file cockpt.c.
References abCockpitLightGoalArray, nCurrentSpaceFrameValue, and SetCockpitLightBlink().
Referenced by SetCockpitLightBlink(), update_bars(), update_lights(), and update_missile_warning().
Definition at line 219 of file pilot.cpp.
References SetConsoleBackgroundColourHook().
Referenced by init_3Space_objects(), and SetConsoleBackgroundColourHook().
Definition at line 212 of file pilot.cpp.
References SetConsoleTextColourHook().
Referenced by init_3Space_objects(), and SetConsoleTextColourHook().
| int SetCurrentDirOnDrive | ( | char | drive, |
| const char * | directory ) |
Definition at line 262 of file winsys.c.
References SetCurrentDirOnDrive().
Referenced by FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().
| unsigned int SetDiskFileNumber | ( | char * | fileName, |
| short | diskNumber ) |
Definition at line 419 of file disk.c.
References apszGraphicsModeNames, bSlowSceneAnimation, ConvertChar_Int(), and SetDiskFileNumber().
Referenced by SetDiskFileNumber().
Definition at line 126 of file strdos.c.
References pCurrentEventManagerPump, and SetEventManagerPump().
Referenced by DosMemcpy(), EMStartUp(), InflightComputer(), InitializeRoomViewports(), landing(), LoadOriginFxDrivers(), RecRoom(), RunSpaceFlight(), RunTrainSim(), SceneDirector(), SelectTrainSimMission(), SetEventManagerPump(), ShowTheEndScreen(), ShowTrainSimHighScores(), Title_Sequence(), and UpdateTrainSimHighScores().
| void SetFleetOverviewView | ( | int | initializeCockpit | ) |
Definition at line 31 of file spc.c.
References AddFixedVectors(), aeObjectClass, aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, aShipVelocity, ComputeVectorDelta(), EYE_OBJECT, GetFixedOneMillionThunkAlt(), GetScreenUpdateFlag(), initialize_cockpit(), OBJECT_CLASS_SHIP, point_at(), position_relative_ijk(), ScaleFixedVector(), SetFleetOverviewView(), Vector_magnitude(), FixedVector::x, FixedVector::y, FixedVector::z, and zero_vector().
Referenced by new_view(), set_eye_direction_and_position(), and SetFleetOverviewView().
| void __stdcall SetFrameTimerAndWait | ( | short | period | ) |
Definition at line 610 of file eventmgr.c.
References SetFrameTimerAndWait(), SetFrameTimerPeriod(), and WaitForFrameTick().
Referenced by DosMemcpy(), InflightComputer(), and SetFrameTimerAndWait().
| void SetFrameTimerPeriod | ( | short | period | ) |
Definition at line 604 of file eventmgr.c.
References SetFrameTimerPeriod(), and SetMultimediaTimerCallback().
Referenced by DosMemcpy(), SetFrameTimerAndWait(), and SetFrameTimerPeriod().
| void __stdcall SetFrameTimerPeriodDirect | ( | short | p | ) |
Definition at line 617 of file eventmgr.c.
References SetFrameTimerPeriodDirect(), and SetMultimediaTimerCallback().
Referenced by AnimateTrainSimTitle(), BarracksScreen(), CloseLook(), DisplayTrainSimHighScoreTable(), DosMemcpy(), DrawFuneralLongShot(), funeral_wingman(), HandleSpaceFlightControls(), LoadOriginFxDrivers(), LongTalk(), PinMedal(), PlaySceneAnimation(), RecRoom(), SetFrameTimerPeriodDirect(), ShowCampaignVictorySequence(), and WaitForSceneAdvance().
| unsigned int SetHighScoreEntry | ( | short | i, |
| unsigned char | b, | ||
| unsigned int | v ) |
Definition at line 145 of file trainsim.c.
References aHighScoreEntriesArray, HighScoreEntry::pilotIndex, HighScoreEntry::score, and SetHighScoreEntry().
Referenced by init_3Space_objects(), InitializeTrainSimHighScores(), InsertTrainSimHighScore(), and SetHighScoreEntry().
| void SetHudMessageSlot | ( | HudMessageSlot * | slot, |
| TextContext * | context, | ||
| short | x, | ||
| short | y, | ||
| const char * | text, | ||
| unsigned short | colour, | ||
| signed char | flashCount ) |
Definition at line 442 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 2218 of file cockpt.c.
References bInflightComputerActive, message_showing(), nPendingHudMessageColour, pszPendingHudMessage, set_message_time(), SetHudMessageText(), and SetHudTextColour().
Referenced by HandleSpaceFlightControls(), ReportSpaceFlightMaxFps(), SetHudMessageText(), ShowCentredPrompt(), and ShowOnScreenMessage().
| void SetHudTextColour | ( | short | v | ) |
Definition at line 1882 of file cockpt.c.
References cPrimaryViewBufferColour, EndCommMenu(), print_message_text(), pszDisplayedHudMessage, and SetHudTextColour().
Referenced by RestoreTransientCockpitGraphics(), SetHudMessageText(), SetHudTextColour(), and ShowOnScreenMessage().
| void SetInputKeyState | ( | int | scanCode, |
| unsigned char | pressed ) |
Definition at line 822 of file eventmgr.c.
References abInputKeyStateArray, ClearDebugPauseFlags(), PumpMessagesDuringWait(), SetInputKeyState(), and SystemDebugPrintf().
Referenced by DosMemcpy(), MainWindowProc(), and SetInputKeyState().
| void SetManeuverProximityRange | ( | unsigned short | v | ) |
Definition at line 84 of file fl.c.
References nManeuverProximityRange, and SetManeuverProximityRange().
Referenced by perform_maneuver(), and SetManeuverProximityRange().
Definition at line 1344 of file main.c.
References bMessageSpeed, SetMessageDisplaySpeed(), and ShowOnScreenMessage().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and SetMessageDisplaySpeed().
Definition at line 562 of file eventmgr.c.
References abCursorSaveArea, MouseCursorState::frame, nMouseCursorSavedCoordY, nMouseCursorSavedX, nMouseCursorShowCount, pDrawnMouseCursorShape, RestoreSpriteBackground(), SetMouseCursorShape(), MouseCursorState::shape, MouseCursorState::shapeChanged, stMouseCursorState, and MouseCursorState::viewport.
Referenced by DosMemcpy(), InflightComputer(), ResetMouseCursorFrame(), RunSpaceFlight(), SetMouseCursorShape(), UpdateRoomMenuCursor(), UpdateTitleMenuCursor(), and UpdateTrainSimMenuCursor().
| void __stdcall SetMouseHomePosition | ( | short | x, |
| short | y ) |
Definition at line 581 of file eventmgr.c.
References SetMouseHomePosition(), SetMousePositionDuplicate(), stMouseCursorState, MouseCursorState::x, and MouseCursorState::y.
Referenced by DosMemcpy(), SetMouseHomePosition(), and WarpMouseTo().
| void SetMousePosition | ( | int | x, |
| int | y ) |
Definition at line 56 of file winsys.c.
References SetMousePosition().
Referenced by auto_pilot_sequence(), HandleSpaceFlightControls(), init_player_input(), MoveMenuPointerFromKeyboard(), PollMenuInputDevices(), RunSpaceFlight(), and SetMousePosition().
| void SetMousePositionDuplicate | ( | int | x, |
| int | y ) |
Definition at line 149 of file winsys.c.
References SetMousePositionDuplicate().
Referenced by ApplyPackedMousePosition(), SetMouseHomePosition(), and SetMousePositionDuplicate().
| void SetMultimediaTimerCallback | ( | int | period | ) |
Definition at line 41 of file timer.c.
References bFrameTickPendingFlag, FrameTimerCallback(), nCurrentFrameTimerIdValue, and SetMultimediaTimerCallback().
Referenced by init_3Space_objects(), SetFrameTimerPeriod(), SetFrameTimerPeriodDirect(), and SetMultimediaTimerCallback().
| void SetMusBreakpt | ( | int | first, |
| int | second ) |
Definition at line 124 of file music.c.
References SetMusBreakpt(), SoundDebugPrintf(), and void().
Referenced by ejection_sequence(), funeral_sequence(), init_3Space_objects(), SetMusBreakpt(), and wait_for_end_of_music().
| void SetMusicOn | ( | short | enabled | ) |
Definition at line 108 of file music.c.
References SetMusicOn(), and SoundDebugPrintf().
Referenced by DisableMusicForScene(), EnableMusicForScene(), init_3Space_objects(), and SetMusicOn().
| void SetMusicStreamVolume | ( | unsigned short | volume | ) |
Definition at line 1464 of file gr.c.
References bIxAudioEnabled, ix_streamer_set_volume(), and SetMusicStreamVolume().
Referenced by CollectRasterClipColours(), HandleSpaceFlightControls(), main(), process_player_input(), and SetMusicStreamVolume().
| void SetNavMapCoordinateScaling | ( | short | enabled | ) |
Definition at line 1018 of file mission.c.
References nNavMapCoordinateScaling, and SetNavMapCoordinateScaling().
Referenced by Build_objective_list(), SetNavMapCoordinateScaling(), and SetScale().
| void __stdcall SetPaletteEntry | ( | short | index, |
| short * | rgb ) |
Definition at line 654 of file gr.c.
References DIBsetPalette(), and SetPaletteEntry().
Referenced by CollectRasterClipColours(), house_keep(), ResetCockpitPaletteEntries(), SetPaletteEntry(), and UpdateSpacePaletteFade().
| void SetPaletteTranslationTable | ( | const unsigned char * | translation | ) |
References SetPaletteTranslationTable().
Referenced by SetPaletteTranslationTable(), and SetSolidColourTranslation().
| void SetPendingMenuAction | ( | unsigned char | v | ) |
Definition at line 151 of file comm.c.
References cPendingCommMenuAction, and SetPendingMenuAction().
Referenced by OpenCommRecipientMenu(), PlaySfxWaveFileByNumber(), SelectCommRecipient(), and SetPendingMenuAction().
| 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 1762 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 | ( | struct RLEShape * | shape, |
| int | frame, | ||
| const unsigned char * | entries ) |
References SetRLEFramePalette().
Referenced by SetRLEFramePalette().
Definition at line 1081 of file mission.c.
References aMissionObjectivesArray, aShipPositionsArray, CheckPoint(), cMissionObjectiveCountValue, find_ship_index(), IncludeNavMapWorldPoint(), MissionObjective::mapX, MissionObjective::mapY, MaxShort(), mobile_objective(), nav_getxy(), nNavigationMapMinimumCoordX, nNavigationMapMinimumPositionY, nNavMapCenterPositionY, nNavMapCentreX, nNavMapMaximumPositionX, nNavMapMaximumPosY, nNavMapScale, 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 440 of file nav.c.
References SetRectBounds(), SetScreenClipRect(), and stSceneBuffer.
Referenced by BriefingMap_LoadShapes(), BuildMap(), DrawNavLocationReadout(), and SetScreenClipRect().
| void SetSolidColourTranslation | ( | unsigned char | colour | ) |
Definition at line 359 of file gr.c.
References abSolidColourLookup, SetPaletteTranslationTable(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), and SetSolidColourTranslation().
| void SetSoundEffectsVolume | ( | int | volume | ) |
Definition at line 340 of file sound.c.
References ix_system_set_master_volume(), SetSoundEffectsVolume(), and SoundDebugPrintf().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), main(), process_player_input(), and SetSoundEffectsVolume().
Definition at line 173 of file dib.c.
References bSpaceFlightFrameTiming, fSpaceFlightFrameRate, nFrameDeadlineMs, nFrameIntervalMs, and SetSpaceFlightFrameTiming().
Referenced by PlaySfxWaveFileByNumber(), ReportSpaceFlightMaxFps(), RunSpaceFlight(), and SetSpaceFlightFrameTiming().
| void SetStreamerIntensity | ( | unsigned char | intensity | ) |
Definition at line 1442 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ix_streamer_set_intensity(), SetStreamerIntensity(), and Streamer_play().
Referenced by CollectRasterClipColours(), ProcessMusicScriptCommand(), and SetStreamerIntensity().
| void __stdcall SetTextContext | ( | TextContext * | context | ) |
Definition at line 152 of file mathfp.c.
References pCurTextContext, and SetTextContext().
Referenced by BuildMap(), DeBriefing(), Dismissed(), DrawCockpitReadout(), DrawNavLocationReadout(), DrawRoomMenuLabel(), DrawTextAt(), InflightComputer(), InitializeCockpitResources(), InitializeConversationText(), InitializeGameTextContexts(), InitializeTextContextFromFont(), InitializeTrainSimTextPanel(), LoadBriefingRoom(), PlaySfxWaveFileByNumber(), PromptInsertNumberedDisk(), SelectTrainSimMission(), SetTextContext(), ShowCampaignVictorySequence(), ShowChalkBoard(), ShowMeanwhileTransition(), ShowMemoryStatusDebug(), ShowTigerClawEscapeScene(), ShowTrainSimHighScores(), update_digital_readouts(), update_VDUs(), UpdateArcadeScoreDisplay(), UpdateInflightNavText(), and UpdateMap().
| void __stdcall SetTextCursor | ( | unsigned short | a, |
| unsigned short | b ) |
Definition at line 145 of file mathfp.c.
References TextContext::cursorX, TextContext::cursorY, pCurTextContext, and SetTextCursor().
Referenced by DrawCockpitReadout(), DrawModalTextPanel(), DrawNavMapLegend(), DrawTextAt(), InitializeCockpitResources(), PlaySfxWaveFileByNumber(), PromptForPilotField(), PromptInsertNumberedDisk(), ReadRequiredPilotField(), ReadTextInput(), SelectTrainSimMission(), SetTextCursor(), ShowTrainSimHighScores(), ShowTrainSimTextMessage(), and UpdateArcadeScoreDisplay().
| unsigned short SetVduModeIfChanged | ( | short | i, |
| int | state ) |
Definition at line 706 of file cockpt.c.
References get_mode(), set_mode(), and SetVduModeIfChanged().
Referenced by SetVduModeIfChanged().
| void SetVectorFixedPoint | ( | FixedVector * | p, |
| short | v ) |
Definition at line 907 of file geom.c.
References NormalizeAndScaleVector(), and SetVectorFixedPoint().
Referenced by make_shard(), MoveObjectAlongDirection(), send_at_point(), set_eye_direction_and_position(), and SetVectorFixedPoint().
| void __stdcall SetViewportRect | ( | Viewport * | viewport, |
| unsigned short | left, | ||
| unsigned short | top, | ||
| unsigned short | right, | ||
| unsigned short | bottom ) |
Definition at line 1560 of file screens.c.
References Viewport::bottom, Viewport::left, Viewport::right, SetViewportRect(), and Viewport::top.
Referenced by auto_pilot_sequence(), DosMemcpy(), HandleSpaceFlightControls(), InflightComputer(), initialize_cockpit(), InitializeCockpitResources(), RecRoom(), RunSpaceFlight(), set_eye_direction_and_position(), SetViewportRect(), and ShowTrainSimHighScores().
| void __stdcall SetWholePaletteFromTriplets | ( | unsigned char * | palette | ) |
Definition at line 172 of file mathfp.c.
References DIBwholePaletteFromTriplets(), and SetWholePaletteFromTriplets().
Referenced by FadeViewportPaletteToColour(), LoadPaletteTripletsFile(), PlaySfxWaveFileByNumber(), and SetWholePaletteFromTriplets().
Definition at line 1025 of file gr.c.
References DIBslam(), Viewport::pixels, RasterLineHook(), shaded_triangle(), and stScreenView.
Referenced by CollectRasterClipColours(), and shaded_triangle().
Definition at line 1111 of file gr.c.
References DIBslam(), Viewport::pixels, RasterLineHook(), shadow_draw(), and stScreenView.
Referenced by CollectRasterClipColours(), and shadow_draw().
| int shape_loaded | ( | enum ObjectType | type | ) |
Definition at line 456 of file mission.c.
References aObjectResourceSlotsArray, and shape_loaded().
Referenced by new_sphere_shapes(), and shape_loaded().
| int shape_needed | ( | const MissionNavPoint * | navPoint, |
| enum ObjectType | type ) |
Definition at line 470 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 801 of file brains.c.
References acShipAiCooldowns, aeShipMissionType, aeShipSide, coming_home(), defend_mission(), escort_mission(), fail(), imperial_wingleader(), 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_STRIKE, MISSION_TYPE_WARP_ARRIVE, MISSION_TYPE_WINGMAN, reach_warp(), regulate_turn(), rendezvous_mission(), run_away(), ship_intelligence(), strike_mission(), warp_arrival(), and wingman_mission().
Referenced by object_intelligence(), and ship_intelligence().
| void ship_vs_point | ( | short | obj, |
| const FixedVector * | point ) |
Definition at line 704 of file geom.c.
References get_facing_range_from_point(), and ship_vs_point().
Referenced by goto_location(), patrol_area(), prevent_collision(), and ship_vs_point().
| void ship_vs_ship | ( | short | obj, |
| short | other ) |
Definition at line 710 of file geom.c.
References get_facing_range_from_object(), and ship_vs_ship().
Referenced by being_tailed(), fire_when_ready(), futurion_intelligence(), intelligence_events(), Mkill_missile(), Mstrafe_enemy(), patrol_area(), perform_maneuver(), and ship_vs_ship().
| void ShipAiState35 | ( | short | ship, |
| short | target ) |
Definition at line 148 of file fl.c.
References acShipSequence, advance(), approach_speed(), asShipTotal, maneuver_complete(), MANEUVER_TAIL_FIRE, nFacingToTargetValue, nTargetFacingValue, nTgtRange, point_ship(), reset_maneuver(), ShipAiState35(), veer_random(), void(), and vToTgt.
Referenced by ShipAiState35().
| void ShipAiState44 | ( | short | ship | ) |
Definition at line 908 of file fl.c.
References acShipStressList, maneuver_complete(), and ShipAiState44().
Referenced by ShipAiState44().
| short ShipExplosion | ( | short | obj | ) |
Definition at line 1170 of file ship.c.
References acObjOwnersTable, aeObjectClass, apObjShapeArray, asCapitalShipViewFramesTable, aShipPositionsArray, aShipVelocity, awObjectScales, copy_frame(), find_vacant_3d_object(), FreePacketAndClear(), OBJECT_CLASS_CAPITAL_SHIP, OBJECT_TYPE_EXPLOSION1, set_objects_data(), and ShipExplosion().
Referenced by Explosion(), house_keep_objects(), and ShipExplosion().
| unsigned int ships_within_range | ( | short | obj, |
| short | other, | ||
| short | range ) |
Definition at line 969 of file logic.c.
References aShipPositionsArray, ComputeVectorDelta(), IsVectorWithinRange(), and ships_within_range().
Referenced by close_behind(), ships_within_range(), and target_within_range().
| unsigned short __stdcall ShouldSuspendCursorForRect | ( | const ShortRect * | bounds | ) |
Definition at line 320 of file screen.c.
References ShouldSuspendCursorForRect(), and void().
Referenced by PlaySfxWaveFileByNumber(), RecRoom(), and ShouldSuspendCursorForRect().
Definition at line 341 of file comm.c.
References apszCommMenuChoiceTextTable, DrawFormattedText(), DrawSpriteDefault(), DrawTextAt(), HandleCommunicationMenuRequest(), IsCommChoiceMenuOpen(), Viewport::left, nCommMenuChoiceCount, nCommMenuReuseMode, pCommMenuPointerShape, pszCommMenuHeading, set_new_vdu(), show_communications_disp(), stRightVduTxtContext, stRightVduViewport, and Viewport::top.
Referenced by PlaySfxWaveFileByNumber(), SelectCockpitVduMode(), show_communications_disp(), and update_VDUs().
Definition at line 56 of file damage.c.
References acPlayerComponentDamageList, aWeaponDisplayOrigins, cCurrentCockpitView, cDamagedComponentCount, cPrimaryTextColour, DrawSpriteDefault(), DrawTextAt(), DrawViewportLine(), Viewport::left, nDmgDispState, pCockpitWeaponShapePtr, Viewport::right, set_new_vdu(), show_damage_disp(), ShowComponentHitHudMessage(), stLeftVdu, stLeftVduTextContext, stWpnDispOrigin, Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by init_3Space_objects(), show_damage_disp(), and update_VDUs().
Definition at line 564 of file game.c.
References achieved(), cMissionObjectiveCountValue, CampaignState::currentMission, CampaignState::currentSeries, DrawFormattedText(), DrawTextAt(), Viewport::left, CampaignState::missionScore, nMissionMedalScoreValue, nPlayerKillTotal, nWingmanKillCount, pGameVersion, CampaignState::promotionScore, CampaignState::seriesScore, set_new_vdu(), show_info_disp(), sighted(), stCampaignState, stLeftVdu, stLeftVduTextContext, Viewport::top, and visited().
Referenced by PlaySfxWaveFileByNumber(), show_info_disp(), and update_VDUs().
Definition at line 1081 of file cockpt.c.
References cCurrentObjective, DrawCalculatingLabel(), DrawFormattedText(), DrawTextAt(), InitializeCockpitReadout(), Viewport::left, objective_name(), show_navigation_disp(), stRightVduTxtContext, stRightVduViewport, and Viewport::top.
Referenced by show_navigation_disp(), and update_VDUs().
Definition at line 573 of file view.c.
References aasShipArmor, aasShipShield, acShipRating, acShipTargetTable, aeObjectClass, aeObjectTypeList, aeSpecialManeuvers, aObjectTypeData, apszKilrathiAceNames, apWingmanPilotsList, ObjectTypeData::armorFront, asObjectScreenXList, aTargetArmorClipRects, Viewport::bottom, cDefaultTextColour, cRedColour, cTargetDisplayObject, ObjectTypeData::displayName, DrawFormattedText(), DrawSpriteDefault(), DrawTextAt(), InitializeCockpitReadout(), Viewport::left, MinShort(), nTargetLockMode, OBJECT_CLASS_SHIP, pCockpitIndicatorShape, Viewport::right, ObjectTypeData::shape, ObjectTypeData::shieldAft, ObjectTypeData::shieldFore, show_target_disp(), SPECIAL_MANEUVER_UNKNOWN_9, stRightVduTxtContext, stRightVduViewport, and Viewport::top.
Referenced by DrawTargetRangeReadout(), init_3Space_objects(), show_target_disp(), and update_VDUs().
Definition at line 954 of file cockpt.c.
References aObjectTypeData, aShipWeaponsTable, aWeaponDisplayOrigins, aWeaponDisplayPositions, cCurrentCockpitView, cPrimaryTextColour, ShipWeaponSlot::disabled, ObjectTypeData::displayName, DrawFormattedText(), DrawSpriteDefault(), DrawTextAt(), DrawViewportLine(), eSelectedGunType, ShipWeaponSlot::hardpoint, Viewport::left, nSelectedReleaseWeaponIndex, pCockpitWeaponShapePtr, Viewport::right, set_new_vdu(), show_weapon_disp(), stLeftVdu, stLeftVduTextContext, stWpnDispOrigin, szNoWeaponName, Viewport::top, ShipWeaponSlot::type, ShortPoint::x, and ShortPoint::y.
Referenced by show_weapon_disp(), and update_VDUs().
| unsigned int ShowCampaignVictorySequence | ( | void | ) |
Definition at line 132 of file ending.c.
References aCampaignVictoryProjectileOrigins, apszCampaignVictoryText, asCampaignVictoryViewScript, asObjectCollisionRadius, asObjScreenScalesArray, bEscapePressedFlag, bIntroSceneResourcesActive, bScriptedView, cBlackColour, CheckEscaped(), clear_view_buffer(), ClearViewport(), CreateCannedSceneObject(), CampaignVictoryProjectile::depth, DIBslam(), DIBslamReal(), Draw_3Space_Frame(), DrawSpriteDefault(), DrawSpriteScaled(), dump_buffer_to_screen(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), CampaignVictoryProjectile::flip, FormatTextBufferFromStart(), free_3Space(), free_all_slots(), init_3Space_objects(), initialize_scripted_view(), InitializeConversationText(), IsFrameTickElapsed(), nCannedSceneMode, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nFrameSkipCounter, nScriptedViewObject, PreloadMusicTrackHook(), RandomBelowOrEqual(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), RestoreGamePalette(), CampaignVictoryProjectile::scale, CampaignVictoryProjectile::screenX, CampaignVictoryProjectile::screenY, set_up_action_sphere(), SetFrameTimerPeriodDirect(), SetTextContext(), ShowCampaignVictorySequence(), spacetrack(), stCurrentConvTextViewport, stCurrentConvTxtCtx, stModalSrcViewport, StopMusicUnlessSuppressed(), stScreenView, stSpaceBufferViewport, Update_3Space(), WaitForSceneAdvance(), WaitForVerticalBlankThunk(), CampaignVictoryProjectile::x, ShortVector::x, CampaignVictoryProjectile::y, ShortVector::y, and ShortVector::z.
Referenced by GameFlow(), PlaySfxWaveFileByNumber(), RunAnimationDemoLoop(), and ShowCampaignVictorySequence().
| unsigned int ShowCarrierLaunchSequence | ( | signed char | sceneObject | ) |
Definition at line 145 of file launch.c.
References aCarrierLaunchFighterPath, acCarrierLaunchApproachFrames, AddFixedVectors(), aeObjectClass, alter_yaw(), aObjectTypeData, apObjShapeArray, asCarrierLaunchApproachDeltaY, asCarrierLaunchFighterDeltaY, asCarrierLaunchViewData, aShipPositionsArray, aShipVelocity, asObjDistancesTable, asObjectCollisionRadius, asObjectFlipArray, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, awObjectScales, bEscapePressedFlag, bIntroSceneResourcesActive, bScriptedView, clear_view_buffer(), ConfigureScrambleActor(), copy_frame(), DIBslam(), DIBslamReal(), draw_sorted_objects_to_buffer(), DrawScrambleActor(), DrawSpriteDefault(), DrawSpriteScaled(), dump_buffer_to_screen(), FetchDiskPacketRetrying(), FlushSoundEffectsAndLog(), free_ship(), house_keep_objects(), initialize_scripted_view(), nCurrentSpaceFrameValue, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nFrameSkip, nFrameSkipCounter, nRenderedSpaceFrame, nScrambleBackdropPositionY, nScrambleBackgroundRightCoordX, nScriptedViewObject, OBJECT_CLASS_NULL, OBJECT_CLASS_SHIP, PaletteFadeHook(), CampaignState::playerShipType, PlaySfxWaveFileByNumber(), PreloadMusicTrackHook(), pScrambleView, PumpWindowMessages(), RefreshCockpitStatus(), ReleaseMusicTrackHook(), ReleasePacketHandle(), remove_nav_point_objects(), ResetSoundState(), set_eye_direction_and_position(), ObjectTypeData::shapeSet, ShowCarrierLaunchSequence(), sort_object_depth(), spacetrack(), stCampaignState, StopMusicUnlessSuppressed(), stSpaceBufferViewport, transform_objects_to_your_view(), update_objects_in_space(), update_star_field(), UpdateSpacePaletteFade(), void(), WaitForVerticalBlankThunk(), ShortPoint::x, and ShortPoint::y.
Referenced by GameFlow(), init_3Space_objects(), RunAnimationDemoLoop(), and ShowCarrierLaunchSequence().
| void ShowCentredPrompt | ( | char * | text, |
| unsigned short | arg ) |
Definition at line 436 of file comm.c.
References cYellowColour, DosStrcpy(), SetHudMessageText(), ShowCentredPrompt(), and szHudMessageBuf.
Referenced by PlaySfxWaveFileByNumber(), real_vid_transmit(), and ShowCentredPrompt().
Definition at line 786 of file killbrd.c.
References TextContext::alignment, aPilotEntriesList, apszPilotRankNames, asChalkBoardPilotOrder, TextContext::backgroundColour, bInputModeState, ClearInputKeyStatePreservingModifiers(), TextContext::colour, cViewportClearColour, DIBslam(), DIBslamReal(), DosStrcpy(), DrawFormattedText(), DrawSpriteDefault(), FetchDiskPacketRetrying(), FlushInputEvents(), FormatTextBufferFromStart(), InitializeTextContextFromFont(), pCurrentCampaignDate, pCurTextContext, PeekInputEvent(), PumpWindowMessages(), ReleasePacketHandle(), ReleaseTextFont(), SetTextContext(), ShowChalkBoard(), stCampaignState, stChalkBoardDate, stModalSrcViewport, szDefaultTxtBuf, TextContext::text, and TextContext::viewport.
Referenced by CollectRasterClipColours(), RecRoom(), and ShowChalkBoard().
| void ShowComponentHitHudMessage | ( | const char * | text, |
| unsigned short | colour, | ||
| short | flashCount ) |
Definition at line 847 of file cockpt.c.
References aCockpitHudMessageSlotsTable, Viewport::bottom, ClearHudMessageSlot(), DosStrcpy(), get_mode(), Viewport::left, nTrainSimActive, SetHudMessageSlot(), ShowComponentHitHudMessage(), stLeftVdu, stLeftVduTextContext, and szComponentHitMessage.
Referenced by damage_your_component(), fire_missile(), ReportComponentRepaired(), show_damage_disp(), ShowComponentHitHudMessage(), and your_internal_damage().
Definition at line 812 of file nav.c.
References DrawNavLocationReadout(), EnterAllocationScope(), LeaveAllocationScope(), SetRectBounds(), ShowConfedNavScan(), and stScreenView.
Referenced by InflightComputer(), and ShowConfedNavScan().
| unsigned int ShowGameOverScreen | ( | void | ) |
Definition at line 1813 of file screens.c.
References AddFixedVectors(), aShipFwdVec, aShipPositionsArray, aShipUpVector, aShipVelocity, asObjectCollisionRadius, bEscapePressedFlag, cViewObject, DIBslam(), DIBslamReal(), DrawCenteredScaledIntroText(), dump_buffer_to_screen(), Explosion(), EYE_OBJECT, FetchDiskPacketRetrying(), fix_objects_ijk(), generate_stars(), nCameraViewMode, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nFrameSkipCounter, pIntroFont, RefreshCockpitStatus(), ReleasePacketHandle(), ScaleFixedVector(), set_eye_direction_and_position(), ShowGameOverScreen(), spacetrack(), StopMusicUnlessSuppressed(), and zero_vector().
Referenced by DosMemcpy(), RunTrainSim(), and ShowGameOverScreen().
| void ShowGamePausedBanner | ( | short | showBanner | ) |
Definition at line 1327 of file main.c.
References ShowGamePausedBanner(), ShowOnScreenMessage(), and WaitForKeyAcknowledge().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and ShowGamePausedBanner().
| unsigned int ShowGetReadyScreen | ( | void | ) |
Definition at line 1720 of file screens.c.
References bEscapePressedFlag, clear_view_buffer(), DIBslam(), DIBslamReal(), DrawCenteredScaledIntroText(), dump_buffer_to_screen(), FetchDiskPacketRetrying(), force_view(), nCannedSceneMode, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nFrameSkipCounter, pIntroFont, RefreshCockpitStatus(), ReleasePacketHandle(), ResetSoundState(), and ShowGetReadyScreen().
Referenced by DosMemcpy(), RunTrainSim(), and ShowGetReadyScreen().
| void ShowHudTextLine | ( | char * | s, |
| unsigned short | b ) |
Definition at line 1875 of file cockpt.c.
References print_message_text(), pszPendingHudMessage, and ShowHudTextLine().
Referenced by overlay_head_up_display(), ShowHudTextLine(), and ShowOnScreenMessage().
| void ShowMeanwhileTransition | ( | short | scene, |
| short | variant ) |
Definition at line 36 of file pilot.cpp.
References cBlackColour, ClearViewport(), DIBslam(), DIBslamReal(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), FreePacketAndClear(), InitializeConversationText(), InitializeConversationViewport(), LoadSceneAnimationResources(), PanToScreen(), pIntroFont, PreloadMusicTrackHook(), print_subtitle(), pSceneAnimationSceneDataPtr, pSceneAnimationTextData, ReleaseMusicTrackHook(), ReleaseSceneAnimationResources(), ReleaseTextFont(), ResetScreenClipToFullHeight(), RestoreGamePalette(), SaveGamePalette(), SceneDirector(), SetTextContext(), ShowMeanwhileTransition(), spacetrack(), stCurrentConvTxtCtx, stModalSrcViewport, StopMusic(), StopMusicUnlessSuppressed(), stSceneBuffer, stScreenView, TextContext::viewport, and WaitForSceneAdvance().
Referenced by GameFlow(), init_3Space_objects(), RunAnimationDemoLoop(), and ShowMeanwhileTransition().
| unsigned int ShowMemoryStatusDebug | ( | void | ) |
Definition at line 135 of file main.c.
References cBlackColour, cViewportClearColour, DrawFormattedText(), dwOriginalFreeMem, GetFixedOneMillionThunkAlt(), GetOriginalFreeMemory(), InitializeTextContextFromFont(), nShowMemoryStatus, pCurTextContext, SetTextContext(), ShowMemoryStatusDebug(), and stDefaultTxtContext.
Referenced by BarracksScreen(), dump_buffer_to_screen(), init_3Space_objects(), RecRoom(), RefreshMemoryStatusOverlay(), and ShowMemoryStatusDebug().
| void ShowModalMessage | ( | const char * | format, |
| ... ) |
Definition at line 1258 of file main.c.
References ReleaseModalTextPanel(), ShowModalMessage(), ShowModalTextPanel(), SystemDebugPrintf(), and WaitForKeyAcknowledge().
Referenced by ConfirmAwakenAfterBadData(), get_pilot_talk(), init_3Space_objects(), LoadGameFromSlot(), ReportOutOfMemoryAndExit(), SaveGameWithNamePrompt(), and ShowModalMessage().
| short ShowModalTextPanel | ( | short | fontIndex, |
| const char * | format, | ||
| ... ) |
Definition at line 123 of file barracks.c.
References AllocateTaggedMemory(), cBlackColour, cBlueColour, cRedColour, cViewportClearColour, DIBslam(), DIBslamReal(), DrawModalTextPanel(), InitializeModalTextPanel(), ShortRect::left, MeasureTextPixelWidthClamped(), pModalTextPanel, ReleasePacketHandle(), RestoreModalTextPanel(), ShortRect::right, ShowModalTextPanel(), and stModalTextBounds.
Referenced by CalibrateJoystickInteractive(), ConfirmAwakenAfterBadData(), ConfirmQuitWingCommander(), ConfirmReplaceFaultyData(), LoadGameFromSlot(), ShowModalMessage(), ShowModalTextPanel(), ShowOnScreenMessage(), and WarnLoadGameFirst().
| void ShowNoticeMessageBox | ( | const char * | text | ) |
Definition at line 657 of file winmain.c.
References DIBpositionWindow(), and ShowNoticeMessageBox().
Referenced by ShowNoticeMessageBox(), and Streamer_open().
| void ShowOnScreenMessage | ( | int | flags, |
| short | duration, | ||
| const char * | format, | ||
| ... ) |
| unsigned int ShowTheEndScreen | ( | short | enableFireworks | ) |
Definition at line 495 of file ending.c.
References aFireworksList, bEscapePressedFlag, Viewport::bottom, cBlackColour, ClearViewport(), DIBslam(), DIBslamReal(), FetchDiskPacketRetrying(), FireworkState::frame, get_player_input(), InitializeConversationViewport(), InitializeFireworks(), nFrameSkipCounter, PanToScreen(), pFireworkShape, pIntroFont, PreloadMusicTrackHook(), print_subtitle(), pszForNow, pszTheEnd, RandomBelowOrEqual(), RandomInRange(), RefreshMemoryStatusOverlay(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ResetScreenClipToFullHeight(), Viewport::right, SetEventManagerPump(), ShowTheEndScreen(), spacetrack(), stModalSrcViewport, StopMusic(), StopMusicUnlessSuppressed(), stSceneBuffer, stScreenView, stSpaceBufferViewport, TheEndFireWorks(), FireworkState::variant, ViewMedals(), FireworkState::x, and FireworkState::y.
Referenced by GameFlow(), PlaySfxWaveFileByNumber(), and ShowTheEndScreen().
| unsigned int ShowTigerClawEscapeScene | ( | void | ) |
Definition at line 368 of file ending.c.
References AddFixedVectors(), aObjectTypeData, aShipFwdVec, aShipPositionsArray, aShipVelocity, asObjectCollisionRadius, asTigerClawEscapeViewScript, awObjectScales, bEscapePressedFlag, bIntroSceneResourcesActive, bScriptedView, bViewportDirty, cBlackColour, clear_view_buffer(), ClearViewport(), CampaignState::currentSeries, cViewportClearColour, DIBslam(), DIBslamReal(), Draw_3Space_Frame(), DrawSpriteScaled(), dump_buffer_to_screen(), FetchDiskPacketRetrying(), find_vacant_3d_object(), FormatTextBufferFromStart(), free_3Space(), free_all_slots(), init_3Space_objects(), initialize_scripted_view(), InitializeConversationText(), nCannedSceneMode, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nFrameSkipCounter, nScriptedViewObject, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, PreloadMusicTrackHook(), pszTigerClawEscapeClosing, pszTigerClawEscapeJump, pszTigerClawEscapeOpening, ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), ScaleFixedVector(), set_objects_data(), set_up_action_sphere(), SetTextContext(), ObjectTypeData::shapeSet, ShowTigerClawEscapeScene(), spacetrack(), stCampaignState, stCurrentConvTextViewport, stCurrentConvTxtCtx, StopMusicUnlessSuppressed(), stSpaceBufferViewport, Update_3Space(), and zero_vector().
Referenced by GameFlow(), PlaySfxWaveFileByNumber(), RunAnimationDemoLoop(), and ShowTigerClawEscapeScene().
Definition at line 589 of file trainsim.c.
References TextContext::alignment, AllocateViewport(), AnimateTrainSimTitle(), Viewport::bottom, cBlackColour, cCockpitLogicalFile, cDefaultTextColour, ClearViewport(), DIBslam(), DIBslamReal(), DisplayTrainSimHighScoreTable(), DrawFormattedText(), DrawSpriteDefault(), EraseTextContextBackground(), FetchDiskPacketRetrying(), FlushInputEvents(), TextContext::font, FontHeight(), FormatTextBufferFromStart(), free_viewport(), GetHighScoreEntry(), GetHighScoreValue(), InitializeTextContextFromFont(), IsHighScoreSlotUsed(), Viewport::left, MeasureTextPixelWidthClamped(), PollJoystickButtonEvents(), RandomInRange(), ReleasePacketHandle(), ReleaseTextFont(), ResetStringBuilder(), Viewport::right, SetEventManagerPump(), SetTextContext(), SetTextCursor(), SetViewportRect(), ShowTrainSimHighScores(), stCurrentTrainSimTitleDisplayViewport, stScreenView, stTrainSimHighScoreDisplayViewport, stTrainSimHighScoreTextContext, stTrainSimPanelBounds, stTrainSimPanelViewport, stTrainSimTxtContext, stTrainSimulatorHighScoreBufView, szDefaultTxtBuf, szTrainSimTitle, TextContext::text, Viewport::top, and TextContext::viewport.
Referenced by init_3Space_objects(), RunTrainSim(), and ShowTrainSimHighScores().
| void ShowTrainSimTextMessage | ( | const char * | message | ) |
Definition at line 502 of file trainsim.c.
References TextContext::alignment, DIBslam(), DIBslamReal(), FormatTextBufferFromStart(), Viewport::left, SetTextCursor(), ShowTrainSimTextMessage(), stTrainSimPanelViewport, stTrainSimTxtContext, and Viewport::top.
Referenced by EnterPilotNameAndCallsign(), init_3Space_objects(), ShowTrainSimTextMessage(), and UpdateTrainSimHighScores().
Definition at line 1337 of file main.c.
References pGameVersion, ShowOnScreenMessage(), and ShowVersionBanner().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), and ShowVersionBanner().
| unsigned int ShowVictoryScreen | ( | void | ) |
Definition at line 1758 of file screens.c.
References aFireworksList, bEscapePressedFlag, Viewport::bottom, DIBslam(), DIBslamReal(), DrawCenteredScaledIntroText(), dump_buffer_to_screen(), FetchDiskPacketRetrying(), FireworkState::frame, InitializeFireworks(), nCurrentViewCenterPosX, nCurrentViewCenterPosY, nFrameSkipCounter, pFireworkShape, pIntroFont, RandomBelowOrEqual(), RandomInRange(), RefreshCockpitStatus(), ReleasePacketHandle(), Viewport::right, ShowVictoryScreen(), stSpaceBufferViewport, TheEndFireWorks(), FireworkState::variant, FireworkState::x, and FireworkState::y.
Referenced by DosMemcpy(), RunTrainSim(), and ShowVictoryScreen().
| unsigned int shrink | ( | int * | component | ) |
Definition at line 1235 of file eventmgr.c.
References shrink().
Referenced by DosMemcpy(), point_at(), shrink(), and shrink_vector().
| unsigned int shrink_vector | ( | FixedVector * | vector | ) |
Definition at line 1222 of file eventmgr.c.
References shrink(), shrink_vector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by DosMemcpy(), point_at(), set_eye_direction_and_position(), and shrink_vector().
Definition at line 1488 of file gr.c.
References bIxAudioEnabled, ix_streamer_destroy(), and ShutdownAudioStreamer().
Referenced by CollectRasterClipColours(), and ShutdownAudioStreamer().
Definition at line 101 of file strdos.c.
References nEventManagerActive, and ShutdownEventManager().
Referenced by BarracksScreen(), CloseCommChoiceMenu(), DosMemcpy(), EMShutDown(), FatalErrorAndExit(), and ShutdownEventManager().
Definition at line 638 of file winmain.c.
References DestroyGlobalDebugOverlayConsole(), DIBunInstall(), hMainWindow, hSingleInstanceSemaphore, nSessionEndTime, and ShutdownGameWindow().
Referenced by PumpWindowMessages(), and ShutdownGameWindow().
Definition at line 1161 of file eventmgr.c.
References ShutdownHook(), and void().
Referenced by DosMemcpy(), LogMemoryUsage(), main(), and ShutdownHook().
| void __stdcall ShutdownVideoHook | ( | short | mode | ) |
Definition at line 29 of file video.c.
References ReleaseVideoResourcesHook(), and ShutdownVideoHook().
Referenced by LoadOriginFxDrivers(), LogMemoryUsage(), PlaySfxWaveFileByNumber(), and ShutdownVideoHook().
| short sighted | ( | short | objective | ) |
Definition at line 1030 of file cockpt.c.
References aMissionObjectivesArray, and sighted().
Referenced by check_sighting(), cleanup_objectives(), objective_name(), ParseTests(), show_info_disp(), sighted(), and update_objective_location().
Definition at line 1349 of file gr.c.
References bIxAudioEnabled, ix_streamer_configure(), and SignalAudioMixerWakeEvent().
Referenced by CollectRasterClipColours(), MainWindowProc(), and SignalAudioMixerWakeEvent().
| short signed_random | ( | short | range | ) |
Definition at line 160 of file logic.c.
References RandomBelowOrEqual(), and signed_random().
Referenced by 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 300 of file gr.c.
References SignExtendClipCoord().
Referenced by CollectRasterClipColours(), SignExtendClipCoord(), and ValidateViewportBounds().
| unsigned int SignFixed | ( | int | v | ) |
Definition at line 246 of file geom.c.
References SignFixed().
Referenced by approach_speed(), and SignFixed().
| unsigned short SignShort | ( | short | v | ) |
| long SinFixed | ( | short | degrees | ) |
Definition at line 89 of file mathfp.c.
References DEGREES_TO_RADIANS, and SinFixed().
Referenced by ConvertSphericalToRectangular(), draw_target_box(), PlaySfxWaveFileByNumber(), 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 166 of file winmain.c.
References aShipFwdVec, aShipRightVector, aShipUpVector, negate_vector(), RandomBelow(), and skew_randomly().
Referenced by init_hazard(), and skew_randomly().
| int skill_check | ( | short | obj, |
| short | difficulty ) |
Definition at line 1158 of file logic.c.
References difficulty(), MinShort(), RandomBelowOrEqual(), skill_check(), and skill_rating().
Referenced by check_for_lost_control(), close_behind(), pilot_hit(), rotate_object_to_goal(), and skill_check().
| short skill_rating | ( | short | obj | ) |
Definition at line 1144 of file logic.c.
References aiPilotLevel, MaxShort(), and skill_rating().
Referenced by close_behind(), skill_check(), and skill_rating().
Definition at line 1331 of file gr.c.
References DIBslam(), Viewport::pixels, RasterLineHook(), snow_viewport(), stScreenView, and void().
Referenced by CollectRasterClipColours(), malf_noise(), and snow_viewport().
| unsigned int someone_coming | ( | void | ) |
Definition at line 1217 of file cockpt.c.
References abShipNavPtIdx, aeObjectClass, aeShipMissionType, cCurrentNavPtIdx, MISSION_TYPE_COME_HOME, OBJECT_CLASS_SHIP, and someone_coming().
Referenced by escorting_a_ship(), and someone_coming().
Definition at line 835 of file eventmgr.c.
References anEventObjectDepthPlacedList, anSortedObjects, asObjDistancesTable, asObjectScreenXList, sort_object_depth(), and SPACE_OBJECT_COUNT.
Referenced by DosMemcpy(), Draw_3Space_Frame(), ShowCarrierLaunchSequence(), and sort_object_depth().
| unsigned int sort_viable_target_list | ( | void | ) |
Definition at line 447 of file ship.c.
References acViableTargetList, asViableTgtDistList, cViableTargetCount, and sort_viable_target_list().
Referenced by build_your_target_list(), FF_missile_intelligence(), heat_seeking_missile_intelligence(), and sort_viable_target_list().
| unsigned int SortSignedByteValuesAscending | ( | signed char * | values, |
| short | count ) |
Definition at line 258 of file disk.c.
References SortSignedByteValuesAscending().
Referenced by SortSignedByteValuesAscending().
Definition at line 152 of file trainsim.c.
References aHighScoreEntriesArray, and SortTrainSimHighScores().
Referenced by init_3Space_objects(), InsertTrainSimHighScore(), and SortTrainSimHighScores().
Definition at line 724 of file music.c.
References sound_effect(), szSfxWavePath, and WriteDebugString().
Referenced by init_3Space_objects(), and sound_effect().
| unsigned int SoundFxTick | ( | void | ) |
Definition at line 707 of file music.c.
References SoundFxTick(), and WriteDebugString().
Referenced by init_3Space_objects(), SoundFxTick(), and TheEndFireWorks().
| unsigned int spacetrack | ( | int | track, |
| int | mode, | ||
| short | enabled ) |
Definition at line 411 of file music.c.
References nMusicPlaybackMode, ProcessMusicScriptCommand(), and spacetrack().
Referenced by AwardCampaignMedal(), BarracksScreen(), death_sequence(), DeBriefing(), DrawMedalChest(), ejection_sequence(), EstablishingShot(), funeral_sequence(), gametrack(), init_3Space_objects(), landing(), LaunchPlayerShip(), LoadBriefingRoom(), new_space_music_changes(), Office(), PlayScrambleHangarScene(), RecRoom(), ReturnToBriefingLongShot(), set_up_next_wave(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), ShowMeanwhileTransition(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), spacetrack(), Title_Sequence(), and update_missile_warning().
| void __stdcall SplitGameClockTicks | ( | unsigned char * | parts | ) |
Definition at line 307 of file mono.c.
References GetGameClockTicks(), and SplitGameClockTicks().
Referenced by FormatNavCoordinates(), and SplitGameClockTicks().
| void __stdcall SplitPackedPoint | ( | ShortPoint | point, |
| short * | p ) |
Definition at line 226 of file mathfp.c.
References IsPointInRect(), SplitPackedPoint(), ShortPoint::x, and ShortPoint::y.
Referenced by PlaySfxWaveFileByNumber(), and SplitPackedPoint().
| void start_collision_alert | ( | short | obj, |
| short | other ) |
Definition at line 197 of file logic.c.
References abCollisionAlertTargets, asCollisionDelayList, asShipAfterburnerTimer, set_alert(), set_special(), SPECIAL_MANEUVER_NONE, start_collision_alert(), and steady_object().
Referenced by handle_collisions(), and start_collision_alert().
| unsigned int start_dust | ( | short | obj, |
| FixedVector | origin, | ||
| short | forwardDistance, | ||
| int | rightOffset, | ||
| int | upOffset ) |
Definition at line 667 of file spc.c.
References AddFixedVectors(), aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, aShipVelocity, asObjScreenAngles, EYE_OBJECT, FillFixedVectorWithRandomComponents(), MaxShort(), OBJECT_TYPE_SPACE_DUST, 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 448 of file winmain.c.
References abHazardObjects, aHazardFields, make_hazard(), pActiveHazardField, remove_all_hazards(), and start_hazard_field().
Referenced by check_hazards(), start_hazard_field(), and Title_Sequence().
| void start_lock | ( | unsigned short | v | ) |
Definition at line 1643 of file cockpt.c.
References bTargetLockReadoutDirty, nTargetLockCountdown, nTargetLockMarkerAngle, RandomBelowOrEqual(), and start_lock().
Referenced by start_lock(), and starting_lock().
| unsigned short starting_lock | ( | unsigned short | v | ) |
Definition at line 1652 of file cockpt.c.
References nTargetLockCountdown, start_lock(), and starting_lock().
Referenced by starting_lock(), and target_locking().
| unsigned int StartNewCampaign | ( | short | campaign | ) |
Definition at line 227 of file gameflow.c.
References asCampaignPilotFiles, bCampaignActive, bCampaignStartupMode, bPanRoomTransition, CampaignState::campaignIndex, LoadPacketIntoBuffer(), nCampaignDataSet, nQueuedCampaignIndex, pMissionCampaignInfo, ResetCampaignData(), RunTrainSim(), StartNewCampaign(), and stCampaignState.
Referenced by main(), and StartNewCampaign().
| void StartupHook | ( | unsigned int(* | callback )(unsigned int, short) | ) |
Definition at line 1114 of file eventmgr.c.
References StartupHook(), and void().
Referenced by DosMemcpy(), main(), and StartupHook().
| void stationary_intelligence | ( | short | obj | ) |
Definition at line 907 of file brains.c.
References aeObjectTypeList, anObjectYawRotation, fire_turrets(), OBJECT_TYPE_KILRATHI_BASE, and stationary_intelligence().
Referenced by capital_ship_intelligence(), and stationary_intelligence().
| unsigned int steady_object | ( | short | ship | ) |
Definition at line 422 of file ship.c.
References anPitchGoal, anRollGoal, anYawTarget, and steady_object().
Referenced by alter_objective(), chase_location(), fire_weapon(), formation_break(), goto_formation(), init_formation_burst(), Msit_n_spin(), reset_objective(), start_collision_alert(), steady_object(), and try2reset_maneuver().
| unsigned int steer_away_from_object | ( | short | obj, |
| short | other, | ||
| short | amount ) |
Definition at line 25 of file smart.c.
References AddFixedVectors(), anPitchGoal, anRollGoal, anYawTarget, aShipPositionsArray, aShipVelocity, ComputeVectorDelta(), steer_away_from_object(), transform_to_objects_frame(), FixedVector::x, and FixedVector::y.
Referenced by Mget_distance(), Mveer_away(), PlaySfxWaveFileByNumber(), and steer_away_from_object().
| void steer_away_from_predicted_object | ( | short | obj, |
| short | other, | ||
| short | predictionTicks, | ||
| short | amount ) |
Definition at line 50 of file smart.c.
References AddFixedVectors(), anPitchGoal, anRollGoal, anYawTarget, aShipPositionsArray, aShipVelocity, ComputeVectorDelta(), ScaleFixedVector(), steer_away_from_predicted_object(), transform_to_objects_frame(), FixedVector::x, and FixedVector::y.
Referenced by PlaySfxWaveFileByNumber(), prevent_collision(), and steer_away_from_predicted_object().
| unsigned short __stdcall StepPaletteTransition | ( | short * | current, |
| const short * | target, | ||
| short | componentCount ) |
Definition at line 22 of file fade.c.
References AllocateTaggedMemory(), nPaletteTransitionCountdown, nPaletteTransitionInitialise, nPaletteTransMaxDelta, pPaletteTransDirection, pPaletteTransitionAccumulatorPtr, pPaletteTransitionDelta, ReleasePacketHandle(), and StepPaletteTransition().
Referenced by FadeViewportPaletteToColour(), PanToScreen(), and StepPaletteTransition().
Definition at line 276 of file sound.c.
References FreeWaveTable(), ix_sound_release(), ix_sound_stop(), ix_system_delete_all_samples(), ix_system_delete_all_sounds(), pSnowStaticSound, pSnowStaticWave, and stop_all_sounds().
Referenced by FlushSoundEffect(), FlushSoundEffects(), init_3Space_objects(), and stop_all_sounds().
| void StopMusic | ( | short | unused | ) |
Definition at line 114 of file music.c.
References nCurrentMusicTrack, SoundDebugPrintf(), StopMusic(), Streamer_stop(), and void().
Referenced by init_3Space_objects(), ProcessMusicScriptCommand(), ShowMeanwhileTransition(), ShowTheEndScreen(), StopMusic(), StopMusicUnlessSuppressed(), wait_for_end_of_music(), and WaitForMusicOrInput().
Definition at line 419 of file music.c.
References nMusicPlaybackMode, StopMusic(), and StopMusicUnlessSuppressed().
Referenced by AwardCampaignMedal(), BarracksScreen(), death_sequence(), DeBriefing(), DisableMusicForScene(), ejection_sequence(), free_inflight_music(), funeral_sequence(), init_3Space_objects(), landing(), LaunchPlayerShip(), LoadBriefingRoom(), Office(), RecRoom(), ReturnToBriefingLongShot(), scramble(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), ShowMeanwhileTransition(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), StopMusicUnlessSuppressed(), Title_Sequence(), and WaitForMusicOrInput().
| void StopSoundsUsingWave | ( | const char * | name | ) |
Definition at line 195 of file sound.c.
References bIxAudioEnabled, FindActiveSoundEntryBySample(), FindWaveTableEntryByName(), ix_system_delete_sound(), RemoveActiveSoundEntry(), WaveTableEntry::sample, ActiveSoundEntry::sound, and StopSoundsUsingWave().
Referenced by init_3Space_objects(), and StopSoundsUsingWave().
Definition at line 202 of file eject.c.
References bEscapePressedFlag, Viewport::bottom, cBlackColour, ClearViewport(), DIBslam(), DIBslamReal(), dump_buffer_to_screen(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), force_view(), free_all_slots(), free_cockpit(), FreePacketAndClear(), nCannedSceneMode, pIntroFont, print_subtitle(), pStrandedMessage, RefreshCockpitStatus(), RestoreGamePalette(), stranded_sequence(), stScreenView, stSpaceBufferViewport, and Viewport::top.
Referenced by GameFlow(), and stranded_sequence().
| void streak_toward | ( | short | obj, |
| short | goal, | ||
| short | range ) |
Definition at line 634 of file brains.c.
References approach_full_speed(), fire_afterburner(), no_goal(), 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 1479 of file gr.c.
References bIxAudioEnabled, ix_streamer_close_stream_file(), SoundDebugPrintf(), and Streamer_close().
Referenced by CollectRasterClipColours(), SelectFlightMusicTrack(), Streamer_close(), and WinMain().
| void Streamer_open | ( | const char * | streamName | ) |
Definition at line 1370 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, exit_squadron(), ix_streamer_open_stream_file(), LocateStreamsDirOnDisc(), ShowNoticeMessageBox(), SoundDebugPrintf(), Streamer_open(), and szStreamerPathBuffer.
Referenced by CollectRasterClipColours(), SelectFlightMusicTrack(), and Streamer_open().
Definition at line 1389 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ix_streamer_audio_play(), SoundDebugPrintf(), and Streamer_play().
Referenced by CollectRasterClipColours(), ForceStreamerTrigger(), SetStreamerIntensity(), Streamer_play(), and Streamer_trigger().
Definition at line 1400 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ix_streamer_audio_stop(), SoundDebugPrintf(), and Streamer_stop().
Referenced by CollectRasterClipColours(), StopMusic(), and Streamer_stop().
| void Streamer_trigger | ( | int | trigger | ) |
Definition at line 1426 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ForceStreamerTrigger(), ix_streamer_set_trigger(), SoundDebugPrintf(), Streamer_play(), and Streamer_trigger().
Referenced by CollectRasterClipColours(), ProcessMusicScriptCommand(), and Streamer_trigger().
| short stress_morale | ( | short | obj | ) |
Definition at line 404 of file smart.c.
References acShipStressList, and stress_morale().
Referenced by pick_kilrathi_maneuver(), pick_regular_maneuver(), PlaySfxWaveFileByNumber(), process_maneuver_node(), and stress_morale().
| void strike_mission | ( | short | obj | ) |
Definition at line 677 of file brains.c.
References aeObjectClass, aeShipObjectiveList, anShipMissionShips, approach_and_engage(), check_destroy_target(), check_goal(), fail(), find_ship_index(), formation_burst(), maneuvering(), OBJECT_CLASS_FUTURION, OBJECTIVE_BREAK_FORMATION, OBJECTIVE_DESTROY_SHIP, OBJECTIVE_ENGAGE_ENEMY, OBJECTIVE_HOLD_FORMATION, OBJECTIVE_HOME_BASE, OBJECTIVE_NONE, reset_objective(), and strike_mission().
Referenced by ship_intelligence(), and strike_mission().
| unsigned int sub_int_vector | ( | const ShortVector * | left, |
| const ShortVector * | right, | ||
| ShortVector * | difference ) |
Definition at line 722 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 305 of file geom.c.
References SubtractFixedVectors(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by auto_pilot_sequence(), init_hazard(), object_collision(), set_eye_direction_and_position(), and SubtractFixedVectors().
| unsigned char TakeDebugStepFlag | ( | void | ) |
Definition at line 194 of file pilot.cpp.
References dwDebugOverlayKeyLatch, and TakeDebugStepFlag().
Referenced by init_3Space_objects(), TakeDebugStepFlag(), and WaitForDebugStep().
Definition at line 397 of file comm.c.
References RefreshCommunicationMenu(), and talk_equiv().
Referenced by PlaySfxWaveFileByNumber(), SelectCockpitVduMode(), talk_equiv(), and update_VDUs().
| unsigned int TalkerInit | ( | void | ) |
Definition at line 1192 of file screens.c.
References AllocateTaggedMemory(), pFaceAnimationCmds, pSceneMouthAnimCmds, and TalkerInit().
Referenced by DosMemcpy(), SceneDirector(), and TalkerInit().
| void tanker_intelligence | ( | short | obj | ) |
Definition at line 873 of file brains.c.
References acShipTargetTable, anRollGoal, anYawTarget, approach_cruise_speed(), approach_full_speed(), attacker_in_range(), fire(), no_goal(), nTargetShip, 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 1710 of file cockpt.c.
References acPlayerComponentDamageList, aeShipSide, aShipWeaponsTable, asObjectScreenXList, asObjectScreenYArray, decrement_lock_time(), get_facing_range_from_object(), lock_off(), nSelectedReleaseWeaponIndex, nTargetFacingValue, nTargetLockCountdown, OBJECT_TYPE_HEAT_SEEKING_MISSILE, OBJECT_TYPE_IMAGE_RECOGNITION_MISSILE, starting_lock(), and target_locking().
Referenced by overlay_head_up_display(), and target_locking().
| int target_valid | ( | short | obj | ) |
Definition at line 1319 of file logic.c.
References acShipTargetTable, aeShipSide, target_valid(), and unactive().
Referenced by check_destroy_target(), check_engage_target(), close_behind(), and target_valid().
| unsigned int target_within_range | ( | short | obj | ) |
Definition at line 1034 of file logic.c.
References acShipTargetTable, ships_within_range(), target_within_range(), and unactive().
Referenced by close_behind(), and target_within_range().
| short the_creator | ( | short | obj | ) |
Definition at line 1276 of file ship.c.
References acObjOwnersTable, and the_creator().
Referenced by explode(), explosion_shock_wave(), and the_creator().
| short TheEndFireWorks | ( | Viewport * | viewport, |
| short | count ) |
Definition at line 198 of file view.c.
References aabSoundEffectDescriptors, aFireworksList, DrawSpriteDefault(), FlushSoundEffectsAndLog(), FireworkState::frame, pFireworkShape, SoundFxTick(), FireworkState::soundHandle, TheEndFireWorks(), and FireworkState::x.
Referenced by init_3Space_objects(), ShowTheEndScreen(), ShowVictoryScreen(), and TheEndFireWorks().
| void ThrottleFrameAndDrawFps | ( | HDC | dc | ) |
Definition at line 114 of file dib.c.
References bShowFrameRate, fSampledFps, nFrameDeadlineMs, nFrameIntervalMs, nPreviousFrameTimeMs, pDIBImage, Viewport::pixels, RefreshMouseCursorDisplay(), stMouseCursorState, szFrameRateLabel, ThrottleFrameAndDrawFps(), and MouseCursorState::viewport.
Referenced by DIBslamReal(), PlaySfxWaveFileByNumber(), and ThrottleFrameAndDrawFps().
Definition at line 669 of file eventmgr.c.
References TimerResetHook().
Referenced by DosMemcpy(), FrameStartHook(), and TimerResetHook().
Definition at line 687 of file eventmgr.c.
References TimerStopHook().
Referenced by DosMemcpy(), MessagePumpHook(), and TimerStopHook().
| int Title_Sequence | ( | void | ) |
Definition at line 119 of file title.c.
References aIntroResourceDescriptors, aMissionShips, anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, AnySavedGames(), aObjectTypeData, apszIntroCredits, aShipFwdVec, aShipVelocity, asIntroCameraSequence, aTitleMenuRegions, bEscapePressedFlag, bInputModeState, bIntroSceneResourcesActive, bIntroSecondaryScene, bKeyEventQueueEnabled, bScriptedView, bShowKilrathiSagaCredits, bTitleMenuSceneInitialized, CalibrateJoystickInteractive(), cBlackColour, CheckEscaped(), clear_view_buffer(), ClearDebugPauseFlags(), ClearInputKeyStatePreservingModifiers(), ClearViewport(), DIBslam(), DIBslamReal(), Draw_3Space_Frame(), DrawSpriteDefault(), DrawTitleLogo(), dump_buffer_to_screen(), EnterAllocationScope(), EventManagerHook(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), FindMenuRegionAtPoint(), FlushInputEvents(), TitleMenuRegion::frame, free_3Space(), free_all_slots(), FreePacketAndClear(), FreeShapeSet(), GetShapeFrameBounds(), init_3Space_objects(), initialize_scripted_view(), intro_drawbackgroundships(), LeaveAllocationScope(), LoadPacketResourceList(), MoveMenuPointerFromKeyboard(), nCannedSceneMode, nCurrentViewCenterPosY, nFrameSkipCounter, nIntroCreditCount, nMenuInputRepeatDelay, nSceneResourceBudgetValue, OBJECT_TYPE_DEBRIS_METAL_SHEET, OBJECT_TYPE_DEBRIS_WING, pIntroFont, PollInputEvent(), PollJoystickButtonEvents(), PollMenuInputDevices(), PreloadMusicTrackHook(), print_subtitle(), pszIntroOpeningText, pTitleShape, PumpWindowMessages(), ReleaseMusicTrackHook(), ReleasePacketHandle(), remove_all_hazards(), RenderSpaceViewFrame(), ResetSoundState(), RestoreGamePalette(), ScaleFixedVector(), SceneEnterHook(), set_up_action_sphere(), SetEventManagerPump(), ObjectTypeData::shapeSet, spacetrack(), start_hazard_field(), MissionShipRecord::state, stMouseCursorState, StopMusicUnlessSuppressed(), stScreenView, stSpaceBufferViewport, Title_Sequence(), Update_3Space(), UpdateTitleMenuCursor(), InputEventState::value, MouseCursorState::viewport, and WarpMouseTo().
Referenced by main(), RunAnimationDemoLoop(), and Title_Sequence().
| int too_busy | ( | short | ship | ) |
Definition at line 117 of file screen.c.
References aeShipMissionType, MISSION_TYPE_ROUT, and too_busy().
Referenced by bad_target(), PlaySfxWaveFileByNumber(), request(), and too_busy().
Definition at line 1186 of file geom.c.
References aeObjectClass, aObjectViewPositionsList, aShipPositionsArray, asObjDistancesTable, asObjectCollisionRadius, asObjectCounterArray, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, asPreviousObjectDistance, awObjectScales, ComputeVectorDelta(), DivideFixed(), draw_nav_pointer(), EYE_OBJECT, get_right_shape(), MultiplyFixed(), nClosestVisibleObject, nCurrentSpaceFrameValue, nNavPointerObject, nScreenWidth, 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_SHIP, OBJECT_CLASS_STAR, set_background_objects_rotation(), SPACE_LAST_MOVING_OBJECT, transform_objects_to_your_view(), transform_to_objects_frame(), and Vector_magnitude().
Referenced by Draw_3Space_Frame(), ShowCarrierLaunchSequence(), and transform_objects_to_your_view().
| void transform_to_objects_frame | ( | const FixedVector * | source, |
| FixedVector * | destination, | ||
| short | obj ) |
Definition at line 610 of file geom.c.
References aShipFwdVec, aShipRightVector, aShipUpVector, dot_product(), transform_to_objects_frame(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by apply_force_to_object(), draw_nav_pointer(), get_right_shape(), IsPointWithinEyeViewCone(), 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(), and update_star_field().
| 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 36 of file eventmgr.c.
References aInputDevSamples, bHostPrimaryMouseButton, bHostSecondaryMouseButton, nCurrentActiveInputDevice, nHostMouseMessageX, nHostMouseMessageY, QueueInputEvent(), and TranslatePolledInputEvent().
Referenced by DosMemcpy(), get_player_input(), player_input(), and TranslatePolledInputEvent().
| unsigned int TranslateRLEFramePalette | ( | struct RLEShape * | shape, |
| int | frame ) |
References TranslateRLEFramePalette().
Referenced by TranslateRLEFramePalette().
| void triangle | ( | Viewport * | viewport, |
| const ShortPoint * | points, | ||
| int | colour ) |
Definition at line 1016 of file gr.c.
References DIBslam(), DrawViewportPolygonHook(), Viewport::pixels, RasterLineHook(), stScreenView, and triangle().
Referenced by CollectRasterClipColours(), and triangle().
| unsigned int TriggerPlayerHitPaletteFlash | ( | void | ) |
Definition at line 488 of file main.c.
References asDamageFlashColour, nCameraViewMode, and TriggerPlayerHitPaletteFlash().
Referenced by inflict_damage(), init_3Space_objects(), and TriggerPlayerHitPaletteFlash().
| int trim_goals | ( | short | obj, |
| short | amount ) |
Definition at line 372 of file logic.c.
References anPitchGoal, anYawTarget, and trim_goals().
Referenced by chase_location(), goto_formation(), orbit_sphere(), patrol_area(), and trim_goals().
| unsigned int triumph | ( | short | obj | ) |
Definition at line 1328 of file logic.c.
References abFlightPathList, aeShipMissionType, anShipMissionShips, dead_ship(), MISSION_TYPE_DEFEND, MISSION_TYPE_ESCORT, MISSION_TYPE_PATROL, MISSION_TYPE_STRIKE, MISSION_TYPE_WINGMAN, triumph(), and visited().
Referenced by changetrack(), close_behind(), i_wanna_rout(), and triumph().
| void try2allow_engage | ( | int | pilotLevel | ) |
Definition at line 210 of file brains.c.
References allow_engage(), nAutoEngageTimer, RandomBelowOrEqual(), and try2allow_engage().
Referenced by imperial_formation(), and try2allow_engage().
| void try2end_collision_alert | ( | short | obj | ) |
Definition at line 210 of file logic.c.
References asCollisionDelayList, clear_alert(), set_alert(), and try2end_collision_alert().
Referenced by prevent_collision(), and try2end_collision_alert().
| void try2reset_maneuver | ( | short | obj, |
| short | maneuver ) |
Definition at line 720 of file logic.c.
References aeShipManeuversTable, reset_maneuver(), steady_object(), and try2reset_maneuver().
Referenced by perform_maneuver(), and try2reset_maneuver().
| short try2rout | ( | short | obj | ) |
Definition at line 464 of file logic.c.
References acShipStressList, aeObjectClass, aeShipSide, aeSpecialManeuvers, maneuver_complete(), MISSION_TYPE_ROUT, nTrainSimActive, nYourWingman, OBJECT_CLASS_CAPITAL_SHIP, reset_mission_type(), send_message(), SPECIAL_MANEUVER_UNKNOWN_9, and try2rout().
Referenced by Mrout_me(), request(), and try2rout().
| short try_far_spot | ( | FixedVector * | spot, |
| short * | moving ) |
Definition at line 295 of file winmain.c.
References acHazardPitchRange, anObjectYawRotation, anObjPitchRot, aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, cCurrentCockpitView, copy_frame(), find_ratio(), IsPointWithinRange(), nCameraViewMode, pActiveHazardField, position_relative_ijk(), RandomBelow(), rotate_about_i(), rotate_about_j(), signed_random(), try_far_spot(), and within_field().
Referenced by make_hazard(), and try_far_spot().
| short TryPlaceNavMapLabel | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | force ) |
Definition at line 152 of file nav.c.
References aNavMapLabels, NavMapLabelFits(), NavMapLabelPositionAvailable(), nNavMapLabelCount, TryPlaceNavMapLabel(), NavMapLabel::x, and NavMapLabel::y.
Referenced by PlaceNavMapLabel(), and TryPlaceNavMapLabel().
| unsigned int unactive | ( | short | ship | ) |
Definition at line 353 of file logic.c.
References aeObjectClass, aeShipManeuversTable, MANEUVER_HARD_BRAKE, OBJECT_CLASS_SHIP, and unactive().
Referenced by are_alive(), capital_ship_intelligence(), escort_mission(), have_target(), intelligence_events(), is_ship_tailing_player_target(), kilrathi_wingman(), Mtry2tail(), Mzip_past(), patrol_area(), perform_maneuver(), rendezvous_mission(), run_away(), target_valid(), target_within_range(), and unactive().
| void unflag_ace | ( | short | ace, |
| unsigned char | bits ) |
Definition at line 121 of file logic.c.
References CampaignState::aceFlags, stCampaignState, and unflag_ace().
Referenced by explode(), kill_ace(), prepare_ace(), and unflag_ace().
| void __stdcall UnionRectBounds | ( | ShortRect * | destination, |
| const ShortRect * | first, | ||
| const ShortRect * | second ) |
Definition at line 255 of file joycal.c.
References ShortRect::bottom, ShortRect::left, ShortRect::right, ShortRect::top, and UnionRectBounds().
Referenced by PlaySfxWaveFileByNumber(), RecRoom(), and UnionRectBounds().
| unsigned int unwarp | ( | short | obj | ) |
Definition at line 65 of file targ.c.
References abShipNavPtIdx, aeObjectTypeList, aeShipManeuversTable, aShipPositionsArray, aShipVelocity, asObjectCounterArray, bViewportDirty, ClearViewport(), cViewportClearColour, find_vacant_3d_object(), MANEUVER_NONE, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, set_objects_data(), stSpaceBufferViewport, and unwarp().
Referenced by arrive_from_warp(), init_3Space_objects(), and unwarp().
| unsigned int Update_3Space | ( | void | ) |
Definition at line 476 of file main.c.
References house_keep(), house_keep_objects(), nCurrentSpaceFrameValue, servicetrack(), set_eye_direction_and_position(), Update_3Space(), and update_objects_in_space().
Referenced by auto_pilot_sequence(), init_3Space_objects(), RefreshCockpitStatus(), RunSpaceFlight(), ShowCampaignVictorySequence(), ShowTigerClawEscapeScene(), Title_Sequence(), Update_3Space(), and visit_the_cinema().
Definition at line 654 of file cockpt.c.
References aasShipArmor, aasShipShield, aeObjectTypeList, aObjectTypeData, ObjectTypeData::armorFront, ObjectTypeData::armorLeft, ObjectTypeData::armorRear, ObjectTypeData::armorRight, DrawCockpitReadout(), SetCockpitLightBlink(), ObjectTypeData::shieldAft, ObjectTypeData::shieldFore, szTxtWorkspaceBuffer, update_bars(), and vdu_polygon().
Referenced by update_bars(), and update_cockpit().
| unsigned int update_canned_sequence | ( | short | obj | ) |
Definition at line 278 of file mono.c.
References advance_canned_sequence(), anPitchGoal, anRollGoal, anShipSpeed, anYawTarget, asActionCounts, asCannedCommands, aShipVelocity, update_canned_sequence(), and Vector_magnitude().
Referenced by object_intelligence(), and update_canned_sequence().
Definition at line 2895 of file cockpt.c.
References animate_pilot(), bCockpitlessView, check_stranded(), check_target(), cMissionObjectiveCountValue, cockpit_explosion(), draw_3d_scanner(), draw_cockpit_lights(), fire_computer_graphic_missile(), nCameraViewMode, nCurrentSpaceFrameValue, npc_communication(), repair_internal_damage(), RestoreCockpitExplosionBackground(), update_bars(), update_cockpit(), update_digital_readouts(), update_lights(), update_missile_warning(), update_objective_location(), and update_VDUs().
Referenced by LaunchPlayerShip(), RunSpaceFlight(), and update_cockpit().
| void update_dead_disp | ( | short | a | ) |
Definition at line 2751 of file cockpt.c.
References cDarkGreenColour, malf_noise(), and update_dead_disp().
Referenced by update_dead_disp(), and update_VDUs().
| unsigned int update_digital_readouts | ( | void | ) |
Definition at line 798 of file cockpt.c.
References anShipSpeed, aShipVelocity, DrawCockpitReadout(), MultiplyFixed(), SetTextContext(), stCurrentCockpitReadoutTextCtx, szTxtWorkspaceBuffer, update_digital_readouts(), and Vector_magnitude().
Referenced by update_cockpit(), and update_digital_readouts().
Definition at line 426 of file winmain.c.
References abHazardObjects, bIntroSecondaryScene, make_hazard(), manage_hazard(), match_ship_to_eye(), nHazardReferenceSpeed, RandomBelowOrEqual(), real_velocity(), and update_hazards().
Referenced by update_hazards(), and update_star_field().
Definition at line 624 of file cockpt.c.
References aasShipShield, abCockpitLightGoalArray, aeObjectTypeList, anShipFuelsTable, aObjectTypeData, asShipWpnEnergyList, calculate_damage_level(), FlushSoundEffectsAndLog(), nCurrentDamageAlarmSfxHandle, nCurrentSpaceFrameValue, nTrainSimActive, PlaySfxWaveFileByNumber(), SetCockpitLightBlink(), update_lights(), and vdu_polygon().
Referenced by update_cockpit(), and update_lights().
Definition at line 2382 of file cockpt.c.
References abCockpitLightGoalArray, missile_on_tail(), nTrainSimActive, SetCockpitLightBlink(), spacetrack(), and update_missile_warning().
Referenced by update_cockpit(), and update_missile_warning().
| void update_objective_location | ( | short | objective | ) |
Definition at line 1334 of file cockpt.c.
References aMissionNavPoints, aMissionObjectivesArray, aShipPositionsArray, cCurrentObjective, check_sighting(), check_visit(), ComputeVectorDelta(), FixedToShortSaturating(), LocateMobileObjective(), mobile_objective(), sighted(), update_objective_location(), Vector_magnitude(), and visited().
Referenced by check_objectives(), update_cockpit(), and update_objective_location().
| unsigned int update_objects_in_space | ( | void | ) |
Definition at line 985 of file spc.c.
References accelerate_and_move_object(), aeObjectClass, aeSpecialManeuvers, animate_object(), clear_crash_cache(), futurion_intelligence(), 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(), replenish_shields(), replenish_weapon_energy_bank(), rotate_object(), rotate_object_to_goal(), SPACE_LAST_MOVING_OBJECT, SPECIAL_MANEUVER_UNKNOWN_9, and update_objects_in_space().
Referenced by ShowCarrierLaunchSequence(), Update_3Space(), and update_objects_in_space().
| unsigned int update_scripted_view | ( | void | ) |
Definition at line 148 of file view.c.
References asObjectCounterArray, nEyePitchTargetValue, nEyeRollTargetValue, nEyeYawGoalValue, parse_view_script(), pCurrentViewScriptPtr, and update_scripted_view().
Referenced by init_3Space_objects(), set_eye_direction_and_position(), and update_scripted_view().
| unsigned int update_star_field | ( | void | ) |
Definition at line 733 of file spc.c.
References AddFixedVectors(), aeObjectClass, anObjectYawRotation, anObjPitchRot, aShipFwdVec, aShipPositionsArray, aShipRightVector, aShipUpVector, aShipVelocity, asObjectCollisionRadius, asObjectScreenXList, asObjectViewFrames, ComputeVectorDelta(), copy_frame(), extra_hazard(), EYE_OBJECT, nCurrentStarFieldJRotationValue, nStarFieldIRotValue, OBJECT_CLASS_ASTEROID, OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_STAR, OBJECT_TYPE_SPACE_DUST, pActiveHazardField, RandomInRange(), rotate_about_i(), rotate_about_j(), ScaleFixedVector(), set_objects_data(), signed_random(), start_dust(), transform_to_objects_frame(), update_hazards(), update_star_field(), vPreviousStarFieldMotion, vStarFieldMotion, FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by Draw_3Space_Frame(), ShowCarrierLaunchSequence(), and update_star_field().
Definition at line 1025 of file cockpt.c.
References update_status_text().
Referenced by update_status_text(), and update_VDUs().
Definition at line 2767 of file cockpt.c.
References aCockpitHudMessageSlotsTable, bCockpitlessView, bForceDamageDisplayRedraw, ShortRect::bottom, cCurrentCockpitView, check_objectives(), CopyTrainSimPilotViewToRightVdu(), DrawFilledViewportRect(), DrawTargetRangeReadout(), get_mode(), ShortRect::left, CockpitLayout::leftVduBounds, nTrainSimActive, pCurrentPilotHandShapePtr, ShortRect::right, CockpitLayout::rightVduBounds, SetTextContext(), show_communications_disp(), show_damage_disp(), show_info_disp(), show_navigation_disp(), show_target_disp(), show_weapon_disp(), stCockpitLayout, stLeftVduTextContext, stRightVduTxtContext, stScreenView, talk_equiv(), HudMessageSlot::text, ShortRect::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 753 of file cockpt.c.
References anVduModeCache, get_mode(), set_new_vdu(), and update_vid_disp().
Referenced by update_VDUs(), and update_vid_disp().
Definition at line 1880 of file main.c.
References Viewport::bottom, DrawArcadeScorePanel(), FormatTextBufferFromStart(), Viewport::left, nArcadeBonusCountdown, nArcadeState, nArcadeTimeRemaining, nArcadeWave, nArcadeWaveBonusValue, nCurrentArcadeScore, nCurrentWave, nTrainSimActive, nTrainSimMission, SetTextContext(), SetTextCursor(), stHudMessageTextContext, stSpaceBufferViewport, Viewport::top, and UpdateArcadeScoreDisplay().
Referenced by init_3Space_objects(), RenderSpaceViewFrame(), and UpdateArcadeScoreDisplay().
| void UpdateBarracksScreen | ( | Viewport * | viewport, |
| struct Shape * | shape, | ||
| BarracksAnimationState * | state ) |
Definition at line 966 of file barracks.c.
References AnimateBarracks(), DrawBarracksStaticDetails(), RefreshRoomMenuLabel(), and UpdateBarracksScreen().
Referenced by BarracksScreen(), and UpdateBarracksScreen().
Definition at line 104 of file damage.c.
References abDamageDisplayFrames, acPlayerComponentDamageList, aDamageDisplayPositions, apszComponentNames, apszDamageSeverityNames, bCockpitlessView, CaptureSpriteBackground(), cBlackColour, cDamagedComponentCount, cDamageDisplayComponentValue, cDamageDisplayFrame, TextContext::colour, cPrimaryTextColour, DrawSpriteDefault(), DrawTextAt(), DrawViewportLine(), InvalidateVduMode(), Viewport::left, nCurrentDmgDispTicks, nDamageDisplayPhase, nDisplayedComponentDamage, pCockpitWeaponShapePtr, pDamageDisplayBackground, RestoreSpriteBackground(), stDamageSpritePos, stLeftVdu, stLeftVduTextContext, stWpnDispOrigin, szDmgStateText, Viewport::top, UpdateDamageDisplay(), ShortPoint::x, and ShortPoint::y.
Referenced by init_3Space_objects(), update_VDUs(), and UpdateDamageDisplay().
| void UpdateInflightNavText | ( | short | showColon | ) |
Definition at line 590 of file nav.c.
References TextContext::cursorX, DrawFormattedText(), Viewport::left, pElapsedCampaignDatePtr, SetTextContext(), stCurrentNavMapTxtCtx, Viewport::top, UpdateInflightNavText(), and TextContext::viewport.
Referenced by InflightComputer(), and UpdateInflightNavText().
| short __stdcall UpdateInputDeviceTransitions | ( | short | raw | ) |
Definition at line 26 of file input.c.
References aInputDevSamples, anInputButton1PressTimes, anInputButton2PressTime, asInputBtn1ChangedTable, asInputButton1DoubleClicksList, asInputButton2ChangedTable, asInputButton2DoubleClick, asPreviousInputButtons, nCurrentActiveInputDevice, nInputDoubleClickInterval, nInputTickScale, nTickCount60Hz, ReadCalibratedJoystick(), SampleJoystickDevice(), and UpdateInputDeviceTransitions().
Referenced by get_player_input(), PlaySfxWaveFileByNumber(), PollJoystickButtonEvents(), PollMenuInputDevices(), and UpdateInputDeviceTransitions().
| unsigned int UpdateMap | ( | char * | text, |
| short | duration ) |
Definition at line 703 of file cmpgn.c.
References AddPCName(), BriefingMap_DisplayMap(), cBlackColour, ClearViewport(), FormatTextBufferFromStart(), nConvTextColorValue, Viewport::pixels, SetTextContext(), stCurrentConvTextViewport, stCurrentConvTxtCtx, stSceneBuffer, stScreenView, szTxtWorkspaceBuffer, UpdateMap(), and WaitForSceneAdvance().
Referenced by SceneDirector(), and UpdateMap().
| void UpdateMessage | ( | HudMessageSlot * | slot | ) |
Definition at line 458 of file cockpt.c.
References ClearHudMessageSlot(), DrawHudMessageSlot(), HudMessageSlot::flashCount, HudMessageSlot::text, and UpdateMessage().
Referenced by update_VDUs(), and UpdateMessage().
Definition at line 2181 of file main.c.
References ClearRoomMenuLabel(), RoomMenu::cursorFrame, TitleMenuRegion::frame, IsPointInRect(), TitleMenuRegion::left, RoomMenu::regions, SelectRoomMenuLabel(), SetMouseCursorShape(), MouseCursorState::shape, stCurrentRoomMenu, stMouseCursorState, UpdateRoomMenuCursor(), MouseCursorState::x, and MouseCursorState::y.
Referenced by BarracksScreen(), init_3Space_objects(), InitializeRoomViewports(), RecRoom(), and UpdateRoomMenuCursor().
| unsigned short __stdcall UpdateSceneAnimationObject | ( | SceneAnimationObject * | object, |
| Viewport * | viewport ) |
Definition at line 2151 of file logic.c.
References bSceneAnimationWaitCommand, SceneAnimationObject::delay, SceneAnimationObject::deltaFrame, SceneAnimationObject::deltaRotation, SceneAnimationObject::deltaScale, SceneAnimationObject::deltaX, SceneAnimationObject::deltaY, DrawSpriteScaled(), FindSceneAnimationCommand(), SceneAnimationObject::frame, SceneAnimationObject::goalFrame, SceneAnimationObject::goalRotation, SceneAnimationObject::goalScale, SceneAnimationObject::goalX, SceneAnimationObject::goalY, nFrameSkipCounter, nSceneAnimationDelayFrames, pSceneAnimationDefinitionsPtr, pSceneAnimationObjects, SceneAnimationObject::rotation, SceneAnimationObject::scale, SceneAnimationGoalReached(), SceneAnimationObject::shape, UpdateSceneAnimationObject(), SceneAnimationObject::x, and SceneAnimationObject::y.
Referenced by init_3Space_objects(), PlaySceneAnimation(), and UpdateSceneAnimationObject().
| unsigned int UpdateSeries | ( | void | ) |
Definition at line 140 of file gameflow.c.
References bOfficeVisitPending, bPlayerShipTypeChanged, bSeriesFailed, CampaignState::currentMission, CampaignState::currentSeries, FullMissionScore(), MaxShort(), CampaignState::missionScore, nCurrentWingmanKilledThisMission, nMissionMedalScoreValue, nPendingMedalIndex, nPostSeriesSequence, nPreviousPlayerShipType, pCurrentCampaignDate, CampaignState::playerShipType, PlayersMissionScore(), pMissionCampaignInfo, CampaignState::promotionScore, CampaignState::seriesHistory, CampaignState::seriesHistoryCount, CampaignState::seriesScore, stCampaignState, stSavedCampaignDate, and UpdateSeries().
Referenced by GameFlow(), and UpdateSeries().
| unsigned int UpdateSpacePaletteFade | ( | void | ) |
Definition at line 509 of file main.c.
References asDamageFlashColour, bViewportDirty, ClearViewport(), cPrimaryViewBufferColour, cRedColour, nVideoMode, SetPaletteEntry(), stSpaceBufferViewport, and UpdateSpacePaletteFade().
Referenced by Draw_3Space_Frame(), init_3Space_objects(), ShowCarrierLaunchSequence(), and UpdateSpacePaletteFade().
Definition at line 1341 of file gr.c.
References bIxAudioEnabled, dwIxStreamerStatus, nMusicTrackComplete, and UpdateStreamerStoppedFlag().
Referenced by CollectRasterClipColours(), DIBslamReal(), and UpdateStreamerStoppedFlag().
Definition at line 100 of file title.c.
References aTitleMenuRegions, TitleMenuRegion::frame, IsPointInRect(), TitleMenuRegion::left, SetMouseCursorShape(), MouseCursorState::shape, stHostMouseState, stMouseCursorState, UpdateTitleMenuCursor(), MouseCursorState::x, and MouseCursorState::y.
Referenced by Title_Sequence(), and UpdateTitleMenuCursor().
| void UpdateTrainSimHighScores | ( | int | score | ) |
Definition at line 546 of file trainsim.c.
References aHighScoreEntriesArray, bCampaignStartupMode, DIBslam(), DIBslamReal(), EnterPilotNameAndCallsign(), FindTrainSimHighScore(), InitializeTrainSimTextPanel(), InsertTrainSimHighScore(), PollJoystickButtonEvents(), PollMenuInputDevices(), HighScoreEntry::score, SetEventManagerPump(), ShowTrainSimTextMessage(), UpdateTrainSimHighScores(), and WaitForInputKey().
Referenced by init_3Space_objects(), RunTrainSim(), and UpdateTrainSimHighScores().
Definition at line 2157 of file main.c.
References aTrainSimMissionRegions, TitleMenuRegion::frame, IsPointInRect(), TitleMenuRegion::left, SetMouseCursorShape(), MouseCursorState::shape, stMouseCursorState, UpdateTrainSimMenuCursor(), MouseCursorState::x, and MouseCursorState::y.
Referenced by init_3Space_objects(), SelectTrainSimMission(), and UpdateTrainSimMenuCursor().
| void ValidateViewportBounds | ( | Viewport * | viewport, |
| RasterSurface * | surface, | ||
| RasterClip * | clip ) |
Definition at line 307 of file gr.c.
References apViewportAllocations, RasterClip::bottom, Viewport::bottom, DIBslam(), exit_squadron(), RasterSurface::field_10, RasterSurface::field_C, RasterClip::left, Viewport::left, RasterSurface::maximumX, RasterSurface::maximumY, nViewAllocTotal, RasterSurface::pixels, Viewport::pixels, RasterClip::right, Viewport::right, Viewport::rowOffsets, SignExtendClipCoord(), stScreenView, RasterClip::surface, RasterClip::top, Viewport::top, and ValidateViewportBounds().
Referenced by ClipViewportToScreen(), CollectRasterClipColours(), CopyViewportContents(), and ValidateViewportBounds().
| unsigned short vdu_malf | ( | short | vdu, |
| short | sound ) |
Definition at line 837 of file cockpt.c.
References cDarkGreenColour, malf_noise(), nCameraViewMode, set_mode(), and vdu_malf().
Referenced by damage_your_component(), SelectCockpitVduMode(), and vdu_malf().
| void vdu_polygon | ( | signed char | bar, |
| short | percent ) |
Definition at line 270 of file cockpt.c.
References aaCockpitBars, CockpitBarDefinition::bottom, Viewport::bottom, cCurrentCockpitView, CockpitBarDefinition::direction, DrawSpriteDefault(), CockpitBarDefinition::left, Viewport::left, CockpitBarDefinition::length, pCockpitDamageShape, CockpitBarDefinition::right, Viewport::right, stCockpitBar, CockpitBarDefinition::top, Viewport::top, and vdu_polygon().
Referenced by update_bars(), update_lights(), and vdu_polygon().
| void vdu_pop_all | ( | short | vdu | ) |
Definition at line 2931 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 451 of file geom.c.
References dot_product(), NormalizeFixedVector(), and vector_angle().
Referenced by fire(), hemisphere(), and vector_angle().
| void vector_component_in_dir | ( | const FixedVector * | vector, |
| const FixedVector * | direction, | ||
| FixedVector * | component ) |
Definition at line 497 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(), and vector_component_in_dir().
| void vector_cross_product | ( | const FixedVector * | left, |
| const FixedVector * | right, | ||
| FixedVector * | product ) |
Definition at line 459 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 485 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 132 of file mathfp.c.
References Vector_magnitude(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by accelerate_and_move_object(), distance_between_points(), distance_from_point(), draw_nav_pointer(), explosion_shock_wave(), fire_afterburner(), fire_weapon(), GetShipDistanceToNavPoint(), GetVectorMagnitude(), IsPointWithinEyeViewCone(), IsVectorWithinRange(), NormalizeFixedVector(), object_collision(), PlaySfxWaveFileByNumber(), PlaySfxWaveFileByNumber(), real_crash_time(), real_velocity(), rectangular_to_spherical(), RenderSpaceViewFrame(), set_eye_direction_and_position(), set_ship_rotation_goals(), SetFleetOverviewView(), transform_objects_to_your_view(), update_canned_sequence(), update_digital_readouts(), update_objective_location(), vector_length_in_dir(), and Vector_magnitude().
| unsigned int veer_random | ( | short | obj, |
| short | amount ) |
Definition at line 172 of file smart.c.
References anPitchGoal, anYawTarget, RandomBelowOrEqual(), and veer_random().
Referenced by Mbuzz_debris(), Msit_n_spin(), Mtry2tail(), Mturn_n_kick(), Mturn_n_spin(), Mveer_away(), PlaySfxWaveFileByNumber(), prevent_collision(), ShipAiState35(), streak_toward(), and veer_random().
| void vid_equiv | ( | short | obj, |
| short | message ) |
Definition at line 2741 of file cockpt.c.
References get_mode(), message_showing(), nCameraViewMode, nCannedSceneMode, nTrainSimActive, real_vid_transmit(), and vid_equiv().
Referenced by npc_communication(), and vid_equiv().
Definition at line 2684 of file cockpt.c.
References aapszPilotSpeeches, aeShipSide, aeSpecialManeuvers, apCommunicationPortraitShapesTable, asObjectCounterArray, bCockpitlessView, bVideoImagesSuppressed, DrawSpriteDefault(), EndCommSessionWithWingman(), Viewport::left, nCommPortraitFrame, nCommPortraitIndex, nCommSpeakerObject, nRenderedSpaceFrame, pCommStaticShape, pConfedCommBackground, pKilrathiCommBackground, RandomInRange(), set_new_vdu(), SIDE_IMPERIAL, SIDE_NEUTRAL, SPECIAL_MANEUVER_UNKNOWN_9, stRightVduViewport, Viewport::top, and vid_transmit().
Referenced by update_VDUs(), and vid_transmit().
| unsigned int ViewMedals | ( | void | ) |
Definition at line 220 of file screens.c.
References AddPCName(), bInputModeState, cBlackColour, ClearInputKeyStatePreservingModifiers(), ClearViewport(), cViewportClearColour, DIBslam(), DIBslamReal(), DrawMedals(), FetchDiskPacketRetrying(), FlushInputEvents(), FormatTextBufferFromStart(), FreePacketAndClear(), InitializeConversationText(), pCurrentConversationBackdropShapePtr, PeekInputEvent(), pMedalSceneShape, pszMedalsPilotSummary, PumpWindowMessages(), RefreshMemoryStatusOverlay(), stCurrentConvTextViewport, stSceneBuffer, szTxtWorkspaceBuffer, ViewMedals(), and WaitForInputKey().
Referenced by BarracksScreen(), DosMemcpy(), ShowTheEndScreen(), and ViewMedals().
| void visit_the_cinema | ( | int | view, |
| int | obj, | ||
| short | frames ) |
Definition at line 22 of file auto.c.
References bPlayerCollisionResponse, bPlayerVulnerable, DIBslam(), DIBslamReal(), force_view(), nOriginDevUnlock, RenderSpaceViewFrame(), Update_3Space(), and visit_the_cinema().
Referenced by auto_pilot_sequence(), and visit_the_cinema().
| short visited | ( | short | objective | ) |
Definition at line 1036 of file cockpt.c.
References aMissionObjectivesArray, and visited().
Referenced by BuildMap(), can_land(), cleanup_objectives(), DrawNavMapLegend(), flag_reached(), set_next_destination(), show_info_disp(), triumph(), update_objective_location(), and visited().
Definition at line 435 of file music.c.
References bEscapePressedFlag, CheckEscaped(), nMusicPlaybackMode, nMusicTrackComplete, nWaitForMusicEnabled, SetMusBreakpt(), StopMusic(), and wait_for_end_of_music().
Referenced by init_3Space_objects(), and wait_for_end_of_music().
Definition at line 23 of file timer.c.
References TakeDebugStepFlag(), and WaitForDebugStep().
Referenced by init_3Space_objects(), and WaitForDebugStep().
Definition at line 623 of file eventmgr.c.
References bFrameTickPendingFlag, and WaitForFrameTick().
Referenced by AnimateTrainSimTitle(), DosMemcpy(), SetFrameTimerAndWait(), and WaitForFrameTick().
| short WaitForInputKey | ( | void | ) |
Definition at line 467 of file disk.c.
References bInputModeState, ClearInputKeyStatePreservingModifiers(), FlushInputEvents(), nEventManagerActive, PollInputEvent(), PumpMessagesDuringWait(), InputEventState::value, and WaitForInputKey().
Referenced by InflightComputer(), PromptInsertNumberedDisk(), RunAnimationDemoLoop(), UpdateTrainSimHighScores(), ViewMedals(), WaitForInputKey(), WaitForStreamInputKey(), and WarnLoadGameFirst().
Definition at line 179 of file joystick.c.
References aInputDevSamples, nCurrentActiveInputDevice, SampleJoystickDevice(), and WaitForJoystickButtonPress().
Referenced by CalibrateJoystickInteractive(), and WaitForJoystickButtonPress().
Definition at line 167 of file joystick.c.
References aInputDevSamples, nCurrentActiveInputDevice, SampleJoystickDevice(), and WaitForJoystickButtonRelease().
Referenced by CalibrateJoystickInteractive(), and WaitForJoystickButtonRelease().
| void WaitForKeyAcknowledge | ( | int | mode | ) |
Definition at line 1225 of file main.c.
References ClearDebugPauseFlags(), FlushInputEvents(), IsInputEventQueued(), PumpMessagesDuringWait(), PumpWindowMessages(), and WaitForKeyAcknowledge().
Referenced by init_3Space_objects(), main(), ShowGamePausedBanner(), ShowModalMessage(), ShowOnScreenMessage(), and WaitForKeyAcknowledge().
| unsigned int WaitForKeyExceptXOrF12 | ( | void | ) |
Definition at line 20 of file pilot.cpp.
References bFilteredKeyDelayStartedState, bFilteredKeyWaitActive, ClearInputKeyState(), FlushInputEvents(), PumpMessagesDuringWait(), and WaitForKeyExceptXOrF12().
Referenced by init_3Space_objects(), and WaitForKeyExceptXOrF12().
Definition at line 452 of file music.c.
References bEscapePressedFlag, CheckEscaped(), nMusicPlaybackMode, nMusicTrackComplete, nMusicWaitForInput, nWaitForMusicEnabled, StopMusic(), StopMusicUnlessSuppressed(), and WaitForMusicOrInput().
Referenced by init_3Space_objects(), and WaitForMusicOrInput().
| void WaitForSceneAdvance | ( | short | duration, |
| short | unused ) |
Definition at line 509 of file disk.c.
References bInputModeState, CheckEscaped(), ClearInputKeyStatePreservingModifiers(), FlushInputEvents(), IsFrameTickElapsed(), PollInputEvent(), SetFrameTimerPeriodDirect(), void(), and WaitForSceneAdvance().
Referenced by CloseLook(), DebriefingEstablishingShot(), Dismissed(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), EstablishingShot(), landing(), LongTalk(), MedalEstablish(), PinMedal(), ReturnToBriefingLongShot(), scramble(), ShowCampaignVictorySequence(), ShowMeanwhileTransition(), UpdateMap(), and WaitForSceneAdvance().
| short WaitForStreamInputKey | ( | void | ) |
Definition at line 649 of file disk.c.
References bKeyEventQueueEnabled, WaitForInputKey(), and WaitForStreamInputKey().
Referenced by ConfirmAwakenAfterBadData(), ConfirmQuitWingCommander(), ConfirmReplaceFaultyData(), ReadTextInput(), and WaitForStreamInputKey().
Definition at line 158 of file mathfp.c.
References DIBwaitForVerticalBlank(), and WaitForVerticalBlankThunk().
Referenced by PanToScreen(), PlaySfxWaveFileByNumber(), RefreshMemoryStatusOverlay(), RestoreGamePalette(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowOffscreenBuffer(), and WaitForVerticalBlankThunk().
| int WarnLoadGameFirst | ( | void | ) |
Definition at line 527 of file barracks.c.
References EnterAllocationScope(), LeaveAllocationScope(), PollInputEvent(), ReleaseModalTextPanel(), ShowModalTextPanel(), WaitForInputKey(), and WarnLoadGameFirst().
Referenced by BarracksScreen(), ConfirmReplaceFaultyData(), SaveGameWithNamePrompt(), and WarnLoadGameFirst().
| unsigned int warp | ( | short | obj | ) |
Definition at line 87 of file targ.c.
References acObjOwnersTable, aeShipManeuversTable, aShipPositionsArray, aShipVelocity, asObjectCounterArray, bViewportDirty, ClearViewport(), cViewportClearColour, find_vacant_3d_object(), MANEUVER_WARPING_OUT, OBJECT_TYPE_HYPERSPACE_JUMP_FLASH, set_objects_data(), stSpaceBufferViewport, and warp().
Referenced by accelerate_and_jump(), init_3Space_objects(), and warp().
| void warp_arrival | ( | short | obj | ) |
Definition at line 559 of file brains.c.
References aeShipTacticArray, arrive_from_warp(), reset_tactic(), TACTIC_WARP_IN, and warp_arrival().
Referenced by capital_ship_intelligence(), ship_intelligence(), and warp_arrival().
| void __stdcall WarpMouseTo | ( | short | x, |
| short | y ) |
Definition at line 501 of file winmain.c.
References SetMouseHomePosition(), stHostMouseState, stMouseCursorState, WarpMouseTo(), MouseCursorState::x, and MouseCursorState::y.
Referenced by BarracksScreen(), CentreMouseOnCurrentNavObjective(), InflightComputer(), player_input(), process_player_input(), RecRoom(), RunSpaceFlight(), SelectTrainSimMission(), Title_Sequence(), and WarpMouseTo().
| short wing_status | ( | short | personality | ) |
Definition at line 926 of file screens.c.
References CampaignState::currentMission, CampaignState::currentSeries, CampaignState::personalityDeathMission, stCampaignState, and wing_status().
Referenced by DosMemcpy(), ParseTests(), and wing_status().
| short wingman_dead | ( | void | ) |
Definition at line 175 of file comm.c.
References nYourWingman, and wingman_dead().
Referenced by BuildCommunicationRecipientMenu(), CanOpenCommMenu(), PlaySfxWaveFileByNumber(), and wingman_dead().
| void wingman_mission | ( | short | obj | ) |
Definition at line 364 of file brains.c.
References aeShipSide, 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 559 of file winmain.c.
References AbortToDesktop(), bIxAudioEnabled, bMainWindowMinimized, CheckLauncherAndConfig(), CreateDebugOverlayConsole(), CreateMainWindow(), DestroyGlobalDebugOverlayConsole(), DIBunInstall(), hMainWindow, hSingleInstanceSemaphore, InitGameClockEpoch(), InitializeAudioStreamer(), InitializeAudioSystem(), main(), MonoDebug_install(), nSessionEndTime, nSessionStartTime, pCurrentEventManagerPump, PromptInsertCorrectCd(), ServiceAudioStream(), Streamer_close(), void(), and WinMain().
Referenced by WinMain().
| short within_field | ( | const HazardField * | field, |
| const FixedVector * | point ) |
Definition at line 288 of file winmain.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 255 of file geom.c.
References WrapDegrees().
Referenced by match_roll_orientation(), set_ship_rotation_goals(), and WrapDegrees().
| short __stdcall WriteDataFileAtOffset | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | length, | ||
| const void * | data ) |
Definition at line 29 of file mono.c.
References nPacketError, szWriteDataError, and WriteDataFileAtOffset().
Referenced by CreateEmptySaveGameFile(), SaveGame(), and WriteDataFileAtOffset().
| void WriteDebugString | ( | const char * | s | ) |
Definition at line 141 of file winsys.c.
References WriteDebugString().
Referenced by exit_squadron(), sound_effect(), SoundFxTick(), and WriteDebugString().
Definition at line 2200 of file ship.c.
References aeSpecialManeuvers, anShipFuelsTable, asShipAfterburnerTimer, fire_afterburner(), malf(), nAfterburnerSoundDeadline, nCurrentSpaceFrameValue, PlaySfxWaveFileByNumber(), SPECIAL_MANEUVER_AFTERBURNER, and your_afterburner().
Referenced by HandleSpaceFlightControls(), and your_afterburner().
| int your_internal_damage | ( | short | attacker, |
| short | damage, | ||
| short | quadrant ) |
Definition at line 794 of file ship.c.
References acPlayerComponentDamageList, acShipCommunicatorArray, acShipDestroyedWeaponCountArray, acShipDmg, aeObjectClass, aeObjectTypeList, anShipFuelsTable, aObjectTypeData, aShipWeaponsTable, asPlayerDamageSystemTable, asShipAccumulatedDmg, check_computer_damage(), cRedColour, damage_ion_drive(), damage_your_component(), drain_fuel(), explode(), 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 internal_damage(), and your_internal_damage().
| void zero_vector | ( | FixedVector * | vector | ) |
Definition at line 280 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(), cruise_home(), find_squad_center(), initialize_object(), initialize_scripted_view(), locate_ship(), new_view(), object_collision(), RenderSpaceViewFrame(), run_away(), set_eye_direction_and_position(), Set_up_ship_info(), SetFleetOverviewView(), ShowGameOverScreen(), ShowTigerClawEscapeScene(), and zero_vector().