Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
wc1funcs.h File Reference

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)

Detailed Description

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.

Function Documentation

◆ __copyline()

void __copyline ( void )

Definition at line 621 of file gr.c.

References __copyline(), and RasterLineHook().

Referenced by __copyline(), and CollectRasterClipColours().

◆ __wipeline()

void __wipeline ( void )

Definition at line 627 of file gr.c.

References __wipeline(), and RasterLineHook().

Referenced by __wipeline(), and CollectRasterClipColours().

◆ abandoned()

◆ AbortToDesktop()

◆ AbsInt()

int AbsInt ( int v)

Definition at line 217 of file geom.c.

References AbsInt().

Referenced by AbsInt(), and control_speed().

◆ accelerate()

void accelerate ( short amount)

◆ accelerate_and_jump()

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().

◆ accelerate_and_move_object()

◆ ace_greeting()

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().

◆ ace_status()

short ace_status ( short ace,
unsigned char bits )

◆ achieved()

short achieved ( short objective)

◆ add_hazard_field()

void add_hazard_field ( enum ObjectType type,
FixedVector center,
short radius,
short density )

◆ add_statistics()

void add_statistics ( short pilot,
short missions,
short kills )

◆ AddFixedVectors()

◆ AddPCName()

◆ AddRandomTrainSimHighScores()

◆ AddUniqueObjectiveNavLabel()

void AddUniqueObjectiveNavLabel ( short x,
short y,
unsigned short colour,
const char * text,
short objective,
short missionShip )

◆ advance()

◆ advance_canned_sequence()

◆ affect_mission_score()

unsigned int affect_mission_score ( short pilot,
int event,
short amount )

◆ alert_flag()

int alert_flag ( short ship,
unsigned int bits )

◆ align()

void align ( short * value,
short quantum )

Definition at line 190 of file winmain.c.

References align().

Referenced by align(), and init_hazard().

◆ AlignSpriteFrameToRectCorner()

void __stdcall AlignSpriteFrameToRectCorner ( const ShortRect * rectangle,
ShortPoint * position,
short corner,
struct Shape * shape,
short frame )

◆ AllocateActiveSoundEntry()

◆ AllocateFontWorkspace()

FontWorkspace ** AllocateFontWorkspace ( short fontIndex)

Definition at line 155 of file winsys.c.

References AllocateFontWorkspace().

Referenced by AllocateFontWorkspace(), and InitializeTextContextFromFont().

◆ AllocateGuardedMemory()

◆ AllocateInputEvent()

◆ AllocateNearHeapBlockByFlags()

◆ AllocateNearHeapBlockFromEnd()

◆ AllocateSmallMemoryBlock()

void * AllocateSmallMemoryBlock ( short size)

Definition at line 1141 of file eventmgr.c.

References AllocateSmallMemoryBlock().

Referenced by AllocateSmallMemoryBlock(), and DosMemcpy().

◆ AllocateTaggedMemory()

◆ AllocateUntaggedMemory()

void * AllocateUntaggedMemory ( unsigned int size)

Definition at line 648 of file eventmgr.c.

References AllocateTaggedMemory(), and AllocateUntaggedMemory().

Referenced by AllocateUntaggedMemory(), and DosMemcpy().

◆ AllocateViewport()

◆ AllocateWaveTableEntry()

◆ allow_engage()

void allow_engage ( void )

Definition at line 203 of file brains.c.

References allow_engage(), bEngageAllowed, and nAutoEngageTimer.

Referenced by allow_engage(), request(), and try2allow_engage().

◆ alter_objective()

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().

◆ alter_pitch()

◆ alter_roll()

void alter_roll ( short angle,
short obj )

◆ alter_tactic()

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().

◆ alter_yaw()

◆ analyze_kill()

unsigned int analyze_kill ( short attacker,
short victim )

◆ animate_object()

◆ animate_pilot()

◆ animate_shape()

◆ AnimateBarracks()

◆ AnimateScrambleWalk()

◆ AnimateTrainSimTitle()

◆ any_defense()

◆ any_enemy()

◆ any_enemy_tail()

◆ any_selected()

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().

◆ AnySavedGames()

short AnySavedGames ( void )

◆ AppendCommMenuChoice()

◆ AppendFormattedText()

void AppendFormattedText ( const char * format,
... )

◆ AppendGIFLZWDictionaryEntry()

void AppendGIFLZWDictionaryEntry ( void )

◆ AppendTextCharacter()

void __stdcall AppendTextCharacter ( char character)

◆ apply_force_to_object()

◆ apply_force_to_objects_center()

void apply_force_to_objects_center ( FixedVector * force,
short obj )

◆ ApplyAnswerTextCipher()

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().

◆ ApplyPackedMousePosition()

◆ ApplyRLEFramePalette()

void ApplyRLEFramePalette ( struct RLEShape * shape,
int frame,
unsigned char * palette )

References ApplyRLEFramePalette().

Referenced by ApplyRLEFramePalette().

◆ approach()

void approach ( short obj)

◆ approach_and_engage()

◆ approach_cruise_speed()

◆ approach_full_speed()

◆ approach_half_speed()

◆ approach_min_speed()

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().

◆ approach_ship_speed()

unsigned int approach_ship_speed ( short obj,
short other )

◆ approach_speed()

◆ approach_zero_speed()

unsigned int approach_zero_speed ( short ship)

◆ approve_xyz()

void approve_xyz ( short obj,
short minimum,
short maximum )

◆ ArcCos()

◆ ArcSin()

long ArcSin ( int value)

Definition at line 101 of file mathfp.c.

References ArcSin().

Referenced by ArcSin(), PlaySfxWaveFileByNumber(), and set_ship_rotation_goals().

◆ are_alive()

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().

◆ arrive_from_warp()

◆ asteroid_velocity()

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().

◆ attacker_in_range()

◆ auto_pilot_sequence()

void auto_pilot_sequence ( void )

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().

◆ auto_pilot_valid()

◆ auto_position()

◆ AwardCampaignMedal()

◆ bad_target()

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().

◆ BarracksScreen()

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().

◆ being_tailed()

int being_tailed ( short obj,
short other )

◆ BlitRasterClip()

int BlitRasterClip ( RasterClip * source,
int sourceX,
int sourceY,
RasterClip * destination,
int destinationX,
int destinationY,
unsigned int colour )

References BlitRasterClip().

Referenced by BlitRasterClip(), and CopyViewportContents().

◆ BlitRawFrame()

int BlitRawFrame ( RasterClip * clip,
int x,
int y,
unsigned char * shape,
int frame,
unsigned char * translation )

References BlitRawFrame().

Referenced by BlitRawFrame().

◆ BlitRawScanline()

int BlitRawScanline ( RasterClip * clip,
int y,
const unsigned char * pixels,
int width )

References BlitRawScanline().

Referenced by BlitRawScanline().

◆ BlitSelectedRawFrames()

void BlitSelectedRawFrames ( RasterClip * clip,
int x,
int y,
unsigned char * shape,
const unsigned char * frames,
unsigned char * translation )

◆ BlitViewportScanlineRuns()

◆ borrow_dust()

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().

◆ Briefing()

◆ BriefingMap_DisplayMap()

◆ BriefingMap_LoadShapes()

◆ Build_objective_list()

◆ build_squad_list()

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().

◆ build_target_list()

◆ build_your_target_list()

◆ BuildCommunicationCommandMenu()

◆ BuildCommunicationRecipientMenu()

◆ BuildMap()

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().

◆ CachePaletteEntryFromWords()

void CachePaletteEntryFromWords ( short index,
short * rgb )

◆ CalcRectangleArea()

short __stdcall CalcRectangleArea ( const Viewport * viewport)

◆ calculate_damage_level()

◆ CalculateRoundedRLEFixedProduct()

void CalculateRoundedRLEFixedProduct ( int left,
int right,
int * result )

◆ CalibrateJoystickInteractive()

◆ call_enemy()

◆ can_land()

◆ CanOpenCommMenu()

unsigned short CanOpenCommMenu ( void )

◆ capital_ship_intelligence()

◆ CaptureMouseCursorBackground()

◆ CaptureSpriteBackground()

◆ celerate()

unsigned int celerate ( short ship,
int delta )

◆ CentreMouseOnCurrentNavObjective()

◆ change_mission_type()

unsigned int change_mission_type ( short obj,
enum ShipMissionType missionType )

◆ changetrack()

◆ chase_location()

◆ chase_speed()

unsigned int chase_speed ( short obj,
short range )

◆ check_computer_damage()

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().

◆ check_destroy_target()

◆ check_engage_target()

◆ check_for_collision()

◆ check_for_lost_control()

◆ check_futurion()

unsigned int check_futurion ( short i)

◆ check_goal()

void check_goal ( short obj)

◆ check_hazards()

◆ check_message()

void check_message ( void )

Definition at line 789 of file cockpt.c.

References check_message(), EndCommMenu(), message_showing(), and nCurrentNoticeTimer.

Referenced by check_message(), and RenderSpaceViewFrame().

◆ check_next_wave()

◆ check_objectives()

◆ check_sighting()

void check_sighting ( short objective,
short range,
short object )

◆ check_stranded()

◆ check_target()

◆ check_visit()

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().

◆ CheckAllGuardedAllocations()

◆ CheckCursor()

void CheckCursor ( void )

◆ CheckEscaped()

◆ CheckHeapBlockSignature()

◆ CheckLauncherAndConfig()

◆ CheckPoint()

◆ CheckTargetLockMalfunction()

short CheckTargetLockMalfunction ( void )

◆ child_object()

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().

◆ ChooseRandomSignedMagnitude()

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().

◆ Chosen_communicate_option()

◆ ClampTo30()

void ClampTo30 ( short * p)

Definition at line 1150 of file geom.c.

References ClampTo30().

Referenced by apply_force_to_object(), ClampTo30(), and rotational_acceleration().

◆ ClampVectorTo30()

void ClampVectorTo30 ( short * p)

Definition at line 1137 of file geom.c.

References ClampVectorTo30().

Referenced by ClampVectorTo30(), and rotate_object().

◆ clean_up_cockpit()

◆ cleanup_objectives()

◆ clear_alert()

◆ clear_cockpit_damage()

void clear_cockpit_damage ( void )

Definition at line 2556 of file cockpt.c.

References anCockpitDamageState, and clear_cockpit_damage().

Referenced by clear_cockpit_damage(), and InitializeCockpitResources().

◆ clear_crash_cache()

void clear_crash_cache ( void )

Definition at line 295 of file logic.c.

References asCollisionPartnerTable, and clear_crash_cache().

Referenced by clear_crash_cache(), and update_objects_in_space().

◆ clear_head_up_display()

◆ clear_message_time()

void clear_message_time ( void )

Definition at line 770 of file cockpt.c.

References clear_message_time(), and nCurrentNoticeTimer.

Referenced by clear_message_time(), and EndCommMenu().

◆ clear_view_buffer()

◆ ClearDebugPauseFlags()

◆ ClearHudGunReadouts()

◆ ClearHudMessageIfMatching()

void ClearHudMessageIfMatching ( HudMessageSlot * slot,
const char * text )

◆ ClearHudMessageSlot()

◆ ClearInputKeyState()

◆ ClearInputKeyStatePreservingModifiers()

◆ ClearNextTextInputCharacter()

void ClearNextTextInputCharacter ( short character)

◆ ClearRoomMenuCursorFrame()

void ClearRoomMenuCursorFrame ( void )

◆ ClearRoomMenuLabel()

void ClearRoomMenuLabel ( void )

◆ ClearStreamerTrigger()

void ClearStreamerTrigger ( void )

◆ ClearTextInputCharacter()

◆ ClearViewport()

◆ ClipViewportToScreen()

◆ close_behind()

◆ CloseCommChoiceMenu()

◆ CloseDataFile()

◆ CloseDataFileByHandle()

void __stdcall CloseDataFileByHandle ( PacketSectionHandle * p)

◆ CloseLook()

◆ CloseTalk()

◆ cockpit_explosion()

◆ CockpitMessage()

void CockpitMessage ( const char * text,
unsigned short colour,
int flashCount )

◆ CollectActivePaletteIndices()

short __stdcall CollectActivePaletteIndices ( Viewport * viewport,
unsigned char * indices,
short capacity )

◆ CollectRasterClipColours()

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().

◆ CollectUniqueRLEImageFrames()

int CollectUniqueRLEImageFrames ( const struct RLEShape * shape,
unsigned int * frames )

◆ CollectUniqueRLEPaletteFrames()

int CollectUniqueRLEPaletteFrames ( const struct RLEShape * shape,
unsigned int * frames )

◆ coming_home()

◆ compute_formation_destination()

unsigned int compute_formation_destination ( short leader,
const ShortVector * offset,
FixedVector * destination )

◆ ComputeVectorDelta()

◆ ConfigureEventManagerPointer()

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().

◆ ConfigureScrambleActor()

◆ ConfirmAwakenAfterBadData()

◆ ConfirmQuitWingCommander()

◆ ConfirmReplaceFaultyData()

◆ control_speed()

unsigned int control_speed ( short obj,
unsigned short range,
int desiredSpeed )

◆ ConvertChar_Int()

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().

◆ ConvertFixedVectorToShortVector()

