29 9, 14, 4, 2, 10, 12, 15, 8, 7, 5, 2, 6, 7, 0
32 0x25, 0xb6, 0x9a, 0x50, 0x94, 0x85, 0x27, 0xa6,
33 0xfd, 0x47, 0xaa, 0x0b
36 0x09, 0x0d, 0x03, 0x04, 0x0b, 0x0c, 0x01, 0x0a,
37 0x06, 0x0e, 0x02, 0x07
41 "You do not have enough memory to play Wing Commander.\n"
42 "Refer to your reference guide for assistance.";
44 280000, 260000, 280000, 0
47 306000, 286000, 306000, 0
50 258000, 238000, 258000
130 memoryThreshold = 100000;
148 memoryThreshold = 210000;
192 exit_squadron(
"Requested graphics display mode not available.");
242 index = (short)frame;
253 signed char pitchBand;
254 signed char yawSector;
261 for (pitchBand = 0; pitchBand < 5; pitchBand++) {
264 for (yawSector = 0; yawSector < 12; yawSector++) {
276 struct Shape *debrisShapeSet;
short asCollisionTimes[10]
unsigned char cYellowColour
short nLogicLastFoundShipValue
short bSlowSceneAnimation
unsigned char cLightGreyColour
PacketResourceDescriptor aCockpitResourceDescriptors[19]
short nInputDoubleClickInterval
ObjectTypeData aObjectTypeData[OBJECT_TYPE_COUNT]
TextContext stDefaultTxtContext
unsigned char cBlackColour
short nUnusedInputTimerFlag
short asCollisionPartnerTable[10]
FixedVector aDirectionViewUpVectorArray[DIRECTION_VIEW_COUNT]
unsigned char cBlueColour
unsigned char cViewportClearColour
ConstellationObjectDefinition * pConstellationDefinitionsPtr
FixedVector aDirectionViewForwardVector[DIRECTION_VIEW_COUNT]
unsigned char cDarkGreenColour
PacketResourceDescriptor aMissionResourceDescriptors[5]
short bCurrentExpandedMemoryAvail
MouseCursorState stMouseCursorState
unsigned char cMagentaColour
unsigned char cPrimaryViewBufferColour
unsigned char cAsteroidColour
char szDefaultTxtBuf[0xc8]
short nEventManagerActive
unsigned char cDefaultTextColour
struct Shape * pMouseCursorResource
unsigned char cOrangeColour
Viewport stSpaceBufferViewport
unsigned char cPrimaryTextColour
signed char acGraphicsModeByAnimationSpeed[8]
TextContext stHudMessageTextContext
PacketResourceDescriptor aCommon3SpaceResources[12]
Viewport stModalSrcViewport
short nMenuInputRepeatDelay
char szInsufficientMemory[100]
short asConversationTextColours[12]
unsigned char * pMissionCampaignInfo
struct Shape * apCommunicationPortraitShapesTable[16]
short nNearHeapMaxDescriptors
int nCurrentWingmanKilledThisMission
unsigned char cDarkGreyColour
FixedVector aDirectionViewRightVector[DIRECTION_VIEW_COUNT]
int anFullMusicMemoryReservationByVideoMode[4]
unsigned char abLegacyVideoModeColours[14]
int anExpandedMemoryReservationByVideoMode[3]
unsigned char cBrownColour
unsigned char cDarkBlueColour
short asLegacyConversationTextColours[12]
int anBaseMemoryReservationByVideoMode[4]
Umbrella header for the game core.
void SystemDebugPrintf(const char *fmt,...)
unsigned short __stdcall InitializeDIBScreenViewport(Viewport *viewport, unsigned short colour)
unsigned int LoadGamePaletteFile(void)
unsigned int EMStartUp(void)
void PollJoystickButtonEvents(void)
unsigned short InitializeDiskPromptTextContext(void)
void * LoadPacketAllocated(short logicalFile, short section)
unsigned int InitializeTextContextFromFont(TextContext *context, short fontIndex, unsigned char colour, signed char background)
short LogMemoryUsage(void)
unsigned int InitializeGameTextContexts(void)
void rotate_about_i(short angle, FixedVector *j, FixedVector *k)
unsigned int LoadOriginFxDrivers(void)
void * FetchDiskPacketRetrying(short logicalFile, short section, short flags)
unsigned int initialize_direction_view_frames(void)
void __stdcall PromptInsertNumberedDisk(short logicalFile)
unsigned short __stdcall LoadPaletteTripletsFile(const char *path)
void get_player_input(void)
unsigned int GetMessagePumpResult(void)
unsigned int GetFixedOneMillionThunkAlt(short memoryType)
unsigned short GetEventManagerStatus(void)
unsigned short InitializeEventManagerResources(void)
void FxDriverShutdownHook(void)
short __stdcall InitializeEventManager(short period, unsigned short(*initialize)(void), void *configuration)
unsigned short GetMusicDriverPresent(short mode)
void __stdcall SetEventManagerPump(void(*pump)(void))
void __stdcall SetTextContext(TextContext *context)
unsigned int EMShutDown(void)
void __stdcall ShutdownVideoHook(short mode)
void __stdcall SetFrameTimerPeriodDirect(short p)
void LoadJoystickCalibrationFile(short horizontalRange, short verticalRange, short horizontalDeadZone, short verticalDeadZone)
unsigned int ResetCockpitPaletteEntries(void)
unsigned short IsSoundHardwarePresent(short device)
unsigned int initialize_direction_view_frame(short yaw, short pitch, signed char frame)
unsigned short RewriteDiskFileGraphicsExtensions(short videoMode)
void exit_squadron(const char *msg)
unsigned int GetFxDriverInitResult(void)
unsigned int GetFxDriverStatus(void)
short GetTargetColourIndex(void)
unsigned int GetFixedOneMillionThunk(short memoryType)
void __stdcall RegisterEventManagerShutdown(void(*fn)(void))
unsigned int LoadSpaceflightResources(void)
void SaveGamePalette(void)
int LoadShapeSet(PacketResourceDescriptor *resources, unsigned short flags, short defaultLogicalFile)
unsigned short __stdcall ConfigureEventManagerPointer(struct Shape *shape, short frame)
void rotate_about_j(short angle, FixedVector *i, FixedVector *k)
void ShutdownEventManager(void)
@ OBJECT_TYPE_DEBRIS_METAL_SHEET
@ OBJECT_TYPE_DEBRIS_WING
@ OBJECT_TYPE_DEBRIS_GLASS
@ OBJECT_TYPE_DEBRIS_O_RING
@ OBJECT_TYPE_DEBRIS_PIPE
@ OBJECT_TYPE_DEBRIS_SHIP_GIRDER_CHUNK
@ OBJECT_TYPE_DEBRIS_SHIP_TUBING