14 {36, 37}, {36, 28}, {36, 30}, {36, 23}, {36, 19},
15 {36, 15}, {36, 24}, {36, 16}, {36, 22}
31 21, 22, 23, 24, 25, 26, 27, 28, 29
58 signed char component;
63 for (component = 0; component < 9; component++) {
81 "NO INTERNAL\n\nDAMAGE", 2);
97 sprintf(message,
"%d Unit%c Damaged",
106 short previousComponentCount;
107 signed char componentCount;
108 signed char component;
109 signed char attempts;
111 signed char componentIndex;
115 for (componentIndex = 0; componentIndex < 9; componentIndex++) {
121 if ((
short)componentCount != previousComponentCount) {
126 if (componentCount == 0)
148 }
while (attempts < 9);
static const char * apszDamageSeverityNames[5]
static ShortPoint aDamageDisplayPositions[9]
static int nDisplayedComponentDamage
static unsigned char abDamageDisplayFrames[9]
ScreenAllocation stCurrentScreenAlloc
signed char cDamagedComponentCount
signed char acPlayerComponentDamageList[9]
unsigned char cBlackColour
unsigned short awScreenRowOffsets[202]
short asInputButton2DoubleClick[2]
struct Shape * pCockpitWeaponShapePtr
Viewport * pFullScreenRecord
unsigned char * pDamageDisplayBackground
ShortPoint aWeaponDisplayOrigins[5]
ShortPoint stDamageSpritePos
void * apPacketHandlesList[0x1000]
int aiPktHandleDeltas[0x1000]
const char * apszComponentNames[9]
signed char cDamageDisplayFrame
signed char cDamageDisplayComponentValue
signed char cCurrentCockpitView
TextContext stLeftVduTextContext
unsigned char cPrimaryTextColour
Viewport * pAllocatedScreenViewport
char szDmgStateText[0x48]
ShortPoint stWpnDispOrigin
short nCurrentDmgDispTicks
Umbrella header for the game core.
void DrawViewportLine(Viewport *viewport, short x1, short y1, short x2, short y2, short colour)
void UpdateDamageDisplay(void)
void DrawSpriteDefault(Viewport *viewport, short x, short y, struct Shape *shape, short frame)
void InvalidateVduMode(short i)
void show_damage_disp(void)
void RestoreSpriteBackground(Viewport *viewport, unsigned char *background, short x, short y, struct Shape *shape, short frame)
void ShowComponentHitHudMessage(const char *text, unsigned short colour, short flashCount)
unsigned short GetJoystickPresentUnused(void)
void set_new_vdu(short vdu)
void CaptureSpriteBackground(Viewport *viewport, unsigned char *background, short x, short y, struct Shape *shape, short frame)
unsigned int DrawTextAt(TextContext *context, short x, short y, const char *text, unsigned char alignment)