void ConvertFixedVectorToShortVector ( const FixedVector * source,
ShortVector * destination )

◆ ConvertShortVectorToFixedVector()

void ConvertShortVectorToFixedVector ( const ShortVector * source,
FixedVector * destination )

◆ copy_frame()

◆ CopyFarString()

char *__stdcall CopyFarString ( char * destination,
const char * source )

Definition at line 55 of file strdos.c.

References CopyFarString().

Referenced by CopyFarString(), and PlaySfxWaveFileByNumber().

◆ CopyGIFPalette()

void CopyGIFPalette ( const unsigned char * gifData,
unsigned char * palette )

References CopyGIFPalette().

Referenced by CopyGIFPalette().

◆ CopyILBMPalette()

void CopyILBMPalette ( const unsigned char * iffData,
unsigned char * palette )

References CopyILBMPalette().

Referenced by CopyILBMPalette().

◆ CopyPCXPaletteFromFileTail()

void CopyPCXPaletteFromFileTail ( const unsigned char * fileData,
unsigned int fileSize,
unsigned char * palette )

◆ CopyRasterDriverName()

char * CopyRasterDriverName ( void *const * callbacks)

References CopyRasterDriverName().

Referenced by CopyRasterDriverName().

◆ CopyRLEFramePalette()

unsigned int CopyRLEFramePalette ( struct RLEShape * shape,
int frame,
unsigned char * entries )

References CopyRLEFramePalette().

Referenced by CopyRLEFramePalette().

◆ CopyTrainSimPilotViewToRightVdu()

◆ CopyViewportContents()

◆ CorrectPointers()

◆ CosFixed()

◆ count_down()

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().

◆ crash_time()

short crash_time ( short obj,
short other )

◆ Create_explosion_debris()

◆ Create_ship_hit_debris()

◆ CreateCannedSceneObject()

void CreateCannedSceneObject ( short * object,
short yaw,
short unusedPitch,
short distance,
struct Shape * shape,
short frame,
short type,
short scale )

◆ CreateDataFile()

short __stdcall CreateDataFile ( const char * path)

Definition at line 47 of file mono.c.

References CreateDataFile(), nPacketError, and szDataCreateError.

Referenced by CreateDataFile(), and CreateEmptySaveGameFile().

◆ CreateDebugOverlayConsole()

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().

◆ CreateEmptySaveGameFile()

void CreateEmptySaveGameFile ( void )

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().

◆ CreateMainWindow()

int CreateMainWindow ( HINSTANCE instance,
HINSTANCE previous,
int showCommand )

◆ cruise_home()

◆ cruise_to_destination()

◆ cycle_next_objective()

◆ cycle_onscreen_targets()

◆ damage_ion_drive()

void damage_ion_drive ( short ship,
short amount,
short maximum )

◆ damage_your_component()

int damage_your_component ( char component,
char amount,
char maximum )

◆ dead_ship()

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().

◆ death_sequence()

◆ DeBriefing()

◆ DebriefingEstablishingShot()

◆ DebugKeyboardHookProc()

LRESULT CALLBACK DebugKeyboardHookProc ( int code,
WPARAM key,
LPARAM flags )

◆ DebugOverlayPrintf()

◆ DebugOverlayWorkerProc()

◆ DecodeIFFImage()

unsigned int DecodeIFFImage ( RasterClip * clip,
const unsigned char * iffData )

References DecodeIFFImage().

Referenced by DecodeIFFImage().

◆ DecodePCXImage()

unsigned int DecodePCXImage ( RasterClip * clip,
const unsigned char * pcxData )

References DecodePCXImage().

Referenced by DecodePCXImage().

◆ DecodeShapeFrame()

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().

◆ DecompressPacketSection()

◆ decrement_lock_time()

◆ defend_mission()

◆ destroyer_intelligence()

◆ DestroyGlobalDebugOverlayConsole()

void DestroyGlobalDebugOverlayConsole ( void )

◆ detect_collisions()

short detect_collisions ( short obj)

◆ detect_enemy_tail()

◆ determine_pilot_hand()

void determine_pilot_hand ( void )

◆ DIBcascade()

int DIBcascade ( int mode,
int * reportedResult )

◆ DIBdestroyDIB()

◆ DIBerror()

◆ DIBinstall()

◆ DIBmakeDIB()

◆ DIBpositionWindow()

◆ DIBramPalette()

void DIBramPalette ( void )

◆ DIBreInstall()

◆ DIBsetPalette()

void DIBsetPalette ( short index,
short * rgb )

◆ DIBslam()

void DIBslam ( void )

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().

◆ DIBslamReal()

void DIBslamReal ( void )

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().

◆ DIBunInstall()

◆ DIBupdate()

void DIBupdate ( int left,
int top,
int right,
int bottom )

◆ DIBwaitForVerticalBlank()

void DIBwaitForVerticalBlank ( void )

◆ DIBwholePaletteFromTriplets()

void DIBwholePaletteFromTriplets ( unsigned char * palette)

◆ DIBwholePaletteFromWords()

void DIBwholePaletteFromWords ( short * palette)

◆ difficulty()

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().

◆ DirectDrawResultToText()

char * DirectDrawResultToText ( int result)

Definition at line 924 of file dib.c.

References DirectDrawResultToText().

Referenced by DIBerror(), DirectDrawResultToText(), and PlaySfxWaveFileByNumber().

◆ disallow_engage()

void disallow_engage ( void )

Definition at line 197 of file brains.c.

References bEngageAllowed, and disallow_engage().

Referenced by disallow_engage(), and request().

◆ DiskPromptDrawHook()

void DiskPromptDrawHook ( void )

Definition at line 224 of file pilot.cpp.

References DiskPromptDrawHook().

Referenced by DiskPromptDrawHook(), init_3Space_objects(), and PromptInsertNumberedDisk().

◆ Dismissed()

◆ disobey_formation()

int disobey_formation ( short ship)

◆ DisplayTrainSimHighScoreTable()

◆ dist_from_home()

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().

◆ distance_between_points()

short distance_between_points ( const FixedVector * from,
const FixedVector * to )

◆ distance_from_object()

◆ distance_from_point()

◆ divide_vector()

◆ DivideFixed()

◆ DosFarPtrToNear()

unsigned int __stdcall DosFarPtrToNear ( void * v)

◆ DosMemcpy()

void __stdcall DosMemcpy ( void * dst,
const void * src,
unsigned short n )

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().

◆ DosMemset()

void __stdcall DosMemset ( void * destination,
unsigned int count,
short value )

Definition at line 73 of file strdos.c.

References DosMemset().

Referenced by DosMemcpy(), and DosMemset().

◆ DosNearPtrToFar()

◆ DosStrcat()

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().

◆ DosStrchr()

char *__stdcall DosStrchr ( const char * s,
short c )

◆ DosStrcpy()

◆ DosStrlen()

short __stdcall DosStrlen ( const char * s)

◆ DosStrrchr()

char *__stdcall DosStrrchr ( char * s,
short c )

Definition at line 37 of file strdos.c.

References DosStrrchr().

Referenced by DosStrrchr(), and PlaySfxWaveFileByNumber().

◆ dot_product()

◆ drain_fuel()

void drain_fuel ( short ship,
short amount )

◆ draw_3d_scanner()

◆ Draw_3Space_Frame()

◆ draw_cockpit_lights()

◆ draw_nav_pointer()

◆ draw_sorted_objects_to_buffer()

◆ draw_target_box()

◆ DrawArcadeScorePanel()

void DrawArcadeScorePanel ( short x,
short y )

◆ DrawBarracksBunks()

◆ DrawBarracksStaticDetails()

void DrawBarracksStaticDetails ( Viewport * viewport,
struct Shape * shape )

◆ DrawBriefingCharacter()

unsigned int DrawBriefingCharacter ( short character,
short pose,
short animationFrame,
const signed char * unusedXOffsets,
const signed char * unusedYOffsets )

◆ DrawBriefingLongShot()

◆ DrawCalculatingLabel()

◆ DrawCenteredScaledIntroText()

int DrawCenteredScaledIntroText ( const char * text,
short centreX,
short baselineY,
short scale )

◆ DrawClippedLine()

unsigned int DrawClippedLine ( RasterClip * clip,
int x1,
int y1,
int x2,
int y2,
int mode,
int colour )

◆ DrawCockpitReadout()

◆ DrawConstellationField()

◆ DrawDebriefingLongShot()

◆ DrawFilledViewportRect()

◆ DrawFontGlyph()

◆ DrawFormattedText()

◆ DrawFuneralLongShot()

◆ DrawHudMessageSlot()

◆ DrawLaunchDoorFrame()

◆ DrawMedalChest()

◆ DrawMedalLongShot()

◆ DrawMedals()

◆ DrawModalTextPanel()

void DrawModalTextPanel ( ModalTextPanel * panel,
short x,
short y,
unsigned char alignment,
const char * format,
... )

◆ DrawMouseCursor()

◆ DrawNavCrossMarker()

void DrawNavCrossMarker ( short x,
short y,
short size,
short shadow,
unsigned short colour,
short reserve )

◆ DrawNavHazardMarker()

void DrawNavHazardMarker ( FixedVector navPosition,
FixedVector offset,
short size,
unsigned short markerColour,
unsigned short textColour,
const char * text )

◆ DrawNavLocationReadout()

◆ DrawNavMapLabels()

void DrawNavMapLabels ( void )

Definition at line 303 of file nav.c.

References aNavMapLabels, DrawFormattedText(), DrawNavMapLabels(), and nNavMapLabelCount.

Referenced by BuildMap(), and DrawNavMapLabels().

◆ DrawNavMapLegend()

◆ DrawNavPlayerMarker()

◆ DrawNavRectangleMarker()

void DrawNavRectangleMarker ( short x,
short y,
short size,
short shadow,
unsigned short colour,
short reserve )

◆ DrawNavSquareMarker()

void DrawNavSquareMarker ( short x,
short y,
short size,
short shadow,
short colour,
short reserve )

◆ DrawNavSquareOutline()

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().

◆ DrawNavTextLine()

void DrawNavTextLine ( unsigned char alignment,
unsigned short colour,
const char * format,
... )

◆ DrawNavTriangleMarker()

void DrawNavTriangleMarker ( short x,
short y,
short size,
short shadow,
unsigned short colour,
short reserve )

◆ DrawNavTriangleOutline()

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().

◆ DrawPendingCockpitDamage()

◆ DrawPilotHandFrame()

◆ DrawPodiumShot()

◆ DrawRasterEllipse()

unsigned int DrawRasterEllipse ( RasterClip * clip,
int x,
int y,
int horizontalRadius,
int verticalRadius,
int colour )

◆ DrawRLEImage()

int DrawRLEImage ( RasterClip * clip,
struct RLEShape * shape,
int frame,
int x,
int y )

References DrawRLEImage().

Referenced by DrawRLEImage().

◆ DrawRLEImageColor()

int DrawRLEImageColor ( RasterClip * clip,
struct RLEShape * shape,
int frame,
int x,
int y )

References DrawRLEImageColor().

Referenced by DrawRLEImageColor().

◆ DrawRLEImageColorUnclipped()

int DrawRLEImageColorUnclipped ( RasterClip * clip,
RLEFrameHeader * frameHeader,
int x,
int y,
int strideScratch )

◆ DrawRLEImageUnclipped()

int DrawRLEImageUnclipped ( RasterClip * clip,
RLEFrameHeader * frameHeader,
int x,
int y,
int strideScratch )

◆ DrawRoomMenuLabel()

void DrawRoomMenuLabel ( TextContext * context,
const char * label )

◆ DrawScrambleActor()

◆ DrawScrambleFrame()

◆ DrawSelectedNavLegendEntry()

void DrawSelectedNavLegendEntry ( const char * text,
short navPoint )

◆ DrawShapeFrameScaled()

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().

◆ DrawSolidColourSprite()

void DrawSolidColourSprite ( Viewport * viewport,
short x,
short y,
struct Shape * shape,
short frame,
short colour )

◆ DrawSolidColourSpriteScaled()

void DrawSolidColourSpriteScaled ( Viewport * viewport,
short x,
short y,
struct Shape * shape,
short frame,
short angle,
short scale,
short flip,
short colour )

◆ DrawSpriteDefault()

void DrawSpriteDefault ( Viewport * viewport,
short x,
short y,
struct Shape * shape,
short frame )

◆ DrawSpriteScaled()

◆ DrawSpriteTransformed()

◆ DrawTargetRangeReadout()

◆ DrawTextAt()

◆ DrawTextCharacter()

◆ DrawTextInputCursor()

◆ DrawTextString()

◆ DrawTitleLogo()

void DrawTitleLogo ( short distance,
short y )

◆ DrawViewportBorder()

◆ DrawViewportEllipse()

void DrawViewportEllipse ( Viewport * viewport,
short x,
short y,
short verticalRadius,
short horizontalRadius,
short colour )

◆ DrawViewportEllipseShadow()

void DrawViewportEllipseShadow ( Viewport * viewport,
short x,
short y,
short verticalRadius,
short horizontalRadius,
short colour )

◆ DrawViewportLine()

◆ DrawViewportPixel()

◆ DrawViewportPolygonHook()

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().

◆ drop_mine()

