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

Opening cinematic, credits and title menu. More...

#include "wc1.h"
#include <sys/stat.h>

Go to the source code of this file.

Functions

unsigned short GetPaletteReadyUnused (void)
void DrawTitleLogo (short distance, short y)
void UpdateTitleMenuCursor (void)
int Title_Sequence (void)

Variables

static char * pszIntroOpeningText
char szMissingSecretMissionsMessage [279]
static int nIntroCreditCount = 11
static char * apszIntroCredits [20]
static TitleMenuRegion aTitleMenuRegions [5]
static PacketResourceDescriptor aIntroResourceDescriptors [3]
static int bTitleMenuSceneInitialized = 0
short nExternalViewAngle
struct Shape * pTitleShape

Detailed Description

Opening cinematic, credits and title menu.

Address range 40fa30-4102af.

Definition in file title.c.

Function Documentation

◆ DrawTitleLogo()

void DrawTitleLogo ( short distance,
short y )

◆ GetPaletteReadyUnused()

unsigned short GetPaletteReadyUnused ( void )

Definition at line 72 of file title.c.

References GetPaletteReadyUnused().

Referenced by GetPaletteReadyUnused().

◆ Title_Sequence()

int Title_Sequence ( void )

Definition at line 119 of file title.c.

References aIntroResourceDescriptors, aMissionShips, anObjectRollRotationList, anObjectYawRotation, anObjPitchRot, AnySavedGames(), aObjectTypeData, apszIntroCredits, aShipFwdVec, aShipVelocity, asIntroCameraSequence, aTitleMenuRegions, bEscapePressedFlag, bInputModeState, bIntroSceneResourcesActive, bIntroSecondaryScene, bKeyEventQueueEnabled, bScriptedView, bShowKilrathiSagaCredits, bTitleMenuSceneInitialized, CalibrateJoystickInteractive(), cBlackColour, CheckEscaped(), clear_view_buffer(), ClearDebugPauseFlags(), ClearInputKeyStatePreservingModifiers(), ClearViewport(), DIBslam(), DIBslamReal(), Draw_3Space_Frame(), DrawSpriteDefault(), DrawTitleLogo(), dump_buffer_to_screen(), EnterAllocationScope(), EventManagerHook(), FadeViewportPaletteToColour(), FetchDiskPacketRetrying(), FindMenuRegionAtPoint(), FlushInputEvents(), TitleMenuRegion::frame, free_3Space(), free_all_slots(), FreePacketAndClear(), FreeShapeSet(), GetShapeFrameBounds(), init_3Space_objects(), initialize_scripted_view(), intro_drawbackgroundships(), LeaveAllocationScope(), LoadPacketResourceList(), MoveMenuPointerFromKeyboard(), nCannedSceneMode, nCurrentViewCenterPosY, nFrameSkipCounter, nIntroCreditCount, nMenuInputRepeatDelay, nSceneResourceBudgetValue, OBJECT_TYPE_DEBRIS_METAL_SHEET, OBJECT_TYPE_DEBRIS_WING, pIntroFont, PollInputEvent(), PollJoystickButtonEvents(), PollMenuInputDevices(), PreloadMusicTrackHook(), print_subtitle(), pszIntroOpeningText, pTitleShape, PumpWindowMessages(), ReleaseMusicTrackHook(), ReleasePacketHandle(), remove_all_hazards(), RenderSpaceViewFrame(), ResetSoundState(), RestoreGamePalette(), ScaleFixedVector(), SceneEnterHook(), set_up_action_sphere(), SetEventManagerPump(), ObjectTypeData::shapeSet, spacetrack(), start_hazard_field(), MissionShipRecord::state, stMouseCursorState, StopMusicUnlessSuppressed(), stScreenView, stSpaceBufferViewport, Title_Sequence(), Update_3Space(), UpdateTitleMenuCursor(), InputEventState::value, MouseCursorState::viewport, and WarpMouseTo().

Referenced by main(), RunAnimationDemoLoop(), and Title_Sequence().

◆ UpdateTitleMenuCursor()

Variable Documentation

◆ aIntroResourceDescriptors

