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

Object definitions, animation streams and weapon display coordinates. More...

#include "wc1.h"

Go to the source code of this file.

Variables

static unsigned int anAnimExplosion0 [12]
static unsigned int anAnimExplosion1 [22]
static unsigned int anAnimExplosion2 [14]
static unsigned int anAnimLaserSpark [8]
static unsigned int anAnimBlueSpark [6]
static unsigned int anAnimRedSpark [6]
static unsigned int anAnimSparkTrail [6]
static unsigned int anAnimGirder [8]
static unsigned int anAnimTubing [8]
static unsigned int anAnimGlass [18]
static unsigned int anAnimORing [8]
static unsigned int anAnimPipe [8]
static unsigned int anAnimMetalSheet [14]
static unsigned int anAnimWing [18]
static unsigned int anAnimMine [14]
static unsigned int anAnimAsteroidForward [16]
static unsigned int anAnimAsteroidShortForward [14]
static unsigned int anAnimAsteroidReverse [16]
static unsigned int anAnimAsteroidShortReverse [14]
static unsigned int anAnimEjectedPilot [14]
static unsigned int anAnimHyperspaceJumpFlash [22]
ObjectTypeData aObjectTypeData [OBJECT_TYPE_COUNT]
ShortVector aChildOffsets [56]
ShortPoint aWeaponDisplayPositions [32]
ShortPoint aWeaponDisplayOrigins [5]
short nMenuInputRepeatDelay
unsigned char abMissionAuxData [0x28]

Detailed Description

Object definitions, animation streams and weapon display coordinates.

Data only. The initialized tables precede their name literals, between the pilot-speech diagnostic and the navigation state. The original object name, and any code it had, are unknown.

Definition in file objdata.c.

Variable Documentation

◆ abMissionAuxData

unsigned char abMissionAuxData[0x28]

Definition at line 598 of file objdata.c.

Referenced by DrawNavLocationReadout(), and LoadMissionData().

◆ aChildOffsets

ShortVector aChildOffsets[56]
Initial value:
= {
{ 120, 10, 20 }, { -120, 10, 20 }, { 75, 45, -30 },
{ -75, 45, -30 }, { 0, 50, 10 }, { -100, 10, -40 },
{ -90, 0, 30 }, { -30, -40, -30 }, { 0, 0, 0 },
{ 30, -40, -30 }, { 100, 10, -40 }, { 90, 0, 30 },
{ -140, 10, 30 }, { -100, 10, 0 }, { -75, 0, -40 },
{ -30, 10, -20 }, { 0, 10, 10 }, { 30, 10, -20 },
{ 75, 0, -40 }, { 100, 10, 0 }, { 140, 10, 30 },
{ -120, -10, 0 }, { -100, 10, -20 }, { -90, 0, 40 },
{ -30, 20, -20 }, { 0, 10, -80 }, { 0, 10, 10 },
{ 30, 20, -20 }, { 90, 0, 40 }, { 100, 10, -20 },
{ 120, -10, 0 }, { 0, 10, 10 }, { 0, 0, -60 },
{ 0, 0, 500 }, { -200, 0, 250 }, { 200, 0, 250 },
{ -300, 0, 0 }, { 300, 0, 0 }, { -200, 0, -250 },
{ 200, 0, -250 }, { 0, 0, -500 }, { -130, 40, 20 },
{ -110, 20, 20 }, { -90, 0, 20 }, { 130, 40, 20 },
{ 110, 20, 20 }, { 90, 0, 20 }, { 0, 0, 400 },
{ -50, -20, 350 }, { 50, 20, 350 }, { -150, 20, 0 },
{ 150, -20, 0 }, { -75, -20, -350 }, { 75, 20, -350 },
{ 0, 100, 350 }, { 0, 0, -300 }
}

Definition at line 559 of file objdata.c.

Referenced by position_child().

◆ anAnimAsteroidForward

unsigned int anAnimAsteroidForward[16]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0x9000, 0
}

Definition at line 64 of file objdata.c.

◆ anAnimAsteroidReverse

unsigned int anAnimAsteroidReverse[16]
static
Initial value:
= {
13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0x9000, 0
}

Definition at line 70 of file objdata.c.

◆ anAnimAsteroidShortForward

unsigned int anAnimAsteroidShortForward[14]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0x9000
}

Definition at line 67 of file objdata.c.

◆ anAnimAsteroidShortReverse

unsigned int anAnimAsteroidShortReverse[14]
static
Initial value:
= {
12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0x9000
}

Definition at line 73 of file objdata.c.

◆ anAnimBlueSpark

unsigned int anAnimBlueSpark[6]
static
Initial value:
= {
0, 1, 2, 3, 0xa000, 0
}

Definition at line 29 of file objdata.c.

◆ anAnimEjectedPilot

unsigned int anAnimEjectedPilot[14]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0x9000
}