int drop_mine ( short obj,
signed char weapon,
enum ObjectType type,
short lifetime )

◆ drop_player_mine()

int drop_player_mine ( short obj)

◆ dump_buffer_to_screen()

◆ easy2see()

◆ ejection_sequence()

◆ EmitGIFDecodedPixel()

void EmitGIFDecodedPixel ( void )

References EmitGIFDecodedPixel().

Referenced by EmitGIFDecodedPixel().

◆ EmitRLEScanlineRun()

void EmitRLEScanlineRun ( int runType,
int trailingCount,
int sourceX )

References EmitRLEScanlineRun().

Referenced by EmitRLEScanlineRun().

◆ EmitTextString()

void EmitTextString ( void(__stdcall *  writer)(int),
const char * text )

Definition at line 107 of file cockpt.c.

References EmitTextString().

Referenced by EmitTextString(), and FormatTextTokens().

◆ EMShutDown()

unsigned int EMShutDown ( void )

Definition at line 89 of file init.c.

References EMShutDown(), nEventManagerActive, and ShutdownEventManager().

Referenced by EMShutDown(), and LogMemoryUsage().

◆ EMStartUp()

◆ EnableMusicForScene()

void EnableMusicForScene ( void )

Definition at line 700 of file music.c.

References EnableMusicForScene(), nWaitForMusicEnabled, and SetMusicOn().

Referenced by EnableMusicForScene(), and init_3Space_objects().

◆ EncodeRasterClipToRLEFrame()

int EncodeRasterClipToRLEFrame ( RasterClip * clip,
unsigned char transparentColour,
int originX,
int originY,
unsigned char * output )

◆ EncodeRLEScanline()

void EncodeRLEScanline ( int pixelCount,
unsigned char transparentColour,
int sourceX )

References EncodeRLEScanline().

Referenced by EncodeRLEScanline().

◆ EndCommMenu()

◆ EndCommSessionWithWingman()

◆ engage()

◆ EnsureSaveGameFile()

◆ EnterAllocationScope()

◆ EnterPilotNameAndCallsign()

◆ equ_vector()

int equ_vector ( const FixedVector * left,
const FixedVector * right )

◆ EraseCockpitReadoutAtPosition()

void EraseCockpitReadoutAtPosition ( signed char slot,
short left,
short top )

◆ EraseCockpitReadoutRegion()

void EraseCockpitReadoutRegion ( Viewport * viewport,
short left,
short top,
short right,
short bottom,
short colour )

◆ EraseLastTextInputCharacter()

◆ EraseTextContextBackground()

◆ escort_buddy()

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().

◆ escort_mission()

◆ escorting_a_ship()

short escorting_a_ship ( void )

◆ EstablishingShot()

◆ evaluate_damage()

◆ EventManagerControlHook()

void EventManagerControlHook ( void )

Definition at line 134 of file strdos.c.

References EventManagerControlHook().

Referenced by DosMemcpy(), and EventManagerControlHook().

◆ EventManagerHook()

void __stdcall EventManagerHook ( void(* callback )(void))

◆ exit_squadron()

◆ ExitCleanupHook()

void ExitCleanupHook ( void )

Definition at line 1199 of file eventmgr.c.

References ExitCleanupHook().

Referenced by DosMemcpy(), ExitCleanupHook(), and main().

◆ ExpandCommMessageTokens()

◆ ExpandGIFLZWImage()

unsigned int ExpandGIFLZWImage ( RasterClip * clip,
const unsigned char * gifData,
void * workspace )

References ExpandGIFLZWImage().

Referenced by ExpandGIFLZWImage().

◆ explode()

◆ Explosion()

◆ explosion_draw()

◆ explosion_shock_wave()

◆ extra_hazard()

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().

◆ facing_to_object()

short facing_to_object ( short obj,
FixedVector * point )

◆ FadeFlightPaletteEntry()

unsigned int FadeFlightPaletteEntry ( short * entry)

Definition at line 496 of file main.c.

References FadeFlightPaletteEntry().

Referenced by FadeFlightPaletteEntry(), house_keep(), and init_3Space_objects().

◆ FadeMusic()

void FadeMusic ( void )

Definition at line 102 of file music.c.

References FadeMusic(), and SoundDebugPrintf().

Referenced by FadeMusic(), and init_3Space_objects().

◆ FadeRasterPaletteToPalette()

void FadeRasterPaletteToPalette ( RasterSurface * surface,
const unsigned char * targetPalette,
unsigned int duration )

◆ FadeViewportPaletteToColour()

◆ fail()

◆ FatalErrorAndExit()

void FatalErrorAndExit ( const char * format,
... )

◆ FetchDiskPacketRetrying()

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().

◆ FF_missile_intelligence()

◆ FigureArcadeTime()

void FigureArcadeTime ( void )

◆ FillFixedVectorWithRandomComponents()

void FillFixedVectorWithRandomComponents ( short limit,
FixedVector * vector )

◆ FillGraphicSuffix()

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().

◆ FillRasterBytes()

void __stdcall FillRasterBytes ( void * destination,
unsigned int length,
short value )

Definition at line 1869 of file screens.c.

References FillRasterBytes().

Referenced by DosMemcpy(), and FillRasterBytes().

◆ FillRasterClip()

int FillRasterClip ( RasterClip * clip,
int colour )

References FillRasterClip().

Referenced by ClearViewport(), and FillRasterClip().

◆ FillRasterClipCheckerboard()

int FillRasterClipCheckerboard ( RasterClip * clip,
int left,
int top,
int right,
int bottom,
unsigned char colour )

◆ FillRasterEllipse()

unsigned int FillRasterEllipse ( RasterClip * clip,
int x,
int y,
int horizontalRadius,
int verticalRadius,
int colour )

◆ FillViewportEllipse()

void FillViewportEllipse ( Viewport * viewport,
short x,
short y,
short verticalRadius,
short horizontalRadius,
short colour )

◆ find_child_object()

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().

◆ find_child_ship()

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().

◆ find_next_gun()

short find_next_gun ( short obj,
enum ObjectType currentGun )

◆ find_next_ship_turn_slot()

unsigned int find_next_ship_turn_slot ( short obj)

◆ find_objective()

short find_objective ( int type,
short index )

◆ find_ratio()

short find_ratio ( short inputMinimum,
short inputMaximum,
short input,
short outputMinimum,
short outputMaximum )

◆ find_ship_index()

◆ find_ships_sphere()

short find_ships_sphere ( short missionShip)

◆ find_squad_center()

unsigned int find_squad_center ( FixedVector * center)

◆ find_vacant_3d_object()

◆ find_weapon()

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().

◆ FindActiveSoundEntryBySample()

◆ FindCdRomDriveByVolumeLabel()

char FindCdRomDriveByVolumeLabel ( const char * label,
const char * directory )

◆ FindIFFChunkData()

unsigned char * FindIFFChunkData ( const char * chunkId,
const unsigned char * iffData )

References FindIFFChunkData().

Referenced by FindIFFChunkData().

◆ FindMenuRegionAtPoint()

int FindMenuRegionAtPoint ( short x,
short y,
const TitleMenuRegion * regions )

◆ FindNearestNavPoint()

◆ FindSceneAnimationCommand()

signed char *__stdcall FindSceneAnimationCommand ( signed char * script,
signed char command )

◆ FindTrainSimHighScore()

◆ FindWaveTableEntryByName()

WaveTableEntry * FindWaveTableEntryByName ( const char * name)

◆ FinishPacketDecompressionHook()

void FinishPacketDecompressionHook ( void )

◆ fire()

◆ fire_afterburner()

◆ fire_computer_graphic_missile()

◆ fire_fixed_projectile_weapon()

◆ fire_flack()

int fire_flack ( short owner,
short explosion,
short range,
FixedVector * aim )

◆ fire_missile()

◆ fire_players_lasers()

◆ fire_super_brake()

unsigned int fire_super_brake ( short ship)

◆ fire_turrets()

◆ fire_weapon()

◆ fire_when_ready()

void fire_when_ready ( short obj,
short aimed )

◆ fix_objects_ijk()

◆ fix_velocity()

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().

◆ FixedToShortSaturating()

◆ fizzle_fade()

void fizzle_fade ( Viewport * source,
Viewport * destination )

Definition at line 1322 of file gr.c.

References DIBslam(), fizzle_fade(), Viewport::pixels, RasterLineHook(), stScreenView, and void().

Referenced by CollectRasterClipColours(), and fizzle_fade().

◆ flag_ace()

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().

◆ flag_objective()

void flag_objective ( short objective,
unsigned char flags )

◆ flag_reached()

◆ flip_angle()

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().

◆ FlushInputEvents()

◆ FlushSoundEffect()

void FlushSoundEffect ( void )

Definition at line 137 of file music.c.

References FlushSoundEffect(), SoundDebugPrintf(), and stop_all_sounds().

Referenced by FlushSoundEffect(), and init_3Space_objects().

◆ FlushSoundEffects()

◆ FlushSoundEffectsAndLog()

◆ FontHeight()

◆ force_view()

◆ ForceStreamerTrigger()

◆ formation_break()

◆ formation_burst()

◆ FormatNavCoordinates()

void FormatNavCoordinates ( unsigned char * out)

Definition at line 621 of file nav.c.

References FormatNavCoordinates(), and SplitGameClockTicks().

Referenced by FormatNavCoordinates(), and InflightComputer().

◆ FormatTextBufferFromStart()

◆ FormatTextTokens()

◆ FrameStartHook()

void FrameStartHook ( int mode)

Definition at line 444 of file screen.c.

References FrameStartHook(), and TimerResetHook().

Referenced by FrameStartHook(), GameFlow(), main(), and PlaySfxWaveFileByNumber().

◆ FrameTimerCallback()

void CALLBACK FrameTimerCallback ( UINT timerId,
UINT message,
DWORD user,
DWORD first,
DWORD second )

◆ free_3Space()

◆ free_3Space_objects()

◆ free_all_slots()

◆ free_cockpit()

◆ free_constellation()

◆ free_inflight_music()

◆ free_pilot_talk()

void free_pilot_talk ( short personality)

◆ free_ship()

◆ free_viewport()

◆ FreeBarracksMenuLabel()

void FreeBarracksMenuLabel ( char ** label)

◆ FreeBarracksMenuLabels()

◆ FreeCommDisplayResources()

◆ FreeConstellationObject()

unsigned int FreeConstellationObject ( short object)

◆ FreeFontWorkspace()

void FreeFontWorkspace ( FontWorkspace ** workspace)

Definition at line 174 of file winsys.c.

References FreeFontWorkspace().

Referenced by FreeFontWorkspace(), and ReleaseTextFont().

◆ FreeGuardedAllocation()

◆ FreeIfNotNull()

void FreeIfNotNull ( void * p)

Definition at line 1147 of file eventmgr.c.

References FreeIfNotNull().

Referenced by DosMemcpy(), FreeIfNotNull(), InitializeNearHeap(), and ShutdownNearHeap().

◆ FreePacketAndClear()

◆ FreeShapeSet()

int FreeShapeSet ( PacketResourceDescriptor * resources,
unsigned short releaseFlags )

◆ FreeTalker()

unsigned int FreeTalker ( void )

◆ FreeWaveTable()

◆ FullMissionScore()

◆ funeral_player()

◆ funeral_sequence()

unsigned int funeral_sequence ( int playerFuneral)

◆ funeral_wingman()

◆ futurion_intelligence()

◆ FxDriverShutdownHook()

void FxDriverShutdownHook ( void )

Definition at line 23 of file install.c.

References FxDriverShutdownHook().

Referenced by FxDriverShutdownHook(), init_3Space_objects(), and LoadOriginFxDrivers().

◆ GameFlow()

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().

◆ gametrack()

◆ general_zig()

void general_zig ( short ship,
short target,
short pitch )

◆ generate_stars()

◆ get_color()

◆ get_face()

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().

◆ get_facing_range_from_object()

◆ get_facing_range_from_point()

◆ get_first_follow_point()

unsigned int get_first_follow_point ( short obj,
FixedVector * point )

◆ get_follow_point()

◆ get_front_spot()

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().

◆ get_mode()

◆ get_pilot_talk()

◆ get_player_input()

◆ get_rear_spot()

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().

◆ get_right_shape()

◆ get_shape_slot()

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().

◆ get_ship_max_velocity()

◆ get_ship_slot()

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().

◆ GetApplicationInstance()

HINSTANCE GetApplicationInstance ( void )

Definition at line 1032 of file winmain.c.

References GetApplicationInstance(), and hCurrentAppInstance.

Referenced by GetApplicationInstance().

◆ GetArcadeBonus()

◆ GetBunkInfo()

◆ GetControlKeyState()

int GetControlKeyState ( void )

◆ GetCurrentDiskDriveHook()

short GetCurrentDiskDriveHook ( void )

Definition at line 1181 of file eventmgr.c.

References GetCurrentDiskDriveHook().

Referenced by DosMemcpy(), GetCurrentDiskDriveHook(), main(), and OpenDiskDataFile().

◆ GetDIBPixelBuffer()

unsigned char * GetDIBPixelBuffer ( void )

◆ GetDIBWindowHandle()

HWND GetDIBWindowHandle ( void )

Definition at line 740 of file dib.c.

