|
Wing Commander
Reconstructed Win32 source (1996)
|
Integer min and max, a packet-release helper, and the single-precision angular constants. More...
#include "wc1.h"Go to the source code of this file.
Functions | |
| short | MinShort (short a, short b) |
| short | MaxShort (short a, short b,...) |
| void | FreePacketAndClear (void *slot, unsigned short releaseFlags) |
Variables | |
| const float | fPi = 3.1415927410125732421875f |
| const float | fDegreesPerRadian = 57.295780181884765625f |
| const float | fRadiansPerDegree = 0.01745329238474369049072265625f |
Integer min and max, a packet-release helper, and the single-precision angular constants.
Address range 41d0c0-41d11f. MinShort and MaxShort have 94 call sites across the game core. The constants' read-only data follows the barracks menu regions and precedes the DirectDraw GUIDs, as only a unit linked between those two can place it.
Definition in file mathutil.c.
Definition at line 37 of file mathutil.c.
References FreePacketAndClear(), and ReleasePacketHandle().
Referenced by AwardCampaignMedal(), cockpit_explosion(), death_sequence(), Dismissed(), DrawPendingCockpitDamage(), DrawPodiumShot(), explosion_draw(), FetchDiskPacketRetrying(), free_cockpit(), free_constellation(), free_pilot_talk(), free_ship(), FreeCommDisplayResources(), FreeConstellationObject(), FreePacketAndClear(), FreeShapeSet(), FreeTalker(), funeral_sequence(), load_ship(), LoadAnswerPromptAndResponse(), LoadBriefingRoom(), LoadFace(), RecRoom(), release_all_capital_ship_shapes(), release_capital_ship_shapes(), remove_object(), set_up_action_sphere(), ShipExplosion(), ShowMeanwhileTransition(), stranded_sequence(), Title_Sequence(), and ViewMedals().
| short MaxShort | ( | short | a, |
| short | b, | ||
| ... ) |
Definition at line 29 of file mathutil.c.
References MaxShort().
Referenced by approach_and_engage(), auto_position(), chase_location(), check_destroy_target(), CheckPoint(), control_speed(), DebriefingEstablishingShot(), DrawHudMessageSlot(), explosion_shock_wave(), fire_flack(), GameFlow(), GetViewportIntersection(), goto_location(), init_hazard(), InitializeCockpitResources(), internal_damage(), match_rotation_goal(), MaxShort(), new_view(), personality_killed(), pop_flack(), prevent_collision(), real_crash_time(), remove_hazard(), ReportFramesSkipped(), revise_shields(), rotational_pos_to_scanner_pos(), set_eye_direction_and_position(), SetScale(), skill_rating(), start_dust(), UpdateSeries(), and your_internal_damage().
| short MinShort | ( | short | a, |
| short | b ) |
Definition at line 20 of file mathutil.c.
References MinShort().
Referenced by approach_and_engage(), asteroid_velocity(), auto_pilot_sequence(), check_destroy_target(), CheckPoint(), CloseTalk(), damage_your_component(), determine_pilot_hand(), ejection_sequence(), explosion_shock_wave(), fire_flack(), GetViewportIntersection(), handle_stress(), internal_damage(), match_rotation_goal(), MeasureMessageWidth(), Mget_distance(), MinShort(), nearest_enemy_range(), prevent_collision(), replenish_weapon_energy_bank(), ReportFramesSkipped(), rnd_aim(), rotational_pos_to_scanner_pos(), show_target_disp(), and skill_check().
| const float fDegreesPerRadian = 57.295780181884765625f |
Definition at line 16 of file mathutil.c.
| const float fPi = 3.1415927410125732421875f |
Definition at line 15 of file mathutil.c.
| const float fRadiansPerDegree = 0.01745329238474369049072265625f |
Definition at line 17 of file mathutil.c.