Definition at line 76 of file objdata.c.

◆ anAnimExplosion0

unsigned int anAnimExplosion0[12]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa000, 0
}

Definition at line 14 of file objdata.c.

◆ anAnimExplosion1

unsigned int anAnimExplosion1[22]
static
Initial value:
= {
0, 0x406, 1, 0x406, 2, 0x406, 0x406, 3, 0x406, 0x406,
4, 0x406, 0x406, 0x406, 5, 0x406, 0x406, 0x406, 0x406,
0x406, 0xa000, 0
}

Definition at line 17 of file objdata.c.

◆ anAnimExplosion2

unsigned int anAnimExplosion2[14]
static
Initial value:
= {
0, 0x406, 1, 0x406, 2, 0x406, 3, 0x406, 4, 0x406, 5,
6, 7, 0xa000
}

Definition at line 22 of file objdata.c.

◆ anAnimGirder

unsigned int anAnimGirder[8]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 0x9000, 0
}

Definition at line 38 of file objdata.c.

◆ anAnimGlass

unsigned int anAnimGlass[18]
static
Initial value:
= {
12, 13, 14, 15, 16, 17, 18, 19, 0x92, 0x91, 0x90,
0x8f, 0x8e, 0x8d, 0x8c, 20, 0x9000, 0
}

Definition at line 44 of file objdata.c.

◆ anAnimHyperspaceJumpFlash

unsigned int anAnimHyperspaceJumpFlash[22]
static
Initial value:
= {
0, 0x402, 0x404, 0x404, 0x408, 0x408, 0x408, 0x410,
0x410, 0x410, 0x410, 0x820, 0x820, 0x810, 0x808, 0x804,
1, 0x804, 0x804, 0x804, 0x804, 0xa000
}

Definition at line 79 of file objdata.c.

◆ anAnimLaserSpark

unsigned int anAnimLaserSpark[8]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 0xa000, 0
}

Definition at line 26 of file objdata.c.

◆ anAnimMetalSheet

unsigned int anAnimMetalSheet[14]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0x9000
}

Definition at line 54 of file objdata.c.

◆ anAnimMine

unsigned int anAnimMine[14]
static
Initial value:
= {
0, 1, 2, 0x41, 0x9000, 0, 0, 1, 2, 3, 4, 5, 0x9000, 0
}

Definition at line 61 of file objdata.c.

◆ anAnimORing

unsigned int anAnimORing[8]
static
Initial value:
= {
21, 22, 23, 24, 25, 26, 0x9000, 0
}

Definition at line 48 of file objdata.c.

◆ anAnimPipe

unsigned int anAnimPipe[8]
static
Initial value:
= {
27, 28, 29, 30, 31, 32, 0x9000, 0
}

Definition at line 51 of file objdata.c.

◆ anAnimRedSpark

unsigned int anAnimRedSpark[6]
static
Initial value:
= {
0, 1, 2, 3, 0xa000, 0
}

Definition at line 32 of file objdata.c.

◆ anAnimSparkTrail

unsigned int anAnimSparkTrail[6]
static
Initial value:
= {
0, 1, 2, 3, 0xa000, 0
}

Definition at line 35 of file objdata.c.

◆ anAnimTubing

unsigned int anAnimTubing[8]
static
Initial value:
= {
6, 7, 8, 9, 10, 11, 0x9000, 0
}

Definition at line 41 of file objdata.c.

◆ anAnimWing

unsigned int anAnimWing[18]
static
Initial value:
= {
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 0x9000, 0
}

Definition at line 57 of file objdata.c.

◆ aObjectTypeData

◆ aWeaponDisplayOrigins

ShortPoint aWeaponDisplayOrigins[5]
Initial value:
= {
{0, 16}, {0, 16}, {0, 16}, {0, 16}, {0, 16}
}

Definition at line 593 of file objdata.c.

Referenced by show_damage_disp(), and show_weapon_disp().

◆ aWeaponDisplayPositions

ShortPoint aWeaponDisplayPositions[32]
Initial value:
= {
{64, 28}, {8, 28}, {45, 25}, {27, 25}, {36, 23},
{20, 32}, {27, 24}, {31, 31}, {36, 22}, {41, 31},
{51, 32}, {45, 24}, {8, 32}, {18, 32}, {25, 11},
{26, 32}, {36, 28}, {46, 32}, {47, 11}, {54, 32},
{64, 32}, {12, 35}, {17, 37}, {26, 16}, {28, 31},
{37, 41}, {37, 29}, {45, 31}, {47, 16}, {56, 37},
{61, 35}, {0, 0}
}

Definition at line 582 of file objdata.c.

Referenced by RemovePlayerReleaseWeapon(), and show_weapon_disp().

◆ nMenuInputRepeatDelay

short nMenuInputRepeatDelay