References GetDIBWindowHandle(), and hDIBParentWindow.

Referenced by GetDIBWindowHandle(), and PlaySfxWaveFileByNumber().

◆ GetEventManagerStatus()

unsigned short GetEventManagerStatus ( void )

Definition at line 79 of file strdos.c.

References GetEventManagerStatus().

Referenced by DosMemcpy(), GetEventManagerStatus(), and LoadOriginFxDrivers().

◆ GetF1KeyLatch()

unsigned int GetF1KeyLatch ( void )

Definition at line 817 of file winmain.c.

References bF1KeyLatch, and GetF1KeyLatch().

Referenced by GetF1KeyLatch(), and HandleSpaceFlightControls().

◆ GetFixedOneMillion()

unsigned int GetFixedOneMillion ( void )

Definition at line 692 of file eventmgr.c.

References GetFixedOneMillion().

Referenced by DosMemcpy(), GetFixedOneMillion(), and GetFixedOneMillionThunk().

◆ GetFixedOneMillionAlt()

unsigned int GetFixedOneMillionAlt ( void )

Definition at line 698 of file eventmgr.c.

References GetFixedOneMillionAlt().

Referenced by DosMemcpy(), GetFixedOneMillionAlt(), and GetFixedOneMillionThunkAlt().

◆ GetFixedOneMillionThunk()

unsigned int GetFixedOneMillionThunk ( short memoryType)

◆ GetFixedOneMillionThunkAlt()

◆ GetFontCharWidth()

unsigned short __stdcall GetFontCharWidth ( char i)

◆ GetFreeNearHeapBytes()

◆ GetFxDriverInitResult()

unsigned int GetFxDriverInitResult ( void )

Definition at line 305 of file init.c.

References GetFxDriverInitResult().

Referenced by GetFxDriverInitResult(), and LoadOriginFxDrivers().

◆ GetFxDriverStatus()

unsigned int GetFxDriverStatus ( void )

Definition at line 317 of file init.c.

References GetFxDriverStatus().

Referenced by GetFxDriverStatus(), and LoadOriginFxDrivers().

◆ GetGameClockTicks()

unsigned int GetGameClockTicks ( void )

Definition at line 129 of file winsys.c.

References dwGameClockBaseValue, and GetGameClockTicks().

Referenced by GetGameClockTicks(), and SplitGameClockTicks().

◆ GetGIFImageSize()

unsigned int GetGIFImageSize ( const unsigned char * gifData)

References GetGIFImageSize().

Referenced by GetGIFImageSize().

◆ GetHighScoreEntry()

unsigned char * GetHighScoreEntry ( short i)

◆ GetHighScoreValue()

unsigned int GetHighScoreValue ( short i)

◆ GetILBMImageSize()

unsigned int GetILBMImageSize ( const unsigned char * iffData)

References GetILBMImageSize().

Referenced by GetILBMImageSize().

◆ GetJoystickButtonEdge()

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().

◆ GetJoystickButtons()

short GetJoystickButtons ( void )

Definition at line 1005 of file winmain.c.

References aJoystickInfos, and GetJoystickButtons().

Referenced by GetJoystickButtons(), and ReadJoystickButtons().

◆ GetJoystickDevCaps()

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().

◆ GetJoystickPosition()

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().

◆ GetJoystickPresentUnused()

unsigned short GetJoystickPresentUnused ( void )

Definition at line 276 of file damage.c.

References GetJoystickPresentUnused().

Referenced by GetJoystickPresentUnused(), and init_3Space_objects().

◆ GetKeyboardModifiers()

unsigned int GetKeyboardModifiers ( void )

◆ GetLineLength()

short GetLineLength ( const char * text)

Definition at line 159 of file mono.c.

References GetLineLength(), GetShapeFrameExtent(), and pIntroFont.

Referenced by GetLineLength(), and print_subtitle().

◆ GetMainWindowDeviceContext()

HDC GetMainWindowDeviceContext ( void )

Definition at line 1048 of file winmain.c.

References GetMainWindowDeviceContext(), and hMainWindowDC.

Referenced by GetMainWindowDeviceContext().

◆ GetMainWindowHandle()

HWND GetMainWindowHandle ( void )

Definition at line 1040 of file winmain.c.

References GetMainWindowHandle(), and hMainWindow.

Referenced by GetMainWindowHandle().

◆ GetMessagePumpResult()

unsigned int GetMessagePumpResult ( void )

Definition at line 311 of file init.c.

References GetMessagePumpResult().

Referenced by GetMessagePumpResult(), and LogMemoryUsage().

◆ GetMouseCursorPosition()

void __stdcall GetMouseCursorPosition ( ShortPoint * point)

◆ GetMusicDriverPresent()

unsigned short GetMusicDriverPresent ( short mode)

Definition at line 65 of file geom.c.

References GetMusicDriverPresent().

Referenced by GetMusicDriverPresent(), and LoadOriginFxDrivers().

◆ GetMusicMode()

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().

◆ GetMusicStreamVolume()

unsigned int GetMusicStreamVolume ( void )

◆ GetNavRangeSentinel()

unsigned short GetNavRangeSentinel ( void )

Definition at line 1102 of file eventmgr.c.

References GetNavRangeSentinel().

Referenced by DosMemcpy(), GetNavRangeSentinel(), and InitializeNearHeap().

◆ GetNextInputEvent()

◆ GetOriginalFreeMemory()

unsigned short GetOriginalFreeMemory ( void )

◆ GetPacketDecompressionResult()

unsigned int GetPacketDecompressionResult ( void * packet)

◆ GetPacketSize()

◆ GetPaletteEntry()

void __stdcall GetPaletteEntry ( short index,
short * rgb )

◆ GetPaletteEntryAsWords()

void GetPaletteEntryAsWords ( short i,
short * rgb )

◆ GetPaletteReadyUnused()

unsigned short GetPaletteReadyUnused ( void )

Definition at line 72 of file title.c.

References GetPaletteReadyUnused().

Referenced by GetPaletteReadyUnused().

◆ GetPCXImageSize()

unsigned int GetPCXImageSize ( const unsigned char * header)

References GetPCXImageSize().

Referenced by GetPCXImageSize().

◆ GetPendingMenuAction()

short GetPendingMenuAction ( void )

◆ GetPreparedShapeData()

struct RLEShape * GetPreparedShapeData ( struct Shape * shape)

◆ GetRawFrameWidth()

unsigned int GetRawFrameWidth ( unsigned char * shape,
int frame )

References GetRawFrameWidth().

Referenced by GetRawFrameWidth().

◆ GetRawImageHeight()

unsigned int GetRawImageHeight ( unsigned char * shape)

References GetRawImageHeight().

Referenced by GetRawImageHeight().

◆ GetRectHeight()

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().

◆ GetRLEFrameBounds()

unsigned int GetRLEFrameBounds ( struct RLEShape * shape,
int frame,
int x,
int y,
unsigned int flags,
int * bounds )

References GetRLEFrameBounds().

Referenced by GetRLEFrameBounds().

◆ GetRLEFrameCount()

unsigned int GetRLEFrameCount ( const struct RLEShape * shape)

References GetRLEFrameCount().

Referenced by GetRLEFrameCount().

◆ GetRLEFrameDimensions()

unsigned int GetRLEFrameDimensions ( struct RLEShape * shape,
int frame )

◆ GetRLEFrameExtents()

unsigned int GetRLEFrameExtents ( struct RLEShape * shape,
int frame )

References GetRLEFrameExtents().

Referenced by GetRLEFrameExtents().

◆ GetRLEImageOrigin()

unsigned int GetRLEImageOrigin ( struct RLEShape * shape,
int frame )

References GetRLEImageOrigin().

Referenced by GetRLEImageOrigin().

◆ GetRLEImageSize()

unsigned int GetRLEImageSize ( struct RLEShape * shape,
int frame )

References GetRLEImageSize().

Referenced by GetRLEImageSize().

◆ GetRLETransformTrig()

void GetRLETransformTrig ( int angleTenths,
int * cosine,
int * sine )

References GetRLETransformTrig().

Referenced by GetRLETransformTrig().

◆ GetScreenUpdateFlag()

◆ GetShapeFrameBounds()

short __stdcall GetShapeFrameBounds ( short * bounds,
short x,
short y,
struct Shape * shape,
short frame )

◆ GetShapeFrameCorners()

void GetShapeFrameCorners ( unsigned char * shape,
int frame,
int x,
int y,
ShortPoint * corners,
int * cornerCount )

◆ GetShapeFrameCount()

short __stdcall GetShapeFrameCount ( struct Shape * shape)

◆ GetShapeFrameExtent()

short __stdcall GetShapeFrameExtent ( short x,
short y,
struct Shape * shape,
short frame,
short extent )

◆ GetShapeFrameExtents()

void GetShapeFrameExtents ( struct Shape * shape,
short frame,
short * width,
short * height,
short * leftExtent,
short * topExtent )

◆ GetShiftKeyState()

int GetShiftKeyState ( void )

Definition at line 111 of file winsys.c.

References GetShiftKeyState().

Referenced by GetShiftKeyState(), process_player_input(), QueueInputEvent(), and ReadTextInput().

◆ GetShipAccelerationRate()

◆ GetShipDistanceToNavPoint()

◆ GetShutdownErrorCode()

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().

◆ GetSoundHardwareFlag()

unsigned short GetSoundHardwareFlag ( void )

Definition at line 642 of file eventmgr.c.

References GetSoundHardwareFlag().

Referenced by DosMemcpy(), GetSoundHardwareFlag(), and IsSoundHardwarePresent().

◆ GetStartupErrorCode()

unsigned int GetStartupErrorCode ( int vector)

Definition at line 1154 of file eventmgr.c.

References GetStartupErrorCode(), and void().

Referenced by DosMemcpy(), GetStartupErrorCode(), and main().

◆ GetStreamerTrigger()

int GetStreamerTrigger ( void )

◆ GetTargetColourIndex()

short GetTargetColourIndex ( void )

Definition at line 560 of file view.c.

References GetTargetColourIndex(), and nVideoMode.

Referenced by GetTargetColourIndex(), init_3Space_objects(), and LoadOriginFxDrivers().

◆ GetTransformedShapeBounds()

◆ GetVduModeStackDepth()

short GetVduModeStackDepth ( short i)

Definition at line 717 of file cockpt.c.

References acVduModeStackDepth, and GetVduModeStackDepth().

Referenced by GetVduModeStackDepth(), and vdu_pop_all().

◆ GetVectorMagnitude()

short GetVectorMagnitude ( const FixedVector * vector)

Definition at line 146 of file spc.c.

References FixedToShortSaturating(), GetVectorMagnitude(), and Vector_magnitude().

Referenced by GetVectorMagnitude().

◆ GetViewportPixel()

int GetViewportPixel ( Viewport * viewport,
short x,
short y )

◆ GetZeroUnused()

unsigned int GetZeroUnused ( void )

Definition at line 436 of file disk.c.

References GetZeroUnused().

Referenced by GetZeroUnused().

◆ gone_ship()

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().

◆ goto_formation()

◆ goto_location()

◆ handle_collisions()

short handle_collisions ( short obj)

◆ handle_stress()

void handle_stress ( short obj,
int event )

◆ HandleBarracksBunkSelection()

◆ HandleCommunicationMenuRequest()

◆ HandleFleetOverviewInput()

◆ HandleSpaceFlightControls()

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().

◆ HasSpeechBuffer()

unsigned int HasSpeechBuffer ( void )

Definition at line 176 of file logic.c.

References anShipAlertFlags, and HasSpeechBuffer().

Referenced by HasSpeechBuffer().

◆ have_target()

◆ heat_seeking_missile_intelligence()

◆ hemisphere()

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().

◆ hidden_objective()

◆ hit_asteroid()

unsigned int hit_asteroid ( short asteroid,
short destructionChance )

◆ hostile_sphere()

int hostile_sphere ( short obj,
short navPoint )

◆ house_keep()

◆ house_keep_objects()

unsigned int house_keep_objects ( void )

◆ housekeep_power_plant_and_fuel()

unsigned int housekeep_power_plant_and_fuel ( short ship)

◆ i_wanna_rout()

short i_wanna_rout ( short ship,
int pilot )

◆ IdentityHandle()

void *__stdcall IdentityHandle ( void * v)

Definition at line 164 of file mathfp.c.

References IdentityHandle().

Referenced by DecompressPacketSection(), IdentityHandle(), and PlaySfxWaveFileByNumber().

◆ IdentityWord()

unsigned short IdentityWord ( unsigned short v)

Definition at line 681 of file eventmgr.c.

References IdentityWord().

Referenced by DosMemcpy(), get_right_shape(), and IdentityWord().

◆ imperial_formation()

◆ imperial_wingleader()

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().

◆ imperial_wingman()

◆ in_danger()

◆ IncludeNavMapWorldPoint()

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().

◆ inflict_damage()

◆ InflightComputer()

void InflightComputer ( void )

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().

◆ inherit_leader()

void inherit_leader ( short obj)

◆ inherit_leader_mission()

◆ init_3Space_objects()

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().

◆ init_constellation()

◆ init_formation_burst()

◆ init_hazard()

◆ init_ijk()

◆ init_inflight_music()

