Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
screen.c File Reference

Mission requests, viewport setup and packet-memory management. More...

#include <malloc.h>
#include "wc1.h"

Go to the source code of this file.

Functions

void cleanup_objectives (void)
int too_busy (short ship)
void reply (short ship, short accepted)
int disobey_formation (short ship)
int bad_target (short ship, short target)
short can_land (void)
unsigned int triumph (short obj)
void engage (short obj, short target, enum ShipObjective objective)
short i_wanna_rout (short ship, int pilot)
void request (short requester, short ship, short command)
unsigned short __stdcall ShouldSuspendCursorForRect (const ShortRect *bounds)
unsigned short __stdcall InitializeDIBScreenViewport (Viewport *viewport, unsigned short colour)
void __stdcall InitFullScreenViewport (Viewport *record, short arg)
unsigned int __stdcall GetPacketSize (const char *filename, short section)
int GetFreeNearHeapBytes (void)
int GetLargestFreeNearHeapBlock (void)
void FrameStartHook (int mode)
unsigned short IsSoundHardwarePresent (short device)
void MessagePumpHook (int mode)
void * PushMemoryStackFrame (void *memory, int offset)
int IsPushedPacketHandle (void *handle)
void * MapPacketHandleToBlock (void *handle)

Variables

short anPitchGoal [16]
signed char abShipNavPtIdx [16]
signed char acTurnIntervalArray [16]
short anObjectRollRotationList [SPACE_OBJECT_COUNT]
signed char abShipTurnList [16]
HazardField aHazardFields [8]
short nFacingToTargetValue
short asObjectScreenYArray [SPACE_OBJECT_COUNT]
short asObjectScreenXList [SPACE_OBJECT_COUNT]
short asObjectAnimIndexes [SPACE_OBJECT_COUNT]
signed char cCurrentCockpitView
MissionObjective aMissionObjectivesArray [MISSION_OBJECTIVE_COUNT]
enum ShipManeuver aeShipManeuversTable [12]
const short * apCannedSequenceList [12]
FixedVector aShipMissionSpotArray [10]
short asCapitalShipViewFramesTable [16]
signed char acObjCollisionGraceTicks [SPACE_OBJECT_COUNT]
ObjectResourceSlot aObjectResourceSlotsArray [4]
signed char acShipDestroyedWeaponCountArray [16]

Detailed Description

Mission requests, viewport setup and packet-memory management.

Address range 42efc0-42fa8f.

Definition in file screen.c.

Function Documentation

◆ bad_target()

int bad_target ( short ship,
short target )

Definition at line 145 of file screen.c.

References aeShipSide, bad_target(), and too_busy().

Referenced by bad_target(), PlaySfxWaveFileByNumber(), and request().

◆ can_land()

◆ cleanup_objectives()

◆ disobey_formation()

int disobey_formation ( short ship)

◆ engage()

void engage ( short obj,
short target,
enum ShipObjective objective )

Definition at line 1306 of file logic.c.

◆ FrameStartHook()

void FrameStartHook ( int mode)

Definition at line 444 of file screen.c.

References FrameStartHook(), and TimerResetHook().

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

◆ GetFreeNearHeapBytes()

◆ GetLargestFreeNearHeapBlock()

◆ GetPacketSize()

◆ i_wanna_rout()

short i_wanna_rout ( short ship,
int pilot )

◆ InitFullScreenViewport()

void __stdcall InitFullScreenViewport ( Viewport * record,
short arg )

◆ InitializeDIBScreenViewport()

◆ IsPushedPacketHandle()

int IsPushedPacketHandle ( void * handle)

◆ IsSoundHardwarePresent()

unsigned short IsSoundHardwarePresent ( short device)

◆ MapPacketHandleToBlock()

void * MapPacketHandleToBlock ( void * handle)

◆ MessagePumpHook()

void MessagePumpHook ( int mode)

Definition at line 457 of file screen.c.

References MessagePumpHook(), and TimerStopHook().

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

◆ PushMemoryStackFrame()

void * PushMemoryStackFrame ( void * memory,
int offset )

◆ reply()

void reply ( short ship,
short accepted )

Definition at line 123 of file screen.c.

References reply(), and send_message().

Referenced by PlaySfxWaveFileByNumber(), reply(), and request().

◆ request()

◆ ShouldSuspendCursorForRect()

unsigned short __stdcall ShouldSuspendCursorForRect ( const ShortRect * bounds)

Definition at line 320 of file screen.c.

References ShouldSuspendCursorForRect(), and void().

Referenced by PlaySfxWaveFileByNumber(), RecRoom(), and ShouldSuspendCursorForRect().

◆ too_busy()

int too_busy ( short ship)

Definition at line 117 of file screen.c.

References aeShipMissionType, MISSION_TYPE_ROUT, and too_busy().

Referenced by bad_target(), PlaySfxWaveFileByNumber(), request(), and too_busy().

◆ triumph()

unsigned int triumph ( short obj)

Definition at line 1328 of file logic.c.

Variable Documentation

◆ abShipNavPtIdx

signed char abShipNavPtIdx[16]

◆ abShipTurnList

◆ acObjCollisionGraceTicks

signed char acObjCollisionGraceTicks[SPACE_OBJECT_COUNT]

Definition at line 29 of file screen.c.

Referenced by drop_mine(), fire_weapon(), house_keep_objects(), init_hazard(), and object_collision().

◆ acShipDestroyedWeaponCountArray

signed char acShipDestroyedWeaponCountArray[16]

Definition at line 31 of file screen.c.

Referenced by internal_damage(), Set_up_ship_info(), and your_internal_damage().

◆ acTurnIntervalArray

signed char acTurnIntervalArray[16]

Definition at line 15 of file screen.c.

Referenced by find_next_ship_turn_slot(), and regulate_turn().

◆ aeShipManeuversTable

◆ aHazardFields

HazardField aHazardFields[8]

Definition at line 18 of file screen.c.

Referenced by add_hazard_field(), check_hazards(), and start_hazard_field().

◆ aMissionObjectivesArray

◆ anObjectRollRotationList

◆ anPitchGoal

◆ aObjectResourceSlotsArray

◆ apCannedSequenceList

const short* apCannedSequenceList[12]

Definition at line 26 of file screen.c.

Referenced by advance_canned_sequence(), init_intelligence_data(), and Set_up_ship_info().

◆ asCapitalShipViewFramesTable

short asCapitalShipViewFramesTable[16]

◆ aShipMissionSpotArray

◆ asObjectAnimIndexes

short asObjectAnimIndexes[SPACE_OBJECT_COUNT]

Definition at line 22 of file screen.c.

Referenced by animate_shape(), and set_objects_data().

◆ asObjectScreenXList

◆ asObjectScreenYArray

◆ cCurrentCockpitView

◆ nFacingToTargetValue