|
Wing Commander
Reconstructed Win32 source (1996)
|
The bar, the kill board, conversation scenes and the initial campaign state. More...
#include "wc1.h"Go to the source code of this file.
Functions | |
| void | CorrectPointers (void) |
| void | ClearRoomMenuLabel (void) |
| char | IsRoomMenuLabelEmpty (void) |
| void | DrawRoomMenuLabel (TextContext *context, const char *label) |
| void | RefreshRoomMenuLabel (void) |
| void | ClearRoomMenuCursorFrame (void) |
| void | SelectRoomMenuLabel (short i) |
| void | InitializeRoomMenu (const TitleMenuRegion *regions, char **labels, Viewport *viewport, char *text, unsigned char alignment) |
| int | FindMenuRegionAtPoint (short x, short y, const TitleMenuRegion *regions) |
| void | InitializeRoomViewports (void) |
| void | RefreshMouseCursorHook (void) |
| void | ReleaseEventManagerPointerHook (void) |
| void | DrawMouseCursorIntoViewport (Viewport *viewport) |
| short | RecRoom (void) |
| short | SuspendMouseCursor (void) |
| short | InitializeEventManagerTiming (void) |
| void | ShowChalkBoard (void) |
| void | ResetCampaignData (void) |
| short __stdcall | ReadPacketSectionData (PacketSectionHandle *handle, void *destination, unsigned int length) |
The bar, the kill board, conversation scenes and the initial campaign state.
Address range 43f640-44089f. The room state precedes the rank, menu-label and chalk-board literals.
Definition in file killbrd.c.
Definition at line 238 of file killbrd.c.
References ClearRoomMenuCursorFrame(), RoomMenu::cursorFrame, and stCurrentRoomMenu.
Referenced by ClearRoomMenuCursorFrame(), CollectRasterClipColours(), and InitializeRoomMenu().
Definition at line 206 of file killbrd.c.
References ClearRoomMenuLabel(), RoomMenu::currentLabel, and stCurrentRoomMenu.
Referenced by ClearRoomMenuLabel(), CollectRasterClipColours(), and UpdateRoomMenuCursor().
Definition at line 189 of file killbrd.c.
References aPilotEntriesList, apWingmanPilotsList, CorrectPointers(), CampaignState::currentDate, CampaignState::currentPilot, CampaignState::elapsedDate, pCurrentCampaignDate, pElapsedCampaignDatePtr, and stCampaignState.
Referenced by CollectRasterClipColours(), CorrectPointers(), LoadGameFromSlot(), and ResetCampaignData().
Definition at line 311 of file killbrd.c.
References CaptureSpriteBackground(), CheckCursor(), DrawMouseCursorIntoViewport(), DrawSpriteDefault(), MouseCursorState::frame, RefreshMouseCursorHook(), MouseCursorState::reservedAfterFrame, MouseCursorState::shape, MouseCursorState::shapeChanged, stMouseCursorState, stRoomScreenViewport, MouseCursorState::viewport, MouseCursorState::x, and MouseCursorState::y.
Referenced by DrawMouseCursorIntoViewport().
| void DrawRoomMenuLabel | ( | TextContext * | context, |
| const char * | label ) |
Definition at line 218 of file killbrd.c.
References DosStrcpy(), DrawRoomMenuLabel(), FormatTextBufferFromStart(), SetTextContext(), and szTxtWorkspaceBuffer.
Referenced by CollectRasterClipColours(), DrawRoomMenuLabel(), and RefreshRoomMenuLabel().
| int FindMenuRegionAtPoint | ( | short | x, |
| short | y, | ||
| const TitleMenuRegion * | regions ) |
Definition at line 274 of file killbrd.c.
References FindMenuRegionAtPoint(), TitleMenuRegion::frame, IsPointInRect(), and TitleMenuRegion::left.
Referenced by BarracksScreen(), CollectRasterClipColours(), FindMenuRegionAtPoint(), RecRoom(), SelectTrainSimMission(), and Title_Sequence().
| short InitializeEventManagerTiming | ( | void | ) |
Definition at line 777 of file killbrd.c.
References DAT_0059a9f0, InitializeEventManagerTiming(), nInputTickScale, and nUnusedInputTimerFlag.
Referenced by InitializeEventManagerTiming().
| void InitializeRoomMenu | ( | const TitleMenuRegion * | regions, |
| char ** | labels, | ||
| Viewport * | viewport, | ||
| char * | text, | ||
| unsigned char | alignment ) |
Definition at line 254 of file killbrd.c.
References TextContext::alignment, ClearRoomMenuCursorFrame(), RoomMenu::currentLabel, cViewportClearColour, InitializeRoomMenu(), InitializeTextContextFromFont(), RoomMenu::labels, pszBlankRoomMenuLabel, RoomMenu::regions, stCurrentRoomMenu, RoomMenu::text, TextContext::text, TextContext::textCursor, and TextContext::viewport.
Referenced by BarracksScreen(), CollectRasterClipColours(), InitializeRoomMenu(), and RecRoom().
Definition at line 287 of file killbrd.c.
References AllocateViewport(), Viewport::bottom, cBlackColour, EventManagerHook(), InitializeRoomViewports(), Viewport::left, nMenuInputRepeatDelay, nSavedRoomCtrlX, PollMenuInputDevices(), Viewport::right, SetEventManagerPump(), stCurrentRoomMouseView, stRoomDisplayView, stRoomScreenViewport, stSceneBuffer, stScreenView, Viewport::top, and UpdateRoomMenuCursor().
Referenced by BarracksScreen(), CollectRasterClipColours(), InitializeRoomViewports(), and RecRoom().
| char IsRoomMenuLabelEmpty | ( | void | ) |
Definition at line 212 of file killbrd.c.
References RoomMenu::currentLabel, IsRoomMenuLabelEmpty(), and stCurrentRoomMenu.
Referenced by CollectRasterClipColours(), IsRoomMenuLabelEmpty(), and RefreshRoomMenuLabel().
| short __stdcall ReadPacketSectionData | ( | PacketSectionHandle * | handle, |
| void * | destination, | ||
| unsigned int | length ) |
Definition at line 894 of file killbrd.c.
References PacketSectionHandle::dataOffset, PacketSectionHandle::dataSize, PacketSectionHandle::file, PacketSectionHandle::position, ReadDataFileAtOffset(), and ReadPacketSectionData().
Referenced by CollectRasterClipColours(), DecompressPacketSection(), GetPacketSize(), PacketLoad(), and ReadPacketSectionData().
| short RecRoom | ( | void | ) |
Definition at line 331 of file killbrd.c.
References abShotglassIdleAnimation, apRecRoomAnimations, apRecRoomFigureShapes, apRecRoomSceneDataList, apRecRoomTxtDataArray, apszRecRoomBaseLabels, apszRecRoomMenuLabels, apWingmanPilotsList, aRecRoomCharacterOrigins, aRecRoomMenuRegions, asCampaignPilotFiles, bEscapePressedFlag, bInputModeState, TitleMenuRegion::bottom, Viewport::bottom, bPanRoomTransition, cBlackColour, ClearInputKeyStatePreservingModifiers(), ClearViewport(), CopyViewportContents(), CampaignState::currentMission, CampaignState::currentSeries, DIBslam(), DIBslamReal(), DrawConstellationField(), DrawSpriteDefault(), EnterAllocationScope(), EventManagerHook(), FetchDiskPacketRetrying(), FindMenuRegionAtPoint(), FlushInputEvents(), free_constellation(), free_viewport(), FreePacketAndClear(), GetShapeFrameBounds(), init_constellation(), InitializeConstellationField(), InitializeConversationText(), InitializeRoomMenu(), InitializeRoomViewports(), IsFrameTickElapsed(), LeaveAllocationScope(), ShortRect::left, TitleMenuRegion::left, Viewport::left, LoadBriefingData(), LoadPacketAllocated(), MoveMenuPointerFromKeyboard(), nCampaignDataSet, nInputTickScale, nMenuInputRepeatDelay, nMenuPointerSpeed, nSavedRoomCtrlX, nTickCount60Hz, PanToScreen(), pBriefingPacket, pCurrentConversationBackdropShapePtr, PollInputEvent(), PollMenuInputDevices(), pRecRoomBgShape, pRecRoomRoster, PreloadMusicTrackHook(), RandomInRange(), RecRoom(), RefreshRoomMenuLabel(), ReleaseMusicTrackHook(), ReleasePacketHandle(), ReleaseTextFont(), TitleMenuRegion::right, Viewport::right, SceneDirector(), SetEventManagerPump(), SetFrameTimerPeriodDirect(), SetViewportRect(), ShouldSuspendCursorForRect(), ShowChalkBoard(), ShowMemoryStatusDebug(), spacetrack(), stCampaignState, stConstellationViewport, stCurrentRoomMouseView, stMouseCursorState, StopMusicUnlessSuppressed(), stRoomDisplayView, stRoomScreenViewport, stSceneBuffer, stScreenView, szDefaultTxtBuf, TitleMenuRegion::top, Viewport::top, UnionRectBounds(), UpdateRoomMenuCursor(), InputEventState::value, MouseCursorState::viewport, WarpMouseTo(), InputEventState::x, ShortPoint::x, InputEventState::y, and ShortPoint::y.
Referenced by CollectRasterClipColours(), GameFlow(), RecRoom(), and RunAnimationDemoLoop().
Definition at line 411 of file eventmgr.c.
References RefreshMouseCursorHook().
Referenced by DrawMouseCursorIntoViewport(), and RefreshMouseCursorHook().
Definition at line 228 of file killbrd.c.
References RoomMenu::currentLabel, DrawRoomMenuLabel(), IsRoomMenuLabelEmpty(), pszBlankRoomMenuLabel, RefreshRoomMenuLabel(), stCurrentRoomMenu, and RoomMenu::text.
Referenced by CollectRasterClipColours(), RecRoom(), RefreshRoomMenuLabel(), and UpdateBarracksScreen().
Definition at line 115 of file strdos.c.
References ReleaseEventManagerPointerHook().
Referenced by ReleaseEventManagerPointerHook(), and SuspendMouseCursor().
Definition at line 881 of file killbrd.c.
References aInitialPilotRecords, aPilotEntriesList, CorrectPointers(), InitializeTrainSimHighScores(), ResetCampaignData(), stCampaignState, and stInitialCampaignState.
Referenced by CollectRasterClipColours(), main(), ResetCampaignData(), and StartNewCampaign().
| void SelectRoomMenuLabel | ( | short | i | ) |
Definition at line 244 of file killbrd.c.
References RoomMenu::currentLabel, RoomMenu::labels, SelectRoomMenuLabel(), and stCurrentRoomMenu.
Referenced by CollectRasterClipColours(), SelectRoomMenuLabel(), and UpdateRoomMenuCursor().
Definition at line 786 of file killbrd.c.
References TextContext::alignment, aPilotEntriesList, apszPilotRankNames, asChalkBoardPilotOrder, TextContext::backgroundColour, bInputModeState, ClearInputKeyStatePreservingModifiers(), TextContext::colour, cViewportClearColour, DIBslam(), DIBslamReal(), DosStrcpy(), DrawFormattedText(), DrawSpriteDefault(), FetchDiskPacketRetrying(), FlushInputEvents(), FormatTextBufferFromStart(), InitializeTextContextFromFont(), pCurrentCampaignDate, pCurTextContext, PeekInputEvent(), PumpWindowMessages(), ReleasePacketHandle(), ReleaseTextFont(), SetTextContext(), ShowChalkBoard(), stCampaignState, stChalkBoardDate, stModalSrcViewport, szDefaultTxtBuf, TextContext::text, and TextContext::viewport.
Referenced by CollectRasterClipColours(), RecRoom(), and ShowChalkBoard().
| short SuspendMouseCursor | ( | void | ) |
Definition at line 767 of file killbrd.c.
References LeaveAllocationScope(), ReleaseEventManagerPointerHook(), and SuspendMouseCursor().
Referenced by SuspendMouseCursor().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 43 of file killbrd.c.
Referenced by ResetCampaignData().
|
static |
| unsigned char* apRecRoomSceneDataList[3] |
Definition at line 185 of file killbrd.c.
Referenced by LoadBriefingData(), and RecRoom().
| unsigned char* apRecRoomTxtDataArray[3] |
Definition at line 183 of file killbrd.c.
Referenced by LoadBriefingData(), and RecRoom().
| const char* apszPilotRankNames[5] |
Definition at line 16 of file killbrd.c.
Referenced by AddPCName(), ExpandCommMessageTokens(), and ShowChalkBoard().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 176 of file killbrd.c.
Referenced by ShowChalkBoard().
| int bPanRoomTransition = 0 |
Definition at line 172 of file killbrd.c.
Referenced by GameFlow(), RecRoom(), and StartNewCampaign().
| unsigned char* pBriefingPacket |
Definition at line 186 of file killbrd.c.
Referenced by Briefing(), DeBriefing(), LoadBriefingData(), and RecRoom().
|
static |
Definition at line 13 of file killbrd.c.
Referenced by InitializeRoomMenu(), and RefreshRoomMenuLabel().
|
static |
Definition at line 174 of file killbrd.c.
Referenced by ShowChalkBoard().
| RoomMenu stCurrentRoomMenu |
Definition at line 184 of file killbrd.c.
Referenced by AnimateBarracks(), ClearRoomMenuCursorFrame(), ClearRoomMenuLabel(), FreeBarracksMenuLabels(), InitializeRoomMenu(), IsRoomMenuLabelEmpty(), RefreshRoomMenuLabel(), SelectRoomMenuLabel(), and UpdateRoomMenuCursor().
| Viewport stCurrentRoomMouseView |
Definition at line 182 of file killbrd.c.
Referenced by InitializeRoomViewports(), and RecRoom().
| CampaignState stInitialCampaignState |
Definition at line 24 of file killbrd.c.
Referenced by main(), and ResetCampaignData().
|
static |
| Viewport stRoomDisplayView |
Definition at line 181 of file killbrd.c.
Referenced by InitializeRoomViewports(), and RecRoom().