unsigned int init_inflight_music ( void )

◆ init_intelligence_data()

◆ init_mission()

◆ init_personalities()

◆ init_player_input()

◆ init_ship()

◆ init_vdus()

◆ InitFullScreenViewport()

void __stdcall InitFullScreenViewport ( Viewport * vp,
short arg )

◆ InitGameClockEpoch()

void InitGameClockEpoch ( void )

Definition at line 135 of file winsys.c.

References dwGameClockBaseValue, and InitGameClockEpoch().

Referenced by InitGameClockEpoch(), and WinMain().

◆ initialize_cockpit()

◆ initialize_direction_view_frame()

unsigned int initialize_direction_view_frame ( short yaw,
short pitch,
signed char frame )

◆ initialize_direction_view_frames()

unsigned int initialize_direction_view_frames ( void )

◆ initialize_object()

short initialize_object ( short obj,
enum ObjectType type,
short owner )

◆ initialize_scripted_view()

◆ initialize_ship()

short initialize_ship ( enum ObjectType type,
short owner )

◆ initialize_view_buffer()

◆ InitializeAudioStreamer()

void InitializeAudioStreamer ( HWND window)

◆ InitializeAudioSystem()

◆ InitializeBarracksAnimation()

◆ InitializeCockpitReadout()

◆ InitializeCockpitResources()

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().

◆ InitializeConstellationField()

◆ InitializeConstellationObject()

◆ InitializeConversationText()

◆ InitializeConversationViewport()

◆ InitializeDIBScreenViewport()

◆ InitializeDiskPromptTextContext()

◆ InitializeEventManager()

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().

◆ InitializeEventManagerResources()

◆ InitializeFireworks()

unsigned int InitializeFireworks ( void )

◆ InitializeGameTextContexts()

◆ InitializeModalTextPanel()

◆ InitializeNearHeap()

◆ InitializeRoomMenu()

◆ InitializeRoomViewports()

◆ InitializeTextContextFromFont()

◆ InitializeTrainSimHighScores()

◆ InitializeTrainSimTextPanel()

◆ InsertTrainSimHighScore()

short InsertTrainSimHighScore ( short pilot,
unsigned int score )

◆ InstallRasterDriverCallbacks()

void InstallRasterDriverCallbacks ( void *const * callbacks)

◆ int_value()

short int_value ( char ** text)

Definition at line 944 of file screens.c.

References int_value().

Referenced by DosMemcpy(), int_value(), and ParseTests().

◆ intelligence_events()

◆ internal_damage()

◆ intfract_sign()

int intfract_sign ( int sign,
int magnitude )

Definition at line 227 of file geom.c.

References intfract_sign().

Referenced by intfract_sign().

◆ intro_drawbackgroundships()

◆ InvalidateVduMode()

◆ is_alive()

unsigned int is_alive ( int pilot)

◆ is_ship_tailing_player_target()

int is_ship_tailing_player_target ( short obj)

◆ is_team_member()

unsigned int is_team_member ( short missionShip)

◆ IsCockpitExplosionActive()

◆ IsCommChoiceMenuOpen()

◆ IsCommMenuIdle()

short IsCommMenuIdle ( void )

◆ IsFrameTickElapsed()

◆ IsHighScoreSlotUsed()

short IsHighScoreSlotUsed ( short i)

◆ IsInputEventQueued()

short __stdcall IsInputEventQueued ( short type)

◆ IsPairEqualityDifferentFromFlag()

int IsPairEqualityDifferentFromFlag ( const unsigned int * values)

Definition at line 274 of file geom.c.

References IsPairEqualityDifferentFromFlag().

Referenced by IsPairEqualityDifferentFromFlag().

◆ IsPointInNavMapLabel()

short IsPointInNavMapLabel ( short label,
short x,
short y )

◆ IsPointInRect()

short __stdcall IsPointInRect ( short x,
short y,
const short * rect )

◆ IsPointWithinEyeViewCone()

◆ IsPointWithinRange()

unsigned int IsPointWithinRange ( const FixedVector * from,
const FixedVector * to,
short range )

◆ IsPushedPacketHandle()

int IsPushedPacketHandle ( void * handle)

◆ IsRoomMenuLabelEmpty()

char IsRoomMenuLabelEmpty ( void )

◆ IsSoundHardwarePresent()

unsigned short IsSoundHardwarePresent ( short device)

◆ IsVectorWithinRange()

unsigned int IsVectorWithinRange ( FixedVector * vector,
short range )

◆ ix_sound_is_playing()

int __fastcall ix_sound_is_playing ( IxSound * sound)

◆ 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()

void ix_streamer_configure ( int option,
void * value )

◆ ix_streamer_destroy()

◆ ix_streamer_force_trigger()

◆ ix_streamer_get_trigger()

char ix_streamer_get_trigger ( void )

◆ ix_streamer_get_volume()

unsigned short ix_streamer_get_volume ( void )

◆ ix_streamer_init()

◆ ix_streamer_open_stream_file()

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().

◆ ix_streamer_set_intensity()

void ix_streamer_set_intensity ( unsigned char intensity)

◆ ix_streamer_set_trigger()

void ix_streamer_set_trigger ( char trigger)

◆ ix_streamer_set_volume()

void ix_streamer_set_volume ( unsigned short volume)

◆ ix_system_configure()

void ix_system_configure ( int option,
void * value )

◆ 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()

void ix_system_set_master_volume ( unsigned short volume)

◆ ix_system_set_voice_count()

◆ ix_system_shutdown()

◆ JoystickEdgeHook()

unsigned int JoystickEdgeHook ( int button)

Definition at line 1120 of file eventmgr.c.

References JoystickEdgeHook(), and void().

Referenced by DosMemcpy(), GetJoystickButtonEdge(), and JoystickEdgeHook().

◆ kill_ace()

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().

◆ kilrathi_near()

short kilrathi_near ( short obj,
short range )

◆ kilrathi_patrol()

◆ kilrathi_wingman()

◆ landing()

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().

◆ launch_object()

int launch_object ( short parent,
short child,
FixedVector direction,
short speed )

◆ LaunchPlayerShip()

◆ LeaveAllocationScope()

◆ load_all_slots()

◆ load_common_3Space_objects()

◆ load_ship()

◆ LoadAnswerPromptAndResponse()

void LoadAnswerPromptAndResponse ( short entry,
char * prompt,
char * response )

◆ LoadBriefingData()

◆ LoadBriefingRoom()

◆ LoadCommDisplayResources()

◆ LoadCommPortraitShape()

void LoadCommPortraitShape ( short face,
signed char alternate )

◆ LoadFace()

◆ LoadGame()

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().

◆ LoadGameFromSlot()

◆ LoadGamePaletteFile()

◆ LoadInstallDat()

◆ LoadJoystickCalibrationFile()

◆ LoadMissionData()

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().

◆ LoadOriginFxDrivers()

◆ LoadPacketAllocated()

◆ LoadPacketIntoBuffer()

void * LoadPacketIntoBuffer ( short logicalFile,
short section,
void * destination )

◆ LoadPacketResourceList()

◆ LoadPaletteTripletsFile()

unsigned short __stdcall LoadPaletteTripletsFile ( const char * path)

◆ LoadSceneAnimationResources()

◆ LoadShapeSet()

◆ LoadSpaceflightResources()

◆ LoadTrainSimOpponentShape()

struct Shape * LoadTrainSimOpponentShape ( int opponent)

◆ LoadVolumeSettingsFromRegistry()

◆ LoadWingCmdrCfgFile()

short LoadWingCmdrCfgFile ( short argc,
char ** argv )

◆ locate_ship()

◆ LocateMobileObjective()

◆ LocateStreamsDirOnDisc()

char * LocateStreamsDirOnDisc ( void )

◆ lock_off()

◆ LogDisplayMode()

void LogDisplayMode ( const char * mode)

◆ LogMemoryUsage()

◆ LongTalk()

unsigned int LongTalk ( struct Shape * talker,
char * text,
short * mouthCommands,
short * faceCommands,
short duration )

◆ look_at()

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().

◆ Magnitude()

long Magnitude ( int value)

Definition at line 115 of file mathfp.c.

References Magnitude().

Referenced by Magnitude(), and PlaySfxWaveFileByNumber().

◆ main()

◆ maintain_formation()

◆ MainWindowProc()

◆ make_hazard()

short make_hazard ( void )

◆ make_shard()

◆ MakeRandomNormalizedVector()

void MakeRandomNormalizedVector ( FixedVector * vector)

◆ MakeRandomVectorFixed()

void MakeRandomVectorFixed ( short minimum,
short maximum,
FixedVector * vector )

◆ malf()

◆ malf_noise()

void malf_noise ( short vdu,
int effect,
unsigned short colour,
short sound,
short refresh )

◆ malf_sound()

void malf_sound ( void )

Definition at line 823 of file cockpt.c.

References malf_sound(), and PlaySfxWaveFileByNumber().

Referenced by check_target(), HandleSpaceFlightControls(), and malf_sound().

◆ manage_hazard()

◆ maneuver_complete()

◆ maneuvering()

◆ MapMusicTrackToStreamerCommand()

int MapMusicTrackToStreamerCommand ( int track)

◆ MapPacketHandleToBlock()

void * MapPacketHandleToBlock ( void * handle)

◆ MarkActivePaletteEntries()

void __stdcall MarkActivePaletteEntries ( Viewport * viewport,
unsigned char * active )

◆ match_roll_orientation()

◆ match_rotation_goal()

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().

◆ match_ship_to_eye()

◆ MaxInt()

int MaxInt ( int a,
int b )

Definition at line 210 of file geom.c.

References MaxInt().

Referenced by MaxInt(), and object_collision().

◆ MaxShort()

◆ Mbest_strafe()

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().

◆ Mburnout()

void Mburnout ( short ship,
short target )

◆ Mbuzz_debris()

◆ Mchill()

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().

◆ Mcorkscrew()

void Mcorkscrew ( short ship)

◆ Mdrop_a_mine()

void Mdrop_a_mine ( short ship)

◆ MeasureMessageWidth()

short MeasureMessageWidth ( const char * text)

◆ MeasureScaledIntroTextWidth()

int MeasureScaledIntroTextWidth ( const char * text,
short scale )

◆ MeasureShapeFrameStorage()

int __stdcall MeasureShapeFrameStorage ( struct Shape * shape,
short frame )

◆ MeasureTextPixelWidthClamped()

◆ MedalEstablish()

◆ MergeAdjacentNearHeapBlocks()

unsigned short MergeAdjacentNearHeapBlocks ( int descriptorAddress)

◆ message_showing()

◆ MessagePumpHook()

void MessagePumpHook ( int mode)

Definition at line 457 of file screen.c.

References MessagePumpHook(), and TimerStopHook().

Referenced by LogMemoryUsage(), MessagePumpHook(), and PlaySfxWaveFileByNumber().

◆ Mfish_hook()

◆ Mfull_ahead()

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().

◆ Mget_distance()

void Mget_distance ( short ship,
short target )

◆ Mgloat()

void Mgloat ( short ship,
short target )

◆ Mhard_break()

void Mhard_break ( short ship)

◆ Mhard_turn()

void Mhard_turn ( short ship)

◆ mine_available()

short mine_available ( short obj)

◆ mine_intelligence()

◆ MinInt()

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().

◆ MinShort()

◆ missile_on_tail()

int missile_on_tail ( short obj)

◆ Mkickit()

void Mkickit ( short ship)

◆ Mkill_missile()

◆ Mline_up_drop()

void Mline_up_drop ( short ship,
short target )

◆ Mnone()

void Mnone ( void )

Definition at line 928 of file fl.c.

References Mnone().

Referenced by Mnone().

◆ mobile_objective()

short mobile_objective ( short objective)

◆ MonoDebug_install()

void MonoDebug_install ( void )

Definition at line 331 of file mono.c.

References bMonoDebugAvailable, exit_squadron(), hMonoDebugDriver, and MonoDebug_install().

Referenced by MonoDebug_install(), and WinMain().

◆ MonoDebug_print()

void MonoDebug_print ( const char * text)

◆ MonoDebug_remove()

void MonoDebug_remove ( void )

◆ MouseIdleHook()

void MouseIdleHook ( void )

Definition at line 1091 of file eventmgr.c.

References MouseIdleHook().

Referenced by DosMemcpy(), LogMemoryUsage(), and MouseIdleHook().

◆ MoveMenuPointerFromKeyboard()

◆ MoveNewCampaign()

◆ MoveObjectAlongDirection()

void MoveObjectAlongDirection ( short obj,
const FixedVector * direction,
short distance )

◆ Mram_missile()

void Mram_missile ( short ship,
short target )

◆ Mreset()

void Mreset ( short ship)

Definition at line 933 of file fl.c.

References maneuver_complete(), and Mreset().

Referenced by Mreset().

◆ Mroll_over()

void Mroll_over ( short ship)

◆ Mrout_me()

void Mrout_me ( short ship)

Definition at line 921 of file fl.c.

References Mrout_me(), and try2rout().

Referenced by Mrout_me().

◆ Msit_n_fire()

◆ Msit_n_spin()

◆ Msplit_left()

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().

◆ Msplit_right()

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().

◆ Mstrafe_enemy()