PacketResourceDescriptor aIntroResourceDescriptors[3]
static
Initial value:
= {
3, 2 },
3, 5 },
{ 0, 0, 0 }
}
ObjectTypeData aObjectTypeData[OBJECT_TYPE_COUNT]
Definition objdata.c:86
struct Shape * shapeSet
Definition wcdata.h:393
@ OBJECT_TYPE_DEBRIS_METAL_SHEET
Definition wcdata.h:98
@ OBJECT_TYPE_EXPLOSION1
Definition wcdata.h:104

Definition at line 57 of file title.c.

Referenced by Title_Sequence().

◆ apszIntroCredits

char* apszIntroCredits[20]
static
Initial value:
= {
"Design\nby\nChris Roberts",
"Software Engineers\nChris Roberts\nKen Demarest III\nPaul C. Isaac\nSteve Muchow\nHerman Miller\nSteve Beeman\n",
"Dogfight Intelligence\nKen Demarest III\n\nDogfight Choreography\nSteve Beeman\nErin Roberts",
"3Space System\nby\nChris Roberts\n\nOriginFX Graphic System\nChris Roberts\nJohn Miles",
"OriginFX Sound System\nby\nHerman Miller",
"Artwork\nDenis Loubet\nGlen Johnson\nDaniel Bourbonnais\nKeith Berdak\nJohn Watson",
"Screenplay by Jeff George\n\nAdditional Writing\nSteve Cantrell\nPhilip Brogden",
"Soundtrack by\nGeorge A. Sanger and Dave Govett",
"Sound Effects by Marc Schaefgen",
"Produced by\nChris Roberts and Warren Spector",
"Directed by\nChris Roberts",
"Windows 95 Team",
"Combat Programmers\n\nJeff Mangler Everett\nJeff jefftep Grills\nChuck Bishop Karpiak\nKris Goblin Pelley",
"Sound System\n\nRichard Cupcake Lyle",
"Soundtrack Rescored by\n\nI Need Names",
"Head Whiner\n\nAnthony Sommers",
"Whiners\n\nMonte Mathis\nHal Milton\nDieter Martin",
"Richard Zinser\nKanon Lillemon\n",
"Special Thanks To\n\nSocks\nand\nCaffeine",
0
}

Definition at line 24 of file title.c.

Referenced by Title_Sequence().

◆ aTitleMenuRegions

TitleMenuRegion aTitleMenuRegions[5]
static
Initial value:
= {
{ 1, 49, 48, 283, 99 },
{ 1, 49, 91, 283, 149 },
{ 1, 49, 134, 283, 149 },
{ 1, 49, 177, 283, 209 },
{ -1, 0, 0, 0, 0 }
}

Definition at line 48 of file title.c.

Referenced by Title_Sequence(), and UpdateTitleMenuCursor().

◆ bTitleMenuSceneInitialized

int bTitleMenuSceneInitialized = 0
static

Definition at line 65 of file title.c.

Referenced by Title_Sequence().

◆ nExternalViewAngle

short nExternalViewAngle

Definition at line 68 of file title.c.

Referenced by new_view(), and set_eye_direction_and_position().

◆ nIntroCreditCount

int nIntroCreditCount = 11
static

Definition at line 22 of file title.c.

Referenced by Title_Sequence().

◆ pszIntroOpeningText

char* pszIntroOpeningText
static
Initial value:
=
"In the distant future,\n"
"mankind is locked in a deadly war..."

Definition at line 12 of file title.c.

Referenced by Title_Sequence().

◆ pTitleShape

struct Shape* pTitleShape

Definition at line 69 of file title.c.

Referenced by DrawTitleLogo(), and Title_Sequence().

◆ szMissingSecretMissionsMessage

char szMissingSecretMissionsMessage[279]
Initial value:
=
"The SECRET MISSIONS files are not present on your WING COMMANDER game disk\n\n"
"If you have not obtained the SECRET MISSIONS disk package, purchase it from "
"ORIGIN for $19.95 (US dollars) by calling 1-800-999-4939, Mon-Fri 8am-5pm "
"central.\n(Price and availability subject to change)."

Definition at line 17 of file title.c.