Wing Commander II
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1/*
2 * Prototypes for every reimplemented function, in address order.
3 *
4 * Address order is link order, so this list doubles as the reconstruction
5 * inventory: see src/map for the same list with the original addresses.
6 */
7#ifndef GAME_FUNCTIONS_H
8#define GAME_FUNCTIONS_H
9
10void SaveGamePalette(void); /* 0x417550 */
11void RestoreGamePalette(void); /* 0x4175AD */
12short easy2see(short obj); /* 0x417610 */
13void make_shard(short asteroid, FixedVector direction); /* 0x4176D2 */
14void remove_hazard(signed char hazard); /* 0x417838 */
15void remove_all_hazards(void); /* 0x41787A */
16short difficulty(void); /* 0x4178E5 */
17short asteroid_velocity(void); /* 0x417916 */
18void skew_randomly(short obj, short allowReverse); /* 0x417941 */
19void align(int *value, short quantum); /* 0x417AD7 */
20void init_hazard(short obj, FixedVector position, short moving); /* 0x417AF9 */
21short near_field(const HazardField *field, const FixedVector *point); /* 0x417EA4 */
22short within_field(const HazardField *field, const FixedVector *point); /* 0x417ED4 */
23short try_far_spot(FixedVector *spot, short *moving); /* 0x417EFF */
24short rear_sphere(void); /* 0x418175 */
25short ok_hazard_spot(short obj); /* 0x4181A2 */
26short make_hazard(void); /* 0x41820B */
27void extra_hazard(short obj); /* 0x418288 */
28void approach(short obj); /* 0x4182B6 */
29void manage_hazard(short obj, short slot); /* 0x41836E */
30void match_ship_to_eye(void); /* 0x418426 */
31void update_hazards(void); /* 0x4184F6 */
32void start_hazard_field(short region); /* 0x4185CC */
33void add_hazard_field(short type, FixedVector center,
34 short radius, short density); /* 0x418626 */
35void check_hazards(void); /* 0x4186A4 */
36void CheckLauncherAndConfig(void); /* 0x453C95 */
37int WINAPI WinMain(HINSTANCE instance, HINSTANCE previous,
38 LPSTR commandLine, int showCommand); /* 0x453E60 */
39void ShutdownGameWindow(void); /* 0x454103 */
40void ShowNoticeMessageBox(const char *text); /* 0x45418B */
41unsigned int AbortToDesktop(void); /* 0x45422D */
42int CreateMainWindow(HINSTANCE instance, HINSTANCE previous,
43 int showCommand); /* 0x4542B7 */
44unsigned int PumpWindowMessages(int skipMessages); /* 0x45445A */
45unsigned int GetF1KeyLatch(void); /* 0x453C80 */
46LRESULT CALLBACK MainWindowProc(HWND window, UINT message,
47 WPARAM wParam, LPARAM lParam); /* 0x454625 */
48void GetJoystickPosition(unsigned int *x, unsigned int *y,
49 int *buttons, unsigned short joystick,
50 unsigned int fallback); /* 0x4551E7 */
51short GetJoystickButtons(void); /* 0x455346 */
52void GetJoystickDevCaps(short joystick, short *xMin, short *xMax,
53 short *yMin, short *yMax); /* 0x45536F */
54HINSTANCE GetApplicationInstance(void); /* 0x455427 */
55HWND GetMainWindowHandle(void); /* 0x45543C */
56HDC GetMainWindowDeviceContext(void); /* 0x455451 */
57void *AllocateGuardedMemory(unsigned int size); /* 0x455466 */
58void ReportHeapGuardCorruption(void *memory, int count, int overrun); /* 0x455565 */
59void CheckAllGuardedAllocations(void); /* 0x455624 */
60int IsFreedHeapBlockTracked(void *memory); /* 0x45562F */
61int DetectDoubleFree(void *memory); /* 0x455697 */
62void TrackFreedHeapBlock(void *memory); /* 0x455715 */
63void UntrackFreedHeapBlock(void *memory); /* 0x455787 */
64void FreeGuardedAllocation(void *memory); /* 0x455882 */
65void SetMousePosition(int x, int y); /* 0x455A85 */
66int TakeInputPressCount(void); /* 0x45641B */
67unsigned int PollKeyboardState(void); /* 0x455AC8 */
68void KeyboardMousePump(void); /* 0x452450 */
69void SetPersonnelCursorPosition(int x, int y, short unused1,
70 short unused2); /* 0x465780 */
71int GetHomeKeyState(void); /* 0x455D2D */
72int GetUpArrowKeyState(void); /* 0x455D48 */
73int GetPageUpKeyState(void); /* 0x455D63 */
74int GetLeftArrowKeyState(void); /* 0x455D7E */
75int GetRightArrowKeyState(void); /* 0x455D99 */
76int GetEndKeyState(void); /* 0x455DB4 */
77int GetDownArrowKeyState(void); /* 0x455DCF */
78int GetPageDownKeyState(void); /* 0x455DEA */
79int GetNumLockKeyState(void); /* 0x455E05 */
80int GetNumpadPlusKeyState(void); /* 0x455E23 */
81int GetNumpadMinusKeyState(void); /* 0x455E3E */
82int GetReturnKeyState(void); /* 0x455E59 */
83int GetSpaceKeyState(void); /* 0x455E74 */
84int GetShiftKeyState(void); /* 0x455E8F */
85unsigned int GetKeyboardModifiers(void); /* 0x455EAA */
86int GetControlKeyState(void); /* 0x455EBF */
87int GetJKeyState(void); /* 0x455EDA */
88unsigned int GetGameClockTicks(void); /* 0x455EF5 */
89void InitGameClockRandomEpoch(void); /* 0x455F23 */
90void WriteDebugString(const char *s); /* 0x455F59 */
91void SetInputCursorHostPosition(int x, int y); /* 0x455FD3 */
92char *LocateStreamsDirOnDisc(void); /* 0x456123 */
93char FindCdRomDriveByVolumeLabel(const char *label,
94 const char *directory); /* 0x456236 */
95int SetCurrentDirOnDrive(char drive, const char *directory); /* 0x4563A3 */
96int PromptInsertCorrectCd(void); /* 0x456443 */
97short OpenDataFileOrDie(const char *path); /* 0x45A010 */
98void CloseDataFile(unsigned short fd); /* 0x45A04A */
99short WriteDataFileAtOffset(unsigned short fd, int offset,
100 unsigned int length,
101 const void *data); /* 0x45A06C */
102short CreateDataFile(const char *path); /* 0x45A12D */
103int ReadDataFileAtOffset(unsigned short fd, int offset,
104 unsigned int length, void *data); /* 0x45A19B */
105int SeekDataFile(unsigned short fd, int offset,
106 unsigned int origin); /* 0x45A259 */
107void SplitGameClockTicks(unsigned char *parts); /* 0x437760 */
108void MonoDebug_install(void); /* 0x4377F0 */
109void MonoDebug_remove(void); /* 0x4378D9 */
110void SendMonoDebugCommand3(void); /* 0x437907 */
111void SoundDebugPrintf(const char *fmt, ...); /* 0x437946 */
112void MonoDebug_print(const char *text); /* 0x437983 */
113void ReadPerformanceCounter(LARGE_INTEGER *p); /* 0x4379D4 */
114void ResetStringBuilder(TextContext *context); /* 0x446580 */
115void visit_the_cinema(int view, int obj, short frames); /* 0x4228B0 */
116short player_wingman(short obj); /* 0x422953 */
117void set_speed(short obj, short speed); /* 0x422990 */
118void auto_position(short obj, short *formationSlot); /* 0x4229B9 */
119void auto_pilot_sequence(void); /* 0x422B1C */
120void ejection_sequence(short outcome, signed char restoreCockpit); /* 0x44EBCA */
121void TryBeginStarSystemJump(void); /* 0x424EFF */
122void CompleteStarSystemJump(void); /* 0x4251F2 */
123short RunCampaignContinuePromptLoop(unsigned char *promptShapes,
124 unsigned char *fieldShape,
125 short promptFrame); /* 0x4098F2 */
126short PromptToContinueCampaign(short promptFrame); /* 0x4099A8 */
127void MarkPilotDead(short pilot); /* 0x424E8C */
128void ReleaseSpaceflightResources(void); /* 0x409B80 */
129void LoadMissionData(short series, short mission); /* 0x4401C0 */
130void UpdateMap(char *text, short objective); /* 0x42ECCB */
131void HandleUnsupportedManeuver(short maneuver, short ship, short target); /* 0x440490 */
132void BeginShipCloak(short ship); /* 0x4404CC */
133void ResetShipCloakState(short ship); /* 0x440549 */
134void SetShipAiScratchWord(unsigned short v); /* 0x440606 */
135void maneuver_complete(short ship); /* 0x44061B */
136void Mline_up_drop(short ship, short target); /* 0x440642 */
137void Mwabble(short ship); /* 0x4406BA */
138void advance(short ship); /* 0x4407B0 */
139void ShipAiState35(short ship, short target); /* 0x4407DA */
140void Mfull_ahead(short ship, short target); /* 0x4407F7 */
141void Mchill(short ship, short target); /* 0x440814 */
142void Mdrop_a_mine(short ship, short target); /* 0x440831 */
143void Mthink(short ship, short target); /* 0x44084E */
144void Mtight_loop(short ship); /* 0x44086B */
145void Mhard_break(short ship); /* 0x440967 */
146void Msit_n_spin(short ship, short target); /* 0x440A93 */
147void Mturn_n_spin(short ship, short target); /* 0x440D0B */
148void Mburnout(short ship, short target); /* 0x440E46 */
149void Mkickit(short ship); /* 0x440F01 */
150void Mturn_n_kick(short ship); /* 0x440F76 */
151void Mroll_over(short ship); /* 0x4410C0 */
152void Mhard_turn(short ship); /* 0x441146 */
153void Mfish_hook(short ship, short target); /* 0x4411E1 */
154void Mtry2tail(short ship, short target); /* 0x441379 */
155void Msplit_left(short ship); /* 0x44145A */
156void Msplit_right(short ship); /* 0x44151B */
157void Mgloat(short ship); /* 0x4415DC */
158void Mtail_fire(short ship, short target); /* 0x4416D5 */
159void Mzip_past(short ship, short target); /* 0x441742 */
160void ShipAiState47(short ship, short target); /* 0x441837 */
161void ShipAiState28(short ship, short target); /* 0x441895 */
162void ShipAiState46(short ship); /* 0x4418B2 */
163void Mtarget_missile(short ship, short target); /* 0x441C01 */
164void Mram_missile(short ship, short target); /* 0x44199B */
165void Mbuzz_debris(short ship); /* 0x441A13 */
166void Mstrafe_enemy(short ship, short target); /* 0x441AFC */
167void Mbest_strafe(short ship, short target); /* 0x441BC1 */
168void Msit_n_fire(short ship, short target); /* 0x441D00 */
169void Mstrafe_n_roll(short ship, short target); /* 0x441D71 */
170void Mkill_missile(short ship, short target); /* 0x441DB3 */
171void Msuicide_run(short ship, short target); /* 0x441E9C */
172void Mget_distance(short ship, short target); /* 0x441EC8 */
173void general_zig(short ship, unsigned int target, short pitch); /* 0x441F86 */
174void Mzig_zag(short ship, unsigned int target); /* 0x44210C */
175void Mzig_zag_pitch(short ship, unsigned int target); /* 0x442129 */
176void Mcorkscrew(short ship); /* 0x442146 */
177void Mveer_away(short ship, short target); /* 0x442252 */
178void ShipAiState44(short ship); /* 0x4423E2 */
179void Mtarget_laser(short ship, short target); /* 0x442404 */
180void Mrout_me(short ship); /* 0x442421 */
181void ShipAiState3(short ship, short target); /* 0x442438 */
182void ShipAiState45(short ship, short target); /* 0x442455 */
183void Mnone(void); /* 0x4424C2 */
184void Mreset(short ship); /* 0x4424CD */
185void perform_maneuver(short obj); /* 0x4424E4 */
186short GetShapeFrameExtent(short x, short y,
187 unsigned char *shape, short frame,
188 short extent); /* 0x447170 */
189void UpdateTargetCameraObject(short obj); /* 0x460650 */
190short RunCampaignGameLoop(short campaignSlot); /* 0x409C1A */
191void InitializeCampaignChalkboardScreen(short cockpitVariant); /* 0x433C84 */
192void RefreshCampaignChalkboardScreen(short cockpitVariant); /* 0x433E8C */
193void DrawCampaignChalkboardFrame(unsigned short frame); /* 0x433ED7 */
194short RunCampaignChalkboardMenu(short campaignSlot); /* 0x459D74 */
195void ShowPlayerEjectionSequence(void); /* 0x438020 */
196void ShowPlayerStrandingSequence(void); /* 0x438080 */
197short GetMissionShipPilotSaveIndex(short missionShip); /* 0x428E00 */
198short GetInitialMissionShipPilotSaveIndex(short initialShip); /* 0x428E98 */
199short GetMissionShipVelocityState(short missionShip); /* 0x428E5C */
200void StoreMissionResultsInCampaignGlobals(CampaignGlobals *globals); /* 0x428EDC */
201void LoadStartingCampaignGlobals(short campaign); /* 0x40A27A */
202short RunSelectedCampaign(void); /* 0x40A2A3 */
203void InitializeNewPilotCampaign(short campaignSlot); /* 0x409850 */
204void cruise_home(short obj); /* 0x442770 */
205void fail(short obj); /* 0x4429A7 */
206void coming_home(short obj); /* 0x4429C0 */
207void run_away(short obj); /* 0x442B78 */
208short check_engage_target(short obj); /* 0x442CC3 */
209short check_destroy_target(short obj); /* 0x442D58 */
210void maneuvering(short obj, short newTarget); /* 0x442EFC */
211void formation_burst(short obj); /* 0x442F2D */
212void disallow_engage(void); /* 0x442FE9 */
213void allow_engage(void); /* 0x442FFD */
214void try2allow_engage(short obj); /* 0x44301A */
215void imperial_formation(short obj); /* 0x443095 */
216void formation_break(short obj); /* 0x4432EB */
217void imperial_wingman(short obj); /* 0x4433B1 */
218void kilrathi_wingman(short obj); /* 0x443499 */
219void wingman_mission(short obj); /* 0x443631 */
220short dist_from_home(short obj); /* 0x44366D */
221short scan_and_lock(short obj, short newTactic); /* 0x443698 */
222void patrol_area(short obj); /* 0x443707 */
223void kilrathi_patrol(short obj); /* 0x443930 */
224void cruise_to_destination(short obj); /* 0x443A08 */
225void prepare_for_jump(short obj); /* 0x443C45 */
226void accelerate_and_jump(short obj); /* 0x443D6E */
227void reach_warp(short obj); /* 0x443DBD */
228void split_patrol_mission(short obj); /* 0x443E8C */
229void warp_arrival(short obj); /* 0x443EE9 */
230void return_to_buddy(short obj, short buddy); /* 0x443F28 */
231void escort_buddy(short obj, short buddy); /* 0x443FA2 */
232void escort_mission(short obj); /* 0x443FE4 */
233void check_goal(short obj); /* 0x444199 */
234void streak_toward(short obj, short goal, short range); /* 0x4441E5 */
235void approach_and_engage(short obj, short goal); /* 0x444291 */
236void strike_mission(short obj); /* 0x444420 */
237void return_to_master(short obj, short master); /* 0x4446C9 */
238void defend_mission(short obj); /* 0x44472C */
239void rendezvous_mission(short obj); /* 0x444966 */
240void ship_intelligence(short obj); /* 0x444ADC */
241void orbit_sphere(short obj); /* 0x444C80 */
242void tanker_intelligence(short obj); /* 0x444D5C */
243void destroyer_intelligence(short obj); /* 0x444E51 */
244void stationary_intelligence(short obj); /* 0x444EA7 */
245void SpawnCapitalFlakProjectile(short weapon, short obj,
246 int x, int y, int z); /* 0x444F53 */
247void capital_ship_strike_mission(short obj); /* 0x445087 */
248void capital_ship_intelligence(short obj); /* 0x445AAC */
249void futurion_intelligence(short obj); /* 0x445D9A */
250void mine_intelligence(short obj); /* 0x446474 */
251void heat_seeking_missile_intelligence(short obj); /* 0x445E68 */
252void FF_missile_intelligence(short obj); /* 0x446133 */
253void chaff_intelligence(short obj); /* 0x446395 */
254void set_sphere_point(const MissionShipRecord *record,
255 FixedVector *position); /* 0x44B200 */
256short is_alive(signed char pilot); /* 0x44B239 */
257void ApplyAlternateShipType(short obj); /* 0x44B48F */
258void LoadAlternateShipType(short resourceType, short logicalFile); /* 0x44B83C */
259short FindObjectResourceSlot(short resourceType); /* 0x44BE84 */
260void check_futurion(short i); /* 0x44B257 */
261void ResetWeaponDisplayPositions(void); /* 0x44B29D */
262void init_mission(short series, short mission); /* 0x44B2E2 */
263void prepare_mission(void); /* 0x44BA73 */
264void release_all_capital_ship_shapes(void); /* 0x44BCF7 */
265void release_capital_ship_shapes(short resourceType); /* 0x44BD83 */
266void load_ship(short resourceType, short objectType,
267 short objectClass, short slot); /* 0x44BEE5 */
268void free_ship(short slot); /* 0x44C796 */
269void free_all_slots(void); /* 0x44CC84 */
270void load_all_slots(void); /* 0x44CCE1 */
271void remove_nav_point_objects(void); /* 0x44CDCF */
272short get_shape_slot(void); /* 0x44CE0A */
273short shape_loaded(short resourceType); /* 0x44CE68 */
274short shape_needed(const MissionNavPoint *navPoint,
275 short resourceType); /* 0x44CEC8 */
276void new_sphere_shapes(MissionNavPoint *navPoint); /* 0x44CF2D */
277void set_up_action_sphere(short navPoint); /* 0x44D35D */
278void ProcessMissionWaveCommands(MissionNavPoint *navPoint); /* 0x44D0C7 */
279short room_for_me(short obj, short minimum); /* 0x44D72E */
280void place_ship_near_player_until_valid(short obj, short minimum,
281 short maximum); /* 0x44D81F */
282short set_up_next_wave(void); /* 0x44D888 */
283void sub_int_vector(const ShortVector *left,
284 const ShortVector *right,
285 ShortVector *difference); /* 0x44D9E2 */
286void set_formation_position(short obj,
287 const MissionShipRecord *record); /* 0x44DA2F */
288void Set_up_ship_info(short obj, short missionShip,
289 signed char navPoint); /* 0x44DB7E */
290short is_team_member(short missionShip); /* 0x44E028 */
291void find_next_ship_turn_slot(short obj); /* 0x44E09C */
292short init_ship(short missionShip, short navPoint); /* 0x44E187 */
293void init_intelligence_data(short obj); /* 0x44E44F */
295 unsigned int fallback); /* 0x44F1F0 */
296void SampleJoystickDevice(InputDeviceSample *samples, short joystick,
297 unsigned int fallback); /* 0x44F247 */
298short ReadJoystickButtons(void); /* 0x44F2B8 */
299void SampleActiveJoystickDevice(void); /* 0x44F2CD */
300void DrawNavTextLine(unsigned char alignment, unsigned short colour,
301 const char *format, ...); /* 0x44FA70 */
302void SetNavMapCoordinateScaling(short enabled); /* 0x44FADA */
303void ScaleNavMapMarkerSize(short *size); /* 0x44FAEF */
304void ScaleNavMapCoordinates(short *x, short *y,
305 short mapX, short mapY); /* 0x44FB19 */
306void nav_getxy(short *x, short *y, int worldX, int worldZ); /* 0x44FB68 */
307void CheckPoint(short x, short y); /* 0x44FBC8 */
308void IncludeNavMapWorldPoint(int worldX, int worldZ); /* 0x44FC37 */
309void SetScale(void); /* 0x44FC6D */
310void Build_objective_list(void); /* 0x44FE9F */
311short NavMapPointInsideReservedArea(short area, short x, short y); /* 0x450136 */
312short NavMapLabelFits(short x, short y, short width, short height); /* 0x4501B2 */
313short NavMapLabelPositionAvailable(short x, short y,
314 short width, short height); /* 0x450210 */
315void ResetNavMapReservedAreas(void); /* 0x450329 */
316void ReserveNavMapArea(short x, short y, short width, short height); /* 0x45033D */
317void ResetNavMapLabels(void); /* 0x4503A7 */
318short TryPlaceNavMapLabel(short x, short y, short width,
319 short force); /* 0x4503BB */
320void PlaceNavMapLabel(short x, short y, unsigned short colour,
321 const char *text); /* 0x450458 */
322void AddUniqueObjectiveNavLabel(short x, short y,
323 unsigned short colour, const char *text,
324 short objective, short missionShip); /* 0x4506F8 */
325short IsPointInNavMapLabel(short label, short x, short y); /* 0x4507DA */
326void DrawNavMapLabels(void); /* 0x45087F */
327void DrawNavRectangleMarker(short x, short y, short size, short shadow,
328 unsigned short colour, short reserve); /* 0x450900 */
329void DrawNavSquareOutline(Viewport *viewport, short x, short y,
330 short size, signed char colour); /* 0x4509C9 */
331void DrawNavSquareMarker(short x, short y, short size,
332 short shadow, short colour,
333 short reserve); /* 0x450A12 */
334void DrawNavTriangleOutline(Viewport *viewport, short x, short y,
335 short size, signed char colour); /* 0x450B03 */
336void DrawNavTriangleMarker(short x, short y, short size,
337 short shadow, unsigned short colour,
338 short reserve); /* 0x450BBA */
339void DrawNavCrossMarker(short x, short y, short size,
340 short shadow, unsigned short colour,
341 short reserve); /* 0x450C2A */
342void SetScreenClipRect(unsigned short a, unsigned short b, unsigned short c, unsigned short d);/* 0x450DF6 */
343void DrawNavHazardMarker(FixedVector navPosition, FixedVector offset,
344 short size, unsigned short markerColour,
345 unsigned short textColour,
346 const char *text); /* 0x450E1E */
347void DrawNavPlayerMarker(short colour, short reserve); /* 0x450E98 */
348void BuildMap(short showPlayer); /* 0x450FE2 */
349void UpdateInflightNavText(short showColon); /* 0x45153A */
350void FormatNavCoordinates(unsigned char *out); /* 0x451637 */
351void DrawSelectedNavLegendEntry(const char *text, short navPoint); /* 0x451673 */
352void DrawNavMapLegend(void); /* 0x4516C0 */
353char *nav_note(short objective); /* 0x451756 */
354void DrawNavLocationReadout(const char *title, short showFlightData); /* 0x45180F */
355void BriefingMap_LoadShapes(void); /* 0x451AD3 */
356void BriefingMap_DisplayMap(void); /* 0x451B70 */
357short SelectNavObjectiveAtPoint(short mouseX, short mouseY); /* 0x451C5C */
358void CentreMouseOnCurrentNavObjective(void); /* 0x451DDB */
359void ShowConfedNavScan(short refresh); /* 0x451E57 */
360void InflightComputer(void); /* 0x451FAA */
361short MergeAdjacentNearHeapBlocks(int descriptorAddress); /* 0x4207B0 */
362int ReleaseNearHeapBlock(int descriptorAddress); /* 0x420874 */
363void PurgeNearHeapBlocks(short flags); /* 0x4208FC */
364unsigned short InitializeNearHeap(void); /* 0x4209C2 */
365void *AllocateNearHeapBlockFromEnd(int size, short flags); /* 0x420B88 */
366void *AllocateNearHeapBlockByFlags(int size, short flags); /* 0x420E16 */
367short GetViewportIntersection(ShortRect *intersection,
368 const ShortRect *first,
369 const ShortRect *second); /* 0x4651B7 */
370void free_viewport(Viewport *viewport); /* 0x4471B0 */
371void Title_Sequence(void); /* 0x407E40 */
372void DrawTitleSky(short planetY); /* 0x40809D */
373void DrawTitleOrchestra(void); /* 0x4080DF */
374void AnimateTitleOrchestra(void); /* 0x40815F */
375void PlayTitleConductorCue(void); /* 0x4083E6 */
376void DrawScaledTitleLogo(short y, short scale); /* 0x4087FF */
377void PushTitleOrchestraAway(void); /* 0x4088A9 */
378short RevealTitleLogo(void); /* 0x408A88 */
379void ShowVictoryScreen(short logoY); /* 0x408CC8 */
380void CalibrateJoystickInteractive(); /* 0x418770 */
381void WaitForJoystickButtonRelease(void); /* 0x418D14 */
382void WaitForJoystickButtonPress(void); /* 0x418D5F */
383void SetFleetOverviewView(short initializeCockpit); /* 0x44ADE0 */
384unsigned int rotate_eye_to_goal(void); /* 0x419C10 */
385short GetVectorMagnitude(const FixedVector *vector); /* 0x419CDC */
386unsigned int set_eye_direction_and_position(void); /* 0x419D01 */
387void force_view(int view, short obj); /* 0x41AD51 */
388void SaveTorpedoTargetLockForViewChange(int previousView); /* 0x41AD8B */
389unsigned int new_view(int view, short obj); /* 0x41AE40 */
390unsigned int start_dust(short obj, FixedVector origin,
391 short forwardDistance, int rightOffset,
392 int upOffset); /* 0x41B62E */
393unsigned int generate_stars(void); /* 0x41B762 */
394unsigned int update_star_field(void); /* 0x41B8D6 */
395short count_down(short obj); /* 0x41BD44 */
396void house_keep_objects(void); /* 0x41BD81 */
397void update_objects_in_space(void); /* 0x41C7ED */
398unsigned int rotate_object(short obj); /* 0x41CB3C */
399void accelerate_and_move_object(short obj); /* 0x41CC0A */
400void animate_shape(short obj); /* 0x41D07B */
401void animate_object(short obj); /* 0x41D2DA */
402void hit_asteroid(short asteroid, short destructionChance); /* 0x41D4C7 */
403void object_collision(short obj); /* 0x41D591 */
404void object_intelligence(short obj); /* 0x41E276 */
405void EmitTextString(void (*writer)(int), const char *text); /* 0x420340 */
406void FormatTextTokens(void (*writer)(int),
407 const char *format, va_list arguments); /* 0x420378 */
408void DrawFormattedText(const char *format, ...); /* 0x42067F */
409void FormatTextBufferFromStart(const char *format, ...); /* 0x4206F2 */
410void AppendFormattedText(const char *format, ...); /* 0x42075F */
411void DrawCinematicFontCharacter(char character); /* 0x433690 */
412short IsCinematicFontCharacterPrintable(short character); /* 0x43374E */
413void DrawWrappedCinematicText(char *text); /* 0x433777 */
414short MeasureCinematicFontCharacterWidth(short character); /* 0x433A14 */
415short MeasureCinematicFontLineHeight(void); /* 0x433A75 */
416void InitializeCinematicTextRenderer(void); /* 0x433AB0 */
417void FatalErrorAndExit(const char *format, ...); /* 0x4380B0 */
418short IsCockpitExplosionActive(void); /* 0x4380FD */
419void EraseCockpitReadoutRegion(Viewport *viewport, short left,
420 short top, short right, short bottom,
421 short colour); /* 0x438129 */
422void vdu_polygon(signed char bar, short percent); /* 0x438194 */
423unsigned int InitializeCockpitReadout(signed char slot,
424 TextContext *context); /* 0x438454 */
425void DrawCockpitReadout(signed char slot, const char *text); /* 0x4384AD */
426short DrawHudMessageSlot(HudMessageSlot *slot); /* 0x4385B3 */
427void ClearHudMessageSlot(HudMessageSlot *slot); /* 0x438711 */
428void ClearGlobalMessage(void); /* 0x438923 */
430 const char *text); /* 0x4387A7 */
431void ClearHudGunReadouts(void); /* 0x4387CD */
432void DismissHudMessageIfShowing(void); /* 0x43D9AB */
433short FindNearestMissileTargetingObject(short obj); /* 0x43E101 */
434short ObjectivesShareNavLabel(short objective, short other); /* 0x450623 */
435void DrawNavMapBriefingBeacons(void); /* 0x450F1E */
436void ClearTransientObjectsForEjection(void); /* 0x44EA50 */
437void FlagCurrentNavObjectivesReached(void); /* 0x44EB4E */
438short IsObjectiveInDisplayedSystem(short objective); /* 0x450CF8 */
439void FollowSelectedObjectiveSystem(void); /* 0x451EC9 */
440void SetHudMessageSlot(HudMessageSlot *slot, TextContext *context,
441 short x, short y, const char *text,
442 unsigned short colour,
443 signed char flashCount); /* 0x4387FA */
444void UpdateMessage(HudMessageSlot *slot); /* 0x438864 */
445void set_global_message(const char *text, unsigned short colour,
446 int flashCount); /* 0x4388B6 */
447void CockpitMessage(const char *text, unsigned short colour,
448 int flashCount); /* 0x4388F5 */
449void remove_message(const char *text); /* 0x43893F */
450short kilrathi_near(short obj, short range); /* 0x43895F */
451short IsMissionObjectiveOutOfSystem(short objective); /* 0x4389FE */
452short auto_pilot_valid(short showReason); /* 0x438ADD */
453void reset_cockpit(void); /* 0x438CEB */
454void SetCockpitLightBlink(signed char light, short interval); /* 0x438D30 */
455void draw_cockpit_lights(void); /* 0x438DAD */
456void update_lights(void); /* 0x438F62 */
457void update_bars(void); /* 0x439076 */
458short get_mode(short i); /* 0x439264 */
459void set_mode(short i, int state); /* 0x43928E */
460unsigned short SetVduModeIfChanged(short i, int state); /* 0x4392F1 */
461short GetVduModeStackDepth(short i); /* 0x43934D */
462void push_mode(short i, int state); /* 0x439369 */
463void pop_mode(short i); /* 0x4393B3 */
464void set_new_vdu(short vdu); /* 0x4393E1 */
465short update_vid_disp(short vdu); /* 0x4394A0 */
466void InvalidateVduMode(short i); /* 0x439500 */
467void clear_message_time(void); /* 0x43951A */
468short message_showing(void); /* 0x43952E */
469void set_message_time(short duration); /* 0x439559 */
470void check_message(void); /* 0x439588 */
471void update_digital_readouts(void); /* 0x4396BF */
472void malf_sound(void); /* 0x439753 */
473short malf(char component); /* 0x439789 */
474void vdu_malf(short vdu, short sound); /* 0x4397D5 */
475void ShowComponentHitHudMessage(const char *text, unsigned short colour,
476 short flashCount); /* 0x43984F */
477signed char damage_your_component(char component, char amount,
478 char maximum); /* 0x4398CB */
479void RemovePlayerReleaseWeapon(signed char weapon); /* 0x4399C6 */
480void fire_computer_graphic_missile(void); /* 0x439A5A */
481void show_weapon_disp(void); /* 0x439BB7 */
482void update_status_text(void); /* 0x439F5F */
483short sighted(short objective); /* 0x43A1EB */
484short visited(short objective); /* 0x43A21E */
485short achieved(short objective); /* 0x43A251 */
486void flag_objective(short objective, unsigned char flags); /* 0x43A29E */
487void DrawCalculatingLabel(void); /* 0x43A2CD */
488const char *objective_name(short objective); /* 0x43A374 */
489void show_navigation_disp(void); /* 0x43A3F8 */
490short hidden_objective(short objective); /* 0x43A474 */
491short set_new_objective(short pathIndex); /* 0x43A75E */
492short cycle_next_objective(void); /* 0x43A851 */
493void set_next_destination(void); /* 0x43A8EA */
494short LocateMobileObjective(short objective); /* 0x43A9D7 */
495short is_any_ship_returning_to_current_nav_point(void); /* 0x43AA3F */
496short escorting_a_ship(void); /* 0x43AAC3 */
497void flag_reached(short objective, short reached); /* 0x43AAFF */
498void check_sighting(short objective, short range, short object); /* 0x43AD61 */
499void check_visit(short objective, short range); /* 0x43ADC4 */
500void update_objective_location(short objective); /* 0x43AE2F */
501short objective_lost(short objective); /* 0x43AFD3 */
502void check_objectives(void); /* 0x43B089 */
503void rotational_pos_to_scanner_pos(signed char object,
504 const SphericalVector *position,
505 CockpitScannerGeometry geometry); /* 0x43B0EB */
506short mobile_objective(short objective); /* 0x43B1F0 */
507void ResetScannerContacts(void); /* 0x43B258 */
508void clear_head_up_display(void); /* 0x43B29D */
509void set_objective_range(short showOnScanner); /* 0x43B4CF */
511 int range, short *colour); /* 0x43B570 */
512short get_color(short object, unsigned short *colour); /* 0x43B61F */
513void draw_3d_scanner(void); /* 0x43B7C0 */
514void start_lock(unsigned short v); /* 0x43BE1B */
515short starting_lock(unsigned short v); /* 0x43BE55 */
516void lock_off(void); /* 0x43BE8D */
517short CheckTargetLockMalfunction(void); /* 0x43BEFF */
518short decrement_lock_time(short screenX); /* 0x43BF67 */
519void target_locking(signed char target); /* 0x43C048 */
520void SetRectBounds(Viewport *viewport, unsigned short left,
521 unsigned short top, unsigned short right,
522 unsigned short bottom); /* 0x43C30D */
523short GetRectHeight(const Viewport *viewport); /* 0x43C344 */
524void print_message_text(char *text, unsigned short colour); /* 0x43C364 */
525void RestoreHudMessageBackground(void); /* 0x43C5B0 */
526void ShowHudTextLine(void); /* 0x43C570 */
527void SetHudTextColour(char *text, unsigned short colour); /* 0x43C601 */
528void ClearHudMessageDisplay(short closeCommMenu); /* 0x43C64D */
529void draw_target_box(unsigned short colour, signed char object,
530 short solid, short drawLockMarker, short padding,
531 ShortRect *savedBounds); /* 0x43C6D8 */
532void remove_nav_pointer(void); /* 0x43CBD3 */
533void draw_nav_pointer(void); /* 0x43CBFD */
534short HasInRangeGunForTargetLead(short targetRange); /* 0x43CE8F */
535void UpdateTargetLeadIndicator(void); /* 0x43CF5A */
536void RestoreTargetLeadIndicator(void); /* 0x43D323 */
537void overlay_head_up_display(void); /* 0x43D386 */
538void RestoreCockpitExplosionIfVisible(void); /* 0x43D7F2 */
539void RestoreTransientCockpitGraphics(void); /* 0x43D81F */
540void SetHudMessageText(char *text, unsigned short colour,
541 unsigned short duration); /* 0x43D956 */
542void malf_noise(short vdu, int effect, unsigned short colour,
543 short sound, short refresh); /* 0x43D9DA */
544void build_your_target_list(short *hasEnemy); /* 0x43DA68 */
545void cycle_onscreen_targets(void); /* 0x43DD1B */
546void check_target(void); /* 0x43DDFC */
547void update_missile_warning(void); /* 0x43E1B2 */
548void determine_pilot_hand(void); /* 0x43E297 */
549void DrawPilotHandFrame(void); /* 0x43E371 */
550void CopyTrainSimPilotViewToVdus(void); /* 0x43F110 */
551void animate_pilot(void); /* 0x43E43A */
552void ResetPilotHandAnimation(void); /* 0x43E472 */
553void send_message(short obj, signed char message); /* 0x43E4A8 */
554void npc_communication(void); /* 0x43E5DA */
555void clear_cockpit_damage(void); /* 0x43E870 */
556void explosion_draw(int useBackgroundViewport); /* 0x43E8B2 */
557void DrawPendingCockpitDamage(void); /* 0x43E9E2 */
558void RestoreCockpitExplosionBackground(void); /* 0x43EAE3 */
559void cockpit_explosion(void); /* 0x43EB46 */
560void place_damage_on_cockpit(short damage); /* 0x43EC50 */
561void vid_transmit(void); /* 0x43ECD9 */
562void vid_equiv(short obj, short message); /* 0x43F042 */
563void update_dead_disp(short a); /* 0x43F09D */
564void check_stranded(void); /* 0x43F0C3 */
565void update_VDUs(void); /* 0x43F2F5 */
566void update_cockpit(void); /* 0x43F6C9 */
567short IsCockpitWeaponShapeLoaded(void); /* 0x43F81B */
568void PlayCockpitSelectionSfx(short selectionSound); /* 0x43F849 */
569void vdu_pop_all(short vdu); /* 0x43F862 */
570void SelectCockpitVduMode(short vdu, int mode); /* 0x43F8CD */
571short MeasureTextPixelWidthClamped(const char *text); /* 0x453B30 */
573 unsigned char *indices,
574 short capacity); /* 0x4589D0 */
575short get_ship_max_velocity(short obj); /* 0x40A3A0 */
576void recalc_max_velocity(short ship); /* 0x40A481 */
577void drain_fuel(short ship, short amount); /* 0x40A51D */
578void damage_ion_drive(short ship, short amount,
579 short maximum); /* 0x40A556 */
580int GetShipAccelerationRate(short ship); /* 0x40A5A0 */
581void point_at(short obj, FixedVector point); /* 0x40A691 */
582void look_at(short obj); /* 0x40A6F7 */
583void position_relative(FixedVector *position, FixedVector direction,
584 short distance); /* 0x40A725 */
585void position_relative_ijk(FixedVector *position, short obj,
586 short right, short up, short forward); /* 0x40A774 */
587short FixedToShortSaturating(int value); /* 0x40A81B */
588int MinInt(int a, int b); /* 0x40A867 */
589int MaxInt(int a, int b); /* 0x40A893 */
590int AbsInt(int v); /* 0x40A8BF */
591unsigned int SignFixed(int v); /* 0x40A8EB */
592short WrapDegrees(short degrees); /* 0x40A925 */
593short equ_vector(const FixedVector *left, const FixedVector *right); /* 0x40A981 */
594short IsPairEqualityDifferentFromFlag(const unsigned int *values); /* 0x40A9D1 */
595void zero_vector(FixedVector *vector); /* 0x40AA0B */
596void negate_vector(FixedVector *vector); /* 0x40AA37 */
597void AddFixedVectors(const FixedVector *left, const FixedVector *right,
598 FixedVector *sum); /* 0x40AA6A */
600 FixedVector *difference); /* 0x40AAA8 */
602 FixedVector *delta); /* 0x40AAE6 */
603void ScaleFixedVector(FixedVector *vector, int scale,
604 FixedVector *result); /* 0x40AB24 */
605void divide_vector(FixedVector *vector, int divisor,
606 FixedVector *result); /* 0x40AB78 */
607short ChooseRandomSignedMagnitude(short minimum, short maximum,
608 short allowNegative); /* 0x40ABCC */
609void MakeRandomVectorFixed(short minimum, short maximum,
610 FixedVector *vector); /* 0x40AC24 */
612 FixedVector *vector); /* 0x40AC88 */
613void random_radial(const FixedVector *center, short radius,
614 FixedVector *position); /* 0x40ACA5 */
615void rectangular_to_spherical(const FixedVector *rectangular,
616 SphericalVector *spherical); /* 0x40ACE0 */
618 ShortVector *destination); /* 0x40AD89 */
619int dot_product(const FixedVector *left, const FixedVector *right); /* 0x40ADC2 */
620short vector_angle(FixedVector left, FixedVector right); /* 0x40AE18 */
621void vector_cross_product(const FixedVector *left,
622 const FixedVector *right,
623 FixedVector *product); /* 0x40AE70 */
624short NormalizeFixedVector(FixedVector *vector); /* 0x40AF18 */
625int vector_length_in_dir(const FixedVector *vector,
626 const FixedVector *direction); /* 0x40AF99 */
627void vector_component_in_dir(const FixedVector *vector,
628 const FixedVector *direction,
629 FixedVector *component); /* 0x40AFFA */
630void rotate_about_i(short angle, FixedVector *j,
631 FixedVector *k); /* 0x40B02F */
632void rotate_about_j(short angle, FixedVector *i,
633 FixedVector *k); /* 0x40B17F */
634void rotate_about_k(short angle, FixedVector *i,
635 FixedVector *j); /* 0x40B2CF */
636void init_ijk(short obj); /* 0x40B41F */
637void copy_frame(short source, short destination); /* 0x40B550 */
638void fix_objects_ijk(short obj); /* 0x40B5DF */
639void transform_to_objects_frame(const FixedVector *source,
640 FixedVector *destination,
641 short obj); /* 0x40B699 */
642void alter_pitch(short angle, short obj); /* 0x40B706 */
643void alter_yaw(short angle, short obj); /* 0x40B747 */
644void alter_roll(short angle, short obj); /* 0x40B788 */
645short distance_between_points(const FixedVector *from,
646 const FixedVector *to); /* 0x40B7C9 */
647short distance_from_point(short obj, const FixedVector *point); /* 0x40B805 */
648short distance_from_object(short obj, short other); /* 0x40B85C */
649short enemy_within_range(short obj, short range); /* 0x42AAD3 */
650void get_facing_range_from_point(short obj, const FixedVector *point);/* 0x40B898 */
651void get_facing_range_from_object(short obj, short other); /* 0x40B92F */
652short facing_to_object(short obj, FixedVector *point); /* 0x40B9B5 */
653short match_roll_orientation(short obj, short reference); /* 0x40BA2E */
654short set_ship_rotation_goals(short obj, short turnRate,
655 const FixedVector *direction,
656 short pointingMode,
657 short *yawGoal, short *pitchGoal); /* 0x40BADB */
658void point_ship(short obj, short turnRate,
659 const FixedVector *direction); /* 0x40BC6B */
660void point_ship_at_point(short obj, const FixedVector *point); /* 0x40BCA9 */
661void point_ship_at_object(short obj, short other); /* 0x40BCE8 */
662void point_capital_ship_at_object(short obj, short other); /* 0x40BD0E */
663void point_ship_behind_object(short obj, short other); /* 0x40BDC2 */
664void point_ship_below_object(short obj, short other); /* 0x40BE3A */
665void point_perpendicular_to_point(short obj,
666 const FixedVector *point); /* 0x40BD58 */
667void point_perpendicular(short obj, short other); /* 0x40BEB0 */
668void point_parallel(short obj, short other); /* 0x40BED6 */
669void NormalizeAndScaleVector(FixedVector *vector, int scale); /* 0x40BF0B */
670void SetVectorFixedPoint(unsigned int *p, short v); /* 0x40BF36 */
672 short range); /* 0x40BF55 */
673short check_for_collision(short obj); /* 0x40BF8C */
674void position_child(short parent, short weapon,
675 FixedVector *position); /* 0x40C08C */
676void child_object(short hardpoint, short child, short parent); /* 0x40C1DA */
677short get_ship_slot(void); /* 0x40C211 */
678short find_vacant_3d_object(void); /* 0x40C266 */
679void remove_object(short obj); /* 0x40C2C9 */
680void apply_force_to_objects_center(FixedVector *force, short obj); /* 0x40C46C */
682 short obj); /* 0x40C4D1 */
684 short obj); /* 0x40C796 */
685void ClampVectorTo30(short *p); /* 0x40C959 */
686void ClampTo30(short *p); /* 0x40C99F */
687void transform_objects_to_your_view(void); /* 0x40C9DD */
689 FixedVector *direction); /* 0x40CEF6 */
690void get_right_shape(short obj, FixedVector *direction); /* 0x40CFF8 */
691/* The modal panel rectangle travels by value as one 8-byte record. The
692 * typedef also stands in for the parameter name the old two-dword prototype
693 * had, keeping the header's symbol count. */
695short InitializeModalTextPanel(ModalTextPanel *panel, short fontIndex,
696 ModalPanelBounds bounds, short clearColour,
697 short backgroundColour, short borderColour); /* 0x4593D6 */
698void DrawModalTextPanel(ModalTextPanel *panel, short x, short y,
699 unsigned char alignment,
700 const char *format, ...); /* 0x459527 */
701void RestoreModalTextPanel(ModalTextPanel *panel); /* 0x4595AA */
702short ShowModalTextPanel(short fontIndex, const char *format, ...); /* 0x4595EF */
703void ReleaseModalTextPanel(void); /* 0x45979B */
704void DrawUnreferencedPilotHandFrame(Viewport *viewport, unsigned char *shape,
705 BarracksAnimationState *state); /* 0x46138D */
706short RunCampaignSelectionFrame(void *scene, void *field); /* 0x418DAA */
707short BarracksScreen(void); /* 0x419831 */
708short StepPaletteTransition(short *current,
709 const short *target,
710 short componentCount); /* 0x4225A0 */
711char *DosStrcat(char *destination, const char *source); /* 0x446910 */
712DWORD WINAPI DebugOverlayWorkerProc(void *parameter); /* 0x45AEE4 */
713LRESULT CALLBACK DebugKeyboardHookProc(int code, WPARAM key,
714 LPARAM flags); /* 0x45B04E */
716 const char *format, ...); /* 0x45B0BB */
717short MinShort(short a, short b); /* 0x40F040 */
718short MaxShort(short a, short b); /* 0x40F072 */
719void FreePacketAndClear(void *slot, unsigned short releaseFlags); /* 0x40F0A4 */
720void ReleasePacketSlot(void **slot); /* 0x40D6B0 */
721void ReportPacketLoadError(void *packet, char *fileName,
722 short retry, short section,
723 const char *sourceTag); /* 0x40F0D2 */
724void AppendPacketLoadDebugLog(char *fileName, short section,
725 void *packet); /* 0x40F266 */
726void *LoadPacketIntoBuffer(char *fileName, short section,
727 void *destination, int registerHandle); /* 0x40F40E */
728void *LoadPacketAllocated(char *fileName, short section); /* 0x40F49D */
729void *FetchDiskPacketRetrying(char *fileName, short section,
730 short flags); /* 0x40F5B6 */
731void RewritePacketFilenameForInstalledData(char *fileName); /* 0x40F3AE */
732void InitializeTextContextFromFont(TextContext *context, short fontIndex,
733 unsigned char colour,
734 signed char background); /* 0x40F882 */
735void ReleaseTextFont(short fontIndex); /* 0x40F91C */
736void DrawTextAt(TextContext *context, int x, int y,
737 const char *text,
738 unsigned char alignment); /* 0x40F96E */
739void OpenDiskDataFile(short logicalFile); /* 0x4342E8 */
740void FlushPendingInputPresses(void); /* 0x40F9F7 */
741short WaitForInputKey(void); /* 0x40FA2C */
742unsigned short WaitForAnyInputPress(void); /* 0x40FADE */
743short WaitForSceneAdvance(void *scenePacket); /* 0x409120 */
744void LoadSceneHotspotBoundsForSelection(void *scenePacket,
745 short selection); /* 0x40926E */
746short FindSceneHotspotAtPosition(void *scenePacket, short offsetX,
747 short offsetY, short x, short y); /* 0x409417 */
748short PollSceneHotspotInput(void *scenePacket, short offsetX,
749 short offsetY, short dismissOnBackground,
750 short maximumSelection); /* 0x40963B */
751void SwapSceneChunkSizeEndian(int *value); /* 0x40D6E1 */
752unsigned int ReadNextSceneForm(unsigned char **cursor,
753 unsigned char **nextForm); /* 0x40D812 */
754void *AllocateScenePointerTable(int count, short elementSize,
755 unsigned short flags,
756 const char *errorMessage); /* 0x40D9AD */
757signed char DecodeSceneResourceChunk(unsigned char **cursor,
758 SceneResourceTable *resource); /* 0x40E130 */
759void DrawPilotSaveMenuChoices(short choice); /* 0x4345A1 */
760void HighlightPersonnelFileSlot(short choice); /* 0x434ACE */
761short SelectPersonnelFileSlot(void); /* 0x434BB5 */
762void RunPilotSaveLoadMenu(void); /* 0x4353D4 */
763short initialize_object(short obj, short type,
764 short owner, short matchLoadedType); /* 0x4103A6 */
765short borrow_dust(void); /* 0x41040D */
766short new_object(short type, short owner); /* 0x4105BF */
767short initialize_ship(short type, short owner,
768 short matchLoadedType); /* 0x41062D */
769short CountShipProjectiles(short ship); /* 0x410020 */
770short CanShipWeaponDamageTarget(short ship, short target); /* 0x410102 */
771short ShipHasCloakingDevice(short ship); /* 0x41008E */
772short HasShipCockpitGunDisplay(short ship); /* 0x410192 */
773void IncreaseAdaptiveDifficulty(void); /* 0x4102FD */
774void DecreaseAdaptiveDifficulty(void); /* 0x410352 */
775void ResetTargetCameraView(void); /* 0x4601F1 */
776short CountShipCockpitGunDisplays(short ship); /* 0x460242 */
777void ToggleTargetCameraOverlay(void); /* 0x4602BE */
778void ClearTargetCameraView(void); /* 0x4603C5 */
779void ToggleTargetCameraTracking(void); /* 0x460498 */
780void UpdateTargetCameraTracking(void); /* 0x4608E8 */
781void ClearSavedTorpedoTargetLock(void); /* 0x460BAF */
782void UpdateSavedTorpedoTargetLock(void); /* 0x460BCC */
783void SetTargetCameraEyePosition(short cameraMode); /* 0x460D3E */
784void DrawTargetCameraAttitudeIndicators(unsigned short colour); /* 0x460DFE */
785void RestoreTargetCameraAttitudeIndicators(void); /* 0x4610BC */
786void UpdateTargetCameraCockpitHook(void); /* 0x461456 */
787void FinalizeTargetCameraViewHook(void); /* 0x461466 */
788short ShipHasTorpedo(short ship); /* 0x410215 */
789short any_selected(unsigned char *loadout, short objectClass); /* 0x410680 */
790void remove_weapon(short obj, short weapon); /* 0x410715 */
791void InitializeShipWeaponTypeIndices(short obj); /* 0x41090F */
792void set_objects_data(short obj, short type,
793 short owner, short matchObjectClass); /* 0x410999 */
794unsigned int match_rotation_goal(short *rotation, short *goal,
795 short totalError, short rate); /* 0x411172 */
796void rotate_object_to_goal(short obj); /* 0x41133D */
797void check_for_lost_control(short obj); /* 0x4115F8 */
798void celerate(short ship, int delta); /* 0x4117AC */
799unsigned int approach_speed(short ship, int targetSpeed); /* 0x41181D */
800void steady_object(short ship); /* 0x4118A9 */
801short real_velocity(short obj); /* 0x4118F2 */
802unsigned int fix_velocity(short obj); /* 0x411922 */
803void SortViableTargetsByDistance(void); /* 0x41195F */
804void send_appropriate_message(short attacker, short victim); /* 0x411A50 */
805short inflict_damage(short attacker, short victim, short damage,
806 const FixedVector *impactDirection); /* 0x411C72 */
807short pilot_hit(short obj); /* 0x41262D */
808short onboard_explosion(short obj); /* 0x41270A */
809void call_enemy(short obj); /* 0x41280B */
810short internal_damage(short attacker, short owner, short victim,
811 short damage, short quadrant); /* 0x4128A7 */
812void revise_shields(short obj); /* 0x412F03 */
813short IsOnlyShipGun(short ship, short weapon); /* 0x412FA9 */
814short your_internal_damage(short attacker, short owner, short damage,
815 short quadrant); /* 0x413099 */
816short ReportComponentRepaired(short component, short minimumDamage); /* 0x413578 */
817void repair_internal_damage(void); /* 0x4135F1 */
818void Create_ship_hit_debris(short obj, short count); /* 0x4136E2 */
819void check_next_wave(void); /* 0x4137C2 */
820void ProcessEnemyWaveCompletion(void); /* 0x4138A8 */
821void Create_explosion_debris(short obj); /* 0x413A3B */
822void affect_mission_score(short pilot, int event, short amount); /* 0x413D61 */
823void score_for_kill(short pilot, short victim); /* 0x413E4C */
824void analyze_kill(short attacker, short victim); /* 0x413F58 */
825short ShipExplosion(short obj); /* 0x4142C8 */
826short Explosion(short obj); /* 0x41444C */
827void explosion_shock_wave(short obj, short blastDamage); /* 0x414025 */
828short explode(short attacker, short victim); /* 0x414835 */
829short ResolveObjectDestruction(short attacker,
830 short victim); /* 0x4148F5 */
831int send_at_point(short obj, FixedVector *point, short speed); /* 0x414BE9 */
832short find_child_object(short parent, short objectClass); /* 0x414C39 */
833short IsCapitalShipObject(short obj); /* 0x410161 */
834short GetAdaptiveTurnRate(void); /* 0x410289 */
835short find_child_ship(short parent, short objectClass,
836 short target); /* 0x414CA9 */
837int launch_object(short parent, short child, FixedVector direction,
838 short speed); /* 0x414D3D */
839void fire(short obj, short target); /* 0x414DC0 */
840short hemisphere(FixedVector *target, FixedVector *parent,
841 FixedVector *hardpoint); /* 0x415508 */
842void fire_flack(short owner, short explosion, short range,
843 FixedVector *aim, short burstMode); /* 0x415563 */
844int RandomFixedAimComponent(short radius, short speed, short maximum); /* 0x41565E */
845short SpawnFlakBurst(short obj, short range, FixedVector *hardpoint,
846 short burstMode); /* 0x4156A7 */
847short HasShipActiveMissile(short obj); /* 0x41596F */
848short fire_turrets(short obj); /* 0x4159DB */
849short fire_weapon(short obj, short weapon); /* 0x415E2C */
850short fire_missile(short ship); /* 0x41670E */
851void fire_fixed_projectile_weapon(short obj); /* 0x41687F */
852void fire_afterburner(short obj, short time); /* 0x41693A */
853short find_weapon(short obj, short weaponType); /* 0x416690 */
854void check_computer_damage(void); /* 0x412F90 */
855short RandomSign(short v); /* 0x415625 */
856void fire_super_brake(short ship); /* 0x4169CC */
857short flip_angle(short ship, short angle); /* 0x4169F3 */
858void place_exhaust_on_ships(void); /* 0x416A87 */
859void reposition_fixed_child_objects(void); /* 0x416DC3 */
860void housekeep_power_plant_and_fuel(short ship); /* 0x4170F9 */
861void replenish_shields(short ship); /* 0x417124 */
862void replenish_weapon_energy_bank(short ship); /* 0x41724A */
863void accelerate(short amount); /* 0x41740F */
864void your_afterburner(void); /* 0x417471 */
865void LoadGamePaletteFile(void); /* 0x45B810 */
866void EMShutDown(void); /* 0x45B905 */
867void EMStartUp(void); /* 0x45B924 */
868void LoadOriginFxDrivers(void); /* 0x45B9D3 */
869short QueryCurrentGraphicsMode(void); /* 0x45B7E0 */
870short LoadGraphicsDriver(short rewritePacketExtensions); /* 0x446560 */
871void *LoadSpeechPacketIntoBuffer(char *fileName, short section,
872 void *destination); /* 0x44F332 */
873void PlaySpeechPacketBuffer(void *packet, unsigned short packetSize,
874 int interrupt); /* 0x44F3A4 */
875void LoadAndPlaySpeechPacket(char *fileName, short section); /* 0x44F52E */
876void SoundBlasterOut(unsigned short port, unsigned char value); /* 0x44F300 */
877unsigned char SoundBlasterIn(unsigned short port); /* 0x44F310 */
878void SoundBlasterWaitWrite(void); /* 0x44F322 */
879void SoundBlasterEndOfInterrupt(void); /* 0x44F581 */
880void StopDigiPlayback(void); /* 0x44F5B1 */
881void SoundBlasterDspInterrupt(void); /* 0x44F5C5 */
882short InitializeSoundBlaster(short port, short irq); /* 0x44F84F */
883void ShutdownSoundBlaster(void); /* 0x44FA31 */
884void InitializeHighMemoryGraphicsBuffers(void); /* 0x45BF30 */
885void LogMemoryStateToFile(FILE *file); /* 0x42BE09 */
886void WriteMemoryStateReportHook(void); /* 0x42BDFE */
887void WriteDetailedMemoryStateReport(void); /* 0x42BE4B */
888void LogChangedCutsceneWorkBuffers(void); /* 0x42BF0C */
889void LoadSpaceflightResources(void); /* 0x45C35C */
890void FxDriverInitHook(void); /* 0x45C3EF */
891void StopMusicIfDriverActive(void); /* 0x45C3FA */
892void InitializeMusicResources(void); /* 0x45C419 */
893void ConfigureDefaultSpacePalette(short mode); /* 0x401840 */
894void ApplySpacePaletteModeHook(void); /* 0x461DE0 */
895short InitializePostPaletteState(void); /* 0x46257A */
896short InitializeInputManagerMemory(short eventQueueSize); /* 0x46259D */
897void InitializeGameTextContexts(void); /* 0x45C088 */
898void initialize_direction_view_frame(short yaw, short pitch,
899 signed char frame); /* 0x45C1A1 */
900void initialize_direction_view_frames(void); /* 0x45C279 */
901void ShutdownNearHeap(void); /* 0x420B12 */
902void SendKilrathiAceGreetingOnce(short obj); /* 0x429550 */
903short signed_random(short range); /* 0x429581 */
904void LoadTemporaryCampaignGlobals(void); /* 0x4293F9 */
905void SaveAndFreeTemporaryCampaignGlobals(void); /* 0x429423 */
907 short copyPosition); /* 0x42917D */
908void *LoadWholeDataFile(const char *path); /* 0x42949F */
909short alert_flag(short ship, unsigned int bits); /* 0x4295A9 */
910void set_alert(short obj, unsigned int bits); /* 0x4295D9 */
911void clear_alert(short obj); /* 0x4295F2 */
912void start_collision_alert(short obj, short other); /* 0x429625 */
913void try2end_collision_alert(short obj); /* 0x429698 */
914short normal_speed(short obj); /* 0x4296E2 */
915short real_crash_time(short obj, short other); /* 0x429736 */
916short crash_time(short obj, short other); /* 0x429958 */
917short detect_collisions(short obj); /* 0x4299C9 */
918short unactive(short ship); /* 0x429B55 */
919short are_alive(short obj); /* 0x429BA8 */
920void trim_goals(short obj, short amount); /* 0x429BF0 */
921short report_kilrathi_rout(int mode); /* 0x429CAD */
922short find_ship_index(short missionShip); /* 0x429E24 */
923short try2rout(short obj); /* 0x429EE0 */
924signed char no_goal(short ship); /* 0x42A062 */
925signed char CanSetNewShipTurnGoal(short ship); /* 0x42A003 */
926short being_tailed(short obj, short other); /* 0x42A0A9 */
927short detect_enemy_tail(short obj); /* 0x42A108 */
928short is_ship_tailing_player_target(short obj); /* 0x42A1C5 */
929short FindMissileTargetingObject(short obj); /* 0x42A222 */
930void build_squad_list(short leader); /* 0x42A28E */
931unsigned int find_squad_center(FixedVector *center); /* 0x42A313 */
932void init_formation_burst(short obj); /* 0x42A39A */
933void reset_mission_type(short obj, short missionType); /* 0x42A490 */
934unsigned int change_mission_type(short obj, short missionType); /* 0x42A4E5 */
935unsigned int reset_objective(short ship, short objective); /* 0x42A52A */
936unsigned int alter_objective(short ship, short objective); /* 0x42A55F */
937unsigned int reset_tactic(short ship, short tactic); /* 0x42A594 */
938unsigned int alter_tactic(short ship, short tactic); /* 0x42A5C8 */
939void reset_maneuver(short ship, short maneuver); /* 0x42A5F1 */
940void try2reset_maneuver(short obj, short maneuver); /* 0x42A625 */
941void set_special(short ship, short special); /* 0x42A664 */
942unsigned int approach_zero_speed(short ship); /* 0x42A6E8 */
943unsigned int approach_min_speed(short obj); /* 0x42A701 */
944void approach_half_speed(short obj); /* 0x42A71D */
945unsigned int approach_cruise_speed(short ship); /* 0x42A754 */
946unsigned int approach_full_speed(short ship); /* 0x42A788 */
947unsigned int approach_ship_speed(short obj, short other); /* 0x42A7AF */
948void ComputePointAheadOfObject(short obj, unsigned short distance,
949 FixedVector *point); /* 0x42A7D2 */
950void ComputePointBehindObject(short obj, unsigned short distance,
951 FixedVector *point); /* 0x42A823 */
952short close_behind(); /* 0x42A876 */
953short scan_for_enemy(short obj, unsigned short range); /* 0x42A8B5 */
954short any_enemy(short obj, short range); /* 0x42AA0D */
955short ships_within_range(short obj, short other, short range); /* 0x42AB81 */
956short attacker_in_range(short obj, unsigned short range); /* 0x42ABCE */
957short in_danger(short obj); /* 0x42ACAF */
958short target_within_range(short obj); /* 0x42ADB8 */
959short build_target_list(short obj, short range); /* 0x42AE32 */
960void inherit_leader_mission(short obj); /* 0x42AF60 */
961void inherit_leader(short obj); /* 0x42B00A */
962short dead_ship(short missionShip); /* 0x42B0B7 */
963short gone_ship(short missionShip); /* 0x42B0FB */
964short skill_check(short obj, short margin); /* 0x42B15A */
965short find_ships_sphere(short missionShip); /* 0x42B1AE */
966void RefreshObjectiveShipNavPoints(void); /* 0x44B981 */
967short locate_ship(short missionShip, FixedVector *point); /* 0x42B2A7 */
968void get_follow_point(short obj, FixedVector *point); /* 0x42B38F */
969unsigned int get_first_follow_point(short obj, FixedVector *point); /* 0x42B524 */
970short hostile_sphere(short obj, short navPoint); /* 0x42B565 */
971short abandoned(short obj, short other); /* 0x42B5F7 */
972void engage(short obj, short target,
973 short objective); /* 0x42B6C5 */
974short target_valid(short obj, short target); /* 0x42B73B */
975short triumph(short obj); /* 0x42B80C */
976short find_ratio(short inputMinimum, short inputMaximum, short input,
977 short outputMinimum, short outputMaximum); /* 0x42B916 */
978short evaluate_damage(short obj); /* 0x42B985 */
980 short flags,
981 char *defaultFileName); /* 0x4568E0 */
982short has_opposing_ship(short side); /* 0x4564F0 */
983void launch_carrier_fighter(short carrier); /* 0x45655D */
985 unsigned short releaseFlags); /* 0x456988 */
987 short flags, int availableBytes,
988 char *defaultFileName); /* 0x4569C8 */
989void ResetCockpitPaletteEntries(void); /* 0x456A68 */
990void initialize_cockpit(signed char mode); /* 0x456B1A */
992 const ConstellationObjectDefinition *definition,
993 short object); /* 0x457434 */
994void FreeConstellationObject(short object); /* 0x457587 */
995void init_constellation(short scene); /* 0x4575B4 */
996void free_constellation(void); /* 0x4576AB */
997void init_vdus(void); /* 0x457720 */
998void InitializeCockpitResources(short shipType); /* 0x4577D7 */
999void free_cockpit(void); /* 0x458196 */
1000void init_3Space_objects(short scene); /* 0x458467 */
1001void load_common_3Space_objects(void); /* 0x458532 */
1002void remove_all_3d_objects(void); /* 0x45865D */
1003void free_3Space(void); /* 0x458698 */
1004void free_3Space_objects(void); /* 0x458716 */
1005void init_inflight_music(void); /* 0x4587E0 */
1006void free_inflight_music(void); /* 0x458806 */
1007void PreloadMusicTrack(int track); /* 0x45887B */
1008void ReleaseMusicTrack(int track); /* 0x45890E */
1009unsigned int GetAvailableMainMemory(void); /* 0x469AD0 */
1010unsigned int GetLargestMainMemoryBlock(void); /* 0x469B49 */
1011int MapCutsceneSoundEffectNumber(int soundIndex); /* 0x4333F8 */
1012void CreateDebugOverlayConsole(HINSTANCE module, HWND window,
1013 short columns, short rows); /* 0x40FCD0 */
1014void DestroyGlobalDebugOverlayConsole(void); /* 0x40FD73 */
1015void SystemDebugPrintf(const char *format, ...); /* 0x40FDAD */
1016void OutputDebugPrintf(const char *format, ...); /* 0x4541BD */
1017char PumpMessagesDuringWait(void); /* 0x40FE23 */
1018unsigned char TakeDebugStepFlag(void); /* 0x40FE3E */
1019void SetDebugTextPosition(short row, short column); /* 0x40FE59 */
1020void SetDebugCursorPosition(short column, short row); /* 0x40FE7E */
1021void ResetDebugOverlay(void); /* 0x40FEA3 */
1022void ClearDebugOverlay(void); /* 0x40FEBE */
1023void ClearDebugPauseFlags(void); /* 0x40FED9 */
1024void EraseTextContextBackground(TextContext *context); /* 0x45924D */
1025void EraseLastTextInputCharacter(void); /* 0x459160 */
1026void DrawTextInputCursor(char character); /* 0x459294 */
1027void EraseCharacterAfterTextCursor(char character); /* 0x45930A */
1028void ClearTextInputCharacter(char character); /* 0x459348 */
1029short ReadTextInput(char *destination, short maximumLength,
1030 volatile short mode,
1031 volatile short allowPathSeparators); /* 0x4597E3 */
1032short LogMemoryUsage(void); /* 0x46579D */
1033void ReportFatalErrorCode(const char *errorCode); /* 0x437A44 */
1034void AllocateApplicationScratchBuffer(void); /* 0x4656CC */
1035void SplitGameClockTicksForNav(unsigned char *parts); /* 0x465644 */
1036void ReleaseApplicationScratchBuffer(void); /* 0x4656EB */
1037unsigned char *GetInputCursorShape(void); /* 0x46570E */
1038short WaitForQueuedInputPress(void); /* 0x465730 */
1039void AdjustSpaceFramePeriod(short adjustment); /* 0x46589D */
1040void RunGameApplication(short argc, char **argv); /* 0x46591A */
1041short LoadSelectedPilotCampaign(void); /* 0x434043 */
1042short RunPilotDatabaseMenu(void); /* 0x436A8F */
1043void PollPersonnelMenuInput(void); /* 0x433AD0 */
1044void DrawPersonnelMenuBackdrop(void *scenePacket); /* 0x433F94 */
1045void RestorePersonnelMenuBackground(Viewport *viewport); /* 0x43456E */
1046void DrawPersonnelSourceChoices(short choice); /* 0x4346E9 */
1047void DrawPersonnelMenuChoices(short choice); /* 0x4347D6 */
1048void DrawPersonnelFileSlot(short slot); /* 0x4348C3 */
1049void DrawTransferredPilotRow(short row); /* 0x434EBC */
1050void HighlightTransferredPilot(short choice); /* 0x434F7D */
1051short SelectTransferredPilot(short count); /* 0x435064 */
1052short SelectLegacyGameSource(void); /* 0x43641C */
1053short LocateLegacySaveGame(short source); /* 0x436722 */
1054void ShowNoTransferablePilots(void); /* 0x436A4D */
1055char *GetLegacyGameDataPath(void); /* 0x428C35 */
1056short ReadPersonnelTextField(unsigned int x, unsigned int y,
1057 int font, const char *prompt,
1058 char *destination, int maximumLength,
1059 int mode, int required); /* 0x459BC8 */
1060void DisableMouseCursorDrawing(void); /* 0x463E19 */
1061void EnableMouseCursorDrawing(void); /* 0x463BA1 */
1062void PersonnelDriveHook(short drive); /* 0x464B82 */
1063void SetPersonnelMousePosition(short x, short y); /* 0x4199F0 */
1064short OffsetSceneHotspotBounds(ShortRect *bounds, const SceneHotspot *hotspot,
1065 short offsetX, short offsetY); /* 0x464F75 */
1066void ShowMemoryStatusDebug(void); /* 0x437AEC */
1067void exit_squadron(const char *msg, ...); /* 0x437AB4 */
1068void main(short argc, char **argv); /* 0x45C558 */
1069void free_view_buffer(void); /* 0x465CBC */
1070void initialize_view_buffer(void); /* 0x465CF6 */
1071void dump_buffer_to_screen(void); /* 0x465D55 */
1072unsigned int clear_view_buffer(void); /* 0x465E88 */
1073void InitializeConversationViewport(void); /* 0x437CBF */
1074void ResetScreenClipToFullHeight(void); /* 0x437D68 */
1075void InitializeConversationText(void); /* 0x437D92 */
1076void RefreshMemoryStatusOverlay(void); /* 0x465EA9 */
1077void Update_3Space(void); /* 0x465EE9 */
1078void UpdateSpacePaletteFade(void); /* 0x465FA3 */
1079void TriggerPlayerHitPaletteFlash(void); /* 0x465F3A */
1080void FadeFlightPaletteEntry(short *entry); /* 0x465F5B */
1081void house_keep(void); /* 0x46604F */
1082void get_player_input(void); /* 0x4661C2 */
1083void process_player_input(void); /* 0x4663A2 */
1084unsigned int fire_players_lasers(void); /* 0x466908 */
1085void players_flight_dynamics(void); /* 0x46696E */
1086short player_input(void); /* 0x466B02 */
1087void SelectNextExternalViewObject(void); /* 0x465E25 */
1088short HandleFleetOverviewInput(void); /* 0x45E9F0 */
1089void UpdateFleetOverviewCameraRotation(void); /* 0x45F200 */
1090void FireTargetCameraGuns(void); /* 0x45F439 */
1091void UpdateShipTurretGuns(int ship); /* 0x45F7EC */
1092short MeasureMessageWidth(const char *text); /* 0x4672C5 */
1093void AcknowledgeModalMessage(void); /* 0x467300 */
1094short RunTitleMenuInputLoop(unsigned char *buttons,
1095 unsigned char *logo,
1096 unsigned char *background,
1097 short showSecondButton); /* 0x418ECD */
1098void ShowModalMessage(const char *format, ...); /* 0x437C2E */
1099void ReportOutOfMemoryAndExit(const char *resource); /* 0x437C96 */
1100void ShowOnScreenMessage(short duration,
1101 const char *format, ...); /* 0x437DFA */
1102void ShowGamePausedBanner(short showBanner); /* 0x437F2F */
1103void ShowVersionBanner(void); /* 0x437F77 */
1104void SetMessageDisplaySpeed(void); /* 0x437F9A */
1105void ReportFramesSkipped(short adjustment); /* 0x437FD3 */
1106short HandleSpaceFlightControls(void); /* 0x46733D */
1107unsigned int DrawSpaceSceneFrame(void); /* 0x468E7A */
1108short Draw_3Space_Frame(void); /* 0x4690FF */
1109void RenderSpaceViewFrame(void); /* 0x46903F */
1110short GetShipDistanceToNavPoint(short ship, MissionNavPoint *navPoint); /* 0x469143 */
1111short FindNearestNavPoint(short ship); /* 0x46918D */
1112unsigned int ReleaseStaleNavTarget(void); /* 0x469223 */
1113int RunSpaceFlight(short entryNavPoint); /* 0x46925E */
1114void InitializeSpaceFlightInput(void); /* 0x4379F0 */
1115void ReleaseSceneMusicPacket(void); /* 0x42D4C1 */
1116void ProcessCannedSceneInput(void); /* 0x446FC8 */
1117void FinishCannedScenePlayback(void); /* 0x44698F */
1118void BeginInflightReplayHook(void); /* 0x446950 */
1119void ResetCannedScenePlaybackBuffer(void); /* 0x446960 */
1120unsigned short RestoreCannedSceneObjectState(
1121 CannedSceneObjectStateRecord *record); /* 0x446A1D */
1123 CannedSceneObjectEventRecord *record); /* 0x446B6A */
1124unsigned short ApplyCannedSceneSoundRecord(
1125 CannedSceneBriefingCharacterRecord *record); /* 0x446CC2 */
1126unsigned short ApplyCannedSceneMusicRecord(
1127 CannedSceneMusicCommandRecord *record); /* 0x446D0D */
1128void ApplyCannedSceneFrameEvents(void); /* 0x446D55 */
1129void LoadCannedScenePlaybackBuffer(void); /* 0x446F14 */
1130void ResetCannedSceneRecording(void); /* 0x401A10 */
1131void InitializeCannedSceneFrameIndex(void); /* 0x401A62 */
1132void HandleCannedSceneBufferBoundary(void); /* 0x401ACB */
1133void CheckCannedSceneBufferCapacity(void); /* 0x401C1A */
1134int GetCannedSceneObjectMode(short obj); /* 0x401C72 */
1135void RecordCannedSceneObjectState(short obj); /* 0x401D79 */
1136void RecordCannedSceneObjectEvent(short obj, int event); /* 0x401FDD */
1137void RecordMusicCommandHook(int track, int command, short enabled); /* 0x402258 */
1138void WriteTapeInitialState(void); /* 0x40230E */
1139void ReadTapeInitialState(void); /* 0x446E9D */
1140void FlushCannedSceneRecordingBuffer(void); /* 0x402385 */
1141short calculate_damage_level(void); /* 0x4695FD */
1142void CopyHugeMemoryOverlapSafe(void *destination, void *source,
1143 int count); /* 0x419A40 */
1145 unsigned short colour,
1146 short enabled); /* 0x453820 */
1147short find_objective(short type, short index); /* 0x424A60 */
1148void arrive_from_warp(short obj); /* 0x424AEE */
1149void unwarp(short obj); /* 0x424C05 */
1150void warp(short obj); /* 0x424D4D */
1151void clean_up_cockpit(void); /* 0x424EA7 */
1152short find_next_gun(short obj, short currentGun); /* 0x461480 */
1153int select_guns(short selectedGun); /* 0x4615A2 */
1154void select_new_gun(void); /* 0x46166D */
1155void select_new_release_weapon(short preferredType); /* 0x4616B8 */
1156void CALLBACK FrameTimerCallback(UINT timerId, UINT message, DWORD user,
1157 DWORD first, DWORD second); /* 0x40A2D0 */
1158void SetMultimediaTimerCallback(int period); /* 0x40A2E7 */
1159void *PacketLoad(const char *filename, short section,
1160 void *destination, short flags,
1161 void *decompressionWorkspace,
1162 int registerHandle); /* 0x4465A0 */
1163long GetNamedPacketSize(const char *filename, short section); /* 0x464F25 */
1164void *LoadNamedPacket(const char *filename, short section,
1165 void *destination, unsigned short flags,
1166 void *decompressionWorkspace,
1167 int registerHandle); /* 0x464F45 */
1168void InitializeAudioSystem(HWND window); /* 0x423CA0 */
1169void ServiceAudioStream(void); /* 0x423D02 */
1170WaveTableEntry *AllocateWaveTableEntry(void); /* 0x423D4F */
1171WaveTableEntry *FindWaveTableEntryByName(const char *name); /* 0x423DBB */
1172void RemoveWaveTableEntry(WaveTableEntry *entry); /* 0x423E12 */
1173void FreeWaveTable(void); /* 0x423ED1 */
1174ActiveSoundEntry *AllocateActiveSoundEntry(void); /* 0x423F3F */
1175void RemoveActiveSoundEntry(ActiveSoundEntry *entry); /* 0x423FAB */
1177#ifdef __cplusplus
1178inline
1179#endif
1180IxSample * __fastcall ix_sound_get_sample(IxSound *sound); /* 0x424A40 */
1181void ReleaseFinishedSoundEntries(void); /* 0x4240AE */
1182void StopSoundsUsingWave(const char *name); /* 0x424113 */
1183void playWAVE(const char *filename, int looping, int volume); /* 0x42418C */
1184void PlayRawSpeechBuffer(void *buffer, size_t size, int interrupt); /* 0x424417 */
1185void stop_all_sounds(void); /* 0x4245A2 */
1186void PlaySnowStaticSound(void); /* 0x4245F8 */
1187void ServiceSoundSystem(void); /* 0x42476B */
1188void SetSoundEffectsVolume(int volume); /* 0x42482E */
1189LONG RegistryQueryValue(HKEY key, LPCSTR name, DWORD type,
1190 LPBYTE data, DWORD size); /* 0x42485C */
1191void RegistryStoreValue(HKEY key, LPCSTR name, DWORD type,
1192 const BYTE *data, DWORD size); /* 0x424888 */
1193void LoadVolumeSettingsFromRegistry(void); /* 0x4248B4 */
1194void SaveVolumeSettingsToRegistry(void); /* 0x424980 */
1195void RewriteDiskFileGraphicsExtensions(char *fileName); /* 0x432E23 */
1196void RewriteCutsceneMusicExtensionForDriver(char *filename); /* 0x432E83 */
1197void RewriteCutsceneMusicExtensionForRetry(char *filename); /* 0x432EE4 */
1198short LoadWingCmdrCfgFile(short argc, char **argv); /* 0x401000 */
1199void show_damage_disp(void); /* 0x401120 */
1200void UpdateDamageDisplay(void); /* 0x4012E1 */
1201void InitializeFireworks(void); /* 0x45A2C0 */
1202short TheEndFireWorks(Viewport *viewport, short count); /* 0x45A300 */
1203void InitializeConstellationField(Viewport *viewport, short direction,
1204 short density); /* 0x45A441 */
1206 ConstellationParticle particle); /* 0x45A5C7 */
1207void DrawConstellationField(void); /* 0x45A634 */
1208short OpenPacketSection(const char *filename, short section,
1209 PacketSectionHandle *handle); /* 0x44F010 */
1210void CloseDataFileByHandle(unsigned short *handle); /* 0x44F1C7 */
1211void show_target_disp(void); /* 0x43FAC0 */
1212void DrawTargetRangeReadout(void); /* 0x43FF40 */
1213void LogDisplayMode(const char *mode); /* 0x45CA50 */
1214short CalcRectangleArea(const Viewport *viewport); /* 0x45CA80 */
1215short AllocateViewport(Viewport *viewport,
1216 short clearColour,
1217 short flags); /* 0x45CAD2 */
1218short IsSpriteFrameOverlappingRect(const ShortRect *rectangle,
1219 short x, short y,
1220 unsigned char *shape,
1221 short frame); /* 0x46505E */
1222void FadeMusic(short duration); /* 0x452AE5 */
1223void SetMusicOn(short enabled); /* 0x452A1B */
1224void StopMusicStream(void); /* 0x452A00 */
1225void StopMusic(short enabled); /* 0x452A26 */
1226short StartMusic(void *music); /* 0x452A40 */
1227short StartInteractiveMusic(int track); /* 0x452A64 */
1228void SetMusBreakpt(int first, int second); /* 0x452A10 */
1229int StartSoundEffectHook(const unsigned char *definition, int effectHandle,
1230 int volume, int pan, int sample,
1231 int looping); /* 0x452A99 */
1232void FlushSoundEffect(void); /* 0x452AAB */
1233void FlushSoundEffects(void); /* 0x452AC8 */
1234void SceneLeaveHook(); /* 0x452AF0 */
1235unsigned short ProcessMusicScriptCommand(int track, int command,
1236 short enabled); /* 0x452B03 */
1237void spacetrack(int track, int mode, int enabled); /* 0x452CF4 */
1238void StopMusicUnlessSuppressed(void); /* 0x452D32 */
1239unsigned int IsMusicTrackComplete(void); /* 0x452D66 */
1240void wait_for_end_of_music(void); /* 0x452DB0 */
1241void new_space_music_changes(short attacker, short victim); /* 0x452E46 */
1242int changetrack(void); /* 0x452F90 */
1243void gametrack(void); /* 0x453085 */
1244void servicetrack(void); /* 0x453240 */
1245void ResetSoundState(void); /* 0x453496 */
1246void ResetSoundStateForScene(void); /* 0x4534BA */
1247void ResetSoundStateForFlight(void); /* 0x4534D3 */
1248void DisableMusicForSceneHook(void); /* 0x4534F1 */
1249void EnableMusicForScene(void); /* 0x4534FC */
1250int LogUnknownSoundEffect(const unsigned char *definition,
1251 short sourceObject, short pan, short volume,
1252 short looping, short priority); /* 0x45351A */
1253void FlushSoundEffectsAndLog(void *effect, short flags); /* 0x45357E */
1254void sound_effect(signed char soundNumber, short sourceObject,
1255 short looping); /* 0x4535BB */
1256#ifdef __cplusplus
1257void PlaySfxWaveFileByNumber(int soundNumber, int sourceObject,
1258 int looping); /* 0x45373B */
1259#else
1260void PlaySfxWaveFileByNumber(); /* 0x45373B */
1261#endif
1262void cleanup_objectives(void); /* 0x421910 */
1263short IsShipRouting(short ship); /* 0x421BC6 */
1264void SendWingmanCommandAcknowledgement(short ship, short accepted); /* 0x421BFC */
1265short disobey_formation(short ship); /* 0x421C35 */
1266short IsEngagementTargetDisallowed(short ship, short target); /* 0x421CF6 */
1267short CanPlayerLand(void); /* 0x421D59 */
1268short ShouldWingmanAcceptRoutCommand(short ship, short pilot); /* 0x421E6D */
1269void request(short requester, short ship, short command); /* 0x421F86 */
1270unsigned short InitializeDIBScreenViewport(
1271 Viewport *viewport, unsigned short colour); /* 0x40FB80 */
1272void InitFullScreenViewport(Viewport *viewport, short arg); /* 0x40FC7E */
1273unsigned int GetPacketSize(const char *filename,
1274 short section); /* 0x453A70 */
1275void FreeNearHeapBlock(void *pointer); /* 0x4210B8 */
1276int GetNearHeapBlockSize(void *pointer); /* 0x421144 */
1277unsigned short IsSoundHardwarePresent(short device); /* 0x458E20 */
1278void MessagePumpHook(int mode); /* 0x458E39 */
1279void *PushMemoryStackFrame(void *memory, int offset); /* 0x458E49 */
1280int IsPushedPacketHandle(void *handle); /* 0x458EED */
1281void *MapPacketHandleToBlock(void *handle); /* 0x458F5A */
1282void *AllocateTaggedMemory(unsigned int size, short flags); /* 0x45901D */
1283void ReleasePacketHandle(void *handle); /* 0x459082 */
1284unsigned int GetAvailableFarMemoryByType(short memoryType); /* 0x459134 */
1285unsigned int GetLargestFreeMemoryBlockByType(short memoryType); /* 0x459149 */
1286void RunCampaignScript(short campaignSlot); /* 0x429261 */
1287signed char AreCutsceneResourceNamesEqual(const char *left,
1288 const char *right); /* 0x40D762 */
1289void SkipCutsceneChunk(unsigned char **cursor); /* 0x40D88E */
1291 short scriptHalf,
1292 const char *symbol); /* 0x40D8D7 */
1293short CreateCutsceneResourceInstance(int formType,
1295 short index); /* 0x40DA0C */
1297 short scriptHalf,
1298 int formType); /* 0x40DE5A */
1300 CutsceneResourceTable **head); /* 0x40E230 */
1302 unsigned char **cursor); /* 0x40E285 */
1303unsigned char ParseCutsceneContainer(void *scenePacket); /* 0x40E31F */
1305 CutsceneObjectResourceList *resource, unsigned char **cursor,
1306 unsigned char *end, unsigned int formType); /* 0x40E726 */
1308 CutsceneObjectResourceList *resource); /* 0x40E985 */
1310 CutsceneObjectResourceList **head); /* 0x40EA0F */
1311void ReleaseCutsceneObjectResource(short owner,
1313 int formType); /* 0x40EAA4 */
1315 short owner, CutsceneResourceTable **head, void *retainedPacket); /* 0x40ED9F */
1316void ReleaseCutsceneFileResource(short owner,
1317 CutsceneResourceTable **head); /* 0x40EE41 */
1318void ReleaseCutsceneTextResource(short owner,
1319 CutsceneTextResource **head); /* 0x40EEC7 */
1320void ReleaseCutsceneResourceLevel(short owner); /* 0x40EF15 */
1321signed char DecodeSceneStructChunk(unsigned char **cursor,
1322 SceneResourceTable **resource); /* 0x458A90 */
1323signed char DecodeSceneOffsetChunk(unsigned char **cursor,
1324 SceneResourceTable **resource); /* 0x458B8C */
1325signed char DecodeSceneSymbolChunk(unsigned char **cursor,
1326 SceneResourceTable **resource); /* 0x458C81 */
1327signed char DecodeSceneFileChunk(unsigned char **cursor,
1328 SceneResourceTable **resource); /* 0x458D94 */
1329short UpdateInputDeviceTransitions(short raw); /* 0x421210 */
1330void JoystickInputHook(void); /* 0x4213FE */
1331void PollJoystickButtonEvents(void); /* 0x421409 */
1332void PollMenuInputDevices(void); /* 0x421530 */
1333void ResetCommMenuChoices(short reuse); /* 0x447369 */
1334short IsCommMenuIdle(void); /* 0x4473D1 */
1335void AppendCommMenuChoice(const char *text, short command); /* 0x4473FC */
1336void SendCommMenuChoice(short i); /* 0x447479 */
1337void OpenCommMenuForTarget(const char *heading,
1338 const char *message); /* 0x4474CA */
1339short IsCommChoiceMenuOpen(void); /* 0x4474F4 */
1340void OpenCommRecipientMenu(void); /* 0x447526 */
1341void CloseCommChoiceMenu(void); /* 0x447544 */
1342short wingman_dead(void); /* 0x44756F */
1343short have_target(void); /* 0x44759B */
1344short CanOpenCommMenu(void); /* 0x4475D3 */
1345void SelectCommRecipient(short recipient); /* 0x44760F */
1346void BuildCommunicationRecipientMenu(void); /* 0x447629 */
1347void BuildCommunicationCommandMenu(void); /* 0x447890 */
1348void RefreshCommunicationMenu(void); /* 0x447D85 */
1349void HandleCommunicationMenuRequest(void); /* 0x447DE3 */
1350void show_communications_disp(void); /* 0x447E47 */
1351void Chosen_communicate_option(short choice); /* 0x447EF5 */
1352void IssueQuickCommCommand(short recipient, short command); /* 0x448008 */
1353void FreeCommDisplayResources(void); /* 0x44804A */
1354void EndCommSessionWithWingman(void); /* 0x448070 */
1355void EndCommMenu(void); /* 0x4480C6 */
1356void ShowCentredPrompt(char *text, unsigned short arg); /* 0x448100 */
1357void LoadCommPortraitResources(short portrait); /* 0x447300 */
1358char *ExpandCommMessageTokens(const char *text); /* 0x448136 */
1359void real_vid_transmit(short obj, short message); /* 0x4482CA */
1360short ReserveContiguousPaletteEntries(short entryCount); /* 0x401859 */
1361void ReleaseContiguousPaletteEntries(short firstEntry); /* 0x401922 */
1362void PrintPaletteAllocationMap(void); /* 0x401978 */
1363short LoadJoystickCalibrationFile(short horizontalRange,
1364 short verticalRange,
1365 short horizontalDeadZone,
1366 short verticalDeadZone); /* 0x423480 */
1367short ReadCalibratedJoystick(void); /* 0x4238E9 */
1368void ThrottleFrameAndDrawFps(HDC dc); /* 0x45CD2C */
1369void ReportSpaceFlightMaxFps(float adjustment); /* 0x45CE9A */
1370void SetSpaceFlightFrameTiming(void); /* 0x45CF3B */
1371void SetDefaultFrameTiming(void); /* 0x45CF7F */
1372void SetCinematicFrameTiming(float frameRate); /* 0x45CFC3 */
1373void DIBerror(const char *tag, int hr); /* 0x45D004 */
1374void DIBpositionWindow(void); /* 0x45D11F */
1375void DIBreInstall(void); /* 0x45D1BB */
1376void DIBinstall(HWND window); /* 0x45D23B */
1377int DIBcascade(int mode, int *reportedResult); /* 0x45D3A1 */
1378void DIBunInstall(void); /* 0x45D78C */
1379void DIBmakeDIB(void); /* 0x45D80F */
1380void DIBdestroyDIB(void); /* 0x45DA8C */
1381void MarkDibDirty(void); /* 0x45DB8C */
1382void EnableDibSlam(void); /* 0x45DBFF */
1383void DisableDibSlam(void); /* 0x45DC19 */
1384void DIBslamReal(void); /* 0x45DC33 */
1385void DIBupdate(int left, int top, int right, int bottom); /* 0x45E060 */
1386unsigned char *GetDIBPixelBuffer(void); /* 0x45E276 */
1387void DIBpixelBufferHook(void); /* 0x45E28B */
1388HWND GetDIBWindowHandle(void); /* 0x45E29B */
1389unsigned int GetDIBWidth(void); /* 0x45E2B0 */
1390unsigned int GetDIBHeight(void); /* 0x45E2C5 */
1391void CachePaletteEntryFromWords(short index, unsigned short *rgb); /* 0x45E2DA */
1392void DIBramPalette(void); /* 0x45E37C */
1393void DIBsetPalette(short index, short *rgb); /* 0x45E46C */
1394void GetPaletteEntryAsWords(short i, unsigned short *rgb); /* 0x45E61C */
1395void DIBwholePaletteFromTriplets(unsigned char *palette); /* 0x45E667 */
1396void DIBwholePaletteFromWords(unsigned short *palette); /* 0x45E816 */
1397void DIBwaitForVerticalBlank(void); /* 0x45E9C5 */
1398void steer_away_from_object(short obj, short other,
1399 short amount); /* 0x41E4E0 */
1400void steer_away_from_predicted_object(short obj, short other,
1401 short predictionTicks,
1402 short amount); /* 0x41E5C8 */
1403void prevent_collision(short obj); /* 0x41E6C8 */
1404short handle_collisions(short obj); /* 0x41E860 */
1405short CountEnemyFighters(void); /* 0x41E8D3 */
1406short regulate_turn(short obj); /* 0x41E945 */
1407unsigned int select_target(short obj); /* 0x41EA86 */
1408unsigned int veer_random(short obj, short amount); /* 0x41EB1D */
1409unsigned int offset_location(short obj, const ShortVector *offset,
1410 FixedVector *location); /* 0x41EBC1 */
1411unsigned int compute_formation_destination(short leader,
1412 const ShortVector *offset,
1413 FixedVector *destination); /* 0x41EC73 */
1414void control_speed(short obj, unsigned short range, int desiredSpeed); /* 0x41ECEF */
1415void chase_location(short obj, const FixedVector *destination,
1416 short reference); /* 0x41EDCC */
1417void goto_location(short obj,
1418 const FixedVector *destination); /* 0x41EFFE */
1419void goto_formation(short obj, const FixedVector *destination,
1420 short leader); /* 0x41F0C5 */
1421unsigned int maintain_formation(int obj); /* 0x41F2C5 */
1422unsigned int reset_stress(short obj); /* 0x41F337 */
1423short stress_morale(short obj); /* 0x41F3EF */
1424short any_defense(short obj); /* 0x41F446 */
1425short pick_regular_maneuver(short obj, short event); /* 0x41F4C6 */
1426short pick_from_list(const ManeuverChoice *choice,
1427 short obj, short event); /* 0x41F714 */
1428short pick_kilrathi_maneuver(short obj, short event); /* 0x41F83F */
1429short CountAlliesOnSameTarget(short obj); /* 0x41F902 */
1430void process_maneuver_node(short obj, short event); /* 0x41F9AF */
1431void handle_stress(short obj, short event); /* 0x41FD2B */
1432void intelligence_events(int obj); /* 0x41FF37 */
1433void chase_speed(short obj, short range); /* 0x440571 */
1434#ifdef SHIP_C
1435short RandomBelow(short); /* 0x4618E0 */
1436#else
1437short RandomBelow(short n); /* 0x4618E0 */
1438#endif
1439void SeedRandomFromClock(void); /* 0x4618FF */
1440unsigned short GetRandomWord(void); /* 0x461922 */
1441unsigned short RandomInRange(unsigned short lo, unsigned short hi); /* 0x461942 */
1442short RandomBelowOrEqual(short n); /* 0x4619A1 */
1443long MultiplyFixed(int left, int right); /* 0x4619E2 */
1444long DivideFixed(int numerator, int denominator); /* 0x461A2D */
1445long SinFixed(short degrees); /* 0x461A91 */
1446long CosFixed(short degrees); /* 0x461AD6 */
1447short ArcSin(int value); /* 0x461B1B */
1448short ArcCos(int value); /* 0x461B6B */
1449long Magnitude(int value); /* 0x461BBB */
1450long PlanarMagnitude(int x, int y); /* 0x461C06 */
1451long Vector_magnitude(const FixedVector *vector); /* 0x461C71 */
1452void SetTextCursor(unsigned short a, unsigned short b); /* 0x461D02 */
1453void SetTextContext(TextContext *context); /* 0x461D29 */
1454void WaitForVerticalBlankThunk(void); /* 0x461D68 */
1455void *IdentityHandle(void *v); /* 0x461D7D */
1456void SetWholePaletteFromTriplets(unsigned char *palette); /* 0x461D90 */
1457short ReadWord(unsigned short *p); /* 0x461DA7 */
1458short GetFontCharWidth(char i); /* 0x461DBD */
1459short GetShapeFrameBounds(short *bounds, short x, short y,
1460 unsigned char *shape, short frame); /* 0x461DF0 */
1461short IsPointInRect(short x, short y, const short *rect); /* 0x461E97 */
1462void SplitPackedPoint(ShortPoint point, short *p); /* 0x461EFE */
1463void DrawTextString(const char *text); /* 0x461F22 */
1464void DrawTextCharacter(char character); /* 0x4621D5 */
1465void AppendTextCharacter(char character); /* 0x4622BD */
1466int MeasureShapeFrameStorage(unsigned char *shape,
1467 short frame); /* 0x4622EE */
1468unsigned int DosFarPtrToNear(void *v); /* 0x46243F */
1469void *DosNearPtrToFar(unsigned int v); /* 0x462452 */
1470char *DosStrrchr(char *s, short c); /* 0x462465 */
1471char *DosStrchr(const char *s, short c); /* 0x462486 */
1472char *DosStrcpy(char *dst, const char *src); /* 0x4624A7 */
1473char *CopyStringAndReturnEnd(char *destination,
1474 const char *source); /* 0x4624C7 */
1475short DosStrlen(const char *s); /* 0x46250B */
1476short ParseHexNumber(char *text); /* 0x452930 */
1477/* Callers push a 16-bit length (MOV AX,[n] / PUSH EAX); the definition
1478 * reads the full dword and masks it. */
1479void DosMemmove(void *dst, const void *src, unsigned short n); /* 0x462527 */
1480void DosMemset(void *destination, unsigned int count,
1481 short value); /* 0x462550 */
1482void ShutdownEventManager(void); /* 0x4625CB */
1483void TranslatePolledInputEvent(unsigned short type,
1484 unsigned int value); /* 0x462625 */
1485void QueueInputEventAtCursor(unsigned int type, short primaryButton,
1486 short secondaryButton); /* 0x462849 */
1487InputEvent *AllocateInputEvent(void); /* 0x462890 */
1488void ReleaseInputEvent(InputEvent *event); /* 0x46294F */
1489void QueueInputEvent(int type, int x, int y, int value,
1490 int primaryButton, int secondaryButton,
1491 unsigned int ignored, unsigned int field14,
1492 unsigned int field18); /* 0x4629A7 */
1493void ReleaseInputEventQueue(void); /* 0x462C43 */
1494void RetainInputEventsOfType(int type); /* 0x462C9C */
1495void RemoveInputEvent(InputEvent *event); /* 0x462D48 */
1496int GetNextInputEvent(InputEventState *event); /* 0x462DFC */
1497int PollInputEvent(InputEventState *event, short); /* 0x46327F */
1498short ServiceInputDevices(short deviceMask); /* 0x464D5F */
1499void SetInputViewport(Viewport *viewport); /* 0x464E06 */
1500void ClearInputPump(void); /* 0x464E1E */
1501void SetMenuInputPump(void); /* 0x464E35 */
1502void FinalizeInputManagerHook(void); /* 0x464A90 */
1503int ConfigureInputPump(int slot, void (*pump)(void)); /* 0x464E4F */
1504short LoadInputCursorShape(const char *filename, short section,
1505 short flags); /* 0x464E73 */
1506void InitializeInputDriverHook(void); /* 0x464EE0 */
1507void FinalizeInputDriverHook(void); /* 0x464EF0 */
1508void FlushPendingInputEvents(void); /* 0x464F10 */
1509void SetPaletteEntryFromTriplet(const unsigned char *triplet,
1510 short index); /* 0x464FE7 */
1511void SetMusicTickRateHook(short period); /* 0x46502E */
1512short PeekInputEvent(InputEventState *event, short type); /* 0x4632A5 */
1513short IsInputEventQueued(int type); /* 0x466AD2 */
1514InputEventState *FindQueuedInputEvent(int type); /* 0x4633E7 */
1515void FlushInputEvents(void); /* 0x46354F */
1516short InitializeMouseCursorDepth(); /* 0x463571 */
1517void CheckCursor(void); /* 0x4635D3 */
1518void CaptureMouseCursorBackground(void); /* 0x4635E3 */
1519void DrawMouseCursor(void); /* 0x4636F7 */
1520void RestoreMouseCursorBackground(void); /* 0x4637F4 */
1521void RefreshMouseCursorDisplay(void); /* 0x4638F1 */
1522void ResumeMouseCursorHook(void); /* 0x46396C */
1523void SetMouseCursorShape(unsigned char *shape, short frame); /* 0x463EEE */
1524void SetMouseHomePosition(short x, short y); /* 0x463F74 */
1525void ApplyPackedMousePosition(ShortPoint point); /* 0x463FAA */
1526void SetFrameTimerPeriod(short period); /* 0x464009 */
1527void SetFrameTimerAndWait(short period); /* 0x464021 */
1528void SetFrameTimerPeriodDirect(short p); /* 0x46403D */
1529void WaitForFrameTick(void); /* 0x464055 */
1530short IsFrameTickElapsed(void); /* 0x464072 */
1531void *AllocateZeroedRecords(int count, short elementSize, short flags); /* 0x46409B */
1532unsigned short EnableHighMemoryResources(void); /* 0x4640F4 */
1533int GetSoundHardwareFlag(void); /* 0x464141 */
1534void *AllocateDefaultMemory(unsigned int size); /* 0x464123 */
1535void TimerResetHook(void); /* 0x46416A */
1536void ClearMemoryHeaps(void); /* 0x458E10 */
1537DwordPtr IdentityDword(DwordPtr value); /* 0x46417A */
1538short EmsSaveMapping(void); /* 0x464255 */
1539short EmsRestoreMapping(void); /* 0x464268 */
1540unsigned int IdentityWord(unsigned int v); /* 0x46418D */
1541void TimerStopHook(void); /* 0x4641A0 */
1542unsigned int GetAvailableFarMemory(void); /* 0x4641B0 */
1543unsigned int GetLargestFreeMemoryBlock(void); /* 0x4641C5 */
1544void ClearInputKeyStatePreservingModifiers(void); /* 0x46428B */
1545void ClearInputKeyState(void); /* 0x4642D6 */
1546void SetInputKeyState(int scanCode, unsigned char pressed); /* 0x46431A */
1547void BuildObjectDepthOrder(void); /* 0x46436E */
1548void draw_sorted_objects_to_buffer(void); /* 0x4644DA */
1549void intro_drawbackgroundships(void); /* 0x46470E */
1550void set_up_screen_viewport(signed char mode); /* 0x4648C5 */
1551void MouseIdleHook(void); /* 0x464AA0 */
1552short GetNavRangeSentinel(void); /* 0x464AB0 */
1553short GetOriginalFreeMemory(void); /* 0x464AC4 */
1554void StartupHook(unsigned int (*callback)(unsigned int, short)); /* 0x464AE8 */
1555unsigned int JoystickEdgeHook(int button); /* 0x464B0B */
1556void FreeIfNotNull(void *p); /* 0x464B3A */
1557unsigned int GetStartupErrorCode(int vector); /* 0x464B60 */
1558unsigned short SelectDiskDriveHook(short drive); /* 0x464B92 */
1559short GetCurrentDiskDriveHook(void); /* 0x464BA5 */
1560unsigned short GetShutdownErrorCode(
1561 unsigned char *driveState); /* 0x464BB8 */
1562void VideoReleaseHook(void); /* 0x464BCB */
1563void ExitCleanupHook(void); /* 0x464BDB */
1564short IsVectorWithinRange(FixedVector *vector, short range); /* 0x464BFE */
1565unsigned int shrink_vector(FixedVector *vector); /* 0x464C4B */
1566unsigned int shrink(int *component); /* 0x464CA4 */
1567void FillGraphicSuffix(char *path, short number,
1568 short digits); /* 0x42BAC0 */
1569void ConvertChar_Int(char *text, short number,
1570 short digits); /* 0x42BB17 */
1571signed char HasCutsceneMusicNode(CutsceneMusicNode *node); /* 0x42BDDB */
1572CutsceneSoundEffect *FindCutsceneSoundEffect(short resourceIndex); /* 0x42C9B0 */
1573void AddCutsceneSoundEffect(void *sound, short resourceIndex); /* 0x42CA28 */
1575 short resourceIndex); /* 0x42CDB5 */
1576void RouteCutsceneViewportToDisplay(void); /* 0x42BFB8 */
1577void ClearActiveCutscenePixelAlias(void); /* 0x42C04B */
1578signed char IsCutsceneSpeechLoaded(void); /* 0x42C0A2 */
1579void LoadCutsceneCockpitOverlay(short scriptValue); /* 0x42C373 */
1580void DrawCutsceneCockpitOverlay(short unused,
1581 short verticalOffset); /* 0x42C3A7 */
1582void FatalCutsceneError(const char *format, ...); /* 0x42C725 */
1584 CutsceneResourceTable *resources); /* 0x42C607 */
1586 CutsceneObjectResourceList *resources); /* 0x42C659 */
1587short RemoveCutsceneMemberIndex(short count, unsigned char *indices,
1588 signed char index); /* 0x42C6AC */
1589void InitializeCutsceneRuntimeResources(void); /* 0x42D227 */
1590void InitializeCutsceneViewports(void); /* 0x42D444 */
1591void ReleaseCutsceneSpeechPackets(void); /* 0x42D4FA */
1592void *FindLoadedCutsceneMusic(short resourceIndex); /* 0x42D181 */
1593void RunLoadedCutscene(void); /* 0x42D568 */
1594void ExecuteCutsceneScene(CutsceneScene *scene); /* 0x42D81C */
1595void CopyCutsceneSpriteDisplay(unsigned char destination,
1596 unsigned char source); /* 0x42D8E2 */
1597void LinkCutsceneSpriteScript(unsigned char destination,
1598 unsigned char source); /* 0x42D98C */
1599void DrawCutsceneSprite(SceneFlicObject *sprite); /* 0x42DA25 */
1600void DrawCutscenePlane(CutscenePlane *plane); /* 0x42DD9F */
1601void ClearCutsceneViewport(Viewport *viewport, unsigned char colour); /* 0x42DE62 */
1602void RestoreCutsceneTextBacking(void); /* 0x42DE9D */
1603void DrawCinematicMemoryStatus(const char *message); /* 0x42EF12 */
1604void FormatCinematicMemoryStatus(const char *format, ...); /* 0x42F0B3 */
1605void ReportCutscenePacketAllocationFailure(const char *filename,
1606 short section,
1607 unsigned int packetSize); /* 0x42F100 */
1608void ClearCutsceneTextViewport(void); /* 0x42DF32 */
1609void ExpandCutsceneText(const unsigned char *source,
1610 char *destination); /* 0x42DF80 */
1611void ResetCutsceneSpriteDrawTicks(void); /* 0x42C75D */
1612void PresentCutsceneFrame(Viewport *source, Viewport *destination); /* 0x42C7BC */
1613void ConsumeCutscenePalettePacket(short firstColour, short count,
1614 signed char releasePacket); /* 0x42C8E1 */
1615void ReleaseCutsceneSoundEffects(short resourceIndex); /* 0x42CB08 */
1616void LoadCutsceneSpeechSlot(short resourceIndex, short slot); /* 0x42CC42 */
1618 short resourceIndex); /* 0x42CFDB */
1619void RunCutsceneWipeTransition(Viewport *destination, Viewport *source,
1620 int wipeType, short duration); /* 0x42C43D */
1621void WaitForCutsceneInputEvent(void); /* 0x42C5A2 */
1622void ServiceCutsceneRuntimeHook(void); /* 0x464FD7 */
1623void AllocateCutsceneViewportOrFatal(Viewport *viewport, short colour,
1624 short flags); /* 0x42EE4F */
1625void DrawCutsceneTextAt(short x, short y, short viewportIndex,
1626 const char *text); /* 0x42C0F1 */
1627void AnimateCutsceneSpeakerMouth(SceneFlicObject *sprite); /* 0x42BB70 */
1629 unsigned char *text, signed char draw); /* 0x42E12A */
1631 signed char updateChildren); /* 0x42E3CF */
1632void UpdateCutsceneSpriteObject(SceneFlicObject *sprite); /* 0x42E553 */
1634 short handlerType); /* 0x42E692 */
1636 void *packet); /* 0x42EBD0 */
1637void ReleaseCutsceneFontPacket(void); /* 0x42EC7F */
1638void ReleaseCutsceneViewport(Viewport *viewport); /* 0x42EE86 */
1639short PopCutsceneScriptValue(short **stack, short *stackBottom); /* 0x42F135 */
1640void PushCutsceneScriptValue(short **stack, short *stackTop,
1641 short value); /* 0x42F19A */
1642signed char RunCutsceneScript(unsigned char **cursor,
1643 short objectType); /* 0x42F1FD */
1644unsigned short HasSavedPilotCampaign(void); /* 0x434177 */
1645void BeginShipDestructionSequence(short obj); /* 0x446710 */
1646void SpawnMissionEjectionPod(short obj); /* 0x446823 */
1647void RecordCannedSceneBriefingCharacter(signed char character,
1648 signed char pose,
1649 short animationFrame); /* 0x4021A7 */
1651 short index); /* 0x432DCC */
1653 short index,
1654 SceneFlicObject *object); /* 0x42E6EB */
1655void ReleaseSceneFlicPackets(void); /* 0x42E762 */
1656void AdvanceSceneFlicStream(SceneFlicObject *object); /* 0x42E868 */
1658 short index, int resourceType); /* 0x432F2A */
1659void ReleaseCutsceneSpriteShape(SceneFlicObject *sprite); /* 0x433269 */
1661 short index); /* 0x433328 */
1662void SetViewportRect(Viewport *viewport, unsigned short left,
1663 unsigned short top, unsigned short right,
1664 unsigned short bottom); /* 0x423C60 */
1665void PanToScreen(Viewport *source, Viewport *destination); /* 0x433410 */
1666void death_sequence(void); /* 0x4697A0 */
1667char *CopyRasterDriverName(void *const *callbacks); /* 0x40243C */
1668void InstallRasterDriverCallbacks(void *const *callbacks); /* 0x402465 */
1669unsigned int SetRasterClipPixel(RasterClip *clip, int x, int y,
1670 int colour); /* 0x402484 */
1671int ReadRasterClipPixel(RasterClip *clip, int x, int y); /* 0x40255F */
1672unsigned int DrawClippedLine(RasterClip *clip, int x1, int y1, int x2, int y2,
1673 int mode, int colour); /* 0x402635 */
1674int FillRasterClipCheckerboard(RasterClip *clip, int left, int top,
1675 int right, int bottom,
1676 unsigned char colour); /* 0x403037 */
1677int DrawRLEImage(RasterClip *clip, unsigned char *shape, int frame,
1678 int x, int y); /* 0x403170 */
1680 int x, int y,
1681 int strideScratch); /* 0x403574 */
1682void SetPaletteTranslationTable(const unsigned char *translation); /* 0x40363B */
1683int DrawRLEImageColor(RasterClip *clip, unsigned char *shape, int frame,
1684 int x, int y); /* 0x40365A */
1686 RLEFrameHeader *frameHeader,
1687 int x, int y,
1688 int strideScratch); /* 0x403B32 */
1689int RotateRLEImage(RasterClip *clip, unsigned char *shape, int frame,
1690 int x, int y, unsigned char *scratch,
1691 unsigned int angleTenths, int scaleX, int scaleY,
1692 unsigned int flags); /* 0x403C65 */
1693unsigned int GetRLEFrameBounds(unsigned char *shape, int frame,
1694 int x, int y, unsigned int flags,
1695 int *bounds); /* 0x404811 */
1697 unsigned char transparentColour,
1698 int originX, int originY,
1699 unsigned char *output); /* 0x404989 */
1700unsigned int TranslateRLEFramePalette(unsigned char *shape,
1701 int frame); /* 0x404C0C */
1702void EncodeRLEScanline(int pixelCount, unsigned char transparentColour,
1703 int sourceX); /* 0x404C9E */
1704void EmitRLEScanlineRun(int runType, int trailingCount,
1705 int sourceX); /* 0x404E27 */
1706int FillRasterClip(RasterClip *clip, int colour); /* 0x405004 */
1707int BlitRasterClip(RasterClip *source, int sourceX, int sourceY,
1708 RasterClip *destination, int destinationX,
1709 int destinationY, unsigned int colour); /* 0x4050E3 */
1710int ScrollRasterClipWrapped(RasterClip *clip, int deltaX, int deltaY,
1711 int mode,
1712 unsigned int fillOrScratch); /* 0x40547F */
1713unsigned int DrawRasterEllipse(RasterClip *clip, int x, int y,
1714 int horizontalRadius, int verticalRadius,
1715 int colour); /* 0x40567C */
1716unsigned int FillRasterEllipse(RasterClip *clip, int x, int y,
1717 int horizontalRadius, int verticalRadius,
1718 int colour); /* 0x4059BD */
1719void GetRLETransformTrig(int angleTenths, int *cosine, int *sine); /* 0x406ACF */
1720void CalculateRoundedRLEFixedProduct(int left, int right, int *result); /* 0x406B87 */
1721void TransformRLEPoint(int *point, int *result, int *origin,
1722 unsigned int angleTenths, int scaleX,
1723 int scaleY); /* 0x406BAD */
1724unsigned int GetRawImageHeight(unsigned char *shape); /* 0x406C74 */
1725unsigned int GetRawFrameWidth(unsigned char *shape, int frame); /* 0x406C87 */
1726int BlitRawFrame(RasterClip *clip, int x, int y, unsigned char *shape,
1727 int frame, unsigned char *translation); /* 0x406CA7 */
1728void BlitSelectedRawFrames(RasterClip *clip, int x, int y,
1729 unsigned char *shape,
1730 const unsigned char *frames,
1731 unsigned char *translation); /* 0x406E3A */
1733 const unsigned char *pixels,
1734 int width); /* 0x406E71 */
1735unsigned char *FindIFFChunkData(const char *chunkId,
1736 const unsigned char *iffData); /* 0x406F80 */
1737unsigned int DecodeIFFImage(RasterClip *clip,
1738 const unsigned char *iffData); /* 0x406FC2 */
1739void CopyILBMPalette(const unsigned char *iffData,
1740 unsigned char *palette); /* 0x407189 */
1741unsigned int GetILBMImageSize(const unsigned char *iffData); /* 0x4071BA */
1742unsigned int DecodePCXImage(RasterClip *clip,
1743 const unsigned char *pcxData); /* 0x4071E7 */
1744void CopyPCXPaletteFromFileTail(const unsigned char *fileData,
1745 unsigned int fileSize,
1746 unsigned char *palette); /* 0x407269 */
1747unsigned int GetPCXImageSize(const unsigned char *header); /* 0x407294 */
1748void ResetGIFLZWDictionary(void); /* 0x4072BB */
1749unsigned int ReadGIFDataSubBlockByte(void); /* 0x407303 */
1750unsigned int ReadGIFLZWCode(void); /* 0x40731C */
1751void AppendGIFLZWDictionaryEntry(void); /* 0x407362 */
1752void EmitGIFDecodedPixel(void); /* 0x4073A8 */
1754 const unsigned char *gifData,
1755 void *workspace); /* 0x407425 */
1756void CopyGIFPalette(const unsigned char *gifData,
1757 unsigned char *palette); /* 0x40763E */
1758unsigned int GetGIFImageSize(const unsigned char *gifData); /* 0x40769F */
1759unsigned int GetRLEFrameDimensions(unsigned char *shape,
1760 int frame); /* 0x4076D7 */
1761unsigned int GetRLEFrameExtents(unsigned char *shape,
1762 int frame); /* 0x4076F9 */
1763unsigned int GetRLEImageSize(unsigned char *shape, int frame); /* 0x40771C */
1764unsigned int GetRLEImageOrigin(unsigned char *shape, int frame); /* 0x407750 */
1765void ApplyRLEFramePalette(unsigned char *shape, int frame,
1766 unsigned char *palette); /* 0x40777A */
1767unsigned int CopyRLEFramePalette(unsigned char *shape, int frame,
1768 unsigned char *entries); /* 0x4077C5 */
1769unsigned int SetRLEFramePalette(unsigned char *shape, int frame,
1770 const unsigned char *entries); /* 0x40780D */
1771unsigned int GetRLEFrameCount(const unsigned char *shape); /* 0x407857 */
1772int CollectUniqueRLEImageFrames(const unsigned char *shape,
1773 unsigned int *frames); /* 0x40786A */
1774int CollectUniqueRLEPaletteFrames(const unsigned char *shape,
1775 unsigned int *frames); /* 0x4078CC */
1777 const unsigned char *targetPalette,
1778 unsigned int duration); /* 0x407C21 */
1780 unsigned int *colours); /* 0x407DA5 */
1781void ResetGameTextContexts(void); /* 0x45C128 */
1782short RunTitleScreen(void); /* 0x418FFC */
1783short PollCampaignChalkboardMenu(unsigned char *scene); /* 0x459C4D */
1785 void *destination,
1786 unsigned int length); /* 0x469BE0 */
1787void CheckHeapBlockSignature(unsigned char *shape); /* 0x4254C0 */
1788int HasValidShapeAllocationSignature(unsigned char *shape); /* 0x42550E */
1789unsigned char *GetPreparedShapeData(unsigned char *shape); /* 0x42553A */
1790short GetShapeFrameCount(unsigned char *shape); /* 0x425550 */
1791void GetShapeFrameExtents(unsigned char *shape, short frame,
1792 short *width, short *height,
1793 short *leftExtent, short *topExtent); /* 0x42557C */
1794void DecodeShapeFrame(unsigned char *shape, short frame,
1795 unsigned char *bitmap, int width, int height,
1796 int leftExtent, int topExtent); /* 0x425618 */
1797int SignExtendClipCoord(volatile short v); /* 0x4259E2 */
1798void ValidateViewportBounds(Viewport *viewport, RasterSurface *surface,
1799 RasterClip *clip); /* 0x425A16 */
1800void ClipViewportToScreen(Viewport *viewport); /* 0x425B9E */
1801signed char InitializeViewportWipe(Viewport *source,
1802 Viewport *destination,
1803 int wipeType, short duration,
1804 short passFlags, void *workspace); /* 0x448570 */
1805void SetViewportHorizontalBounds(Viewport *viewport, int left,
1806 int right); /* 0x448D1A */
1807void SetViewportVerticalBounds(Viewport *viewport, int top,
1808 int bottom); /* 0x448D39 */
1809signed char AdvanceViewportWipe(void *workspace); /* 0x448D58 */
1810void OffsetViewportBounds(Viewport *viewport, int left,
1811 int top, int right, int bottom); /* 0x449FAE */
1812void SetViewportRectangleBounds(Viewport *viewport, int left, int top,
1813 int right, int bottom); /* 0x44A009 */
1814void FinishViewportWipe(void *workspace); /* 0x44A03C */
1815void GenerateWipeRadialEdges(short *edges, int radius); /* 0x44A910 */
1816void BlitWipeRadialBands(Viewport *source, Viewport *destination,
1817 short *trailingEdges,
1818 short *leadingEdges); /* 0x44AAE5 */
1819void SetSolidColourTranslation(unsigned char colour); /* 0x425BBF */
1820void PrepareShapeRLEData(unsigned char *shape); /* 0x425BF6 */
1821void DrawSpriteTransformed(Viewport *viewport, int x, int y,
1822 unsigned char *shape, int frame,
1823 int angle, int scaleX, int scaleY,
1824 int flip, int blendMode); /* 0x425FB4 */
1825void RasterLineHook(const void *marker); /* 0x4261D5 */
1826void DrawFontGlyph(char character, TextContext *context, int height,
1827 int width, int y); /* 0x4261E5 */
1828void __copyline(void); /* 0x42665A */
1829void __wipeline(void); /* 0x426677 */
1830void EstablishColors(Viewport *viewport,
1831 unsigned char *active); /* 0x426694 */
1832void GetPaletteEntry(short index, unsigned short *rgb); /* 0x4266B1 */
1833void SetPaletteEntry(short index, short *rgb); /* 0x4266CC */
1834void DrawSpriteDefault(Viewport *viewport, short x, short y,
1835 unsigned char *shape, short frame); /* 0x4266E7 */
1836void CaptureSpriteBackground(Viewport *viewport, unsigned char *background,
1837 short x, short y, unsigned char *shape,
1838 short frame); /* 0x426769 */
1839void RestoreSpriteBackground(Viewport *viewport, unsigned char *background,
1840 short x, short y, unsigned char *shape,
1841 short frame); /* 0x426B96 */
1842void DrawSolidColourSprite(Viewport *viewport, short x, short y,
1843 unsigned char *shape, short frame,
1844 unsigned short colour); /* 0x426FD9 */
1845void CopyViewportContents(Viewport *source, Viewport *destination); /* 0x427047 */
1846void ClearViewport(Viewport *viewport, short colour); /* 0x427123 */
1847void DrawViewportPixel(Viewport *viewport, short x, short y,
1848 short colour); /* 0x427179 */
1849short GetViewportPixel(Viewport *viewport, short x, short y); /* 0x4271D2 */
1850void DrawViewportLine(Viewport *viewport, short x1, short y1,
1851 short x2, short y2, short colour); /* 0x42722E */
1852void FillPolygon(Viewport *viewport, ShortPoint *points, int count,
1853 char colour); /* 0x4272A5 */
1854void triangle(Viewport *viewport, ShortPoint *points, int colour); /* 0x427D9F */
1855void shaded_triangle(Viewport *viewport); /* 0x427DE8 */
1856void DrawFilledViewportRect(Viewport *viewport, short left, short top,
1857 short right, short bottom,
1858 short colour); /* 0x427E1B */
1859void DrawViewportBorder(Viewport *viewport, short left, short top,
1860 short right, short bottom,
1861 short colour); /* 0x427EC8 */
1862void DrawViewportEllipse(Viewport *viewport, short x, short y,
1863 short verticalRadius, short horizontalRadius,
1864 short colour); /* 0x428023 */
1865void FillViewportEllipse(Viewport *viewport, short x, short y,
1866 short verticalRadius, short horizontalRadius,
1867 short colour); /* 0x42808F */
1868void DrawViewportEllipseShadow(Viewport *viewport, short x, short y,
1869 short verticalRadius,
1870 short horizontalRadius,
1871 short colour); /* 0x4280FB */
1872void shadow_draw(Viewport *viewport); /* 0x428167 */
1873void DrawShapeFrameScaled(Viewport *viewport, unsigned char *shape,
1874 int frame, int x, int y, int angle,
1875 int scale); /* 0x4281AE */
1876void GetShapeFrameCorners(unsigned char *shape, int frame, int x, int y,
1877 short *points, int *count); /* 0x428217 */
1878void DrawSpriteScaled(Viewport *viewport, short x, short y,
1879 unsigned char *shape, short frame, short angle,
1880 short scale, short flip); /* 0x4282F0 */
1881void DrawSolidColourSpriteScaled(Viewport *viewport, short x, short y,
1882 unsigned char *shape, short frame,
1883 short angle, short scale, short flip,
1884 unsigned short colour); /* 0x428344 */
1885short GetTransformedShapeBounds(Viewport *viewport, short x, short y,
1886 unsigned char *shape, short frame,
1887 short angle, short scale, short flip,
1888 short *bounds); /* 0x4283A4 */
1889void CopyViewportRuns(Viewport *source, Viewport *destination,
1890 const short *runs); /* 0x428690 */
1891void fizzle_fade(Viewport *source, Viewport *destination); /* 0x4287A4 */
1892void snow_viewport(Viewport *viewport, int effect,
1893 unsigned short colour); /* 0x4287EB */
1894void UpdateStreamerStoppedFlag(void); /* 0x428979 */
1895void SignalAudioMixerWakeEvent(void); /* 0x42894B */
1896void InitializeAudioStreamer(HWND window); /* 0x428900 */
1897void Streamer_open(const char *streamName); /* 0x4289BF */
1898void Streamer_play(void); /* 0x428A2F */
1899void Streamer_stop(void); /* 0x428A6D */
1900void SetStreamerTrigger(int trigger); /* 0x428AEB */
1901void SetStreamerIntensity(int intensity); /* 0x428AAB */
1902void ForceStreamerTrigger(int trigger); /* 0x428B3C */
1903void SetMusicStreamVolume(unsigned short volume); /* 0x428DA3 */
1904unsigned int GetMusicStreamVolume(void); /* 0x428DBF */
1905void Streamer_close(void); /* 0x428B86 */
1906void DestroyAudioStreamer(void); /* 0x428BAD */
1907int ReadCheaterFlagFromRegistry(void); /* 0x428D09 */
1908int ix_system_init(void); /* 0x469C80 */
1909void ix_system_service_sounds(void); /* 0x469D27 */
1910void ix_system_shutdown(void); /* 0x469E73 */
1911void ix_system_configure(int option, void *value); /* 0x469EA6 */
1912void ix_system_set_master_volume(unsigned short volume); /* 0x469EDB */
1913void ix_system_set_voice_count(int voiceCount); /* 0x469F0C */
1914IxSample *ix_system_new_sample(void); /* 0x469F63 */
1915void ix_system_delete_all_samples(void); /* 0x469FC8 */
1916IxSound *ix_system_new_sound(IxSample *sample); /* 0x46A00D */
1917void ix_system_delete_all_sounds(void); /* 0x46A090 */
1918void ix_system_delete_sound(IxSound *sound); /* 0x46A047 */
1919void __fastcall ix_sound_start(IxSound *sound); /* 0x46A758 */
1920void __fastcall ix_sound_release(IxSound *sound); /* 0x46AA9E */
1921void __fastcall ix_sound_stop(IxSound *sound); /* 0x46AB4F */
1922int __fastcall ix_sound_is_playing(IxSound *sound); /* 0x46B0F8 */
1923int ix_streamer_init(void); /* 0x46BD50 */
1924void ix_streamer_destroy(void); /* 0x46BE6F */
1925void ix_streamer_configure(int option, void *value); /* 0x46BF1E */
1926int ix_streamer_open_stream_file(char *path); /* 0x46BFB6 */
1927void ix_streamer_close_stream_file(void); /* 0x46C67A */
1928void ix_streamer_audio_play(void); /* 0x46C7F3 */
1929void ix_streamer_audio_stop(void); /* 0x46C853 */
1930void ix_streamer_set_intensity(unsigned char intensity); /* 0x46C96B */
1931void ix_streamer_set_trigger(char trigger); /* 0x46C9C1 */
1932void ix_streamer_force_trigger(char trigger); /* 0x46CA2E */
1933void ix_streamer_set_volume(unsigned short volume); /* 0x46CBBE */
1934unsigned short ix_streamer_get_volume(void); /* 0x46CC3B */
1935
1936#endif /* GAME_FUNCTIONS_H */
void clear_alert(short obj)
Definition logic.c:37
int FillRasterClip(RasterClip *clip, int colour)
void ShowGamePausedBanner(short showBanner)
Definition message.c:187
void RecordMusicCommandHook(int track, int command, short enabled)
Definition taperec.c:255
void SetVectorFixedPoint(unsigned int *p, short v)
Definition geom.c:754
void set_formation_position(short obj, const MissionShipRecord *record)
Definition mission.c:1105
void DrawNavSquareOutline(Viewport *viewport, short x, short y, short size, signed char colour)
Definition nav.c:494
void set_up_screen_viewport(signed char mode)
Definition eventmgr.c:1820
void ForceStreamerTrigger(int trigger)
Definition stream.cpp:127
short ReadPersonnelTextField(unsigned int x, unsigned int y, int font, const char *prompt, char *destination, int maximumLength, int mode, int required)
Definition optmenu.c:337
unsigned int approach_full_speed(short ship)
Definition logic.c:537
int GetDownArrowKeyState(void)
Definition winmain.c:1082
int GetSpaceKeyState(void)
Definition winmain.c:1118
void imperial_wingman(short obj)
Definition brains.c:310
void vid_equiv(short obj, short message)
Definition cockpt.c:3444
void InitializeNewPilotCampaign(short campaignSlot)
Definition campaign.c:14
void AdjustScannerContactColourForRange(int range, short *colour)
Definition cockpt.c:1650
short match_roll_orientation(short obj, short reference)
Definition geom.c:604
int ix_system_init(void)
Definition system.cpp:25
int RandomFixedAimComponent(short radius, short speed, short maximum)
Definition ship.c:2266
short ReadWord(unsigned short *p)
Definition eventmgr.c:210
void FxDriverInitHook(void)
Definition startup.c:376
void transform_to_objects_frame(const FixedVector *source, FixedVector *destination, short obj)
Definition geom.c:495
short real_crash_time(short obj, short other)
Definition logic.c:76
void RefreshMouseCursorDisplay(void)
Definition eventmgr.c:1165
short CountAlliesOnSameTarget(short obj)
Definition smart.c:563
void set_message_time(short duration)
Definition cockpt.c:732
void RefreshCampaignChalkboardScreen(short cockpitVariant)
Definition personnel.c:180
short find_ships_sphere(short missionShip)
Definition logic.c:816
void ComputeVectorDelta(FixedVector *from, FixedVector *to, FixedVector *delta)
Definition geom.c:229
short disobey_formation(short ship)
Definition orders.c:102
void load_ship(short resourceType, short objectType, short objectClass, short slot)
Definition mission.c:415
unsigned int approach_zero_speed(short ship)
Definition logic.c:508
void Build_objective_list(void)
Definition nav.c:193
void remove_hazard(signed char hazard)
Definition fields.c:74
void housekeep_power_plant_and_fuel(short ship)
Definition ship.c:2939
void show_communications_disp(void)
Definition comm.c:355
void Set_up_ship_info(short obj, short missionShip, signed char navPoint)
Definition mission.c:1135
void UpdateTargetCameraTracking(void)
Definition turret.c:849
short your_internal_damage(short attacker, short owner, short damage, short quadrant)
Definition ship.c:1273
void SaveAndFreeTemporaryCampaignGlobals(void)
Definition campglob.c:188
short get_mode(short i)
Definition cockpt.c:630
void SetMouseHomePosition(short x, short y)
Definition eventmgr.c:1377
short find_next_gun(short obj, short currentGun)
Definition select.c:9
void unwarp(short obj)
Definition jump.c:58
CutsceneResourceTable * PushCutsceneFileResource(CutsceneResourceTable **head)
Definition iffload.c:366
short IsVectorWithinRange(FixedVector *vector, short range)
Definition eventmgr.c:2023
void init_mission(short series, short mission)
Definition mission.c:87
void ShutdownSoundBlaster(void)
Definition speech.c:269
int ConfigureInputPump(int slot, void(*pump)(void))
Definition eventmgr.c:2112
signed char RunCutsceneScript(unsigned char **cursor, short objectType)
Definition gameflow.c:1844
short HasShipActiveMissile(short obj)
Definition ship.c:2339
CutsceneObjectResourceList * FindActiveCutsceneObjectResources(CutsceneObjectResourceList *resources)
Definition gameflow.c:427
unsigned int GetLargestFreeMemoryBlock(void)
Definition eventmgr.c:1515
void replenish_shields(short ship)
Definition ship.c:2949
void Mkill_missile(short ship, short target)
Definition fl.c:803
void FormatTextBufferFromStart(const char *format,...)
Definition textfmt.c:123
void Mwabble(short ship)
Definition fl.c:157
void CheckHeapBlockSignature(unsigned char *shape)
Definition gr.c:112
void damage_ion_drive(short ship, short amount, short maximum)
Definition geom.c:53
short HandleSpaceFlightControls(void)
Definition main.c:912
void SceneLeaveHook()
Definition music.c:80
short InitializeSoundBlaster(short port, short irq)
Definition speech.c:205
short SelectLegacyGameSource(void)
Definition personnel.c:1217
void apply_force_to_object(FixedVector *point, FixedVector *force, short obj)
Definition geom.c:908
void set_alert(short obj, unsigned int bits)
Definition logic.c:31
int SeekDataFile(unsigned short fd, int offset, unsigned int origin)
Definition datafile.c:78
void update_bars(void)
Definition cockpt.c:587
void look_at(short obj)
Definition geom.c:95
void SetInputViewport(Viewport *viewport)
Definition eventmgr.c:2093
void DrawTitleSky(short planetY)
Definition intro.c:119
unsigned int GetPCXImageSize(const unsigned char *header)
short kilrathi_near(short obj, short range)
Definition cockpt.c:395
void ix_system_set_master_volume(unsigned short volume)
Definition system.cpp:116
void Mturn_n_kick(short ship)
Definition fl.c:412
void DrawPersonnelFileSlot(short slot)
Definition personnel.c:497
short regulate_turn(short obj)
Definition smart.c:173
void set_special(short ship, short special)
Definition logic.c:493
unsigned int select_target(short obj)
Definition smart.c:199
void approach_and_engage(short obj, short goal)
Definition brains.c:673
unsigned int DosFarPtrToNear(void *v)
Definition eventmgr.c:441
void AllocateApplicationScratchBuffer(void)
Definition eventmgr.c:2399
short count_down(short obj)
Definition spc.c:811
short pilot_hit(short obj)
Definition ship.c:1010
void escort_buddy(short obj, short buddy)
Definition brains.c:603
void ClearDebugOverlay(void)
Definition console.cpp:76
void DrawViewportLine(Viewport *viewport, short x1, short y1, short x2, short y2, short colour)
Definition gr.c:1060
short WriteDataFileAtOffset(unsigned short fd, int offset, unsigned int length, const void *data)
Definition datafile.c:28
short ShipExplosion(short obj)
Definition ship.c:1786
void kilrathi_patrol(short obj)
Definition brains.c:441
void PrepareShapeRLEData(unsigned char *shape)
Definition gr.c:363
void get_facing_range_from_point(short obj, const FixedVector *point)
Definition geom.c:562
void Mtry2tail(short ship, short target)
Definition fl.c:518
void DrawViewportEllipseShadow(Viewport *viewport, short x, short y, short verticalRadius, short horizontalRadius, short colour)
Definition gr.c:1415
short HasShipCockpitGunDisplay(short ship)
Definition ship.c:106
void ShipAiState47(short ship, short target)
Definition fl.c:642
void SetRectBounds(Viewport *viewport, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom)
Definition cockpt.c:2044
void Mbuzz_debris(short ship)
Definition fl.c:699
void PollJoystickButtonEvents(void)
Definition input.c:74
void initialize_direction_view_frames(void)
Definition startup.c:324
void SetMousePosition(int x, int y)
Definition winmain.c:975
void EncodeRLEScanline(int pixelCount, unsigned char transparentColour, int sourceX)
void GetJoystickPosition(unsigned int *x, unsigned int *y, int *buttons, unsigned short joystick, unsigned int fallback)
Definition winmain.c:657
void ShipAiState44(short ship)
Definition fl.c:959
void fire_super_brake(short ship)
Definition ship.c:2750
short fire_missile(short ship)
Definition ship.c:2681
void DrawCockpitReadout(signed char slot, const char *text)
Definition cockpt.c:247
void ToggleTargetCameraTracking(void)
Definition turret.c:740
void get_follow_point(short obj, FixedVector *point)
Definition logic.c:872
void wait_for_end_of_music(void)
Definition music.c:178
void FatalCutsceneError(const char *format,...)
Definition gameflow.c:455
void make_shard(short asteroid, FixedVector direction)
Definition fields.c:46
void Mroll_over(short ship)
Definition fl.c:447
void FadeViewportPaletteToColour(Viewport *viewport, unsigned short colour, short enabled)
Definition palfade.c:10
void FadeMusic(short duration)
Definition music.c:75
void DIBpixelBufferHook(void)
Definition dib.cpp:786
short MaxShort(short a, short b)
Definition disk.c:36
void DestroyGlobalDebugOverlayConsole(void)
Definition console.cpp:22
int BlitRawScanline(RasterClip *clip, int y, const unsigned char *pixels, int width)
long MultiplyFixed(int left, int right)
Definition eventmgr.c:51
void DrawTargetCameraAttitudeIndicators(unsigned short colour)
Definition turret.c:995
short enemy_within_range(short obj, short range)
Definition logic.c:635
short DrawHudMessageSlot(HudMessageSlot *slot)
Definition cockpt.c:269
void goto_location(short obj, const FixedVector *destination)
Definition smart.c:329
short distance_between_points(const FixedVector *from, const FixedVector *to)
Definition geom.c:528
void sound_effect(signed char soundNumber, short sourceObject, short looping)
Definition music.c:451
void LoadMissionData(short series, short mission)
Definition loadmisn.c:10
void initialize_view_buffer(void)
Definition main.c:217
short detect_collisions(short obj)
Definition logic.c:143
void TimerResetHook(void)
Definition eventmgr.c:1485
char PumpMessagesDuringWait(void)
Definition console.cpp:46
void BuildObjectDepthOrder(void)
Definition eventmgr.c:1643
void CheckPoint(short x, short y)
Definition nav.c:119
void OffsetViewportBounds(Viewport *viewport, int left, int top, int right, int bottom)
Definition wipe.c:882
void EmitTextString(void(*writer)(int), const char *text)
Definition textfmt.c:9
short LoadInputCursorShape(const char *filename, short section, short flags)
Definition eventmgr.c:2120
void steer_away_from_object(short obj, short other, short amount)
Definition smart.c:40
void SetViewportRectangleBounds(Viewport *viewport, int left, int top, int right, int bottom)
Definition wipe.c:892
void SetViewportHorizontalBounds(Viewport *viewport, int left, int right)
Definition wipe.c:241
void Mreset(short ship)
Definition fl.c:1008
void IncreaseAdaptiveDifficulty(void)
Definition ship.c:152
int send_at_point(short obj, FixedVector *point, short speed)
Definition ship.c:2008
short LogMemoryUsage(void)
Definition main.c:24
void cruise_to_destination(short obj)
Definition brains.c:464
short StepPaletteTransition(short *current, const short *target, short componentCount)
Definition fade.c:12
void * PacketLoad(const char *filename, short section, void *destination, short flags, void *decompressionWorkspace, int registerHandle)
Definition pload.c:16
void SetViewportRect(Viewport *viewport, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom)
Definition viewrect.c:9
short WaitForSceneAdvance(void *scenePacket)
Definition hotspot.c:9
void LoadStartingCampaignGlobals(short campaign)
Definition campaign.c:337
short explode(short attacker, short victim)
Definition ship.c:1915
void cockpit_explosion(void)
Definition cockpt.c:3300
unsigned int IdentityWord(unsigned int v)
Definition eventmgr.c:1497
signed char IsConstellationParticleOutsideViewport(ConstellationParticle particle)
Definition starfld.c:96
void snow_viewport(Viewport *viewport, int effect, unsigned short colour)
Definition gr.c:1665
void set_next_destination(void)
Definition cockpt.c:1319
void ix_system_delete_all_samples(void)
Definition system.cpp:159
void death_sequence(void)
Definition death.c:12
void LoadCommPortraitResources(short portrait)
Definition comm.c:25
void ShutdownNearHeap(void)
Definition nearheap.c:127
void formation_burst(short obj)
Definition brains.c:182
void ClampTo30(short *p)
Definition geom.c:1011
short MeasureCinematicFontCharacterWidth(short character)
Definition text.c:109
void triangle(Viewport *viewport, ShortPoint *points, int colour)
Definition gr.c:1318
unsigned int get_first_follow_point(short obj, FixedVector *point)
Definition logic.c:907
void fix_objects_ijk(short obj)
Definition geom.c:481
signed char InitializeViewportWipe(Viewport *source, Viewport *destination, int wipeType, short duration, short passFlags, void *workspace)
Definition wipe.c:12
void LoadVolumeSettingsFromRegistry(void)
Definition sound.c:440
void SaveVolumeSettingsToRegistry(void)
Definition sound.c:471
void * LoadPacketAllocated(char *fileName, short section)
Definition disk.c:157
unsigned short RestoreCannedSceneObjectState(CannedSceneObjectStateRecord *record)
Definition replay.c:44
unsigned int GetRawFrameWidth(unsigned char *shape, int frame)
void FadeRasterPaletteToPalette(RasterSurface *surface, const unsigned char *targetPalette, unsigned int duration)
void point_ship_at_object(short obj, short other)
Definition geom.c:686
unsigned int GetAvailableMainMemory(void)
Definition memfree.c:13
void place_damage_on_cockpit(short damage)
Definition cockpt.c:3334
void DisableMusicForSceneHook(void)
Definition music.c:408
void ResetGIFLZWDictionary(void)
void draw_3d_scanner(void)
Definition cockpt.c:1709
void * AllocateDefaultMemory(unsigned int size)
Definition eventmgr.c:1465
short distance_from_point(short obj, const FixedVector *point)
Definition geom.c:538
void perform_maneuver(short obj)
Definition fl.c:1014
void ShipAiState46(short ship)
Definition fl.c:664
void ReleaseLoadedCutsceneResource(CutsceneResourceTable *resources, short index)
Definition gameflow.c:3649
void DecodeCutsceneFileResource(CutsceneResourceTable *resource, unsigned char **cursor)
Definition iffload.c:383
unsigned int SetRLEFramePalette(unsigned char *shape, int frame, const unsigned char *entries)
void SplitGameClockTicksForNav(unsigned char *parts)
Definition eventmgr.c:2383
short GetShipDistanceToNavPoint(short ship, MissionNavPoint *navPoint)
Definition main.c:1743
void RestoreModalTextPanel(ModalTextPanel *panel)
Definition optmenu.c:153
int IsPushedPacketHandle(void *handle)
Definition memapi.c:53
void * LoadCachedCutsceneResource(CutsceneResourceTable *resources, short index, int resourceType)
Definition gameflow.c:3539
void main(short argc, char **argv)
Definition startup.c:425
void GetShapeFrameCorners(unsigned char *shape, int frame, int x, int y, short *points, int *count)
Definition gr.c:1461
void VideoReleaseHook(void)
Definition eventmgr.c:2003
void RewritePacketFilenameForInstalledData(char *fileName)
Definition disk.c:126
void InitializeCockpitResources(short shipType)
Definition fltsetup.c:507
unsigned int find_squad_center(FixedVector *center)
Definition logic.c:387
int StartSoundEffectHook(const unsigned char *definition, int effectHandle, int volume, int pan, int sample, int looping)
Definition music.c:54
void OpenDiskDataFile(short logicalFile)
Definition personnel.c:313
void Mzig_zag(short ship, unsigned int target)
Definition fl.c:886
void SetMusicStreamVolume(unsigned short volume)
Definition stream.cpp:248
void dump_buffer_to_screen(void)
Definition main.c:232
void ResetSoundStateForFlight(void)
Definition music.c:398
int GetJKeyState(void)
Definition winmain.c:1142
void ApplyPackedMousePosition(ShortPoint point)
Definition eventmgr.c:1386
void FillFixedVectorWithRandomComponents(short limit, FixedVector *vector)
Definition geom.c:272
short InitializePostPaletteState(void)
Definition eventmgr.c:499
void check_message(void)
Definition cockpt.c:740
short ServiceInputDevices(short deviceMask)
Definition eventmgr.c:2071
unsigned int generate_stars(void)
Definition spc.c:674
void start_lock(unsigned short v)
Definition cockpt.c:1896
void Mhard_turn(short ship)
Definition fl.c:461
void match_ship_to_eye(void)
Definition fields.c:356
short have_target(void)
Definition comm.c:118
void rotate_about_i(short angle, FixedVector *j, FixedVector *k)
Definition geom.c:393
void InitializeTextContextFromFont(TextContext *context, short fontIndex, unsigned char colour, signed char background)
Definition disk.c:254
int GetReturnKeyState(void)
Definition winmain.c:1112
void SendCommMenuChoice(short i)
Definition comm.c:76
int dot_product(const FixedVector *left, const FixedVector *right)
Definition geom.c:316
signed char damage_your_component(char component, char amount, char maximum)
Definition cockpt.c:846
short LocateMobileObjective(short objective)
Definition cockpt.c:1345
void Create_ship_hit_debris(short obj, short count)
Definition ship.c:1467
void ReleaseContiguousPaletteEntries(short firstEntry)
Definition palalloc.c:46
void LoadCutsceneSpeechSlot(short resourceIndex, short slot)
Definition gameflow.c:640
void StartupHook(unsigned int(*callback)(unsigned int, short))
Definition eventmgr.c:1927
void Mtarget_laser(short ship, short target)
Definition fl.c:967
ActiveSoundEntry * AllocateActiveSoundEntry(void)
Definition sound.c:132
void SetPaletteEntry(short index, short *rgb)
Definition gr.c:676
void object_collision(short obj)
Definition spc.c:1377
unsigned int GetRLEFrameExtents(unsigned char *shape, int frame)
void warp_arrival(short obj)
Definition brains.c:582
void show_target_disp(void)
Definition target.c:23
void DispatchCutsceneSpriteHandler(SceneFlicObject *sprite, short handlerType)
Definition gameflow.c:1442
void general_zig(short ship, unsigned int target, short pitch)
Definition fl.c:849
int ReadRasterClipPixel(RasterClip *clip, int x, int y)
void imperial_formation(short obj)
Definition brains.c:244
void __fastcall ix_sound_stop(IxSound *sound)
Definition sound.cpp:211
short ObjectivesShareNavLabel(short objective, short other)
Definition nav.c:390
void SoundBlasterDspInterrupt(void)
Definition speech.c:139
unsigned int ReadGIFDataSubBlockByte(void)
short GetTransformedShapeBounds(Viewport *viewport, short x, short y, unsigned char *shape, short frame, short angle, short scale, short flip, short *bounds)
Definition gr.c:1518
void UpdateSavedTorpedoTargetLock(void)
Definition turret.c:931
void SpawnCapitalFlakProjectile(short weapon, short obj, int x, int y, int z)
Definition brains.c:986
void ServiceAudioStream(void)
Definition sound.c:40
void free_ship(short slot)
Definition mission.c:604
void remove_object(short obj)
Definition geom.c:858
void fire_afterburner(short obj, short time)
Definition ship.c:2733
void ReleaseCutsceneFileResourceExceptPacket(short owner, CutsceneResourceTable **head, void *retainedPacket)
Definition iffload.c:709
void UpdateDamageDisplay(void)
Definition damage.c:92
void align(int *value, short quantum)
Definition fields.c:134
int FillRasterClipCheckerboard(RasterClip *clip, int left, int top, int right, int bottom, unsigned char colour)
unsigned int SetRasterClipPixel(RasterClip *clip, int x, int y, int colour)
void DrawPendingCockpitDamage(void)
Definition cockpt.c:3250
void formation_break(short obj)
Definition brains.c:289
void disallow_engage(void)
Definition brains.c:199
void house_keep_objects(void)
Definition spc.c:819
void build_your_target_list(short *hasEnemy)
Definition cockpt.c:2781
void alter_pitch(short angle, short obj)
Definition geom.c:504
short RunCampaignGameLoop(short campaignSlot)
Definition campaign.c:136
void LogMemoryStateToFile(FILE *file)
Definition gameflow.c:132
void ComputePointAheadOfObject(short obj, unsigned short distance, FixedVector *point)
Definition logic.c:550
void DrawNavHazardMarker(FixedVector navPosition, FixedVector offset, short size, unsigned short markerColour, unsigned short textColour, const char *text)
Definition nav.c:614
void DrawSolidColourSpriteScaled(Viewport *viewport, short x, short y, unsigned char *shape, short frame, short angle, short scale, short flip, unsigned short colour)
Definition gr.c:1505
void UpdateTargetCameraObject(short obj)
Definition turret.c:789
short AllocateViewport(Viewport *viewport, short clearColour, short flags)
Definition vpalloc.c:32
short NavMapPointInsideReservedArea(short area, short x, short y)
Definition nav.c:266
void DrawShapeFrameScaled(Viewport *viewport, unsigned char *shape, int frame, int x, int y, int angle, int scale)
Definition gr.c:1445
void ReleaseApplicationScratchBuffer(void)
Definition eventmgr.c:2406
short is_alive(signed char pilot)
Definition mission.c:61
void DrawNavTextLine(unsigned char alignment, unsigned short colour, const char *format,...)
Definition nav.c:69
short NavMapLabelPositionAvailable(short x, short y, short width, short height)
Definition nav.c:283
void maneuvering(short obj, short newTarget)
Definition brains.c:174
unsigned int GetRawImageHeight(unsigned char *shape)
void ReleaseActiveCutscenePacket(CutsceneResourceTable *resources, void *packet)
Definition gameflow.c:1617
void ix_streamer_set_intensity(unsigned char intensity)
Definition streamer.cpp:383
short abandoned(short obj, short other)
Definition logic.c:933
void capital_ship_strike_mission(short obj)
Definition brains.c:1025
short HasInRangeGunForTargetLead(short targetRange)
Definition cockpt.c:2393
void malf_noise(short vdu, int effect, unsigned short colour, short sound, short refresh)
Definition cockpt.c:2764
void StopDigiPlayback(void)
Definition speech.c:129
void GetRLETransformTrig(int angleTenths, int *cosine, int *sine)
void CompleteStarSystemJump(void)
Definition jump.c:216
short GetRectHeight(const Viewport *viewport)
Definition cockpt.c:2054
long Vector_magnitude(const FixedVector *vector)
Definition eventmgr.c:157
void WriteDetailedMemoryStateReport(void)
Definition gameflow.c:147
short shape_needed(const MissionNavPoint *navPoint, short resourceType)
Definition mission.c:775
void ejection_sequence(short outcome, signed char restoreCockpit)
Definition midscene.c:63
unsigned int DrawClippedLine(RasterClip *clip, int x1, int y1, int x2, int y2, int mode, int colour)
void ResetCommMenuChoices(short reuse)
Definition comm.c:39
void __copyline(void)
Definition gr.c:647
unsigned char SoundBlasterIn(unsigned short port)
Definition speech.c:32
void update_missile_warning(void)
Definition cockpt.c:3006
short get_shape_slot(void)
Definition mission.c:751
void StopMusicStream(void)
Definition music.c:14
HWND GetDIBWindowHandle(void)
Definition dib.cpp:793
void ShowConfedNavScan(short refresh)
Definition nav.c:1054
void ResetSoundStateForScene(void)
Definition music.c:389
void * PushMemoryStackFrame(void *memory, int offset)
Definition memapi.c:30
void add_hazard_field(short type, FixedVector center, short radius, short density)
Definition fields.c:411
unsigned short ApplyCannedSceneObjectEventRecord(CannedSceneObjectEventRecord *record)
Definition replay.c:81
void DrawWrappedCinematicText(char *text)
Definition text.c:40
short is_team_member(short missionShip)
Definition mission.c:1217
unsigned int alter_objective(short ship, short objective)
Definition logic.c:453
void Create_explosion_debris(short obj)
Definition ship.c:1557
void DosMemmove(void *dst, const void *src, unsigned short n)
void auto_position(short obj, short *formationSlot)
Definition auto.c:64
void FinalizeTargetCameraViewHook(void)
Definition turret.c:1228
void update_objective_location(short objective)
Definition cockpt.c:1460
void AddFixedVectors(const FixedVector *left, const FixedVector *right, FixedVector *sum)
Definition geom.c:211
void free_cockpit(void)
Definition fltsetup.c:742
void intro_drawbackgroundships(void)
Definition eventmgr.c:1768
void SetStreamerIntensity(int intensity)
Definition stream.cpp:105
unsigned int fire_players_lasers(void)
Definition main.c:608
void AdjustSpaceFramePeriod(short adjustment)
Definition main.c:60
void RemoveWaveTableEntry(WaveTableEntry *entry)
Definition sound.c:89
unsigned int match_rotation_goal(short *rotation, short *goal, short totalError, short rate)
Definition ship.c:538
void ClearTextInputCharacter(char character)
Definition optmenu.c:84
void position_child(short parent, short weapon, FixedVector *position)
Definition geom.c:801
void ShutdownGameWindow(void)
Definition winmain.c:172
void affect_mission_score(short pilot, int event, short amount)
Definition ship.c:1621
void check_next_wave(void)
Definition ship.c:1491
void check_objectives(void)
Definition cockpt.c:1515
void SetDebugCursorPosition(short column, short row)
Definition console.cpp:64
void SetMusicTickRateHook(short period)
Definition eventmgr.c:2214
void draw_nav_pointer(void)
Definition cockpt.c:2323
short hostile_sphere(short obj, short navPoint)
Definition logic.c:916
void BuildCommunicationCommandMenu(void)
Definition comm.c:199
short evaluate_damage(short obj)
Definition logic.c:1027
void AppendPacketLoadDebugLog(char *fileName, short section, void *packet)
Definition disk.c:98
unsigned int AbortToDesktop(void)
Definition winmain.c:220
short StartMusic(void *music)
Definition music.c:37
int DrawRLEImage(RasterClip *clip, unsigned char *shape, int frame, int x, int y)
void RestoreMouseCursorBackground(void)
Definition eventmgr.c:1131
void BlitSelectedRawFrames(RasterClip *clip, int x, int y, unsigned char *shape, const unsigned char *frames, unsigned char *translation)
void init_vdus(void)
Definition fltsetup.c:476
short sighted(short objective)
Definition cockpt.c:1134
void PersonnelDriveHook(short drive)
Definition eventmgr.c:1978
short IsCommMenuIdle(void)
Definition comm.c:54
unsigned int GetLargestMainMemoryBlock(void)
Definition memfree.c:35
void CalibrateJoystickInteractive()
Definition titlemnu.c:10
int RunSpaceFlight(short entryNavPoint)
Definition main.c:1778
short RandomSign(short v)
Definition ship.c:2257
void rotate_object_to_goal(short obj)
Definition ship.c:576
void wingman_mission(short obj)
Definition brains.c:371
void init_formation_burst(short obj)
Definition logic.c:403
void RemoveActiveSoundEntry(ActiveSoundEntry *entry)
Definition sound.c:148
char * CopyRasterDriverName(void *const *callbacks)
int GetPageUpKeyState(void)
Definition winmain.c:1058
void ProcessMissionWaveCommands(MissionNavPoint *navPoint)
Definition mission.c:832
void InitializeCinematicTextRenderer(void)
Definition text.c:132
void FinishCannedScenePlayback(void)
Definition replay.c:25
unsigned short InitializeNearHeap(void)
Definition nearheap.c:86
void FireTargetCameraGuns(void)
Definition turret.c:327
void RunCutsceneWipeTransition(Viewport *destination, Viewport *source, int wipeType, short duration)
Definition gameflow.c:356
void ApplySpacePaletteModeHook(void)
Definition eventmgr.c:222
void SetSpaceFlightFrameTiming(void)
Definition dib.cpp:192
void EnableMusicForScene(void)
Definition music.c:413
void Mzig_zag_pitch(short ship, unsigned int target)
Definition fl.c:892
unsigned char * FindIFFChunkData(const char *chunkId, const unsigned char *iffData)
void patrol_area(short obj)
Definition brains.c:396
int GetCannedSceneObjectMode(short obj)
Definition taperec.c:92
short DosStrlen(const char *s)
Definition eventmgr.c:479
unsigned int DrawSpaceSceneFrame(void)
Definition main.c:1645
void InitializeSpaceFlightInput(void)
Definition message.c:16
void InitializeAudioStreamer(HWND window)
Definition stream.cpp:32
void your_afterburner(void)
Definition ship.c:3028
void free_viewport(Viewport *viewport)
Definition vpfree.c:10
unsigned int IsMusicTrackComplete(void)
Definition music.c:168
unsigned int reset_stress(short obj)
Definition smart.c:405
void free_inflight_music(void)
Definition fltsetup.c:944
int EncodeRasterClipToRLEFrame(RasterClip *clip, unsigned char transparentColour, int originX, int originY, unsigned char *output)
void point_capital_ship_at_object(short obj, short other)
Definition geom.c:692
void EndCommMenu(void)
Definition comm.c:441
void DrawViewportPixel(Viewport *viewport, short x, short y, short colour)
Definition gr.c:1038
short easy2see(short obj)
Definition fields.c:25
InputEventState * FindQueuedInputEvent(int type)
Definition eventmgr.c:969
short UpdateInputDeviceTransitions(short raw)
Definition input.c:12
void InitializeConstellationObject(const ConstellationObjectDefinition *definition, short object)
Definition fltsetup.c:388
void repair_internal_damage(void)
Definition ship.c:1439
void RefreshMemoryStatusOverlay(void)
Definition main.c:283
void accelerate_and_jump(short obj)
Definition brains.c:539
void PlaySnowStaticSound(void)
Definition sound.c:347
void clear_cockpit_damage(void)
Definition cockpt.c:3201
void IssueQuickCommCommand(short recipient, short command)
Definition comm.c:413
void DrawNavMapLegend(void)
Definition nav.c:855
void DIBramPalette(void)
Definition dib.cpp:830
short CheckTargetLockMalfunction(void)
Definition cockpt.c:1933
void playWAVE(const char *filename, int looping, int volume)
Definition sound.c:217
void ResetPilotHandAnimation(void)
Definition cockpt.c:3102
void GenerateWipeRadialEdges(short *edges, int radius)
Definition wipe.c:1201
void * AllocateNearHeapBlockFromEnd(int size, short flags)
Definition nearheap.c:144
unsigned int PollKeyboardState(void)
Definition winmain.c:991
void explosion_draw(int useBackgroundViewport)
Definition cockpt.c:3212
short LoadShapeSet(PacketResourceDescriptor *resources, short flags, char *defaultFileName)
Definition fltsetup.c:15
signed char HasCutsceneMusicNode(CutsceneMusicNode *node)
Definition gameflow.c:119
void MonoDebug_print(const char *text)
Definition mono.c:75
signed char CanSetNewShipTurnGoal(short ship)
Definition logic.c:303
void load_common_3Space_objects(void)
Definition fltsetup.c:834
void flag_reached(short objective, short reached)
Definition cockpt.c:1379
void ClearInputKeyStatePreservingModifiers(void)
Definition eventmgr.c:1593
void HighlightPersonnelFileSlot(short choice)
Definition personnel.c:547
void alter_roll(short angle, short obj)
Definition geom.c:520
void DrawCinematicMemoryStatus(const char *message)
Definition gameflow.c:1732
short unactive(short ship)
Definition logic.c:186
void SetTextContext(TextContext *context)
Definition eventmgr.c:179
void kilrathi_wingman(short obj)
Definition brains.c:334
void ClearHudMessageSlot(HudMessageSlot *slot)
Definition cockpt.c:303
void run_away(short obj)
Definition brains.c:101
void ResetScreenClipToFullHeight(void)
Definition message.c:125
void position_relative_ijk(FixedVector *position, short obj, short right, short up, short forward)
Definition geom.c:112
void ScaleFixedVector(FixedVector *vector, int scale, FixedVector *result)
Definition geom.c:237
long GetNamedPacketSize(const char *filename, short section)
Definition eventmgr.c:2164
void Mbest_strafe(short ship, short target)
Definition fl.c:743
int DrawRLEImageUnclipped(RasterClip *clip, RLEFrameHeader *frameHeader, int x, int y, int strideScratch)
void ReportPacketLoadError(void *packet, char *fileName, short retry, short section, const char *sourceTag)
Definition disk.c:54
int ScrollRasterClipWrapped(RasterClip *clip, int deltaX, int deltaY, int mode, unsigned int fillOrScratch)
short IsPointInNavMapLabel(short label, short x, short y)
Definition nav.c:442
void get_player_input(void)
Definition main.c:389
short GetInitialMissionShipPilotSaveIndex(short initialShip)
Definition campglob.c:35
void DIBunInstall(void)
Definition dib.cpp:424
void SplitGameClockTicks(unsigned char *parts)
Definition clock.c:9
void * AllocateGuardedMemory(unsigned int size)
Definition winmain.c:757
short update_vid_disp(short vdu)
Definition cockpt.c:702
void SetNavMapCoordinateScaling(short enabled)
Definition nav.c:89
void PushTitleOrchestraAway(void)
Definition intro.c:353
void WaitForJoystickButtonRelease(void)
Definition titlemnu.c:158
short HandleFleetOverviewInput(void)
Definition turret.c:33
IxSample *__fastcall ix_sound_get_sample(IxSound *sound)
Definition sound.c:501
short MeasureTextPixelWidthClamped(const char *text)
Definition strwidth.c:10
void escort_mission(short obj)
Definition brains.c:611
void replenish_weapon_energy_bank(short ship)
Definition ship.c:2973
void rendezvous_mission(short obj)
Definition brains.c:828
void ReleaseTextFont(short fontIndex)
Definition disk.c:274
int __fastcall ix_sound_is_playing(IxSound *sound)
Definition sound.cpp:361
void reset_cockpit(void)
Definition cockpt.c:488
void StopMusic(short enabled)
Definition music.c:30
void check_visit(short objective, short range)
Definition cockpt.c:1445
void SetDebugTextPosition(short row, short column)
Definition console.cpp:58
int ReadDataFileAtOffset(unsigned short fd, int offset, unsigned int length, void *data)
Definition datafile.c:60
unsigned int GetLargestFreeMemoryBlockByType(short memoryType)
Definition memapi.c:139
void SetPersonnelCursorPosition(int x, int y, short unused1, short unused2)
Definition main.c:16
void AnimateTitleOrchestra(void)
Definition intro.c:148
void DrawModalTextPanel(ModalTextPanel *panel, short x, short y, unsigned char alignment, const char *format,...)
Definition optmenu.c:133
void * LoadSpeechPacketIntoBuffer(char *fileName, short section, void *destination)
Definition speech.c:45
short CollectActivePaletteIndices(Viewport *viewport, unsigned char *indices, short capacity)
Definition usedcols.c:11
void PlayCockpitSelectionSfx(short selectionSound)
Definition cockpt.c:3708
void ReleaseSceneFlicPackets(void)
Definition gameflow.c:1478
void TryBeginStarSystemJump(void)
Definition jump.c:135
void ResetCutsceneSpriteDrawTicks(void)
Definition gameflow.c:465
short ShipHasCloakingDevice(short ship)
Definition ship.c:72
void ReportSpaceFlightMaxFps(float adjustment)
Definition dib.cpp:176
void object_intelligence(short obj)
Definition spc.c:1659
void HandleCannedSceneBufferBoundary(void)
Definition taperec.c:48
int ReadCheaterFlagFromRegistry(void)
Definition stream.cpp:224
void Mstrafe_n_roll(short ship, short target)
Definition fl.c:793
void EraseCharacterAfterTextCursor(char character)
Definition optmenu.c:73
void ReleaseCutsceneResourceLevel(short owner)
Definition iffload.c:763
int GetPageDownKeyState(void)
Definition winmain.c:1088
signed char DecodeSceneOffsetChunk(unsigned char **cursor, SceneResourceTable **resource)
Definition iffindex.c:44
void ReportFatalErrorCode(const char *errorCode)
Definition message.c:29
void DrawNavTriangleOutline(Viewport *viewport, short x, short y, short size, signed char colour)
Definition nav.c:531
short check_for_collision(short obj)
Definition geom.c:769
short CreateCutsceneResourceInstance(int formType, CutsceneObjectResourceList *list, short index)
Definition iffload.c:146
void auto_pilot_sequence(void)
Definition auto.c:100
void SetSolidColourTranslation(unsigned char colour)
Definition gr.c:354
void CheckLauncherAndConfig(void)
Definition winmain.c:24
void FF_missile_intelligence(short obj)
Definition brains.c:1463
void ResumeMouseCursorHook(void)
Definition eventmgr.c:1186
void Mfish_hook(short ship, short target)
Definition fl.c:477
void DrawCutsceneTextAt(short x, short y, short viewportIndex, const char *text)
Definition gameflow.c:247
HWND GetMainWindowHandle(void)
Definition winmain.c:742
short onboard_explosion(short obj)
Definition ship.c:1031
void update_status_text(void)
Definition cockpt.c:1054
short starting_lock(unsigned short v)
Definition cockpt.c:1906
void init_ijk(short obj)
Definition geom.c:453
void ClearTargetCameraView(void)
Definition turret.c:718
short GetViewportIntersection(ShortRect *intersection, const ShortRect *first, const ShortRect *second)
Definition eventmgr.c:2277
short are_alive(short obj)
Definition logic.c:194
void RestoreGamePalette(void)
Definition palette.c:21
unsigned int DrawRasterEllipse(RasterClip *clip, int x, int y, int horizontalRadius, int verticalRadius, int colour)
void InitializeCutsceneViewports(void)
Definition gameflow.c:873
short ArcCos(int value)
Definition eventmgr.c:116
void DrawTitleOrchestra(void)
Definition intro.c:128
int launch_object(short parent, short child, FixedVector direction, short speed)
Definition ship.c:2046
void InitializeGameTextContexts(void)
Definition startup.c:269
void DrawSolidColourSprite(Viewport *viewport, short x, short y, unsigned char *shape, short frame, unsigned short colour)
Definition gr.c:981
void ix_streamer_configure(int option, void *value)
Definition streamer.cpp:99
void DrawSpriteDefault(Viewport *viewport, short x, short y, unsigned char *shape, short frame)
Definition gr.c:682
void set_up_action_sphere(short navPoint)
Definition mission.c:923
short IsEngagementTargetDisallowed(short ship, short target)
Definition orders.c:121
void * LoadNamedPacket(const char *filename, short section, void *destination, unsigned short flags, void *decompressionWorkspace, int registerHandle)
Definition eventmgr.c:2170
int PollInputEvent(InputEventState *event, short)
Definition eventmgr.c:922
int vector_length_in_dir(const FixedVector *vector, const FixedVector *direction)
Definition geom.c:361
void rotational_acceleration(FixedVector *point, FixedVector *force, short obj)
Definition geom.c:965
void update_lights(void)
Definition cockpt.c:555
void RestoreCockpitExplosionBackground(void)
Definition cockpt.c:3284
short FixedToShortSaturating(int value)
Definition geom.c:122
short CountShipCockpitGunDisplays(short ship)
Definition turret.c:659
void process_maneuver_node(short obj, short event)
Definition smart.c:580
void StopMusicUnlessSuppressed(void)
Definition music.c:160
void FlushInputEvents(void)
Definition eventmgr.c:1014
void GetPaletteEntryAsWords(short i, unsigned short *rgb)
Definition dib.cpp:900
void SetMusicOn(short enabled)
Definition music.c:25
short get_ship_slot(void)
Definition geom.c:829
void SetInputKeyState(int scanCode, unsigned char pressed)
Definition eventmgr.c:1629
void ThrottleFrameAndDrawFps(HDC dc)
Definition dib.cpp:133
void SetMultimediaTimerCallback(int period)
Definition timer.c:21
WaveTableEntry * AllocateWaveTableEntry(void)
Definition sound.c:55
void clear_head_up_display(void)
Definition cockpt.c:1577
long SinFixed(short degrees)
Definition eventmgr.c:80
void PollPersonnelMenuInput(void)
Definition personnel.c:61
short MinShort(short a, short b)
Definition disk.c:27
void PurgeNearHeapBlocks(short flags)
Definition nearheap.c:57
void Mveer_away(short ship, short target)
Definition fl.c:924
short crash_time(short obj, short other)
Definition logic.c:132
void steer_away_from_predicted_object(short obj, short other, short predictionTicks, short amount)
Definition smart.c:72
void UpdateCutsceneSpriteObject(SceneFlicObject *sprite)
Definition gameflow.c:1406
void Msplit_right(short ship)
Definition fl.c:559
void intelligence_events(int obj)
void ShowModalMessage(const char *format,...)
Definition message.c:83
void FollowSelectedObjectiveSystem(void)
Definition nav.c:1068
void check_for_lost_control(short obj)
Definition ship.c:629
void SoundBlasterWaitWrite(void)
Definition speech.c:39
short any_enemy(short obj, short range)
Definition logic.c:610
void SoundDebugPrintf(const char *fmt,...)
Definition mono.c:64
void DIBslamReal(void)
Definition dib.cpp:562
short IsCommChoiceMenuOpen(void)
Definition comm.c:92
int IsFreedHeapBlockTracked(void *memory)
Definition winmain.c:806
unsigned int clear_view_buffer(void)
Definition main.c:277
short WaitForInputKey(void)
Definition disk.c:319
void DrawCampaignChalkboardFrame(unsigned short frame)
Definition personnel.c:196
void ReleaseMusicTrack(int track)
Definition fltsetup.c:976
void InitializeCampaignChalkboardScreen(short cockpitVariant)
Definition personnel.c:115
void ClearHudMessageIfMatching(HudMessageSlot *slot, const char *text)
Definition cockpt.c:319
void spacetrack(int track, int mode, int enabled)
Definition music.c:152
void DIBinstall(HWND window)
Definition dib.cpp:272
short find_ratio(short inputMinimum, short inputMaximum, short input, short outputMinimum, short outputMaximum)
Definition logic.c:1013
void DIBreInstall(void)
Definition dib.cpp:254
void MonoDebug_remove(void)
Definition mono.c:43
void FreeGuardedAllocation(void *memory)
Definition winmain.c:908
signed char AdvanceViewportWipe(void *workspace)
Definition wipe.c:255
void RestoreCutsceneTextBacking(void)
Definition gameflow.c:1203
IxSound * ix_system_new_sound(IxSample *sample)
Definition system.cpp:173
short scan_for_enemy(short obj, unsigned short range)
Definition logic.c:576
short fire_weapon(short obj, short weapon)
Definition ship.c:2465
void return_to_master(short obj, short master)
Definition brains.c:770
void ValidateViewportBounds(Viewport *viewport, RasterSurface *surface, RasterClip *clip)
Definition gr.c:307
void show_navigation_disp(void)
Definition cockpt.c:1193
int GetNumLockKeyState(void)
Definition winmain.c:1094
void cruise_home(short obj)
Definition brains.c:14
short get_ship_max_velocity(short obj)
Definition geom.c:9
short ChooseRandomSignedMagnitude(short minimum, short maximum, short allowNegative)
Definition geom.c:253
short inflict_damage(short attacker, short victim, short damage, const FixedVector *impactDirection)
Definition ship.c:804
void ReportFramesSkipped(short adjustment)
Definition message.c:217
short ok_hazard_spot(short obj)
Definition fields.c:286
short PollCampaignChalkboardMenu(unsigned char *scene)
Definition optmenu.c:362
unsigned int offset_location(short obj, const ShortVector *offset, FixedVector *location)
Definition smart.c:230
void InvalidateVduMode(short i)
Definition cockpt.c:714
int GetRightArrowKeyState(void)
Definition winmain.c:1070
void Msit_n_fire(short ship, short target)
Definition fl.c:781
void players_flight_dynamics(void)
Definition main.c:620
void ClearHudGunReadouts(void)
Definition cockpt.c:326
void RefreshCommunicationMenu(void)
Definition comm.c:329
void RestorePersonnelMenuBackground(Viewport *viewport)
Definition personnel.c:375
short skill_check(short obj, short margin)
Definition logic.c:807
void DIBpositionWindow(void)
Definition dib.cpp:243
void ShowOnScreenMessage(short duration, const char *format,...)
Definition message.c:151
void ClearCutsceneViewport(Viewport *viewport, unsigned char colour)
Definition gameflow.c:1195
void Mrout_me(short ship)
Definition fl.c:973
void Streamer_close(void)
Definition stream.cpp:140
void QueueInputEvent(int type, int x, int y, int value, int primaryButton, int secondaryButton, unsigned int ignored, unsigned int field14, unsigned int field18)
Definition eventmgr.c:653
void FreeConstellationObject(short object)
Definition fltsetup.c:418
short GetOriginalFreeMemory(void)
Definition eventmgr.c:1914
void ExpandCutsceneText(const unsigned char *source, char *destination)
Definition gameflow.c:1235
unsigned int DecodeIFFImage(RasterClip *clip, const unsigned char *iffData)
void DrawMouseCursor(void)
Definition eventmgr.c:1099
signed char AreCutsceneResourceNamesEqual(const char *left, const char *right)
Definition iffload.c:46
short CanShipWeaponDamageTarget(short ship, short target)
Definition ship.c:87
void ix_streamer_audio_play(void)
Definition streamer.cpp:333
void Mburnout(short ship, short target)
Definition fl.c:375
WaveTableEntry * FindWaveTableEntryByName(const char *name)
Definition sound.c:72
void ClearActiveCutscenePixelAlias(void)
Definition gameflow.c:220
void CockpitMessage(const char *text, unsigned short colour, int flashCount)
Definition cockpt.c:373
void free_3Space_objects(void)
Definition fltsetup.c:909
void set_background_objects_rotation(short obj, FixedVector *direction)
Definition geom.c:1152
void goto_formation(short obj, const FixedVector *destination, short leader)
Definition smart.c:348
int ReleaseNearHeapBlock(int descriptorAddress)
Definition nearheap.c:39
void point_ship(short obj, short turnRate, const FixedVector *direction)
Definition geom.c:667
void remove_message(const char *text)
Definition cockpt.c:389
void AddCutsceneMusicNode(CutsceneMusicNode **head, short resourceIndex)
Definition gameflow.c:682
void InitializeConstellationField(Viewport *viewport, short direction, short density)
Definition starfld.c:55
void LoadAlternateShipType(short resourceType, short logicalFile)
Definition mission.c:214
void analyze_kill(short attacker, short victim)
Definition ship.c:1705
LRESULT CALLBACK MainWindowProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam)
Definition winmain.c:350
unsigned int approach_ship_speed(short obj, short other)
Definition logic.c:544
void real_vid_transmit(short obj, short message)
Definition comm.c:510
unsigned int PumpWindowMessages(int skipMessages)
Definition winmain.c:292
void SetMusBreakpt(int first, int second)
Definition music.c:20
void set_objective_range(short showOnScanner)
Definition cockpt.c:1630
void DrawPersonnelMenuBackdrop(void *scenePacket)
Definition personnel.c:220
int LoadPacketResourceList(PacketResourceDescriptor *resources, short flags, int availableBytes, char *defaultFileName)
Definition fltsetup.c:51
void SoundBlasterOut(unsigned short port, unsigned char value)
Definition speech.c:25
short ReadPacketSectionData(PacketSectionHandle *handle, void *destination, unsigned int length)
Definition resread.c:10
void CopyViewportRuns(Viewport *source, Viewport *destination, const short *runs)
Definition gr.c:1614
void DIBmakeDIB(void)
Definition dib.cpp:435
void strike_mission(short obj)
Definition brains.c:708
void SetFrameTimerPeriodDirect(short p)
Definition eventmgr.c:1418
short IsPairEqualityDifferentFromFlag(const unsigned int *values)
Definition geom.c:191
void ResetTargetCameraView(void)
Definition turret.c:646
void DIBsetPalette(short index, short *rgb)
Definition dib.cpp:854
void release_all_capital_ship_shapes(void)
Definition mission.c:357
void defend_mission(short obj)
Definition brains.c:782
short borrow_dust(void)
Definition ship.c:190
void ReadPerformanceCounter(LARGE_INTEGER *p)
Definition mono.c:87
unsigned short InitializeDIBScreenViewport(Viewport *viewport, unsigned short colour)
Definition screen.c:9
void init_3Space_objects(short scene)
Definition fltsetup.c:810
short OpenPacketSection(const char *filename, short section, PacketSectionHandle *handle)
Definition packet.c:14
void Streamer_open(const char *streamName)
Definition stream.cpp:65
void DrawFilledViewportRect(Viewport *viewport, short left, short top, short right, short bottom, short colour)
Definition gr.c:1339
unsigned int DecodePCXImage(RasterClip *clip, const unsigned char *pcxData)
void SetWholePaletteFromTriplets(unsigned char *palette)
Definition eventmgr.c:204
int RotateRLEImage(RasterClip *clip, unsigned char *shape, int frame, int x, int y, unsigned char *scratch, unsigned int angleTenths, int scaleX, int scaleY, unsigned int flags)
short StartInteractiveMusic(int track)
Definition music.c:44
short ResolveObjectDestruction(short attacker, short victim)
Definition ship.c:1937
short SelectPersonnelFileSlot(void)
Definition personnel.c:581
void OpenCommRecipientMenu(void)
Definition comm.c:98
void CloseCommChoiceMenu(void)
Definition comm.c:105
short distance_from_object(short obj, short other)
Definition geom.c:547
const char * objective_name(short objective)
Definition cockpt.c:1181
void EndCommSessionWithWingman(void)
Definition comm.c:430
void * DosNearPtrToFar(unsigned int v)
Definition eventmgr.c:447
int DIBcascade(int mode, int *reportedResult)
Definition dib.cpp:314
void ReserveNavMapArea(short x, short y, short width, short height)
Definition nav.c:317
short find_child_object(short parent, short objectClass)
Definition ship.c:2017
void ix_system_shutdown(void)
Definition system.cpp:93
void RenderSpaceViewFrame(void)
Definition main.c:1705
void stop_all_sounds(void)
Definition sound.c:331
short vector_angle(FixedVector left, FixedVector right)
Definition geom.c:324
int DrawRLEImageColorUnclipped(RasterClip *clip, RLEFrameHeader *frameHeader, int x, int y, int strideScratch)
void BuildMap(short showPlayer)
Definition nav.c:671
void LoadOriginFxDrivers(void)
Definition startup.c:70
void Mfull_ahead(short ship, short target)
Definition fl.c:195
void ClearHudMessageDisplay(short closeCommMenu)
Definition cockpt.c:2171
void BeginShipCloak(short ship)
Definition fl.c:92
void CloseDataFileByHandle(unsigned short *handle)
Definition packet.c:72
short RunSelectedCampaign(void)
Definition campaign.c:346
void ClearInputKeyState(void)
Definition eventmgr.c:1606
void extra_hazard(short obj)
Definition fields.c:317
void AnimateCutsceneSpeakerMouth(SceneFlicObject *sprite)
Definition gameflow.c:48
void ShowCentredPrompt(char *text, unsigned short arg)
Definition comm.c:451
unsigned int GetRLEFrameDimensions(unsigned char *shape, int frame)
void CaptureMouseCursorBackground(void)
Definition eventmgr.c:1063
void fail(short obj)
Definition brains.c:57
unsigned int approach_speed(short ship, int targetSpeed)
Definition ship.c:682
void ResetDebugOverlay(void)
Definition console.cpp:70
void * AllocateZeroedRecords(int count, short elementSize, short flags)
Definition eventmgr.c:1437
void try2end_collision_alert(short obj)
Definition logic.c:58
char * ExpandCommMessageTokens(const char *text)
Definition comm.c:459
void KeyboardMousePump(void)
Definition kbmouse.c:17
void clear_message_time(void)
Definition cockpt.c:720
void copy_frame(short source, short destination)
Definition geom.c:470
void place_ship_near_player_until_valid(short obj, short minimum, short maximum)
Definition mission.c:1043
short RunPilotDatabaseMenu(void)
Definition personnel.c:1400
void LogChangedCutsceneWorkBuffers(void)
Definition gameflow.c:179
unsigned short SetVduModeIfChanged(short i, int state)
Definition cockpt.c:647
void ShowMemoryStatusDebug(void)
Definition message.c:54
void ExecuteCutsceneSequence(CutsceneSequence *sequence, unsigned char *text, signed char draw)
Definition gameflow.c:1284
void DrawNavMapLabels(void)
Definition nav.c:458
unsigned int maintain_formation(int obj)
short GetShapeFrameBounds(short *bounds, short x, short y, unsigned char *shape, short frame)
Definition eventmgr.c:228
int GetNumpadPlusKeyState(void)
Definition winmain.c:1100
short RunTitleScreen(void)
Definition titlemnu.c:262
short WaitForQueuedInputPress(void)
Definition waitkey.c:9
int SignExtendClipCoord(volatile short v)
Definition gr.c:297
short SpawnFlakBurst(short obj, short range, FixedVector *hardpoint, short burstMode)
Definition ship.c:2276
void gametrack(void)
Definition music.c:266
void inherit_leader_mission(short obj)
Definition logic.c:758
int MaxInt(int a, int b)
Definition geom.c:142
void AppendCommMenuChoice(const char *text, short command)
Definition comm.c:60
void CheckAllGuardedAllocations(void)
Definition winmain.c:801
void DrawPersonnelMenuChoices(short choice)
Definition personnel.c:464
void ReleaseCutsceneSpriteShape(SceneFlicObject *sprite)
Definition gameflow.c:3623
long PlanarMagnitude(int x, int y)
Definition eventmgr.c:144
int GetNearHeapBlockSize(void *pointer)
Definition nearheap.c:341
void CachePaletteEntryFromWords(short index, unsigned short *rgb)
Definition dib.cpp:812
void CheckCannedSceneBufferCapacity(void)
Definition taperec.c:79
void SendWingmanCommandAcknowledgement(short ship, short accepted)
Definition orders.c:84
InputEvent * AllocateInputEvent(void)
Definition eventmgr.c:616
void streak_toward(short obj, short goal, short range)
Definition brains.c:656
short BarracksScreen(void)
Definition titlemnu.c:499
void load_all_slots(void)
Definition mission.c:715
void InitializeCutsceneRuntimeResources(void)
Definition gameflow.c:808
DWORD WINAPI DebugOverlayWorkerProc(void *parameter)
Definition debug.cpp:85
void DrawNavTriangleMarker(short x, short y, short size, short shadow, unsigned short colour, short reserve)
Definition nav.c:543
void * AllocateTaggedMemory(unsigned int size, short flags)
Definition memapi.c:92
void show_damage_disp(void)
Definition damage.c:36
void prepare_for_jump(short obj)
Definition brains.c:511
unsigned int GetPacketSize(const char *filename, short section)
Definition pktsize.c:9
short LoadWingCmdrCfgFile(short argc, char **argv)
Definition config.c:10
void HandleCommunicationMenuRequest(void)
Definition comm.c:342
void SetShipAiScratchWord(unsigned short v)
Definition fl.c:128
short signed_random(short range)
Definition logic.c:19
void point_perpendicular(short obj, short other)
Definition geom.c:734
void DrawTextString(const char *text)
Definition eventmgr.c:262
short NavMapLabelFits(short x, short y, short width, short height)
Definition nav.c:275
void ApplyAlternateShipType(short obj)
Definition mission.c:138
void ix_system_configure(int option, void *value)
Definition system.cpp:104
void RewriteCutsceneMusicExtensionForDriver(char *filename)
Definition gameflow.c:3515
short visited(short objective)
Definition cockpt.c:1140
short achieved(short objective)
Definition cockpt.c:1146
void Mkickit(short ship)
Definition fl.c:397
ActiveSoundEntry * FindActiveSoundEntryBySample(IxSample *sample)
Definition sound.c:169
void * FetchDiskPacketRetrying(char *fileName, short section, short flags)
Definition disk.c:187
void free_3Space(void)
Definition fltsetup.c:890
void update_cockpit(void)
Definition cockpt.c:3655
short IsCinematicFontCharacterPrintable(short character)
Definition text.c:32
void InitializeMusicResources(void)
Definition startup.c:388
short MergeAdjacentNearHeapBlocks(int descriptorAddress)
Definition nearheap.c:15
void SetTargetCameraEyePosition(short cameraMode)
Definition turret.c:972
int CollectUniqueRLEImageFrames(const unsigned char *shape, unsigned int *frames)
void accelerate_and_move_object(short obj)
Definition spc.c:1153
void alter_yaw(short angle, short obj)
Definition geom.c:512
void MonoDebug_install(void)
Definition mono.c:13
void remove_nav_point_objects(void)
Definition mission.c:742
void ResetNavMapReservedAreas(void)
Definition nav.c:311
signed char DecodeCutsceneObjectResource(CutsceneObjectResourceList *resource, unsigned char **cursor, unsigned char *end, unsigned int formType)
Definition iffload.c:526
void StopMusicIfDriverActive(void)
Definition startup.c:381
void ServiceSoundSystem(void)
Definition sound.c:389
int GetHomeKeyState(void)
Definition winmain.c:1046
void check_goal(short obj)
Definition brains.c:647
void launch_carrier_fighter(short carrier)
Definition carrier.c:22
void EraseCockpitReadoutRegion(Viewport *viewport, short left, short top, short right, short bottom, short colour)
Definition cockpt.c:139
void apply_force_to_objects_center(FixedVector *force, short obj)
Definition geom.c:895
void DrawSpriteTransformed(Viewport *viewport, int x, int y, unsigned char *shape, int frame, int angle, int scaleX, int scaleY, int flip, int blendMode)
Definition gr.c:476
void AdvanceSceneFlicStream(SceneFlicObject *object)
Definition gameflow.c:1507
unsigned char * GetInputCursorShape(void)
Definition eventmgr.c:2413
short CanOpenCommMenu(void)
Definition comm.c:124
short RunCampaignSelectionFrame(void *scene, void *field)
Definition titlemnu.c:184
void SelectNextExternalViewObject(void)
Definition main.c:261
void split_patrol_mission(short obj)
Definition brains.c:569
void DestroyAudioStreamer(void)
Definition stream.cpp:149
void CheckCursor(void)
Definition eventmgr.c:1057
void SendMonoDebugCommand3(void)
Definition mono.c:55
void ResetNavMapLabels(void)
Definition nav.c:331
short internal_damage(short attacker, short owner, short victim, short damage, short quadrant)
Definition ship.c:1077
void WaitForVerticalBlankThunk(void)
Definition eventmgr.c:189
LONG RegistryQueryValue(HKEY key, LPCSTR name, DWORD type, LPBYTE data, DWORD size)
Definition sound.c:421
void ResetShipCloakState(short ship)
Definition fl.c:105
void SetPaletteEntryFromTriplet(const unsigned char *triplet, short index)
Definition eventmgr.c:2202
void AllocateCutsceneViewportOrFatal(Viewport *viewport, short colour, short flags)
Definition gameflow.c:1699
unsigned int CopyRLEFramePalette(unsigned char *shape, int frame, unsigned char *entries)
void ReleaseCutsceneSpeechPackets(void)
Definition gameflow.c:906
int LogUnknownSoundEffect(const unsigned char *definition, short sourceObject, short pan, short volume, short looping, short priority)
Definition music.c:422
void ReadTapeInitialState(void)
Definition replay.c:203
short WrapDegrees(short degrees)
Definition geom.c:171
void ClearDebugPauseFlags(void)
Definition console.cpp:82
short find_weapon(short obj, short weaponType)
Definition ship.c:2666
void InitializeConversationViewport(void)
Definition message.c:108
void find_next_ship_turn_slot(short obj)
Definition mission.c:1231
void init_hazard(short obj, FixedVector position, short moving)
Definition fields.c:140
signed char DecodeSceneSymbolChunk(unsigned char **cursor, SceneResourceTable **resource)
Definition iffindex.c:82
void check_futurion(short i)
Definition mission.c:68
void ReleaseCutsceneTextResource(short owner, CutsceneTextResource **head)
Definition iffload.c:749
int ix_streamer_open_stream_file(char *path)
Definition streamer.cpp:120
int CollectRasterClipColours(RasterClip *clip, unsigned int *colours)
void steady_object(short ship)
Definition ship.c:698
short any_selected(unsigned char *loadout, short objectClass)
Definition ship.c:264
void SendKilrathiAceGreetingOnce(short obj)
Definition logic.c:10
short objective_lost(short objective)
Definition cockpt.c:1497
void CaptureSpriteBackground(Viewport *viewport, unsigned char *background, short x, short y, unsigned char *shape, short frame)
Definition gr.c:705
short InitializeModalTextPanel(ModalTextPanel *panel, short fontIndex, ModalPanelBounds bounds, short clearColour, short backgroundColour, short borderColour)
Definition optmenu.c:101
void ReleasePacketSlot(void **slot)
Definition iffload.c:23
void SeedRandomFromClock(void)
Definition eventmgr.c:18
void InitializeAudioSystem(HWND window)
Definition sound.c:26
unsigned int GetMusicStreamVolume(void)
Definition stream.cpp:255
void ConsumeCutscenePalettePacket(short firstColour, short count, signed char releasePacket)
Definition gameflow.c:512
long CosFixed(short degrees)
Definition eventmgr.c:91
void PresentCutsceneFrame(Viewport *source, Viewport *destination)
Definition gameflow.c:477
unsigned int GetDIBWidth(void)
Definition dib.cpp:800
void ResetSoundState(void)
Definition music.c:381
void force_view(int view, short obj)
Definition spc.c:423
short GetVectorMagnitude(const FixedVector *vector)
Definition spc.c:66
short IsCockpitExplosionActive(void)
Definition cockpt.c:133
void Chosen_communicate_option(short choice)
Definition comm.c:378
void InitializeFireworks(void)
Definition starfld.c:17
unsigned int rotate_object(short obj)
Definition spc.c:1136
void BlitWipeRadialBands(Viewport *source, Viewport *destination, short *trailingEdges, short *leadingEdges)
Definition wipe.c:1261
void GetShapeFrameExtents(unsigned char *shape, short frame, short *width, short *height, short *leftExtent, short *topExtent)
Definition gr.c:144
void shadow_draw(Viewport *viewport)
Definition gr.c:1432
HINSTANCE GetApplicationInstance(void)
Definition winmain.c:734
short being_tailed(short obj, short other)
Definition logic.c:321
void point_perpendicular_to_point(short obj, const FixedVector *point)
Definition geom.c:702
void ClipViewportToScreen(Viewport *viewport)
Definition gr.c:346
void cycle_onscreen_targets(void)
Definition cockpt.c:2871
char * LocateStreamsDirOnDisc(void)
Definition winmain.c:1222
char * nav_note(short objective)
Definition nav.c:872
void SaveTorpedoTargetLockForViewChange(int previousView)
Definition spc.c:432
void BriefingMap_LoadShapes(void)
Definition nav.c:953
unsigned short IsSoundHardwarePresent(short device)
Definition memapi.c:17
void visit_the_cinema(int view, int obj, short frames)
Definition auto.c:21
void TranslatePolledInputEvent(unsigned short type, unsigned int value)
Definition eventmgr.c:550
short IsMissionObjectiveOutOfSystem(short objective)
Definition cockpt.c:411
void RemovePlayerReleaseWeapon(signed char weapon)
Definition cockpt.c:872
void LoadAndPlaySpeechPacket(char *fileName, short section)
Definition speech.c:103
int GetNumpadMinusKeyState(void)
Definition winmain.c:1106
void Mthink(short ship, short target)
Definition fl.c:216
short SelectNavObjectiveAtPoint(short mouseX, short mouseY)
Definition nav.c:993
void rotational_pos_to_scanner_pos(signed char object, const SphericalVector *position, CockpitScannerGeometry geometry)
Definition cockpt.c:1530
void RecordCannedSceneObjectState(short obj)
Definition taperec.c:115
void FillGraphicSuffix(char *path, short number, short digits)
Definition suffix.c:9
void check_target(void)
Definition cockpt.c:2901
int TakeInputPressCount(void)
Definition winmain.c:1313
void DIBwholePaletteFromWords(unsigned short *palette)
Definition dib.cpp:948
void LinkCutsceneSpriteScript(unsigned char destination, unsigned char source)
Definition gameflow.c:1056
void CopyHugeMemoryOverlapSafe(void *destination, void *source, int count)
Definition hugemove.c:9
short set_ship_rotation_goals(short obj, short turnRate, const FixedVector *direction, short pointingMode, short *yawGoal, short *pitchGoal)
Definition geom.c:622
void npc_communication(void)
Definition cockpt.c:3141
short attacker_in_range(short obj, unsigned short range)
Definition logic.c:664
void ProcessCannedSceneInput(void)
Definition replay.c:244
unsigned int ExpandGIFLZWImage(RasterClip *clip, const unsigned char *gifData, void *workspace)
unsigned int GetF1KeyLatch(void)
Definition winmain.c:17
void ShowComponentHitHudMessage(const char *text, unsigned short colour, short flashCount)
Definition cockpt.c:830
void MouseIdleHook(void)
Definition eventmgr.c:1902
void ExitCleanupHook(void)
Definition eventmgr.c:2009
void handle_stress(short obj, short event)
Definition smart.c:654
short RunCampaignChalkboardMenu(short campaignSlot)
Definition optmenu.c:405
void FormatTextTokens(void(*writer)(int), const char *format, va_list arguments)
Definition textfmt.c:18
void cleanup_objectives(void)
Definition orders.c:11
void ix_system_set_voice_count(int voiceCount)
Definition system.cpp:128
void EstablishColors(Viewport *viewport, unsigned char *active)
Definition gr.c:663
short InitializeInputManagerMemory(short eventQueueSize)
Definition eventmgr.c:512
void draw_sorted_objects_to_buffer(void)
Definition eventmgr.c:1700
void InitializeShipWeaponTypeIndices(short obj)
Definition ship.c:328
unsigned int reset_tactic(short ship, short tactic)
Definition logic.c:461
void EMStartUp(void)
Definition startup.c:45
void init_intelligence_data(short obj)
Definition mission.c:1316
void ix_streamer_set_trigger(char trigger)
Definition streamer.cpp:399
void SetFleetOverviewView(short initializeCockpit)
Definition fleetvw.c:9
void lock_off(void)
Definition cockpt.c:1916
short IsCockpitWeaponShapeLoaded(void)
Definition cockpt.c:3699
void ShipAiState3(short ship, short target)
Definition fl.c:980
void PlayRawSpeechBuffer(void *buffer, size_t size, int interrupt)
Definition sound.c:292
short in_danger(short obj)
Definition logic.c:688
unsigned short SelectDiskDriveHook(short drive)
Definition eventmgr.c:1984
short auto_pilot_valid(short showReason)
Definition cockpt.c:440
void Mram_missile(short ship, short target)
Definition fl.c:686
short GetAdaptiveTurnRate(void)
Definition ship.c:137
short TryPlaceNavMapLabel(short x, short y, short width, short force)
Definition nav.c:337
short PollSceneHotspotInput(void *scenePacket, short offsetX, short offsetY, short dismissOnBackground, short maximumSelection)
Definition hotspot.c:170
void CalculateRoundedRLEFixedProduct(int left, int right, int *result)
short LoadGraphicsDriver(short rewritePacketExtensions)
Definition grdriver.c:10
void rotate_about_k(short angle, FixedVector *i, FixedVector *j)
Definition geom.c:433
void UpdateMessage(HudMessageSlot *slot)
Definition cockpt.c:351
void Mtail_fire(short ship, short target)
Definition fl.c:605
void pop_mode(short i)
Definition cockpt.c:673
unsigned short GetRandomWord(void)
Definition eventmgr.c:25
void WaitForJoystickButtonPress(void)
Definition titlemnu.c:171
signed char no_goal(short ship)
Definition logic.c:313
void PlaySpeechPacketBuffer(void *packet, unsigned short packetSize, int interrupt)
Definition speech.c:67
void overlay_head_up_display(void)
Definition cockpt.c:2564
void InflightComputer(void)
Definition nav.c:1096
void ix_system_delete_all_sounds(void)
Definition system.cpp:197
void PanToScreen(Viewport *source, Viewport *destination)
Definition pan.c:10
void fire_fixed_projectile_weapon(short obj)
Definition ship.c:2714
short LoadSelectedPilotCampaign(void)
Definition personnel.c:244
unsigned char * GetDIBPixelBuffer(void)
Definition dib.cpp:779
void RetainInputEventsOfType(int type)
Definition eventmgr.c:751
short LocateLegacySaveGame(short source)
Definition personnel.c:1311
short TheEndFireWorks(Viewport *viewport, short count)
Definition starfld.c:26
short build_target_list(short obj, short range)
Definition logic.c:728
void animate_shape(short obj)
Definition spc.c:1261
void RestoreSpriteBackground(Viewport *viewport, unsigned char *background, short x, short y, unsigned char *shape, short frame)
Definition gr.c:846
void malf_sound(void)
Definition cockpt.c:802
void ShipAiState28(short ship, short target)
Definition fl.c:655
void RunLoadedCutscene(void)
Definition gameflow.c:919
unsigned int rotate_eye_to_goal(void)
Definition spc.c:37
void CopyCutsceneSpriteDisplay(unsigned char destination, unsigned char source)
Definition gameflow.c:1033
short ReadCalibratedJoystick(void)
Definition joycal.c:147
void ResetGameTextContexts(void)
Definition startup.c:291
short facing_to_object(short obj, FixedVector *point)
Definition geom.c:591
void update_dead_disp(short a)
Definition cockpt.c:3454
short triumph(short obj)
Definition logic.c:983
void DrawCutsceneSprite(SceneFlicObject *sprite)
Definition gameflow.c:1083
void CentreMouseOnCurrentNavObjective(void)
Definition nav.c:1035
void DrawNavLocationReadout(const char *title, short showFlightData)
Definition nav.c:885
short SampleBothJoysticks(InputDeviceSample *samples, unsigned int fallback)
Definition joystick.c:9
LRESULT CALLBACK DebugKeyboardHookProc(int code, WPARAM key, LPARAM flags)
Definition debug.cpp:129
long DivideFixed(int numerator, int denominator)
Definition eventmgr.c:64
void release_capital_ship_shapes(short resourceType)
Definition mission.c:373
void get_right_shape(short obj, FixedVector *direction)
Definition geom.c:1181
void DrawUnreferencedPilotHandFrame(Viewport *viewport, unsigned char *shape, BarracksAnimationState *state)
Definition turret.c:1194
void ResetCockpitPaletteEntries(void)
Definition fltsetup.c:76
unsigned int GetRLEFrameBounds(unsigned char *shape, int frame, int x, int y, unsigned int flags, int *bounds)
void LoadCutsceneCockpitOverlay(short scriptValue)
Definition gameflow.c:322
void zero_vector(FixedVector *vector)
Definition geom.c:197
void FlushCannedSceneRecordingBuffer(void)
Definition taperec.c:297
void FinalizeInputManagerHook(void)
Definition eventmgr.c:1896
void Mhard_break(short ship)
Definition fl.c:250
void advance(short ship)
Definition fl.c:181
void child_object(short hardpoint, short child, short parent)
Definition geom.c:822
void LoadTemporaryCampaignGlobals(void)
Definition campglob.c:180
void OpenCommMenuForTarget(const char *heading, const char *message)
Definition comm.c:85
void DosMemset(void *destination, unsigned int count, short value)
Definition eventmgr.c:492
HDC GetMainWindowDeviceContext(void)
Definition winmain.c:750
void print_message_text(char *text, unsigned short colour)
Definition cockpt.c:2060
unsigned int reset_objective(short ship, short objective)
Definition logic.c:445
void DIBdestroyDIB(void)
Definition dib.cpp:503
void RunPilotSaveLoadMenu(void)
Definition personnel.c:827
void ClearMemoryHeaps(void)
Definition memapi.c:11
short GetJoystickButtons(void)
Definition winmain.c:706
void UpdateSpacePaletteFade(void)
Definition main.c:327
void SubtractFixedVectors(FixedVector *left, FixedVector *right, FixedVector *difference)
Definition geom.c:220
short real_velocity(short obj)
Definition ship.c:705
void FillPolygon(Viewport *viewport, ShortPoint *points, int count, char colour)
Definition gr.c:1082
short handle_collisions(short obj)
Definition smart.c:141
short GetMissionShipPilotSaveIndex(short missionShip)
Definition campglob.c:11
short GetShapeFrameExtent(short x, short y, unsigned char *shape, short frame, short extent)
Definition shpext.c:9
void ResetWeaponDisplayPositions(void)
Definition mission.c:77
void check_stranded(void)
Definition cockpt.c:3460
void RunCampaignScript(short campaignSlot)
Definition campglob.c:126
void InitializeHighMemoryGraphicsBuffers(void)
Definition startup.c:220
char * DosStrcpy(char *dst, const char *src)
Definition eventmgr.c:465
void LoadGamePaletteFile(void)
Definition startup.c:11
void DisableMouseCursorDrawing(void)
Definition eventmgr.c:1327
int AbsInt(int v)
Definition geom.c:151
short CountEnemyFighters(void)
Definition smart.c:154
void UpdateTargetLeadIndicator(void)
Definition cockpt.c:2420
int DetectDoubleFree(void *memory)
Definition winmain.c:822
void SetScreenClipRect(unsigned short a, unsigned short b, unsigned short c, unsigned short d)
Definition nav.c:607
void revise_shields(short obj)
Definition ship.c:1226
short PromptToContinueCampaign(short promptFrame)
Definition campaign.c:60
void InstallRasterDriverCallbacks(void *const *callbacks)
void start_hazard_field(short region)
Definition fields.c:399
short close_behind()
void control_speed(short obj, unsigned short range, int desiredSpeed)
Definition smart.c:257
short ships_within_range(short obj, short other, short range)
Definition logic.c:654
short OpenDataFileOrDie(const char *path)
Definition datafile.c:13
void UpdateTargetCameraCockpitHook(void)
Definition turret.c:1222
short LoadJoystickCalibrationFile(short horizontalRange, short verticalRange, short horizontalDeadZone, short verticalDeadZone)
Definition joycal.c:15
short RunTitleMenuInputLoop(unsigned char *buttons, unsigned char *logo, unsigned char *background, short showSecondButton)
Definition titlemnu.c:222
void vdu_polygon(signed char bar, short percent)
Definition cockpt.c:156
CutsceneResourceTable * FindActiveCutsceneFileResources(CutsceneResourceTable *resources)
Definition gameflow.c:414
void * MapPacketHandleToBlock(void *handle)
Definition memapi.c:66
void SortViableTargetsByDistance(void)
Definition ship.c:720
unsigned int ReadNextSceneForm(unsigned char **cursor, unsigned char **nextForm)
Definition iffload.c:66
void RewriteCutsceneMusicExtensionForRetry(char *filename)
Definition gameflow.c:3529
void CALLBACK FrameTimerCallback(UINT timerId, UINT message, DWORD user, DWORD first, DWORD second)
Definition timer.c:9
void FreeShapeSet(PacketResourceDescriptor *resources, unsigned short releaseFlags)
Definition fltsetup.c:38
int MinInt(int a, int b)
Definition geom.c:133
short within_field(const HazardField *field, const FixedVector *point)
Definition fields.c:228
void chase_location(short obj, const FixedVector *destination, short reference)
Definition smart.c:278
short is_ship_tailing_player_target(short obj)
Definition logic.c:347
int GetControlKeyState(void)
Definition winmain.c:1136
short any_defense(short obj)
Definition smart.c:438
void ship_intelligence(short obj)
Definition brains.c:861
void ReleaseFinishedSoundEntries(void)
Definition sound.c:183
void select_new_gun(void)
Definition select.c:74
short CreateDataFile(const char *path)
Definition datafile.c:46
void approach(short obj)
Definition fields.c:324
unsigned int update_star_field(void)
Definition spc.c:710
unsigned int fix_velocity(short obj)
Definition ship.c:712
void ReportOutOfMemoryAndExit(const char *resource)
Definition message.c:101
void FreeNearHeapBlock(void *pointer)
Definition nearheap.c:319
unsigned int GetRLEFrameCount(const unsigned char *shape)
short RandomBelow(short n)
Definition eventmgr.c:12
void ix_streamer_destroy(void)
Definition streamer.cpp:78
char * GetLegacyGameDataPath(void)
Definition stream.cpp:188
void * AllocateScenePointerTable(int count, short elementSize, unsigned short flags, const char *errorMessage)
Definition iffload.c:131
void MakeRandomVectorFixed(short minimum, short maximum, FixedVector *vector)
Definition geom.c:264
IxSample * ix_system_new_sample(void)
Definition system.cpp:139
void Update_3Space(void)
Definition main.c:294
void HighlightTransferredPilot(short choice)
Definition personnel.c:694
int GetEndKeyState(void)
Definition winmain.c:1076
unsigned int ReadGIFLZWCode(void)
void Mdrop_a_mine(short ship, short target)
Definition fl.c:209
void RestoreTransientCockpitGraphics(void)
Definition cockpt.c:2701
void InitializeSceneFlicStream(CutsceneResourceTable *resources, short index, SceneFlicObject *object)
Definition gameflow.c:1463
void LoadCannedScenePlaybackBuffer(void)
Definition replay.c:219
short is_any_ship_returning_to_current_nav_point(void)
Definition cockpt.c:1358
void PlaceNavMapLabel(short x, short y, unsigned short colour, const char *text)
Definition nav.c:353
void check_computer_damage(void)
Definition ship.c:1239
void DrawNavCrossMarker(short x, short y, short size, short shadow, unsigned short colour, short reserve)
Definition nav.c:560
void DrawNavSquareMarker(short x, short y, short size, short shadow, short colour, short reserve)
Definition nav.c:503
unsigned int GetGIFImageSize(const unsigned char *gifData)
void SetFrameTimerPeriod(short period)
Definition eventmgr.c:1405
void point_ship_behind_object(short obj, short other)
Definition geom.c:712
void ResetStringBuilder(TextContext *context)
Definition pload.c:9
void DrawCutscenePlane(CutscenePlane *plane)
Definition gameflow.c:1175
short FindNearestNavPoint(short ship)
Definition main.c:1753
void SampleJoystickDevice(InputDeviceSample *samples, short joystick, unsigned int fallback)
Definition joystick.c:22
short hemisphere(FixedVector *target, FixedVector *parent, FixedVector *hardpoint)
Definition ship.c:2222
void DrawViewportEllipse(Viewport *viewport, short x, short y, short verticalRadius, short horizontalRadius, short colour)
Definition gr.c:1385
void ReportCutscenePacketAllocationFailure(const char *filename, short section, unsigned int packetSize)
Definition gameflow.c:1797
void trim_goals(short obj, short amount)
Definition logic.c:201
void engage(short obj, short target, short objective)
Definition logic.c:952
long Magnitude(int value)
Definition eventmgr.c:130
void ReleaseInputEvent(InputEvent *event)
Definition eventmgr.c:641
void position_relative(FixedVector *position, FixedVector direction, short distance)
Definition geom.c:101
void UpdateStreamerStoppedFlag(void)
Definition stream.cpp:53
short locate_ship(short missionShip, FixedVector *point)
Definition logic.c:848
short init_ship(short missionShip, short navPoint)
Definition mission.c:1255
void BeginInflightReplayHook(void)
Definition replay.c:11
void ClearTransientObjectsForEjection(void)
Definition midscene.c:11
void DrawViewportBorder(Viewport *viewport, short left, short top, short right, short bottom, short colour)
Definition gr.c:1360
void SetPaletteTranslationTable(const unsigned char *translation)
unsigned int approach_min_speed(short obj)
Definition logic.c:514
void prepare_mission(void)
Definition mission.c:281
void InitGameClockRandomEpoch(void)
Definition winmain.c:1154
short SelectTransferredPilot(short count)
Definition personnel.c:728
void UntrackFreedHeapBlock(void *memory)
Definition winmain.c:859
short shape_loaded(short resourceType)
Definition mission.c:763
void GetJoystickDevCaps(short joystick, short *xMin, short *xMax, short *yMin, short *yMax)
Definition winmain.c:716
void Mline_up_drop(short ship, short target)
Definition fl.c:141
short MeasureMessageWidth(const char *text)
Definition main.c:895
void MarkPilotDead(short pilot)
Definition jump.c:115
signed char LinkCutsceneObjectResources(CutsceneObjectResourceList *list, short scriptHalf, int formType)
Definition iffload.c:259
void ConvertFixedVectorToShortVector(const FixedVector *source, ShortVector *destination)
Definition geom.c:307
void RestoreTargetLeadIndicator(void)
Definition cockpt.c:2549
void WaitForFrameTick(void)
Definition eventmgr.c:1424
void remove_nav_pointer(void)
Definition cockpt.c:2316
void ReportHeapGuardCorruption(void *memory, int count, int overrun)
Definition winmain.c:788
void DrawTransferredPilotRow(short row)
Definition personnel.c:675
void DrawSelectedNavLegendEntry(const char *text, short navPoint)
Definition nav.c:845
short malf(char component)
Definition cockpt.c:811
void StopSoundsUsingWave(const char *name)
Definition sound.c:199
void ClearViewport(Viewport *viewport, short colour)
Definition gr.c:1027
int CollectUniqueRLEPaletteFrames(const unsigned char *shape, unsigned int *frames)
void init_inflight_music(void)
Definition fltsetup.c:935
int MapCutsceneSoundEffectNumber(int soundIndex)
Definition gameflow.c:3673
void DrawPilotHandFrame(void)
Definition cockpt.c:3065
short escorting_a_ship(void)
Definition cockpt.c:1372
void Mchill(short ship, short target)
Definition fl.c:202
void AddUniqueObjectiveNavLabel(short x, short y, unsigned short colour, const char *text, short objective, short missionShip)
Definition nav.c:419
void new_space_music_changes(short attacker, short victim)
Definition music.c:198
void WriteMemoryStateReportHook(void)
Definition gameflow.c:127
short calculate_damage_level(void)
Definition main.c:1890
void RewriteDiskFileGraphicsExtensions(char *fileName)
Definition gameflow.c:3502
void DrawCutsceneCockpitOverlay(short unused, short verticalOffset)
Definition gameflow.c:332
void SelectCommRecipient(short recipient)
Definition comm.c:130
void * LoadPacketIntoBuffer(char *fileName, short section, void *destination, int registerHandle)
Definition disk.c:141
void DIBwholePaletteFromTriplets(unsigned char *palette)
Definition dib.cpp:908
char FindCdRomDriveByVolumeLabel(const char *label, const char *directory)
Definition winmain.c:1251
void PollMenuInputDevices(void)
Definition input.c:115
int MeasureShapeFrameStorage(unsigned char *shape, short frame)
Definition eventmgr.c:384
unsigned short ix_streamer_get_volume(void)
Definition streamer.cpp:487
void BeginShipDestructionSequence(short obj)
Definition destroy.c:12
short try2rout(short obj)
Definition logic.c:272
void EnableMouseCursorDrawing(void)
Definition eventmgr.c:1254
short report_kilrathi_rout(int mode)
Definition logic.c:214
void remove_weapon(short obj, short weapon)
Definition ship.c:283
signed char DecodeSceneFileChunk(unsigned char **cursor, SceneResourceTable **resource)
Definition iffindex.c:127
void __wipeline(void)
Definition gr.c:656
void UpdateShipTurretGuns(int ship)
void AppendTextCharacter(char character)
Definition eventmgr.c:375
unsigned int veer_random(short obj, short amount)
Definition smart.c:211
short detect_enemy_tail(short obj)
Definition logic.c:330
short ReportComponentRepaired(short component, short minimumDamage)
Definition ship.c:1421
short find_vacant_3d_object(void)
Definition geom.c:841
char * CopyStringAndReturnEnd(char *destination, const char *source)
Definition eventmgr.c:471
void SetMessageDisplaySpeed(void)
Definition message.c:205
unsigned short ProcessMusicScriptCommand(int track, int command, short enabled)
Definition music.c:89
short wingman_dead(void)
Definition comm.c:112
void Mgloat(short ship)
Definition fl.c:580
void place_exhaust_on_ships(void)
Definition ship.c:2771
short FindMissileTargetingObject(short obj)
Definition logic.c:357
short IsCapitalShipObject(short obj)
Definition ship.c:98
void SpawnMissionEjectionPod(short obj)
Definition destroy.c:43
void UpdateCutscenePlaneObject(CutscenePlane *plane, signed char updateChildren)
Definition gameflow.c:1364
void SetHudMessageText(char *text, unsigned short colour, unsigned short duration)
Definition cockpt.c:2742
void ReleaseCutsceneObjectResource(short owner, CutsceneObjectResourceList **head, int formType)
Definition iffload.c:641
void Mstrafe_enemy(short ship, short target)
Definition fl.c:725
void CloseDataFile(unsigned short fd)
Definition datafile.c:22
void ServiceCutsceneRuntimeHook(void)
Definition eventmgr.c:2192
int BlitRawFrame(RasterClip *clip, int x, int y, unsigned char *shape, int frame, unsigned char *translation)
void RasterLineHook(const void *marker)
Definition gr.c:533
void warp(short obj)
Definition jump.c:88
void reposition_fixed_child_objects(void)
Definition ship.c:2863
short player_input(void)
Definition main.c:665
void get_facing_range_from_object(short obj, short other)
Definition geom.c:578
unsigned int FillRasterEllipse(RasterClip *clip, int x, int y, int horizontalRadius, int verticalRadius, int colour)
short GetVduModeStackDepth(short i)
Definition cockpt.c:658
void start_collision_alert(short obj, short other)
Definition logic.c:45
void draw_target_box(unsigned short colour, signed char object, short solid, short drawLockMarker, short padding, ShortRect *savedBounds)
Definition cockpt.c:2188
int GetSoundHardwareFlag(void)
Definition eventmgr.c:1471
short flip_angle(short ship, short angle)
Definition ship.c:2757
unsigned short GetShutdownErrorCode(unsigned char *driveState)
Definition eventmgr.c:1996
void SignalAudioMixerWakeEvent(void)
Definition stream.cpp:44
void FlushSoundEffectsAndLog(void *effect, short flags)
Definition music.c:439
short near_field(const HazardField *field, const FixedVector *point)
Definition fields.c:220
void * IdentityHandle(void *v)
Definition eventmgr.c:196
void try2reset_maneuver(short obj, short maneuver)
Definition logic.c:484
void push_mode(short i, int state)
Definition cockpt.c:664
short EmsRestoreMapping(void)
Definition eventmgr.c:1578
void SetHudTextColour(char *text, unsigned short colour)
Definition cockpt.c:2159
short dist_from_home(short obj)
Definition brains.c:381
short make_hazard(void)
Definition fields.c:302
void ToggleTargetCameraOverlay(void)
Definition turret.c:676
void DrawConstellationField(void)
Definition starfld.c:108
short PopCutsceneScriptValue(short **stack, short *stackBottom)
Definition gameflow.c:1809
short QueryCurrentGraphicsMode(void)
Definition getmode.c:9
void SetScale(void)
Definition nav.c:142
short new_object(short type, short owner)
Definition ship.c:240
void set_new_vdu(short vdu)
Definition cockpt.c:680
void SetPersonnelMousePosition(short x, short y)
Definition mousepos.c:9
void ReleaseCutsceneViewport(Viewport *viewport)
Definition gameflow.c:1707
short InitializeMouseCursorDepth()
Definition eventmgr.c:1022
void PlaySfxWaveFileByNumber(int soundNumber, int sourceObject, int looping)
Definition music.c:490
short OffsetSceneHotspotBounds(ShortRect *bounds, const SceneHotspot *hotspot, short offsetX, short offsetY)
Definition eventmgr.c:2180
void ClearInputPump(void)
Definition eventmgr.c:2100
void ResetScannerContacts(void)
Definition cockpt.c:1567
void vdu_malf(short vdu, short sound)
Definition cockpt.c:819
void TransformRLEPoint(int *point, int *result, int *origin, unsigned int angleTenths, int scaleX, int scaleY)
void remove_all_3d_objects(void)
Definition fltsetup.c:881
void SampleActiveJoystickDevice(void)
Definition joystick.c:48
void DrawPersonnelSourceChoices(short choice)
Definition personnel.c:430
void FadeFlightPaletteEntry(short *entry)
Definition main.c:316
void * FindLoadedCutsceneMusic(short resourceIndex)
Definition gameflow.c:790
void ShipAiState45(short ship, short target)
Definition fl.c:989
void vdu_pop_all(short vdu)
Definition cockpt.c:3715
short hidden_objective(short objective)
Definition cockpt.c:1206
short GetMissionShipVelocityState(short missionShip)
Definition campglob.c:24
void nav_getxy(short *x, short *y, int worldX, int worldZ)
Definition nav.c:110
short Explosion(short obj)
Definition ship.c:1826
unsigned int InitializeCockpitReadout(signed char slot, TextContext *context)
Definition cockpt.c:237
void Mtight_loop(short ship)
Definition fl.c:223
short target_within_range(short obj)
Definition logic.c:712
void rectangular_to_spherical(const FixedVector *rectangular, SphericalVector *spherical)
Definition geom.c:289
char * DosStrchr(const char *s, short c)
Definition eventmgr.c:459
CutsceneObjectResourceList * PushCutsceneObjectResource(CutsceneObjectResourceList **head)
Definition iffload.c:618
void Mget_distance(short ship, short target)
Definition fl.c:833
void draw_cockpit_lights(void)
Definition cockpt.c:513
void process_player_input(void)
Definition main.c:442
short ReadTextInput(char *destination, short maximumLength, volatile short mode, volatile short allowPathSeparators)
Definition optmenu.c:223
unsigned int approach_cruise_speed(short ship)
Definition logic.c:529
unsigned int shrink_vector(FixedVector *vector)
Definition eventmgr.c:2036
void * LoadWholeDataFile(const char *path)
Definition campglob.c:207
void initialize_cockpit(signed char mode)
Definition fltsetup.c:100
void free_constellation(void)
Definition fltsetup.c:460
void ClearCutsceneTextViewport(void)
Definition gameflow.c:1224
int DrawRLEImageColor(RasterClip *clip, unsigned char *shape, int frame, int x, int y)
void UpdateFleetOverviewCameraRotation(void)
Definition turret.c:270
void SetViewportVerticalBounds(Viewport *viewport, int top, int bottom)
Definition wipe.c:248
unsigned int GetGameClockTicks(void)
Definition winmain.c:1148
void FreeWaveTable(void)
Definition sound.c:114
void Streamer_play(void)
Definition stream.cpp:81
void FormatNavCoordinates(unsigned char *out)
Definition nav.c:833
void capital_ship_intelligence(short obj)
Definition brains.c:1292
unsigned int new_view(int view, short obj)
Definition spc.c:451
void point_at(short obj, FixedVector point)
Definition geom.c:84
void house_keep(void)
Definition main.c:349
void DrawTextInputCursor(char character)
Definition optmenu.c:56
void FormatCinematicMemoryStatus(const char *format,...)
Definition gameflow.c:1785
void RunGameApplication(short argc, char **argv)
Definition main.c:89
void transform_objects_to_your_view(void)
Definition geom.c:1022
int ix_streamer_init(void)
Definition streamer.cpp:48
void set_mode(short i, int state)
Definition cockpt.c:637
void futurion_intelligence(short obj)
Definition brains.c:1370
void fire(short obj, short target)
Definition ship.c:2059
void PushCutsceneScriptValue(short **stack, short *stackTop, short value)
Definition gameflow.c:1826
short gone_ship(short missionShip)
Definition logic.c:798
void arrive_from_warp(short obj)
Definition jump.c:30
void chaff_intelligence(short obj)
Definition brains.c:1523
signed char DecodeSceneStructChunk(unsigned char **cursor, SceneResourceTable **resource)
Definition iffindex.c:9
void SetMenuInputPump(void)
Definition eventmgr.c:2106
void __fastcall ix_sound_start(IxSound *sound)
Definition sound.cpp:103
void reach_warp(short obj)
Definition brains.c:547
void NormalizeAndScaleVector(FixedVector *vector, int scale)
Definition geom.c:747
short IsInputEventQueued(int type)
Definition main.c:657
short difficulty(void)
Definition fields.c:98
void vector_cross_product(const FixedVector *left, const FixedVector *right, FixedVector *product)
Definition geom.c:335
short CanPlayerLand(void)
Definition orders.c:129
void ReleaseSceneMusicPacket(void)
Definition gameflow.c:894
void sub_int_vector(const ShortVector *left, const ShortVector *right, ShortVector *difference)
Definition mission.c:1093
void ConfigureDefaultSpacePalette(short mode)
Definition palalloc.c:11
void ClearGlobalMessage(void)
Definition cockpt.c:383
void init_constellation(short scene)
Definition fltsetup.c:425
void inherit_leader(short obj)
Definition logic.c:775
short scan_and_lock(short obj, short newTactic)
Definition brains.c:387
void SoundBlasterEndOfInterrupt(void)
Definition speech.c:119
void mine_intelligence(short obj)
Definition brains.c:1550
short player_wingman(short obj)
Definition auto.c:48
void send_message(short obj, signed char message)
Definition cockpt.c:3116
void DrawScaledTitleLogo(short y, short scale)
Definition intro.c:336
void DismissHudMessageIfShowing(void)
Definition cockpt.c:2756
void DrawTargetRangeReadout(void)
Definition target.c:131
short target_valid(short obj, short target)
Definition logic.c:968
int PromptInsertCorrectCd(void)
Definition winmain.c:1324
void flag_objective(short objective, unsigned char flags)
Definition cockpt.c:1153
void GetPaletteEntry(short index, unsigned short *rgb)
Definition gr.c:670
short IsShipRouting(short ship)
Definition orders.c:75
void check_sighting(short objective, short range, short object)
Definition cockpt.c:1436
unsigned int GetStartupErrorCode(int vector)
Definition eventmgr.c:1963
short pick_regular_maneuver(short obj, short event)
Definition smart.c:455
short IsObjectiveInDisplayedSystem(short objective)
Definition nav.c:580
void ClampVectorTo30(short *p)
Definition geom.c:1001
void Title_Sequence(void)
Definition intro.c:51
unsigned int JoystickEdgeHook(int button)
Definition eventmgr.c:1941
void determine_pilot_hand(void)
Definition cockpt.c:3034
void allow_engage(void)
Definition brains.c:205
void tanker_intelligence(short obj)
Definition brains.c:932
void InitializeConversationText(void)
Definition message.c:133
void Mtarget_missile(short ship, short target)
Definition fl.c:753
void Mzip_past(short ship, short target)
Definition fl.c:616
void AddCutsceneSoundEffect(void *sound, short resourceIndex)
Definition gameflow.c:571
short dead_ship(short missionShip)
Definition logic.c:792
void LoadSpaceflightResources(void)
Definition startup.c:352
void ReleasePacketHandle(void *handle)
Definition memapi.c:108
void ApplyRLEFramePalette(unsigned char *shape, int frame, unsigned char *palette)
char * DosStrrchr(char *s, short c)
Definition eventmgr.c:453
void SetInputCursorHostPosition(int x, int y)
Definition winmain.c:1177
void call_enemy(short obj)
Definition ship.c:1056
void ProcessEnemyWaveCompletion(void)
Definition ship.c:1514
void ShowPlayerStrandingSequence(void)
Definition eject.c:23
void stationary_intelligence(short obj)
Definition brains.c:969
short room_for_me(short obj, short minimum)
Definition mission.c:1020
unsigned int GetAvailableFarMemoryByType(short memoryType)
Definition memapi.c:132
void ScaleNavMapCoordinates(short *x, short *y, short mapX, short mapY)
Definition nav.c:101
void SetStreamerTrigger(int trigger)
Definition stream.cpp:116
void TimerStopHook(void)
Definition eventmgr.c:1503
void RecordCannedSceneObjectEvent(short obj, int event)
Definition taperec.c:176
void DrawFontGlyph(char character, TextContext *context, int height, int width, int y)
Definition gr.c:540
unsigned int shrink(int *component)
Definition eventmgr.c:2050
short asteroid_velocity(void)
Definition fields.c:104
void DisableDibSlam(void)
Definition dib.cpp:556
int changetrack(void)
Definition music.c:233
unsigned char TakeDebugStepFlag(void)
Definition console.cpp:52
short pick_from_list(const ManeuverChoice *choice, short obj, short event)
Definition smart.c:506
void fire_flack(short owner, short explosion, short range, FixedVector *aim, short burstMode)
Definition ship.c:2234
void divide_vector(FixedVector *vector, int divisor, FixedVector *result)
Definition geom.c:245
void DrawSpriteScaled(Viewport *viewport, short x, short y, unsigned char *shape, short frame, short angle, short scale, short flip)
Definition gr.c:1494
void ShowNoticeMessageBox(const char *text)
Definition winmain.c:194
void ix_streamer_force_trigger(char trigger)
Definition streamer.cpp:420
unsigned char ReleaseCutsceneObjectResourceData(CutsceneObjectResourceList *resource)
Definition iffload.c:603
void DrawCalculatingLabel(void)
Definition cockpt.c:1160
short try_far_spot(FixedVector *spot, short *moving)
Definition fields.c:235
void WriteTapeInitialState(void)
Definition taperec.c:281
short IsFrameTickElapsed(void)
Definition eventmgr.c:1430
CutsceneSoundEffect * FindCutsceneSoundEffect(short resourceIndex)
Definition gameflow.c:546
void InitializeCampaignConstellationState(CampaignGlobals *globals, short copyPosition)
Definition campglob.c:98
void TriggerPlayerHitPaletteFlash(void)
Definition main.c:309
void heat_seeking_missile_intelligence(short obj)
Definition brains.c:1389
void BriefingMap_DisplayMap(void)
Definition nav.c:968
void AcknowledgeModalMessage(void)
Definition main.c:902
unsigned short ApplyCannedSceneMusicRecord(CannedSceneMusicCommandRecord *record)
Definition replay.c:135
int SetCurrentDirOnDrive(char drive, const char *directory)
Definition winmain.c:1297
short mobile_objective(short objective)
Definition cockpt.c:1558
void RefreshObjectiveShipNavPoints(void)
Definition mission.c:251
short ReadJoystickButtons(void)
Definition joystick.c:40
void recalc_max_velocity(short ship)
Definition geom.c:28
void SwapSceneChunkSizeEndian(int *value)
Definition iffload.c:32
unsigned int ReleaseStaleNavTarget(void)
Definition main.c:1769
short find_child_ship(short parent, short objectClass, short target)
Definition ship.c:2030
short GetCurrentDiskDriveHook(void)
Definition eventmgr.c:1990
void random_radial(const FixedVector *center, short radius, FixedVector *position)
Definition geom.c:278
short Draw_3Space_Frame(void)
Definition main.c:1732
short RemoveCutsceneMemberIndex(short count, unsigned char *indices, signed char index)
Definition gameflow.c:440
short decrement_lock_time(short screenX)
Definition cockpt.c:1947
void destroyer_intelligence(short obj)
Definition brains.c:955
void score_for_kill(short pilot, short victim)
Definition ship.c:1664
void fizzle_fade(Viewport *source, Viewport *destination)
Definition gr.c:1654
void InitFullScreenViewport(Viewport *viewport, short arg)
Definition screen.c:41
void celerate(short ship, int delta)
Definition ship.c:668
short initialize_ship(short type, short owner, short matchLoadedType)
Definition ship.c:251
void DIBupdate(int left, int top, int right, int bottom)
Definition dib.cpp:708
void set_speed(short obj, short speed)
Definition auto.c:54
void SetTextCursor(unsigned short a, unsigned short b)
Definition eventmgr.c:172
char * GetPackedStringByIndex(CutsceneResourceTable *resources, short index)
Definition gameflow.c:3487
void ShowVersionBanner(void)
Definition message.c:198
void ix_system_delete_sound(IxSound *sound)
Definition system.cpp:184
void SaveGamePalette(void)
Definition palette.c:9
void SetCockpitLightBlink(signed char light, short interval)
Definition cockpt.c:499
void approach_half_speed(short obj)
Definition logic.c:520
void select_new_release_weapon(short preferredType)
Definition select.c:83
short ShipHasTorpedo(short ship)
Definition ship.c:122
void SetCinematicFrameTiming(float frameRate)
Definition dib.cpp:212
void update_digital_readouts(void)
Definition cockpt.c:785
int GetShiftKeyState(void)
Definition winmain.c:1124
unsigned int GetILBMImageSize(const unsigned char *iffData)
void free_all_slots(void)
Definition mission.c:703
int GetUpArrowKeyState(void)
Definition winmain.c:1052
void ClearSavedTorpedoTargetLock(void)
Definition turret.c:924
unsigned int set_eye_direction_and_position(void)
Definition spc.c:72
void ReleaseSpaceflightResources(void)
Definition campaign.c:114
void RestoreHudMessageBackground(void)
Definition cockpt.c:2143
void ReleaseCutsceneMusicNodes(CutsceneMusicNode **head, short resourceIndex)
Definition gameflow.c:746
void FlushPendingInputPresses(void)
Definition disk.c:305
short IsOnlyShipGun(short ship, short weapon)
Definition ship.c:1245
short IsPointWithinRange(FixedVector *from, FixedVector *to, short range)
Definition geom.c:760
void EraseLastTextInputCharacter(void)
Definition optmenu.c:17
void FlushSoundEffect(void)
Definition music.c:61
void exit_squadron(const char *msg,...)
Definition message.c:44
void ConvertChar_Int(char *text, short number, short digits)
Definition suffix.c:24
void ReleaseCutsceneSoundEffects(short resourceIndex)
Definition gameflow.c:598
void vector_component_in_dir(const FixedVector *vector, const FixedVector *direction, FixedVector *component)
Definition geom.c:375
void manage_hazard(short obj, short slot)
Definition fields.c:340
void __fastcall ix_sound_release(IxSound *sound)
Definition sound.cpp:189
int GetLeftArrowKeyState(void)
Definition winmain.c:1064
short PeekInputEvent(InputEventState *event, short type)
Definition eventmgr.c:929
void AppendGIFLZWDictionaryEntry(void)
void RouteCutsceneViewportToDisplay(void)
Definition gameflow.c:200
void accelerate(short amount)
Definition ship.c:3017
void reset_mission_type(short obj, short missionType)
Definition logic.c:426
void initialize_direction_view_frame(short yaw, short pitch, signed char frame)
Definition startup.c:309
void shaded_triangle(Viewport *viewport)
Definition gr.c:1330
void ix_streamer_audio_stop(void)
Definition streamer.cpp:346
unsigned int start_dust(short obj, FixedVector origin, short forwardDistance, int rightOffset, int upOffset)
Definition spc.c:648
void new_sphere_shapes(MissionNavPoint *navPoint)
Definition mission.c:789
void ix_streamer_close_stream_file(void)
Definition streamer.cpp:294
void MessagePumpHook(int mode)
Definition memapi.c:24
void ShowPlayerEjectionSequence(void)
Definition eject.c:9
void ix_streamer_set_volume(unsigned short volume)
Definition streamer.cpp:471
short pick_kilrathi_maneuver(short obj, short event)
Definition smart.c:538
short equ_vector(const FixedVector *left, const FixedVector *right)
Definition geom.c:182
void send_appropriate_message(short attacker, short victim)
Definition ship.c:750
short check_engage_target(short obj)
Definition brains.c:131
void ComputePointBehindObject(short obj, unsigned short distance, FixedVector *point)
Definition logic.c:559
unsigned short WaitForAnyInputPress(void)
Definition disk.c:347
short GetShapeFrameCount(unsigned char *shape)
Definition gr.c:137
short rear_sphere(void)
Definition fields.c:279
short CountShipProjectiles(short ship)
Definition ship.c:57
void clean_up_cockpit(void)
Definition jump.c:121
void coming_home(short obj)
Definition brains.c:63
unsigned short EnableHighMemoryResources(void)
Definition eventmgr.c:1456
void DIBwaitForVerticalBlank(void)
Definition dib.cpp:988
void CopyGIFPalette(const unsigned char *gifData, unsigned char *palette)
void fire_computer_graphic_missile(void)
Definition cockpt.c:892
short GetViewportPixel(Viewport *viewport, short x, short y)
Definition gr.c:1049
void maneuver_complete(short ship)
Definition fl.c:134
int WINAPI WinMain(HINSTANCE instance, HINSTANCE previous, LPSTR commandLine, int showCommand)
Definition winmain.c:89
void ReleaseModalTextPanel(void)
Definition optmenu.c:208
void ReleaseCutsceneFileResource(short owner, CutsceneResourceTable **head)
Definition iffload.c:731
void request(short requester, short ship, short command)
Definition orders.c:182
short fire_turrets(short obj)
Definition ship.c:2352
void RestoreCockpitExplosionIfVisible(void)
Definition cockpt.c:2692
short set_up_next_wave(void)
Definition mission.c:1054
void SetSoundEffectsVolume(int volume)
Definition sound.c:413
signed char IsCutsceneSpeechLoaded(void)
Definition gameflow.c:234
short EmsSaveMapping(void)
Definition eventmgr.c:1571
void DecreaseAdaptiveDifficulty(void)
Definition ship.c:165
void WaitForCutsceneInputEvent(void)
Definition gameflow.c:399
void prevent_collision(short obj)
Definition smart.c:99
void RecordCannedSceneBriefingCharacter(signed char character, signed char pose, short animationFrame)
Definition taperec.c:227
short check_destroy_target(short obj)
Definition brains.c:143
void SplitPackedPoint(ShortPoint point, short *p)
Definition eventmgr.c:255
void AppendFormattedText(const char *format,...)
Definition textfmt.c:141
short has_opposing_ship(short side)
Definition carrier.c:9
short set_new_objective(short pathIndex)
Definition cockpt.c:1272
void SetHudMessageSlot(HudMessageSlot *slot, TextContext *context, short x, short y, const char *text, unsigned short colour, signed char flashCount)
Definition cockpt.c:335
void free_view_buffer(void)
Definition main.c:208
unsigned int GetRLEImageOrigin(unsigned char *shape, int frame)
void ShowVictoryScreen(short logoY)
Definition intro.c:485
short RevealTitleLogo(void)
Definition intro.c:406
void ScaleNavMapMarkerSize(short *size)
Definition nav.c:95
unsigned short RandomInRange(unsigned short lo, unsigned short hi)
Definition eventmgr.c:31
void WriteDebugString(const char *s)
Definition winmain.c:1162
void FatalErrorAndExit(const char *format,...)
Definition cockpt.c:121
void DebugOverlayPrintf(DebugOverlayConsole *console, const char *format,...)
Definition debug.cpp:147
void FreePacketAndClear(void *slot, unsigned short releaseFlags)
Definition disk.c:45
void Msuicide_run(short ship, short target)
Definition fl.c:826
void set_objects_data(short obj, short type, short owner, short matchObjectClass)
Definition ship.c:347
void CopyTrainSimPilotViewToVdus(void)
Definition cockpt.c:3469
void animate_object(short obj)
Definition spc.c:1314
void InitializeCannedSceneFrameIndex(void)
Definition taperec.c:33
short normal_speed(short obj)
Definition logic.c:68
void servicetrack(void)
Definition music.c:318
unsigned int alter_tactic(short ship, short tactic)
Definition logic.c:469
void FlagCurrentNavObjectivesReached(void)
Definition midscene.c:45
void update_objects_in_space(void)
Definition spc.c:1051
void ix_system_service_sounds(void)
Definition system.cpp:46
unsigned int GetKeyboardModifiers(void)
Definition winmain.c:1130
void InitializeInputDriverHook(void)
Definition eventmgr.c:2138
short find_ship_index(short missionShip)
Definition logic.c:251
void TrackFreedHeapBlock(void *memory)
Definition winmain.c:842
void FlushSoundEffects(void)
Definition music.c:68
void QueueInputEventAtCursor(unsigned int type, short primaryButton, short secondaryButton)
Definition eventmgr.c:604
void Msplit_left(short ship)
Definition fl.c:538
void HandleUnsupportedManeuver(short maneuver, short ship, short target)
Definition fl.c:84
void update_VDUs(void)
Definition cockpt.c:3539
void CopyILBMPalette(const unsigned char *iffData, unsigned char *palette)
unsigned int GetAvailableFarMemory(void)
Definition eventmgr.c:1509
void CopyPCXPaletteFromFileTail(const unsigned char *fileData, unsigned int fileSize, unsigned char *palette)
void JoystickInputHook(void)
Definition input.c:69
unsigned int SignFixed(int v)
Definition geom.c:160
unsigned int compute_formation_destination(short leader, const ShortVector *offset, FixedVector *destination)
Definition smart.c:243
void set_sphere_point(const MissionShipRecord *record, FixedVector *position)
Definition mission.c:52
void FreeIfNotNull(void *p)
Definition eventmgr.c:1955
void return_to_buddy(short obj, short buddy)
Definition brains.c:591
void ReleaseCutsceneFontPacket(void)
Definition gameflow.c:1645
void DrawPilotSaveMenuChoices(short choice)
Definition personnel.c:385
void ApplyCannedSceneFrameEvents(void)
Definition replay.c:150
void Mnone(void)
Definition fl.c:1003
void ShipAiState35(short ship, short target)
Definition fl.c:188
void DrawNavMapBriefingBeacons(void)
Definition nav.c:646
void update_hazards(void)
Definition fields.c:375
void IncludeNavMapWorldPoint(int worldX, int worldZ)
Definition nav.c:132
short FindObjectResourceSlot(short resourceType)
Definition mission.c:401
void target_locking(signed char target)
Definition cockpt.c:1973
void DIBerror(const char *tag, int hr)
Definition dib.cpp:221
short FindNearestMissileTargetingObject(short obj)
Definition cockpt.c:2986
void point_ship_at_point(short obj, const FixedVector *point)
Definition geom.c:676
void FreeCommDisplayResources(void)
Definition comm.c:422
short ArcSin(int value)
Definition eventmgr.c:102
void FinalizeInputDriverHook(void)
Definition eventmgr.c:2144
void SkipCutsceneChunk(unsigned char **cursor)
Definition iffload.c:89
short initialize_object(short obj, short type, short owner, short matchLoadedType)
Definition ship.c:178
ShortRect ModalPanelBounds
Definition functions.h:694
void SetFrameTimerAndWait(short period)
Definition eventmgr.c:1411
void Msit_n_spin(short ship, short target)
Definition fl.c:279
void EraseTextContextBackground(TextContext *context)
Definition optmenu.c:45
void show_weapon_disp(void)
Definition cockpt.c:939
unsigned int change_mission_type(short obj, short missionType)
Definition logic.c:436
void OutputDebugPrintf(const char *format,...)
Definition winmain.c:204
void Mcorkscrew(short ship)
Definition fl.c:898
short FindCutsceneResourceSymbolIndex(CutsceneObjectResourceList *list, short scriptHalf, const char *symbol)
Definition iffload.c:103
void DrawFormattedText(const char *format,...)
Definition textfmt.c:103
void orbit_sphere(short obj)
Definition brains.c:914
void EmitRLEScanlineRun(int runType, int trailingCount, int sourceX)
unsigned int TranslateRLEFramePalette(unsigned char *shape, int frame)
void Mturn_n_spin(short ship, short target)
Definition fl.c:343
int HasValidShapeAllocationSignature(unsigned char *shape)
Definition gr.c:123
short MeasureCinematicFontLineHeight(void)
Definition text.c:122
void remove_all_hazards(void)
Definition fields.c:83
short IsSpriteFrameOverlappingRect(const ShortRect *rectangle, short x, short y, unsigned char *shape, short frame)
Definition eventmgr.c:2235
void point_parallel(short obj, short other)
Definition geom.c:740
short RunCampaignContinuePromptLoop(unsigned char *promptShapes, unsigned char *fieldShape, short promptFrame)
Definition campaign.c:34
void vid_transmit(void)
Definition cockpt.c:3351
void LogDisplayMode(const char *mode)
Definition vpalloc.c:11
short ParseHexNumber(char *text)
Definition hexnum.c:14
void reset_maneuver(short ship, short maneuver)
Definition logic.c:476
void CreateDebugOverlayConsole(HINSTANCE module, HWND window, short columns, short rows)
Definition console.cpp:14
unsigned char * GetPreparedShapeData(unsigned char *shape)
Definition gr.c:131
void EMShutDown(void)
Definition startup.c:38
short RandomBelowOrEqual(short n)
Definition eventmgr.c:43
void MarkDibDirty(void)
Definition dib.cpp:532
void DrawNavRectangleMarker(short x, short y, short size, short shadow, unsigned short colour, short reserve)
Definition nav.c:472
void PreloadMusicTrack(int track)
Definition fltsetup.c:961
void SelectCockpitVduMode(short vdu, int mode)
Definition cockpt.c:3729
int CreateMainWindow(HINSTANCE instance, HINSTANCE previous, int showCommand)
Definition winmain.c:241
DwordPtr IdentityDword(DwordPtr value)
Definition eventmgr.c:1491
void build_squad_list(short leader)
Definition logic.c:370
unsigned short HasSavedPilotCampaign(void)
Definition personnel.c:276
short stress_morale(short obj)
Definition smart.c:427
void ShowNoTransferablePilots(void)
Definition personnel.c:1389
void explosion_shock_wave(short obj, short blastDamage)
Definition ship.c:1729
void RemoveInputEvent(InputEvent *event)
Definition eventmgr.c:776
void EmitGIFDecodedPixel(void)
void SetDefaultFrameTiming(void)
Definition dib.cpp:202
short get_color(short object, unsigned short *colour)
Definition cockpt.c:1671
void hit_asteroid(short asteroid, short destructionChance)
Definition spc.c:1361
int GetNextInputEvent(InputEventState *event)
Definition eventmgr.c:800
void skew_randomly(short obj, short allowReverse)
Definition fields.c:110
short NormalizeFixedVector(FixedVector *vector)
Definition geom.c:347
void ResetCannedSceneRecording(void)
Definition taperec.c:20
void drain_fuel(short ship, short amount)
Definition geom.c:45
int select_guns(short selectedGun)
Definition select.c:44
void CopyViewportContents(Viewport *source, Viewport *destination)
Definition gr.c:995
void set_global_message(const char *text, unsigned short colour, int flashCount)
Definition cockpt.c:363
short ReserveContiguousPaletteEntries(short entryCount)
Definition palalloc.c:19
void FlushPendingInputEvents(void)
Definition eventmgr.c:2157
unsigned int GetDIBHeight(void)
Definition dib.cpp:806
void FinishViewportWipe(void *workspace)
Definition wipe.c:902
void chase_speed(short obj, short range)
Definition fl.c:112
short GetFontCharWidth(char i)
Definition eventmgr.c:216
void PlayTitleConductorCue(void)
Definition intro.c:220
short ShowModalTextPanel(short fontIndex, const char *format,...)
Definition optmenu.c:163
void DecodeShapeFrame(unsigned char *shape, short frame, unsigned char *bitmap, int width, int height, int leftExtent, int topExtent)
Definition gr.c:171
void UpdateInflightNavText(short showColon)
Definition nav.c:801
signed char DecodeSceneResourceChunk(unsigned char **cursor, SceneResourceTable *resource)
Definition iffload.c:335
void check_hazards(void)
Definition fields.c:428
void DrawCinematicFontCharacter(char character)
Definition text.c:9
void ShowHudTextLine(void)
Definition cockpt.c:2129
void * AllocateNearHeapBlockByFlags(int size, short flags)
Definition nearheap.c:229
void BuildCommunicationRecipientMenu(void)
Definition comm.c:137
void negate_vector(FixedVector *vector)
Definition geom.c:203
unsigned char ParseCutsceneContainer(void *scenePacket)
Definition iffload.c:410
short GetNavRangeSentinel(void)
Definition eventmgr.c:1908
short find_objective(short type, short index)
Definition jump.c:14
short FindSceneHotspotAtPosition(void *scenePacket, short offsetX, short offsetY, short x, short y)
Definition hotspot.c:105
void rotate_about_j(short angle, FixedVector *i, FixedVector *k)
Definition geom.c:413
void SystemDebugPrintf(const char *format,...)
Definition console.cpp:30
void DrawTextCharacter(char character)
Definition eventmgr.c:348
void RestoreTargetCameraAttitudeIndicators(void)
Definition turret.c:1087
void ResetCannedScenePlaybackBuffer(void)
Definition replay.c:17
void try2allow_engage(short obj)
Definition brains.c:218
void LoadSceneHotspotBoundsForSelection(void *scenePacket, short selection)
Definition hotspot.c:53
short IsPointInRect(short x, short y, const short *rect)
Definition eventmgr.c:246
unsigned int GetRLEImageSize(unsigned char *shape, int frame)
short alert_flag(short ship, unsigned int bits)
Definition logic.c:25
short cycle_next_objective(void)
Definition cockpt.c:1299
int BlitRasterClip(RasterClip *source, int sourceX, int sourceY, RasterClip *destination, int destinationX, int destinationY, unsigned int colour)
short CalcRectangleArea(const Viewport *viewport)
Definition vpalloc.c:23
void UpdateMap(char *text, short objective)
Definition gameflow.c:1660
void DrawTextAt(TextContext *context, int x, int y, const char *text, unsigned char alignment)
void ShutdownEventManager(void)
Definition eventmgr.c:521
void StoreMissionResultsInCampaignGlobals(CampaignGlobals *globals)
Definition campglob.c:46
void SetMouseCursorShape(unsigned char *shape, short frame)
Definition eventmgr.c:1357
void PrintPaletteAllocationMap(void)
Definition palalloc.c:57
void Streamer_stop(void)
Definition stream.cpp:93
unsigned short ApplyCannedSceneSoundRecord(CannedSceneBriefingCharacterRecord *record)
Definition replay.c:120
short ShouldWingmanAcceptRoutCommand(short ship, short pilot)
Definition orders.c:157
void ReleaseInputEventQueue(void)
Definition eventmgr.c:734
void animate_pilot(void)
Definition cockpt.c:3092
short message_showing(void)
Definition cockpt.c:726
void EnableDibSlam(void)
Definition dib.cpp:550
int GetShipAccelerationRate(short ship)
Definition geom.c:62
void ExecuteCutsceneScene(CutsceneScene *scene)
Definition gameflow.c:1006
void DrawNavPlayerMarker(short colour, short reserve)
Definition nav.c:629
void RegistryStoreValue(HKEY key, LPCSTR name, DWORD type, const BYTE *data, DWORD size)
Definition sound.c:428
void FillViewportEllipse(Viewport *viewport, short x, short y, short verticalRadius, short horizontalRadius, short colour)
Definition gr.c:1400
void point_ship_below_object(short obj, short other)
Definition geom.c:723
char * DosStrcat(char *destination, const char *source)
Definition fstrcat.c:9
unsigned int DwordPtr
Definition game.h:45