void Mstrafe_enemy ( short ship,
short target )

◆ 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().

◆ Msuicide_run()

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().

◆ Mtail_fire()

void Mtail_fire ( short ship,
short target )

◆ Mtarget_laser()

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().

◆ Mtarget_missile()

◆ Mthink()

void Mthink ( short ship)

Definition at line 224 of file fl.c.

References approach_cruise_speed(), asShipTotal, maneuver_complete(), and Mthink().

Referenced by Mthink().

◆ Mtight_loop()

void Mtight_loop ( short ship)

◆ Mtry2tail()

void Mtry2tail ( short ship,
short target )

◆ Mturn_n_kick()

◆ Mturn_n_spin()

◆ MultiplyFixed()

◆ Mveer_away()

◆ Mwabble()

void Mwabble ( short ship)

◆ Mzig_zag()

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().

◆ Mzig_zag_pitch()

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().

◆ Mzip_past()

◆ nav_getxy()

void nav_getxy ( short * x,
short * y,
int worldX,
int worldZ )

◆ nav_note()

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().

◆ NavMapLabelFits()

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().

◆ NavMapLabelPositionAvailable()

short NavMapLabelPositionAvailable ( short x,
short y,
short width,
short height )

◆ NavMapPointInsideReservedArea()

short NavMapPointInsideReservedArea ( short area,
short x,
short y )

◆ near_field()

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().

◆ nearest_enemy_range()

◆ negate_vector()

◆ new_object()

short new_object ( enum ObjectType type,
short owner )

◆ new_space_music_changes()

◆ new_sphere_shapes()

◆ new_view()

◆ no_goal()

◆ no_objectives_achieved()

short no_objectives_achieved ( void )

◆ normal_speed()

◆ NormalizeAndScaleVector()

void NormalizeAndScaleVector ( FixedVector * vector,
int scale )

◆ NormalizeFixedVector()

◆ npc_communication()

◆ object_collision()

◆ object_intelligence()

◆ objective_lost()

unsigned int objective_lost ( short objective)

◆ objective_name()

const char * objective_name ( short objective)

◆ Office()

◆ offset_location()

◆ ok_hazard_spot()

short ok_hazard_spot ( short obj)

◆ onboard_explosion()

◆ OpenCommMenuForTarget()

void OpenCommMenuForTarget ( const char * heading,
const char * message )

◆ OpenCommRecipientMenu()

void OpenCommRecipientMenu ( void )

◆ OpenDataFileOrDie()

short __stdcall OpenDataFileOrDie ( const char * path)

◆ OpenDiskDataFile()

◆ OpenPacketSection()

◆ orbit_sphere()

◆ overlay_head_up_display()

◆ PacketLoad()

◆ PaletteFadeHook()

void PaletteFadeHook ( void )

Definition at line 132 of file music.c.

References PaletteFadeHook().

Referenced by init_3Space_objects(), PaletteFadeHook(), and ShowCarrierLaunchSequence().

◆ PanToScreen()

◆ parse_view_script()

◆ ParseFaceAnimation()

unsigned int ParseFaceAnimation ( char * text,
short * commands )

Definition at line 27 of file cmpgn.c.

References ParseFaceAnimation().

Referenced by ParseFaceAnimation(), and SceneDirector().

◆ ParseMouthAnimation()

unsigned int ParseMouthAnimation ( char * text,
short * commands )

Definition at line 65 of file cmpgn.c.

References asMouthFramesByPhoneme, and ParseMouthAnimation().

Referenced by ParseMouthAnimation(), and SceneDirector().

◆ ParseTests()

◆ patrol_area()

◆ PeekInputEvent()

◆ perform_maneuver()

◆ personality_killed()

◆ pick_from_list()

◆ pick_kilrathi_maneuver()

◆ pick_regular_maneuver()

◆ pilot_hit()

◆ PinMedal()

◆ place_damage_on_cockpit()

◆ place_exhaust_on_ships()

◆ PlaceNavMapLabel()

void PlaceNavMapLabel ( short x,
short y,
unsigned short colour,
const char * text )

◆ PlanarMagnitude()

long PlanarMagnitude ( int x,
int y )

◆ PlayCockpitSelectionSfx()

void PlayCockpitSelectionSfx ( short selectionSound)

◆ player_input()

◆ player_wingman()

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().

◆ players_flight_dynamics()

◆ PlayersMissionScore()

◆ PlaySceneAnimation()

◆ PlayScrambleHangarScene()

◆ PlaySfxWaveFileByNumber()

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().

◆ PlaySnowStaticSound()

◆ PlayTargetLockSfx()

void PlayTargetLockSfx ( void )

Definition at line 817 of file cockpt.c.

References PlaySfxWaveFileByNumber(), and PlayTargetLockSfx().

Referenced by PlayTargetLockSfx().

◆ playWAVE()

◆ point_at()

◆ point_capital_ship_at_object()

void point_capital_ship_at_object ( short obj,
short other )

◆ point_parallel()

void point_parallel ( short obj,
short other )

◆ point_perpendicular()

void point_perpendicular ( short obj,
short other )

◆ point_perpendicular_to_point()

void point_perpendicular_to_point ( short obj,
const FixedVector * point )

◆ point_ship()

◆ point_ship_at_object()

◆ point_ship_at_point()

◆ point_ship_behind_object()

void point_ship_behind_object ( short obj,
short other )

◆ point_ship_below_object()

void point_ship_below_object ( short obj,
short other )

◆ PollInputEvent()

◆ PollJoystickButtonEvents()

◆ PollKeyboardState()

◆ PollMenuInputDevices()

◆ pop_flack()

◆ pop_mode()

◆ position_child()

◆ position_relative()

◆ position_relative_ijk()

void position_relative_ijk ( FixedVector * position,
short obj,
short right,
short up,
short forward )

◆ PostMission()

◆ PreloadMusicTrackHook()

◆ prepare_ace()

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().

◆ prepare_for_jump()

◆ prepare_mission()

◆ PrepareShapeRLEData()

◆ prevent_collision()

◆ print_message_text()

◆ print_subtitle()

◆ PrintPaletteAllocationMap()

void PrintPaletteAllocationMap ( void )

Definition at line 79 of file video.c.

References awPalEntryAllocation, and PrintPaletteAllocationMap().

Referenced by PlaySfxWaveFileByNumber(), and PrintPaletteAllocationMap().

◆ process_maneuver_node()

◆ process_player_input()

◆ ProcessMusicScriptCommand()

◆ PromptForAnswerText()

◆ PromptForPilotField()

void PromptForPilotField ( short x,
short y,
const char * label,
char * destination,
short maximumLength,
const char * defaultText )

◆ PromptForTextInput()

◆ PromptInsertCorrectCd()

int PromptInsertCorrectCd ( void )

Definition at line 278 of file winsys.c.

References LocateStreamsDirOnDisc(), and PromptInsertCorrectCd().

Referenced by PromptInsertCorrectCd(), and WinMain().

◆ PromptInsertNumberedDisk()

◆ PumpMessagesDuringWait()

◆ PumpWindowMessages()

◆ PurgeNearHeapBlocks()

◆ push_mode()

void push_mode ( short i,
int state )

◆ PushMemoryStackFrame()

void * PushMemoryStackFrame ( void * memory,
int offset )

◆ QueueInputEvent()

◆ QueueInputEventAtCursor()

void QueueInputEventAtCursor ( unsigned short type,
short primaryButton,
short secondaryButton )

◆ random_radial()

void random_radial ( const FixedVector * center,
short radius,
FixedVector * position )

◆ RandomBelow()

◆ RandomBelowOrEqual()

◆ RandomInRange()

◆ RandomWord()

unsigned short RandomWord ( void )

Definition at line 43 of file mathfp.c.

References RandomWord().

Referenced by PlayScrambleHangarScene(), PlaySfxWaveFileByNumber(), and RandomWord().

◆ RasterLineHook()

void RasterLineHook ( const void * marker)

◆ reach_warp()

◆ ReadCalibratedJoystick()

◆ ReadCheaterFlagFromRegistry()

int ReadCheaterFlagFromRegistry ( void )

◆ ReadDataFileAtOffset()

int __stdcall ReadDataFileAtOffset ( unsigned short fd,
int offset,
unsigned int length,
void * data )

◆ ReadGIFDataSubBlockByte()

unsigned int ReadGIFDataSubBlockByte ( void )

◆ ReadGIFLZWCode()

unsigned int ReadGIFLZWCode ( void )

References ReadGIFLZWCode().

Referenced by ReadGIFLZWCode().

◆ ReadJoystickButtons()

short ReadJoystickButtons ( void )

Definition at line 982 of file mission.c.

References GetJoystickButtons(), and ReadJoystickButtons().

Referenced by ReadJoystickButtons().

◆ ReadPacketSectionData()

◆ ReadPerformanceCounter()

void ReadPerformanceCounter ( LARGE_INTEGER * p)

Definition at line 405 of file mono.c.

References ReadPerformanceCounter().

Referenced by ReadPerformanceCounter(), and RunSpaceFlight().

◆ ReadRasterClipPixel()

int ReadRasterClipPixel ( RasterClip * clip,
int x,
int y )

◆ ReadRequiredPilotField()

void ReadRequiredPilotField ( short x,
short y,
const char * label,
char * destination,
short maximumLength )

◆ ReadTextInput()

◆ real_crash_time()

◆ real_velocity()

◆ real_vid_transmit()

◆ rear_sphere()

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().

◆ recalc_max_velocity()

◆ RecRoom()

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().

◆ rectangular_to_spherical()

◆ RefreshCockpitStatus()

◆ RefreshCommunicationMenu()

◆ RefreshMemoryStatusOverlay()

◆ RefreshMouseCursorDisplay()

◆ RefreshRoomMenuLabel()

◆ RegisterEventManagerShutdown()

void __stdcall RegisterEventManagerShutdown ( void(* fn )(void))

Definition at line 85 of file strdos.c.

References RegisterEventManagerShutdown().

Referenced by DosMemcpy(), EMStartUp(), and RegisterEventManagerShutdown().

◆ RegistryQueryValue()

LONG RegistryQueryValue ( HKEY key,
LPCSTR name,
DWORD type,
LPBYTE data,
DWORD size )

◆ RegistryStoreValue()

void RegistryStoreValue ( HKEY key,
LPCSTR name,
DWORD type,
const BYTE * data,
DWORD size )

◆ regulate_turn()

◆ release_all_capital_ship_shapes()

◆ release_capital_ship_shapes()

◆ ReleaseContiguousPaletteEntries()

void __stdcall ReleaseContiguousPaletteEntries ( short firstEntry)

◆ ReleaseFinishedSoundEntries()

◆ ReleaseInputEvent()

◆ ReleaseInputEventQueue()

◆ ReleaseModalTextPanel()

◆ ReleaseMusicTrackHook()

◆ ReleaseNearHeapBlock()

◆ ReleasePacketHandle()

◆ ReleaseSceneAnimationResources()

◆ ReleaseStaleNavTarget()

unsigned int ReleaseStaleNavTarget ( void )

◆ ReleaseTextFont()

◆ ReleaseUntaggedMemory()

void ReleaseUntaggedMemory ( void * memory)

Definition at line 663 of file eventmgr.c.

References ReleasePacketHandle(), and ReleaseUntaggedMemory().

Referenced by DosMemcpy(), and ReleaseUntaggedMemory().

◆ ReleaseVideoResourcesHook()

void ReleaseVideoResourcesHook ( void )

◆ remove_all_3d_objects()

unsigned int remove_all_3d_objects ( void )

◆ remove_all_hazards()

◆ remove_hazard()

void remove_hazard ( signed char hazard)

◆ remove_message()

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().

◆ remove_nav_point_objects()

void remove_nav_point_objects ( void )

Definition at line 432 of file mission.c.

References remove_nav_point_objects(), and remove_object().

Referenced by remove_nav_point_objects(), and ShowCarrierLaunchSequence().

◆ remove_nav_pointer()

void remove_nav_pointer ( void )

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().

◆ remove_object()

◆ remove_weapon()

◆ RemoveActiveSoundEntry()

◆ RemoveInputEvent()

◆ RemovePlayerReleaseWeapon()

◆ RemoveWaveTableEntry()

void RemoveWaveTableEntry ( WaveTableEntry * entry)

◆ RenderSpaceViewFrame()

◆ rendezvous_mission()

◆ repair_internal_damage()

◆ replenish_shields()

◆ replenish_weapon_energy_bank()

unsigned int replenish_weapon_energy_bank ( short ship)

◆ reply()

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().

◆ report_kilrathi_rout()

◆ ReportComponentRepaired()

short ReportComponentRepaired ( short component,
short minimumDamage )

◆ ReportFramesSkipped()

void ReportFramesSkipped ( short adjustment)

◆ ReportHeapGuardCorruption()

void ReportHeapGuardCorruption ( void * memory,
int count,
int overrun )

◆ ReportOutOfMemoryAndExit()

◆ ReportPacketLoadError()

◆ ReportSpaceFlightMaxFps()

◆ reposition_fixed_child_objects()

◆ request()

◆ ReserveContiguousPaletteEntries()

short __stdcall ReserveContiguousPaletteEntries ( short entryCount)

◆ ReserveNavMapArea()

◆ reset_cockpit()

◆ reset_maneuver()

◆ reset_mission_type()

◆ reset_objective()

◆ reset_stress()

unsigned int reset_stress ( short obj)

◆ reset_tactic()

◆ ResetAllocationDepth()

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().

◆ ResetCampaignData()

◆ ResetCockpitPaletteEntries()

◆ ResetCommMenuChoices()

◆ ResetDiskPromptTimerHook()

void ResetDiskPromptTimerHook ( int mode,
int interval )

◆ ResetGIFLZWDictionary()

void ResetGIFLZWDictionary ( void )

◆ ResetMouseCursorFrame()

◆ ResetNavMapLabels()

void ResetNavMapLabels ( void )

Definition at line 146 of file nav.c.

References nNavMapLabelCount, and ResetNavMapLabels().

Referenced by BuildMap(), and ResetNavMapLabels().

◆ ResetNavMapReservedAreas()

void ResetNavMapReservedAreas ( void )

Definition at line 126 of file nav.c.

References nNavMapReservedAreaCount, and ResetNavMapReservedAreas().

Referenced by BuildMap(), and ResetNavMapReservedAreas().

◆ ResetPilotHandAnimation()

◆ ResetScannerContacts()

void ResetScannerContacts ( void )

◆ ResetScreenClipToFullHeight()

◆ ResetSoundState()

◆ ResetSoundStateForFlight()

◆ ResetSoundStateForScene()

void ResetSoundStateForScene ( void )

◆ ResetStringBuilder()

char *__stdcall ResetStringBuilder ( TextContext * context)

◆ ResetTextCursor()

void ResetTextCursor ( void )

◆ RestoreCockpitExplosionBackground()

◆ RestoreCockpitExplosionIfVisible()

◆ RestoreGamePalette()

◆ RestoreModalTextPanel()

◆ RestoreMouseCursorBackground()

◆ RestoreSpriteBackground()

◆ RestoreTransientCockpitGraphics()

◆ RetainInputEventsOfType()

◆ return_to_buddy()

void return_to_buddy ( short obj,
short buddy )

◆ return_to_master()

void return_to_master ( short obj,
short master )

◆ ReturnToBriefingLongShot()

◆ revise_shields()

void revise_shields ( short obj)

◆ RewriteDiskFileGraphicsExtensions()

unsigned short RewriteDiskFileGraphicsExtensions ( short videoMode)

◆ rnd_aim()

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().

◆ rnd_sign()

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().

◆ room_for_me()

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().

◆ rotate_about_i()

◆ rotate_about_j()

◆ rotate_about_k()

void rotate_about_k ( short angle,
FixedVector * i,
FixedVector * j )

◆ rotate_eye_to_goal()

◆ rotate_object()

◆ rotate_object_to_goal()

◆ RotateRLEImage()

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 )

◆ rotational_acceleration()

◆ rotational_pos_to_scanner_pos()

◆ run_away()

◆ RunAnimationDemoLoop()

◆ RunSpaceFlight()

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().

◆ RunTrainSim()

◆ SampleActiveJoystickDevice()

void SampleActiveJoystickDevice ( void )

◆ SampleBothJoysticks()

short __stdcall SampleBothJoysticks ( InputDeviceSample * samples,
short fallback )

Definition at line 945 of file mission.c.

References GetJoystickPosition(), and SampleBothJoysticks().

Referenced by LoadJoystickCalibrationFile(), and SampleBothJoysticks().

◆ SampleJoystickDevice()

◆ SaveGame()

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().

◆ SaveGamePalette()

void SaveGamePalette ( void )

◆ SaveGameWithNamePrompt()

◆ SaveVolumeSettingsToRegistry()

◆ ScaleFixedVector()

◆ ScaleNavMapCoordinates()

void ScaleNavMapCoordinates ( short * x,
short * y,
short mapX,
short mapY )

◆ ScaleNavMapMarkerSize()

void ScaleNavMapMarkerSize ( short * size)

Definition at line 1024 of file mission.c.

References nNavMapScale, and ScaleNavMapMarkerSize().

Referenced by DrawNavHazardMarker(), and ScaleNavMapMarkerSize().

◆ scan_and_lock()

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().

◆ scan_for_enemy()

◆ SceneAnimationGoalReached()

short __stdcall SceneAnimationGoalReached ( short delta,
short current,
short goal )

◆ SceneDirector()

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().

◆ SceneEnterHook()

void SceneEnterHook ( void )

Definition at line 163 of file pilot.cpp.

References SceneEnterHook().

Referenced by init_3Space_objects(), SceneEnterHook(), and Title_Sequence().

◆ SceneLeaveHook()

void SceneLeaveHook ( )

Definition at line 151 of file music.c.

References SceneLeaveHook().

Referenced by death_sequence(), init_3Space_objects(), PlayScrambleHangarScene(), and SceneLeaveHook().

◆ score_for_kill()

◆ scramble()

◆ ScrollRasterClipWrapped()

int ScrollRasterClipWrapped ( RasterClip * clip,
int deltaX,
int deltaY,
int mode,
unsigned int fillOrScratch )

◆ SeedRandomFromClock()

void __stdcall SeedRandomFromClock ( int seed)

Definition at line 37 of file mathfp.c.

References SeedRandomFromClock().

Referenced by PlaySfxWaveFileByNumber(), and SeedRandomFromClock().

◆ SeekDataFile()

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().

◆ SeekPacketSection()

int __stdcall SeekPacketSection ( PacketSectionHandle * handle,
int offset,
short origin )

◆ select_guns()

int select_guns ( short obj,
short selectedGun )

◆ select_new_gun()

◆ select_new_release_weapon()

◆ select_safe_target()

int select_safe_target ( short obj)

◆ select_target()

◆ select_weighted_value()

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().

◆ SelectCockpitVduMode()

◆ SelectCommRecipient()

◆ SelectDiskDriveHook()

unsigned short __stdcall SelectDiskDriveHook ( short drive)

Definition at line 1175 of file eventmgr.c.

References SelectDiskDriveHook().

Referenced by DosMemcpy(), OpenDiskDataFile(), and SelectDiskDriveHook().

◆ SelectFlightMusicTrack()

◆ SelectNavObjectiveAtPoint()

◆ SelectNextExternalViewObject()

unsigned int SelectNextExternalViewObject ( void )

◆ SelectPreviousExternalViewObject()

unsigned int SelectPreviousExternalViewObject ( void )

◆ SelectRoomMenuLabel()

void SelectRoomMenuLabel ( short i)

◆ SelectTrainSimMission()

◆ send_appropriate_message()

◆ send_at_point()

int send_at_point ( short obj,
FixedVector * point,
short speed )

◆ send_message()

◆ SendCommMenuChoice()

◆ ServiceAudioStream()

◆ ServiceSoundSystem()

void ServiceSoundSystem ( void )

Definition at line 334 of file sound.c.

References ix_system_service_sounds(), and ServiceSoundSystem().

Referenced by DIBslamReal(), init_3Space_objects(), and ServiceSoundSystem().

◆ servicetrack()

◆ set_alert()

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().

◆ set_background_objects_rotation()

◆ set_eye_direction_and_position()

◆ set_formation_position()

◆ set_global_message()

void set_global_message ( const char * text,
unsigned short colour,
int flashCount )

◆ set_message_time()

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().

◆ set_mode()

◆ set_new_objective()

◆ set_new_vdu()

◆ set_next_destination()

◆ set_objective_range()

◆ set_objects_data()

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().

◆ set_ship_rotation_goals()

int set_ship_rotation_goals ( short obj,
short turnRate,
const FixedVector * direction,
short pointingMode,
short * yawGoal,
short * pitchGoal )

◆ set_special()

◆ set_speed()

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().

◆ set_sphere_point()

◆ set_up_action_sphere()

◆ set_up_next_wave()

◆ set_up_screen_viewport()

◆ Set_up_ship_info()

◆ SetAwakenBarracksMenuLabel()

void SetAwakenBarracksMenuLabel ( char ** label,
short series,
short mission,
char * description )

◆ SetBunkMenuLabel()

void SetBunkMenuLabel ( short occupied,
short side,
char ** label,
short series,
short mission,
char * description )

◆ SetCinematicFrameTiming()

◆ SetCockpitLightBlink()

unsigned int SetCockpitLightBlink ( signed char light,
short interval )

◆ SetConsoleBackgroundColourHook()

void SetConsoleBackgroundColourHook ( void )

Definition at line 219 of file pilot.cpp.

References SetConsoleBackgroundColourHook().

Referenced by init_3Space_objects(), and SetConsoleBackgroundColourHook().

◆ SetConsoleTextColourHook()

void SetConsoleTextColourHook ( void )

Definition at line 212 of file pilot.cpp.

References SetConsoleTextColourHook().

Referenced by init_3Space_objects(), and SetConsoleTextColourHook().

◆ SetCurrentDirOnDrive()

int SetCurrentDirOnDrive ( char drive,
const char * directory )

Definition at line 262 of file winsys.c.

References SetCurrentDirOnDrive().

Referenced by FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().

◆ SetDiskFileNumber()

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().

◆ SetEventManagerPump()

◆ SetFleetOverviewView()

◆ SetFrameTimerAndWait()

void __stdcall SetFrameTimerAndWait ( short period)

◆ SetFrameTimerPeriod()

void SetFrameTimerPeriod ( short period)

◆ SetFrameTimerPeriodDirect()

◆ SetHighScoreEntry()

unsigned int SetHighScoreEntry ( short i,
unsigned char b,
unsigned int v )

◆ SetHudMessageSlot()

void SetHudMessageSlot ( HudMessageSlot * slot,
TextContext * context,
short x,
short y,
const char * text,
unsigned short colour,
signed char flashCount )

◆ SetHudMessageText()

◆ SetHudTextColour()

◆ SetInputKeyState()

void SetInputKeyState ( int scanCode,
unsigned char pressed )

◆ SetManeuverProximityRange()

void SetManeuverProximityRange ( unsigned short v)

Definition at line 84 of file fl.c.

References nManeuverProximityRange, and SetManeuverProximityRange().

Referenced by perform_maneuver(), and SetManeuverProximityRange().

◆ SetMessageDisplaySpeed()

void SetMessageDisplaySpeed ( void )

◆ SetMouseCursorShape()

◆ SetMouseHomePosition()

void __stdcall SetMouseHomePosition ( short x,
short y )

◆ SetMousePosition()

◆ SetMousePositionDuplicate()

void SetMousePositionDuplicate ( int x,
int y )

◆ SetMultimediaTimerCallback()

◆ SetMusBreakpt()

void SetMusBreakpt ( int first,
int second )

◆ SetMusicOn()

void SetMusicOn ( short enabled)

◆ SetMusicStreamVolume()

void SetMusicStreamVolume ( unsigned short volume)

◆ SetNavMapCoordinateScaling()

void SetNavMapCoordinateScaling ( short enabled)

◆ SetPaletteEntry()

void __stdcall SetPaletteEntry ( short index,
short * rgb )

◆ SetPaletteTranslationTable()

void SetPaletteTranslationTable ( const unsigned char * translation)

◆ SetPendingMenuAction()

void SetPendingMenuAction ( unsigned char v)

◆ SetRasterClipPixel()

unsigned int SetRasterClipPixel ( RasterClip * clip,
int x,
int y,
int colour )

◆ SetRectBounds()

void SetRectBounds ( Viewport * viewport,
unsigned short left,
unsigned short top,
unsigned short right,
unsigned short bottom )

◆ SetRLEFramePalette()

unsigned int SetRLEFramePalette ( struct RLEShape * shape,
int frame,
const unsigned char * entries )

References SetRLEFramePalette().

Referenced by SetRLEFramePalette().

◆ SetScale()

◆ SetScreenClipRect()

void SetScreenClipRect ( unsigned short a,
unsigned short b,
unsigned short c,
unsigned short d )

◆ SetSolidColourTranslation()

void SetSolidColourTranslation ( unsigned char colour)

◆ SetSoundEffectsVolume()

◆ SetSpaceFlightFrameTiming()

◆ SetStreamerIntensity()

void SetStreamerIntensity ( unsigned char intensity)

◆ SetTextContext()

◆ SetTextCursor()

◆ SetVduModeIfChanged()

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().

◆ SetVectorFixedPoint()

void SetVectorFixedPoint ( FixedVector * p,
short v )

◆ SetViewportRect()

void __stdcall SetViewportRect ( Viewport * viewport,
unsigned short left,
unsigned short top,
unsigned short right,
unsigned short bottom )

◆ SetWholePaletteFromTriplets()

void __stdcall SetWholePaletteFromTriplets ( unsigned char * palette)

◆ shaded_triangle()

void shaded_triangle ( Viewport * viewport)

◆ shadow_draw()

void shadow_draw ( Viewport * viewport)

Definition at line 1111 of file gr.c.

References DIBslam(), Viewport::pixels, RasterLineHook(), shadow_draw(), and stScreenView.

Referenced by CollectRasterClipColours(), and shadow_draw().

◆ shape_loaded()

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().

◆ shape_needed()

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().

◆ ship_intelligence()

◆ ship_vs_point()

void ship_vs_point ( short obj,
const FixedVector * point )

◆ ship_vs_ship()

◆ ShipAiState35()

◆ ShipAiState44()

void ShipAiState44 ( short ship)

Definition at line 908 of file fl.c.

References acShipStressList, maneuver_complete(), and ShipAiState44().

Referenced by ShipAiState44().

◆ ShipExplosion()

◆ ships_within_range()

unsigned int ships_within_range ( short obj,
short other,
short range )

◆ ShouldSuspendCursorForRect()

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().

◆ show_communications_disp()

◆ show_damage_disp()

◆ show_info_disp()

◆ show_navigation_disp()

◆ show_target_disp()

◆ show_weapon_disp()

◆ ShowCampaignVictorySequence()

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().

◆ ShowCarrierLaunchSequence()

unsigned int ShowCarrierLaunchSequence ( signed char sceneObject)

Definition at line 145 of file launch.c.

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

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

◆ ShowCentredPrompt()

void ShowCentredPrompt ( char * text,
unsigned short arg )

◆ ShowChalkBoard()

◆ ShowComponentHitHudMessage()

◆ ShowConfedNavScan()

◆ ShowGameOverScreen()

◆ ShowGamePausedBanner()

void ShowGamePausedBanner ( short showBanner)

◆ ShowGetReadyScreen()

◆ ShowHudTextLine()

void ShowHudTextLine ( char * s,
unsigned short b )

◆ ShowMeanwhileTransition()

◆ ShowMemoryStatusDebug()

◆ ShowModalMessage()

◆ ShowModalTextPanel()

◆ ShowNoticeMessageBox()

void ShowNoticeMessageBox ( const char * text)

Definition at line 657 of file winmain.c.

References DIBpositionWindow(), and ShowNoticeMessageBox().

Referenced by ShowNoticeMessageBox(), and Streamer_open().

◆ ShowOnScreenMessage()

void ShowOnScreenMessage ( int flags,
short duration,
const char * format,
... )

Definition at line 1284 of file main.c.

◆ ShowTheEndScreen()

◆ ShowTigerClawEscapeScene()

◆ ShowTrainSimHighScores()

◆ ShowTrainSimTextMessage()

◆ ShowVersionBanner()

void ShowVersionBanner ( void )

◆ ShowVictoryScreen()

◆ shrink()

unsigned int shrink ( int * component)

Definition at line 1235 of file eventmgr.c.

References shrink().

Referenced by DosMemcpy(), point_at(), shrink(), and shrink_vector().

◆ shrink_vector()

unsigned int shrink_vector ( FixedVector * vector)

◆ ShutdownAudioStreamer()

void ShutdownAudioStreamer ( void )

◆ ShutdownEventManager()

◆ ShutdownGameWindow()

◆ ShutdownHook()

void ShutdownHook ( int vector,
void * handler )

Definition at line 1161 of file eventmgr.c.

References ShutdownHook(), and void().

Referenced by DosMemcpy(), LogMemoryUsage(), main(), and ShutdownHook().

◆ ShutdownVideoHook()

void __stdcall ShutdownVideoHook ( short mode)

◆ sighted()

short sighted ( short objective)

◆ SignalAudioMixerWakeEvent()

void SignalAudioMixerWakeEvent ( void )

◆ signed_random()

short signed_random ( short range)

◆ SignExtendClipCoord()

int SignExtendClipCoord ( volatile short v)

Definition at line 300 of file gr.c.

References SignExtendClipCoord().

Referenced by CollectRasterClipColours(), SignExtendClipCoord(), and ValidateViewportBounds().

◆ SignFixed()

unsigned int SignFixed ( int v)

Definition at line 246 of file geom.c.

References SignFixed().

Referenced by approach_speed(), and SignFixed().

◆ SignShort()

unsigned short SignShort ( short v)

Definition at line 238 of file geom.c.

References SignShort().

Referenced by SignShort().

◆ SinFixed()

◆ skew_randomly()

void skew_randomly ( short obj,
short allowReverse )

◆ skill_check()

int skill_check ( short obj,
short difficulty )

◆ skill_rating()

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().

◆ snow_viewport()

void snow_viewport ( Viewport * viewport,
int effect,
unsigned short colour )

◆ someone_coming()

unsigned int someone_coming ( void )

◆ sort_object_depth()

◆ sort_viable_target_list()

◆ SortSignedByteValuesAscending()

unsigned int SortSignedByteValuesAscending ( signed char * values,
short count )

Definition at line 258 of file disk.c.

References SortSignedByteValuesAscending().

Referenced by SortSignedByteValuesAscending().

◆ SortTrainSimHighScores()

void SortTrainSimHighScores ( void )

◆ sound_effect()

void sound_effect ( void )

Definition at line 724 of file music.c.

References sound_effect(), szSfxWavePath, and WriteDebugString().

Referenced by init_3Space_objects(), and sound_effect().

◆ SoundDebugPrintf()

void SoundDebugPrintf ( const char * fmt,
... )

Definition at line 382 of file mono.c.

◆ SoundFxTick()

unsigned int SoundFxTick ( void )

Definition at line 707 of file music.c.

References SoundFxTick(), and WriteDebugString().

Referenced by init_3Space_objects(), SoundFxTick(), and TheEndFireWorks().

◆ spacetrack()

◆ SplitGameClockTicks()

void __stdcall SplitGameClockTicks ( unsigned char * parts)

Definition at line 307 of file mono.c.

References GetGameClockTicks(), and SplitGameClockTicks().

Referenced by FormatNavCoordinates(), and SplitGameClockTicks().

◆ SplitPackedPoint()

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().

◆ start_collision_alert()

◆ start_dust()

◆ start_hazard_field()

void start_hazard_field ( short region)

◆ start_lock()

void start_lock ( unsigned short v)

◆ 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().

◆ StartNewCampaign()

◆ StartupHook()

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().

◆ stationary_intelligence()

void stationary_intelligence ( short obj)

◆ steady_object()

◆ steer_away_from_object()

◆ steer_away_from_predicted_object()

◆ StepPaletteTransition()

unsigned short __stdcall StepPaletteTransition ( short * current,
const short * target,
short componentCount )

◆ stop_all_sounds()

◆ StopMusic()

◆ StopMusicUnlessSuppressed()

◆ StopSoundsUsingWave()

◆ stranded_sequence()

◆ streak_toward()

void streak_toward ( short obj,
short goal,
short range )

◆ Streamer_close()

◆ Streamer_open()

◆ Streamer_play()

◆ Streamer_stop()

◆ Streamer_trigger()

◆ stress_morale()

short stress_morale ( short obj)

◆ strike_mission()

◆ sub_int_vector()

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().

◆ SubtractFixedVectors()

◆ SystemDebugPrintf()

void SystemDebugPrintf ( const char * format,
... )

Definition at line 182 of file pilot.cpp.

◆ TakeDebugStepFlag()

unsigned char TakeDebugStepFlag ( void )

Definition at line 194 of file pilot.cpp.

References dwDebugOverlayKeyLatch, and TakeDebugStepFlag().

Referenced by init_3Space_objects(), TakeDebugStepFlag(), and WaitForDebugStep().

◆ talk_equiv()

void talk_equiv ( void )

◆ TalkerInit()

unsigned int TalkerInit ( void )

◆ tanker_intelligence()

◆ target_locking()

◆ target_valid()

int target_valid ( short obj)

◆ target_within_range()

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().

◆ the_creator()

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().

◆ TheEndFireWorks()

◆ ThrottleFrameAndDrawFps()

◆ TimerResetHook()

void TimerResetHook ( void )

Definition at line 669 of file eventmgr.c.

References TimerResetHook().

Referenced by DosMemcpy(), FrameStartHook(), and TimerResetHook().

◆ TimerStopHook()

void TimerStopHook ( void )

Definition at line 687 of file eventmgr.c.

References TimerStopHook().

Referenced by DosMemcpy(), MessagePumpHook(), and TimerStopHook().

◆ Title_Sequence()

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().

◆ too_busy()

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().

◆ transform_objects_to_your_view()

◆ transform_to_objects_frame()

◆ TransformRLEPoint()

void TransformRLEPoint ( int * point,
int * result,
int * origin,
unsigned int angleTenths,
int scaleX,
int scaleY )

References TransformRLEPoint().

Referenced by TransformRLEPoint().

◆ TranslatePolledInputEvent()

◆ TranslateRLEFramePalette()

unsigned int TranslateRLEFramePalette ( struct RLEShape * shape,
int frame )

◆ triangle()

void triangle ( Viewport * viewport,
const ShortPoint * points,
int colour )

◆ TriggerPlayerHitPaletteFlash()

unsigned int TriggerPlayerHitPaletteFlash ( void )

◆ trim_goals()

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().

◆ triumph()

◆ try2allow_engage()

void try2allow_engage ( int pilotLevel)

◆ try2end_collision_alert()

void try2end_collision_alert ( short obj)

◆ try2reset_maneuver()

void try2reset_maneuver ( short obj,
short maneuver )

◆ try2rout()

◆ try_far_spot()

◆ TryPlaceNavMapLabel()

short TryPlaceNavMapLabel ( short x,
short y,
short width,
short force )

◆ unactive()

◆ unflag_ace()

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().

◆ UnionRectBounds()

void __stdcall UnionRectBounds ( ShortRect * destination,
const ShortRect * first,
const ShortRect * second )

◆ unwarp()

◆ Update_3Space()

◆ update_bars()

◆ update_canned_sequence()

◆ update_cockpit()

◆ update_dead_disp()

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().

◆ update_digital_readouts()

◆ update_hazards()

◆ update_lights()

◆ update_missile_warning()

◆ update_objective_location()

◆ update_objects_in_space()

◆ update_scripted_view()

◆ update_star_field()

◆ update_status_text()

void update_status_text ( void )

Definition at line 1025 of file cockpt.c.

References update_status_text().

Referenced by update_status_text(), and update_VDUs().

◆ update_VDUs()

◆ update_vid_disp()

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().

◆ UpdateArcadeScoreDisplay()

◆ UpdateBarracksScreen()

void UpdateBarracksScreen ( Viewport * viewport,
struct Shape * shape,
BarracksAnimationState * state )

◆ UpdateDamageDisplay()

◆ UpdateInflightNavText()

◆ UpdateInputDeviceTransitions()

◆ UpdateMap()

◆ UpdateMessage()

◆ UpdateRoomMenuCursor()

◆ UpdateSceneAnimationObject()

◆ UpdateSeries()

◆ UpdateSpacePaletteFade()

◆ UpdateStreamerStoppedFlag()

void UpdateStreamerStoppedFlag ( void )

◆ UpdateTitleMenuCursor()

◆ UpdateTrainSimHighScores()

◆ UpdateTrainSimMenuCursor()

◆ ValidateViewportBounds()

◆ vdu_malf()

unsigned short vdu_malf ( short vdu,
short sound )

◆ vdu_polygon()

◆ vdu_pop_all()

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().

◆ vector_angle()

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().

◆ vector_component_in_dir()

void vector_component_in_dir ( const FixedVector * vector,
const FixedVector * direction,
FixedVector * component )

◆ vector_cross_product()

void vector_cross_product ( const FixedVector * left,
const FixedVector * right,
FixedVector * product )

◆ vector_length_in_dir()

int vector_length_in_dir ( const FixedVector * vector,
const FixedVector * direction )

◆ Vector_magnitude()

◆ veer_random()

◆ vid_equiv()

void vid_equiv ( short obj,
short message )

◆ vid_transmit()

◆ ViewMedals()

◆ visit_the_cinema()

void visit_the_cinema ( int view,
int obj,
short frames )

◆ visited()

◆ wait_for_end_of_music()

◆ WaitForDebugStep()

void WaitForDebugStep ( void )

Definition at line 23 of file timer.c.

References TakeDebugStepFlag(), and WaitForDebugStep().

Referenced by init_3Space_objects(), and WaitForDebugStep().

◆ WaitForFrameTick()

void WaitForFrameTick ( void )

◆ WaitForInputKey()

◆ WaitForJoystickButtonPress()

◆ WaitForJoystickButtonRelease()

◆ WaitForKeyAcknowledge()

◆ WaitForKeyExceptXOrF12()

◆ WaitForMusicOrInput()

◆ WaitForSceneAdvance()

◆ WaitForStreamInputKey()

◆ WaitForVerticalBlankThunk()

◆ WarnLoadGameFirst()

◆ warp()

◆ warp_arrival()

void warp_arrival ( short obj)

◆ WarpMouseTo()

◆ wing_status()

short wing_status ( short personality)

◆ wingman_dead()

short wingman_dead ( void )

◆ wingman_mission()

void wingman_mission ( short obj)

◆ WinMain()

◆ within_field()

short within_field ( const HazardField * field,
const FixedVector * point )

◆ WrapDegrees()

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().

◆ WriteDataFileAtOffset()

short __stdcall WriteDataFileAtOffset ( unsigned short fd,
int offset,
unsigned int length,
const void * data )

◆ WriteDebugString()

void WriteDebugString ( const char * s)

Definition at line 141 of file winsys.c.

References WriteDebugString().

Referenced by exit_squadron(), sound_effect(), SoundFxTick(), and WriteDebugString().

◆ your_afterburner()

◆ your_internal_damage()

◆ zero_vector()