Changes towards seperating melee fleets and their representation on screen.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2321 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+354
-336
@@ -174,16 +174,36 @@ GetShipBox (PRECT pRect, COUNT side, COUNT row, COUNT col)
|
|||||||
pRect->extent.height = MELEE_BOX_HEIGHT;
|
pRect->extent.height = MELEE_BOX_HEIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static FleetShipIndex
|
||||||
|
GetShipIndex (BYTE row, BYTE col)
|
||||||
|
{
|
||||||
|
return row * NUM_MELEE_COLUMNS + col;
|
||||||
|
}
|
||||||
|
|
||||||
|
static BYTE
|
||||||
|
GetShipRow (FleetShipIndex index)
|
||||||
|
{
|
||||||
|
return index / NUM_MELEE_COLUMNS;
|
||||||
|
}
|
||||||
|
|
||||||
|
static BYTE
|
||||||
|
GetShipColumn (int index)
|
||||||
|
{
|
||||||
|
return index % NUM_MELEE_COLUMNS;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
DrawShipBox (PMELEE_STATE pMS, BOOLEAN HiLite)
|
DrawShipBox (PMELEE_STATE pMS, BOOLEAN HiLite)
|
||||||
{
|
{
|
||||||
RECT r;
|
RECT r;
|
||||||
BYTE StarShip;
|
BYTE StarShip;
|
||||||
|
FleetShipIndex index;
|
||||||
|
|
||||||
GetShipBox (&r, pMS->side, pMS->row, pMS->col);
|
GetShipBox (&r, pMS->side, pMS->row, pMS->col);
|
||||||
|
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
StarShip = pMS->TeamImage[pMS->side].ShipList[pMS->row][pMS->col];
|
index = GetShipIndex (pMS->row, pMS->col);
|
||||||
|
StarShip = pMS->TeamImage[pMS->side].ShipList[index];
|
||||||
if (HiLite)
|
if (HiLite)
|
||||||
DrawStarConBox (&r, 1,
|
DrawStarConBox (&r, 1,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x7, 0x00, 0xC), 0x3E),
|
BUILD_COLOR (MAKE_RGB15 (0x7, 0x00, 0xC), 0x3E),
|
||||||
@@ -694,31 +714,29 @@ DrawMeleeShipStrings (PMELEE_STATE pMS, BYTE NewStarShip)
|
|||||||
static COUNT
|
static COUNT
|
||||||
GetTeamValue (TEAM_IMAGE *pTI)
|
GetTeamValue (TEAM_IMAGE *pTI)
|
||||||
{
|
{
|
||||||
COUNT row, col, val;
|
FleetShipIndex index;
|
||||||
|
COUNT val;
|
||||||
|
|
||||||
val = 0;
|
val = 0;
|
||||||
for (row = 0; row < NUM_MELEE_ROWS; ++row)
|
for (index = 0; index < MELEE_FLEET_SIZE; index++)
|
||||||
{
|
{
|
||||||
for (col = 0; col < NUM_MELEE_COLUMNS; ++col)
|
BYTE StarShip;
|
||||||
|
|
||||||
|
StarShip = pTI->ShipList[index];
|
||||||
|
if (StarShip != MELEE_NONE)
|
||||||
{
|
{
|
||||||
BYTE StarShip;
|
HSTARSHIP hStarShip;
|
||||||
|
|
||||||
StarShip = pTI->ShipList[row][col];
|
hStarShip = GetStarShipFromIndex (&master_q, StarShip);
|
||||||
if (StarShip != MELEE_NONE)
|
if (hStarShip == 0)
|
||||||
|
pTI->ShipList[index] = MELEE_NONE;
|
||||||
|
else
|
||||||
{
|
{
|
||||||
HSTARSHIP hStarShip;
|
STARSHIPPTR StarShipPtr;
|
||||||
|
|
||||||
hStarShip = GetStarShipFromIndex (&master_q, StarShip);
|
StarShipPtr = LockStarShip (&master_q, hStarShip);
|
||||||
if (hStarShip == 0)
|
val += StarShipPtr->RaceDescPtr->ship_info.ship_cost;
|
||||||
pTI->ShipList[row][col] = MELEE_NONE;
|
UnlockStarShip (&master_q, hStarShip);
|
||||||
else
|
|
||||||
{
|
|
||||||
STARSHIPPTR StarShipPtr;
|
|
||||||
|
|
||||||
StarShipPtr = LockStarShip (&master_q, hStarShip);
|
|
||||||
val += StarShipPtr->RaceDescPtr->ship_info.ship_cost;
|
|
||||||
UnlockStarShip (&master_q, hStarShip);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -831,7 +849,7 @@ DrawFileStrings (PMELEE_STATE pMS, int HiLiteState)
|
|||||||
bot = top - 1;
|
bot = top - 1;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
COUNT row, col;
|
FleetShipIndex index;
|
||||||
STAMP s;
|
STAMP s;
|
||||||
|
|
||||||
if (++bot < NUM_PREBUILT)
|
if (++bot < NUM_PREBUILT)
|
||||||
@@ -862,25 +880,22 @@ DrawFileStrings (PMELEE_STATE pMS, int HiLiteState)
|
|||||||
|
|
||||||
s.origin.x = Text.baseline.x + 1;
|
s.origin.x = Text.baseline.x + 1;
|
||||||
s.origin.y = Text.baseline.y + 4;
|
s.origin.y = Text.baseline.y + 4;
|
||||||
for (row = 0; row < NUM_MELEE_ROWS; ++row)
|
for (index = 0; index < MELEE_FLEET_SIZE; index++)
|
||||||
{
|
{
|
||||||
for (col = 0; col < NUM_MELEE_COLUMNS; ++col)
|
BYTE StarShip;
|
||||||
{
|
|
||||||
BYTE StarShip;
|
|
||||||
|
|
||||||
StarShip = pMS->FileList[bot - top].ShipList[row][col];
|
StarShip = pMS->FileList[bot - top].ShipList[index];
|
||||||
if (StarShip != MELEE_NONE)
|
if (StarShip != MELEE_NONE)
|
||||||
{
|
{
|
||||||
HSTARSHIP hStarShip;
|
HSTARSHIP hStarShip;
|
||||||
STARSHIPPTR StarShipPtr;
|
STARSHIPPTR StarShipPtr;
|
||||||
|
|
||||||
hStarShip = GetStarShipFromIndex (&master_q, StarShip);
|
hStarShip = GetStarShipFromIndex (&master_q, StarShip);
|
||||||
StarShipPtr = LockStarShip (&master_q, hStarShip);
|
StarShipPtr = LockStarShip (&master_q, hStarShip);
|
||||||
s.frame = StarShipPtr->RaceDescPtr->ship_info.icons;
|
s.frame = StarShipPtr->RaceDescPtr->ship_info.icons;
|
||||||
DrawStamp (&s);
|
DrawStamp (&s);
|
||||||
s.origin.x += 17;
|
s.origin.x += 17;
|
||||||
UnlockStarShip (&master_q, hStarShip);
|
UnlockStarShip (&master_q, hStarShip);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1124,9 +1139,11 @@ DeleteCurrentShip (PMELEE_STATE pMS)
|
|||||||
RECT r;
|
RECT r;
|
||||||
HSTARSHIP hStarShip;
|
HSTARSHIP hStarShip;
|
||||||
STARSHIPPTR StarShipPtr;
|
STARSHIPPTR StarShipPtr;
|
||||||
|
FleetShipIndex fleetShipIndex;
|
||||||
int CurIndex;
|
int CurIndex;
|
||||||
|
|
||||||
CurIndex = pMS->TeamImage[pMS->side].ShipList[pMS->row][pMS->col];
|
fleetShipIndex = GetShipIndex (pMS->row, pMS->col);
|
||||||
|
CurIndex = pMS->TeamImage[pMS->side].ShipList[fleetShipIndex];
|
||||||
hStarShip = GetStarShipFromIndex (&master_q, CurIndex);
|
hStarShip = GetStarShipFromIndex (&master_q, CurIndex);
|
||||||
StarShipPtr = LockStarShip (&master_q, hStarShip);
|
StarShipPtr = LockStarShip (&master_q, hStarShip);
|
||||||
if (StarShipPtr)
|
if (StarShipPtr)
|
||||||
@@ -1135,7 +1152,7 @@ DeleteCurrentShip (PMELEE_STATE pMS)
|
|||||||
StarShipPtr->RaceDescPtr->ship_info.ship_cost;
|
StarShipPtr->RaceDescPtr->ship_info.ship_cost;
|
||||||
UnlockStarShip (&master_q, hStarShip);
|
UnlockStarShip (&master_q, hStarShip);
|
||||||
|
|
||||||
pMS->TeamImage[pMS->side].ShipList[pMS->row][pMS->col] = MELEE_NONE;
|
pMS->TeamImage[pMS->side].ShipList[fleetShipIndex] = MELEE_NONE;
|
||||||
}
|
}
|
||||||
LockMutex (GraphicsLock);
|
LockMutex (GraphicsLock);
|
||||||
GetShipBox (&r, pMS->side, pMS->row, pMS->col);
|
GetShipBox (&r, pMS->side, pMS->row, pMS->col);
|
||||||
@@ -1187,7 +1204,8 @@ DoEdit (PMELEE_STATE pMS)
|
|||||||
SetMenuSounds (MENU_SOUND_ARROWS, MENU_SOUND_SELECT | MENU_SOUND_DELETE);
|
SetMenuSounds (MENU_SOUND_ARROWS, MENU_SOUND_SELECT | MENU_SOUND_DELETE);
|
||||||
if (!pMS->Initialized)
|
if (!pMS->Initialized)
|
||||||
{
|
{
|
||||||
pMS->CurIndex = pMS->TeamImage[pMS->side].ShipList[pMS->row][pMS->col];
|
FleetShipIndex fleetShipIndex = GetShipIndex (pMS->row, pMS->col);
|
||||||
|
pMS->CurIndex = pMS->TeamImage[pMS->side].ShipList[fleetShipIndex];
|
||||||
DrawMeleeShipStrings (pMS, (BYTE)pMS->CurIndex);
|
DrawMeleeShipStrings (pMS, (BYTE)pMS->CurIndex);
|
||||||
|
|
||||||
pMS->Initialized = TRUE;
|
pMS->Initialized = TRUE;
|
||||||
@@ -1313,7 +1331,10 @@ DoEdit (PMELEE_STATE pMS)
|
|||||||
if (row == NUM_MELEE_ROWS)
|
if (row == NUM_MELEE_ROWS)
|
||||||
pMS->CurIndex = MELEE_NONE;
|
pMS->CurIndex = MELEE_NONE;
|
||||||
else
|
else
|
||||||
pMS->CurIndex = pMS->TeamImage[side].ShipList[row][col];
|
{
|
||||||
|
FleetShipIndex fleetShipIndex = GetShipIndex (row, col);
|
||||||
|
pMS->CurIndex = pMS->TeamImage[side].ShipList[fleetShipIndex];
|
||||||
|
}
|
||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
|
|
||||||
DrawMeleeShipStrings (pMS, (BYTE)(pMS->CurIndex));
|
DrawMeleeShipStrings (pMS, (BYTE)(pMS->CurIndex));
|
||||||
@@ -1353,22 +1374,26 @@ DoPickShip (PMELEE_STATE pMS)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
FleetShipIndex fleetShipIndex = GetShipIndex (pMS->row, pMS->col);
|
||||||
LockMutex (GraphicsLock);
|
LockMutex (GraphicsLock);
|
||||||
Deselect (EDIT_MELEE);
|
Deselect (EDIT_MELEE);
|
||||||
pMS->Initialized = TRUE;
|
pMS->Initialized = TRUE;
|
||||||
AdvanceCursor (pMS);
|
AdvanceCursor (pMS);
|
||||||
pMS->CurIndex = pMS->TeamImage[pMS->side].ShipList[pMS->row][pMS->col];
|
pMS->CurIndex = pMS->TeamImage[pMS->side].ShipList[fleetShipIndex];
|
||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
|
|
||||||
DrawMeleeShipStrings (pMS, (BYTE)(pMS->CurIndex));
|
DrawMeleeShipStrings (pMS, (BYTE)(pMS->CurIndex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (PulsedInputState.menu[KEY_MENU_SELECT] || PulsedInputState.menu[KEY_MENU_CANCEL])
|
else if (PulsedInputState.menu[KEY_MENU_SELECT] ||
|
||||||
|
PulsedInputState.menu[KEY_MENU_CANCEL])
|
||||||
{
|
{
|
||||||
|
FleetShipIndex index = GetShipIndex (pMS->row, pMS->col);
|
||||||
pMS->InputFunc = 0; /* disable ship flashing */
|
pMS->InputFunc = 0; /* disable ship flashing */
|
||||||
|
|
||||||
if (!PulsedInputState.menu[KEY_MENU_CANCEL])
|
if (!PulsedInputState.menu[KEY_MENU_CANCEL])
|
||||||
{
|
{
|
||||||
|
// Add the currently selected ship to the fleet.
|
||||||
HSTARSHIP hStarShip;
|
HSTARSHIP hStarShip;
|
||||||
|
|
||||||
hStarShip = GetStarShipFromIndex (&master_q, pMS->CurIndex);
|
hStarShip = GetStarShipFromIndex (&master_q, pMS->CurIndex);
|
||||||
@@ -1377,7 +1402,7 @@ DoPickShip (PMELEE_STATE pMS)
|
|||||||
StarShipPtr->RaceDescPtr->ship_info.ship_cost;
|
StarShipPtr->RaceDescPtr->ship_info.ship_cost;
|
||||||
UnlockStarShip (&master_q, hStarShip);
|
UnlockStarShip (&master_q, hStarShip);
|
||||||
|
|
||||||
pMS->TeamImage[pMS->side].ShipList[pMS->row][pMS->col] = pMS->CurIndex;
|
pMS->TeamImage[pMS->side].ShipList[index] = pMS->CurIndex;
|
||||||
LockMutex (GraphicsLock);
|
LockMutex (GraphicsLock);
|
||||||
DrawTeamString (pMS, DTSHS_REPAIR);
|
DrawTeamString (pMS, DTSHS_REPAIR);
|
||||||
DrawShipBox (pMS, FALSE);
|
DrawShipBox (pMS, FALSE);
|
||||||
@@ -1394,7 +1419,7 @@ DoPickShip (PMELEE_STATE pMS)
|
|||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
pMS->CurIndex = pMS->TeamImage[pMS->side].ShipList[pMS->row][pMS->col];
|
pMS->CurIndex = pMS->TeamImage[pMS->side].ShipList[index];
|
||||||
DrawMeleeShipStrings (pMS, (BYTE)pMS->CurIndex);
|
DrawMeleeShipStrings (pMS, (BYTE)pMS->CurIndex);
|
||||||
|
|
||||||
pMS->InputFunc = DoEdit;
|
pMS->InputFunc = DoEdit;
|
||||||
@@ -1532,11 +1557,12 @@ BuildAndDrawShipList (PMELEE_STATE pMS)
|
|||||||
|
|
||||||
for (i = 0; i < NUM_SIDES; ++i)
|
for (i = 0; i < NUM_SIDES; ++i)
|
||||||
{
|
{
|
||||||
COUNT j, side;
|
COUNT side;
|
||||||
RECT r;
|
RECT r;
|
||||||
TEXT t;
|
TEXT t;
|
||||||
STAMP s;
|
STAMP s;
|
||||||
UNICODE buf[30];
|
UNICODE buf[30];
|
||||||
|
FleetShipIndex index;
|
||||||
|
|
||||||
side = !i;
|
side = !i;
|
||||||
|
|
||||||
@@ -1574,44 +1600,39 @@ BuildAndDrawShipList (PMELEE_STATE pMS)
|
|||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (BUILD_COLOR (
|
||||||
MAKE_RGB15 (0x4, 0x5, 0x1F), 0x4B));
|
MAKE_RGB15 (0x4, 0x5, 0x1F), 0x4B));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
|
|
||||||
for (j = 0; j < NUM_MELEE_ROWS; ++j)
|
for (index = 0; index < MELEE_FLEET_SIZE; index++)
|
||||||
{
|
{
|
||||||
COUNT k;
|
BYTE StarShip;
|
||||||
|
|
||||||
for (k = 0; k < NUM_MELEE_COLUMNS; ++k)
|
StarShip = pMS->TeamImage[i].ShipList[index];
|
||||||
|
if (StarShip != MELEE_NONE)
|
||||||
{
|
{
|
||||||
BYTE StarShip;
|
BYTE row, col;
|
||||||
|
BYTE ship_cost;
|
||||||
|
HSTARSHIP hStarShip, hBuiltShip;
|
||||||
|
STARSHIPPTR StarShipPtr, BuiltShipPtr;
|
||||||
|
|
||||||
StarShip = pMS->TeamImage[i].ShipList[j][k];
|
hStarShip = GetStarShipFromIndex (&master_q, StarShip);
|
||||||
if (StarShip != MELEE_NONE)
|
StarShipPtr = LockStarShip (&master_q, hStarShip);
|
||||||
{
|
hBuiltShip = Build (&race_q[side], StarShipPtr->RaceResIndex,
|
||||||
BYTE ship_cost;
|
1 << side, NameCaptain (&race_q[side], StarShipPtr));
|
||||||
HSTARSHIP hStarShip, hBuiltShip;
|
row = GetShipRow (index);
|
||||||
STARSHIPPTR StarShipPtr, BuiltShipPtr;
|
col = GetShipColumn (index);
|
||||||
|
s.origin.x = 4 + ((ICON_WIDTH + 2) * col);
|
||||||
|
s.origin.y = 10 + ((ICON_HEIGHT + 2) * row);
|
||||||
|
s.frame = StarShipPtr->RaceDescPtr->ship_info.icons;
|
||||||
|
DrawStamp (&s);
|
||||||
|
ship_cost = StarShipPtr->RaceDescPtr->ship_info.ship_cost;
|
||||||
|
UnlockStarShip (&master_q, hStarShip);
|
||||||
|
|
||||||
hStarShip = GetStarShipFromIndex (&master_q, StarShip);
|
BuiltShipPtr = LockStarShip (&race_q[side], hBuiltShip);
|
||||||
StarShipPtr = LockStarShip (&master_q, hStarShip);
|
BuiltShipPtr->ShipFacing = index;
|
||||||
hBuiltShip = Build (&race_q[side],
|
BuiltShipPtr->special_counter = ship_cost;
|
||||||
StarShipPtr->RaceResIndex,
|
BuiltShipPtr->captains_name_index =
|
||||||
1 << side,
|
StarShipCaptain (BuiltShipPtr);
|
||||||
NameCaptain (&race_q[side], StarShipPtr));
|
BuiltShipPtr->RaceDescPtr = StarShipPtr->RaceDescPtr;
|
||||||
s.origin.x = 4 + ((ICON_WIDTH + 2) * k);
|
UnlockStarShip (&race_q[side], hBuiltShip);
|
||||||
s.origin.y = 10 + ((ICON_HEIGHT + 2) * j);
|
|
||||||
s.frame = StarShipPtr->RaceDescPtr->ship_info.icons;
|
|
||||||
DrawStamp (&s);
|
|
||||||
ship_cost = StarShipPtr->RaceDescPtr->
|
|
||||||
ship_info.ship_cost;
|
|
||||||
UnlockStarShip (&master_q, hStarShip);
|
|
||||||
|
|
||||||
BuiltShipPtr = LockStarShip (&race_q[side], hBuiltShip);
|
|
||||||
BuiltShipPtr->ShipFacing = (j * NUM_MELEE_COLUMNS) + k;
|
|
||||||
BuiltShipPtr->special_counter = ship_cost;
|
|
||||||
BuiltShipPtr->captains_name_index =
|
|
||||||
StarShipCaptain (BuiltShipPtr);
|
|
||||||
BuiltShipPtr->RaceDescPtr = StarShipPtr->RaceDescPtr;
|
|
||||||
UnlockStarShip (&race_q[side], hBuiltShip);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1749,7 +1770,8 @@ DoMelee (PMELEE_STATE pMS)
|
|||||||
WaitForSoundEnd (TFBSOUND_WAIT_ALL);
|
WaitForSoundEnd (TFBSOUND_WAIT_ALL);
|
||||||
|
|
||||||
SeedRandomNumbers ();
|
SeedRandomNumbers ();
|
||||||
load_gravity_well ((BYTE)((COUNT)TFB_Random () % NUMBER_OF_PLANET_TYPES));
|
load_gravity_well ((BYTE)((COUNT)TFB_Random () %
|
||||||
|
NUMBER_OF_PLANET_TYPES));
|
||||||
Battle ();
|
Battle ();
|
||||||
free_gravity_well ();
|
free_gravity_well ();
|
||||||
|
|
||||||
@@ -1790,9 +1812,11 @@ DoMelee (PMELEE_STATE pMS)
|
|||||||
|
|
||||||
which_side = pMS->MeleeOption == CONTROLS_TOP ? 1 : 0;
|
which_side = pMS->MeleeOption == CONTROLS_TOP ? 1 : 0;
|
||||||
if (PlayerControl[which_side] & HUMAN_CONTROL)
|
if (PlayerControl[which_side] & HUMAN_CONTROL)
|
||||||
PlayerControl[which_side] = COMPUTER_CONTROL | STANDARD_RATING;
|
PlayerControl[which_side] =
|
||||||
|
COMPUTER_CONTROL | STANDARD_RATING;
|
||||||
else if (PlayerControl[which_side] & AWESOME_RATING)
|
else if (PlayerControl[which_side] & AWESOME_RATING)
|
||||||
PlayerControl[which_side] = HUMAN_CONTROL | STANDARD_RATING;
|
PlayerControl[which_side] =
|
||||||
|
HUMAN_CONTROL | STANDARD_RATING;
|
||||||
else
|
else
|
||||||
PlayerControl[which_side] = ((
|
PlayerControl[which_side] = ((
|
||||||
PlayerControl[which_side]
|
PlayerControl[which_side]
|
||||||
@@ -1812,275 +1836,269 @@ DoMelee (PMELEE_STATE pMS)
|
|||||||
static void
|
static void
|
||||||
InitPreBuilt (PMELEE_STATE pMS)
|
InitPreBuilt (PMELEE_STATE pMS)
|
||||||
{
|
{
|
||||||
utf8StringCopy (pMS->PreBuiltList[0].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[0].TeamName),
|
FleetShipIndex shipI = 0;
|
||||||
GAME_STRING (MELEE_STRING_BASE + 4));
|
int fleetI;
|
||||||
pMS->PreBuiltList[0].ShipList[0][0] = MELEE_ANDROSYNTH;
|
|
||||||
pMS->PreBuiltList[0].ShipList[0][1] = MELEE_CHMMR;
|
|
||||||
pMS->PreBuiltList[0].ShipList[0][2] = MELEE_DRUUGE;
|
|
||||||
pMS->PreBuiltList[0].ShipList[0][3] = MELEE_URQUAN;
|
|
||||||
pMS->PreBuiltList[0].ShipList[0][4] = MELEE_MELNORME;
|
|
||||||
pMS->PreBuiltList[0].ShipList[0][5] = MELEE_ORZ;
|
|
||||||
pMS->PreBuiltList[0].ShipList[0][6] = MELEE_SPATHI;
|
|
||||||
pMS->PreBuiltList[0].ShipList[1][0] = MELEE_SYREEN;
|
|
||||||
pMS->PreBuiltList[0].ShipList[1][1] = MELEE_UTWIG;
|
|
||||||
pMS->PreBuiltList[0].ShipList[1][2] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[0].ShipList[1][3] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[0].ShipList[1][4] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[0].ShipList[1][5] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[0].ShipList[1][6] = MELEE_NONE;
|
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[1].TeamName,
|
for (fleetI = 0; fleetI < NUM_PREBUILT; fleetI++)
|
||||||
sizeof (pMS->PreBuiltList[1].TeamName),
|
for (shipI = 0; shipI < MELEE_FLEET_SIZE; shipI++)
|
||||||
GAME_STRING (MELEE_STRING_BASE + 5));
|
pMS->PreBuiltList[fleetI].ShipList[shipI] = MELEE_NONE;
|
||||||
pMS->PreBuiltList[1].ShipList[0][0] = MELEE_ARILOU;
|
}
|
||||||
pMS->PreBuiltList[1].ShipList[0][1] = MELEE_CHENJESU;
|
|
||||||
pMS->PreBuiltList[1].ShipList[0][2] = MELEE_EARTHLING;
|
|
||||||
pMS->PreBuiltList[1].ShipList[0][3] = MELEE_KOHR_AH;
|
|
||||||
pMS->PreBuiltList[1].ShipList[0][4] = MELEE_MYCON;
|
|
||||||
pMS->PreBuiltList[1].ShipList[0][5] = MELEE_YEHAT;
|
|
||||||
pMS->PreBuiltList[1].ShipList[0][6] = MELEE_PKUNK;
|
|
||||||
pMS->PreBuiltList[1].ShipList[1][0] = MELEE_SUPOX;
|
|
||||||
pMS->PreBuiltList[1].ShipList[1][1] = MELEE_THRADDASH;
|
|
||||||
pMS->PreBuiltList[1].ShipList[1][2] = MELEE_ZOQFOTPIK;
|
|
||||||
pMS->PreBuiltList[1].ShipList[1][3] = MELEE_SHOFIXTI;
|
|
||||||
pMS->PreBuiltList[1].ShipList[1][4] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[1].ShipList[1][5] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[1].ShipList[1][6] = MELEE_NONE;
|
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[2].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[2].TeamName),
|
FleetShipIndex i = 0;
|
||||||
GAME_STRING (MELEE_STRING_BASE + 6));
|
utf8StringCopy (pMS->PreBuiltList[0].TeamName,
|
||||||
pMS->PreBuiltList[2].ShipList[0][0] = MELEE_ANDROSYNTH;
|
sizeof (pMS->PreBuiltList[0].TeamName),
|
||||||
pMS->PreBuiltList[2].ShipList[0][1] = MELEE_CHMMR;
|
GAME_STRING (MELEE_STRING_BASE + 4));
|
||||||
pMS->PreBuiltList[2].ShipList[0][2] = MELEE_DRUUGE;
|
pMS->PreBuiltList[0].ShipList[i++] = MELEE_ANDROSYNTH;
|
||||||
pMS->PreBuiltList[2].ShipList[0][3] = MELEE_MELNORME;
|
pMS->PreBuiltList[0].ShipList[i++] = MELEE_CHMMR;
|
||||||
pMS->PreBuiltList[2].ShipList[0][4] = MELEE_EARTHLING;
|
pMS->PreBuiltList[0].ShipList[i++] = MELEE_DRUUGE;
|
||||||
pMS->PreBuiltList[2].ShipList[0][5] = MELEE_KOHR_AH;
|
pMS->PreBuiltList[0].ShipList[i++] = MELEE_URQUAN;
|
||||||
pMS->PreBuiltList[2].ShipList[0][6] = MELEE_SUPOX;
|
pMS->PreBuiltList[0].ShipList[i++] = MELEE_MELNORME;
|
||||||
pMS->PreBuiltList[2].ShipList[1][0] = MELEE_ORZ;
|
pMS->PreBuiltList[0].ShipList[i++] = MELEE_ORZ;
|
||||||
pMS->PreBuiltList[2].ShipList[1][1] = MELEE_SPATHI;
|
pMS->PreBuiltList[0].ShipList[i++] = MELEE_SPATHI;
|
||||||
pMS->PreBuiltList[2].ShipList[1][2] = MELEE_ILWRATH;
|
pMS->PreBuiltList[0].ShipList[i++] = MELEE_SYREEN;
|
||||||
pMS->PreBuiltList[2].ShipList[1][3] = MELEE_VUX;
|
pMS->PreBuiltList[0].ShipList[i++] = MELEE_UTWIG;
|
||||||
pMS->PreBuiltList[2].ShipList[1][4] = MELEE_NONE;
|
}
|
||||||
pMS->PreBuiltList[2].ShipList[1][5] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[2].ShipList[1][6] = MELEE_NONE;
|
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[3].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[3].TeamName),
|
FleetShipIndex i = 0;
|
||||||
GAME_STRING (MELEE_STRING_BASE + 7));
|
utf8StringCopy (pMS->PreBuiltList[1].TeamName,
|
||||||
pMS->PreBuiltList[3].ShipList[0][0] = MELEE_CHENJESU;
|
sizeof (pMS->PreBuiltList[1].TeamName),
|
||||||
pMS->PreBuiltList[3].ShipList[0][1] = MELEE_CHENJESU;
|
GAME_STRING (MELEE_STRING_BASE + 5));
|
||||||
pMS->PreBuiltList[3].ShipList[0][2] = MELEE_CHMMR;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_ARILOU;
|
||||||
pMS->PreBuiltList[3].ShipList[0][3] = MELEE_CHMMR;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_CHENJESU;
|
||||||
pMS->PreBuiltList[3].ShipList[0][4] = MELEE_KOHR_AH;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_EARTHLING;
|
||||||
pMS->PreBuiltList[3].ShipList[0][5] = MELEE_KOHR_AH;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_KOHR_AH;
|
||||||
pMS->PreBuiltList[3].ShipList[0][6] = MELEE_URQUAN;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_MYCON;
|
||||||
pMS->PreBuiltList[3].ShipList[1][0] = MELEE_URQUAN;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_YEHAT;
|
||||||
pMS->PreBuiltList[3].ShipList[1][1] = MELEE_UTWIG;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_PKUNK;
|
||||||
pMS->PreBuiltList[3].ShipList[1][2] = MELEE_UTWIG;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_SUPOX;
|
||||||
pMS->PreBuiltList[3].ShipList[1][3] = MELEE_NONE;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_THRADDASH;
|
||||||
pMS->PreBuiltList[3].ShipList[1][4] = MELEE_NONE;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_ZOQFOTPIK;
|
||||||
pMS->PreBuiltList[3].ShipList[1][5] = MELEE_NONE;
|
pMS->PreBuiltList[1].ShipList[i++] = MELEE_SHOFIXTI;
|
||||||
pMS->PreBuiltList[3].ShipList[1][6] = MELEE_NONE;
|
}
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[4].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[4].TeamName),
|
FleetShipIndex i = 0;
|
||||||
GAME_STRING (MELEE_STRING_BASE + 8));
|
utf8StringCopy (pMS->PreBuiltList[2].TeamName,
|
||||||
pMS->PreBuiltList[4].ShipList[0][0] = MELEE_URQUAN;
|
sizeof (pMS->PreBuiltList[2].TeamName),
|
||||||
pMS->PreBuiltList[4].ShipList[0][1] = MELEE_CHENJESU;
|
GAME_STRING (MELEE_STRING_BASE + 6));
|
||||||
pMS->PreBuiltList[4].ShipList[0][2] = MELEE_MYCON;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_ANDROSYNTH;
|
||||||
pMS->PreBuiltList[4].ShipList[0][3] = MELEE_SYREEN;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_CHMMR;
|
||||||
pMS->PreBuiltList[4].ShipList[0][4] = MELEE_ZOQFOTPIK;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_DRUUGE;
|
||||||
pMS->PreBuiltList[4].ShipList[0][5] = MELEE_SHOFIXTI;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_MELNORME;
|
||||||
pMS->PreBuiltList[4].ShipList[0][6] = MELEE_EARTHLING;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_EARTHLING;
|
||||||
pMS->PreBuiltList[4].ShipList[1][0] = MELEE_KOHR_AH;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_KOHR_AH;
|
||||||
pMS->PreBuiltList[4].ShipList[1][1] = MELEE_MELNORME;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_SUPOX;
|
||||||
pMS->PreBuiltList[4].ShipList[1][2] = MELEE_DRUUGE;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_ORZ;
|
||||||
pMS->PreBuiltList[4].ShipList[1][3] = MELEE_PKUNK;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_SPATHI;
|
||||||
pMS->PreBuiltList[4].ShipList[1][4] = MELEE_ORZ;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_ILWRATH;
|
||||||
pMS->PreBuiltList[4].ShipList[1][5] = MELEE_NONE;
|
pMS->PreBuiltList[2].ShipList[i++] = MELEE_VUX;
|
||||||
pMS->PreBuiltList[4].ShipList[1][6] = MELEE_NONE;
|
}
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[5].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[5].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"Ford's Fighters");
|
utf8StringCopy (pMS->PreBuiltList[3].TeamName,
|
||||||
pMS->PreBuiltList[5].ShipList[0][0] = MELEE_CHMMR;
|
sizeof (pMS->PreBuiltList[3].TeamName),
|
||||||
pMS->PreBuiltList[5].ShipList[0][1] = MELEE_ZOQFOTPIK;
|
GAME_STRING (MELEE_STRING_BASE + 7));
|
||||||
pMS->PreBuiltList[5].ShipList[0][2] = MELEE_MELNORME;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_CHENJESU;
|
||||||
pMS->PreBuiltList[5].ShipList[0][3] = MELEE_SUPOX;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_CHENJESU;
|
||||||
pMS->PreBuiltList[5].ShipList[0][4] = MELEE_UTWIG;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_CHMMR;
|
||||||
pMS->PreBuiltList[5].ShipList[0][5] = MELEE_UMGAH;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_CHMMR;
|
||||||
pMS->PreBuiltList[5].ShipList[0][6] = MELEE_NONE;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_KOHR_AH;
|
||||||
pMS->PreBuiltList[5].ShipList[1][0] = MELEE_NONE;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_KOHR_AH;
|
||||||
pMS->PreBuiltList[5].ShipList[1][1] = MELEE_NONE;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_URQUAN;
|
||||||
pMS->PreBuiltList[5].ShipList[1][2] = MELEE_NONE;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_URQUAN;
|
||||||
pMS->PreBuiltList[5].ShipList[1][3] = MELEE_NONE;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_UTWIG;
|
||||||
pMS->PreBuiltList[5].ShipList[1][4] = MELEE_NONE;
|
pMS->PreBuiltList[3].ShipList[i++] = MELEE_UTWIG;
|
||||||
pMS->PreBuiltList[5].ShipList[1][5] = MELEE_NONE;
|
}
|
||||||
pMS->PreBuiltList[5].ShipList[1][6] = MELEE_NONE;
|
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[6].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[6].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"Leyland's Lashers");
|
utf8StringCopy (pMS->PreBuiltList[4].TeamName,
|
||||||
pMS->PreBuiltList[6].ShipList[0][0] = MELEE_ANDROSYNTH;
|
sizeof (pMS->PreBuiltList[4].TeamName),
|
||||||
pMS->PreBuiltList[6].ShipList[0][1] = MELEE_EARTHLING;
|
GAME_STRING (MELEE_STRING_BASE + 8));
|
||||||
pMS->PreBuiltList[6].ShipList[0][2] = MELEE_MYCON;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_URQUAN;
|
||||||
pMS->PreBuiltList[6].ShipList[0][3] = MELEE_ORZ;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_CHENJESU;
|
||||||
pMS->PreBuiltList[6].ShipList[0][4] = MELEE_URQUAN;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_MYCON;
|
||||||
pMS->PreBuiltList[6].ShipList[0][5] = MELEE_NONE;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_SYREEN;
|
||||||
pMS->PreBuiltList[6].ShipList[0][6] = MELEE_NONE;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_ZOQFOTPIK;
|
||||||
pMS->PreBuiltList[6].ShipList[1][0] = MELEE_NONE;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_SHOFIXTI;
|
||||||
pMS->PreBuiltList[6].ShipList[1][1] = MELEE_NONE;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_EARTHLING;
|
||||||
pMS->PreBuiltList[6].ShipList[1][2] = MELEE_NONE;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_KOHR_AH;
|
||||||
pMS->PreBuiltList[6].ShipList[1][3] = MELEE_NONE;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_MELNORME;
|
||||||
pMS->PreBuiltList[6].ShipList[1][4] = MELEE_NONE;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_DRUUGE;
|
||||||
pMS->PreBuiltList[6].ShipList[1][5] = MELEE_NONE;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_PKUNK;
|
||||||
pMS->PreBuiltList[6].ShipList[1][6] = MELEE_NONE;
|
pMS->PreBuiltList[4].ShipList[i++] = MELEE_ORZ;
|
||||||
|
}
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[7].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[7].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"The Gregorizers 200");
|
utf8StringCopy (pMS->PreBuiltList[5].TeamName,
|
||||||
pMS->PreBuiltList[7].ShipList[0][0] = MELEE_ANDROSYNTH;
|
sizeof (pMS->PreBuiltList[5].TeamName),
|
||||||
pMS->PreBuiltList[7].ShipList[0][1] = MELEE_CHMMR;
|
"Ford's Fighters");
|
||||||
pMS->PreBuiltList[7].ShipList[0][2] = MELEE_DRUUGE;
|
pMS->PreBuiltList[5].ShipList[i++] = MELEE_CHMMR;
|
||||||
pMS->PreBuiltList[7].ShipList[0][3] = MELEE_MELNORME;
|
pMS->PreBuiltList[5].ShipList[i++] = MELEE_ZOQFOTPIK;
|
||||||
pMS->PreBuiltList[7].ShipList[0][4] = MELEE_EARTHLING;
|
pMS->PreBuiltList[5].ShipList[i++] = MELEE_MELNORME;
|
||||||
pMS->PreBuiltList[7].ShipList[0][5] = MELEE_KOHR_AH;
|
pMS->PreBuiltList[5].ShipList[i++] = MELEE_SUPOX;
|
||||||
pMS->PreBuiltList[7].ShipList[0][6] = MELEE_SUPOX;
|
pMS->PreBuiltList[5].ShipList[i++] = MELEE_UTWIG;
|
||||||
pMS->PreBuiltList[7].ShipList[1][0] = MELEE_ORZ;
|
pMS->PreBuiltList[5].ShipList[i++] = MELEE_UMGAH;
|
||||||
pMS->PreBuiltList[7].ShipList[1][1] = MELEE_PKUNK;
|
}
|
||||||
pMS->PreBuiltList[7].ShipList[1][2] = MELEE_SPATHI;
|
|
||||||
pMS->PreBuiltList[7].ShipList[1][3] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[7].ShipList[1][4] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[7].ShipList[1][5] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[7].ShipList[1][6] = MELEE_NONE;
|
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[8].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[8].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"300 point Armada!");
|
utf8StringCopy (pMS->PreBuiltList[6].TeamName,
|
||||||
pMS->PreBuiltList[8].ShipList[0][0] = MELEE_ANDROSYNTH;
|
sizeof (pMS->PreBuiltList[6].TeamName),
|
||||||
pMS->PreBuiltList[8].ShipList[0][1] = MELEE_CHMMR;
|
"Leyland's Lashers");
|
||||||
pMS->PreBuiltList[8].ShipList[0][2] = MELEE_CHENJESU;
|
pMS->PreBuiltList[6].ShipList[i++] = MELEE_ANDROSYNTH;
|
||||||
pMS->PreBuiltList[8].ShipList[0][3] = MELEE_DRUUGE;
|
pMS->PreBuiltList[6].ShipList[i++] = MELEE_EARTHLING;
|
||||||
pMS->PreBuiltList[8].ShipList[0][4] = MELEE_EARTHLING;
|
pMS->PreBuiltList[6].ShipList[i++] = MELEE_MYCON;
|
||||||
pMS->PreBuiltList[8].ShipList[0][5] = MELEE_KOHR_AH;
|
pMS->PreBuiltList[6].ShipList[i++] = MELEE_ORZ;
|
||||||
pMS->PreBuiltList[8].ShipList[0][6] = MELEE_MELNORME;
|
pMS->PreBuiltList[6].ShipList[i++] = MELEE_URQUAN;
|
||||||
pMS->PreBuiltList[8].ShipList[1][0] = MELEE_MYCON;
|
}
|
||||||
pMS->PreBuiltList[8].ShipList[1][1] = MELEE_ORZ;
|
|
||||||
pMS->PreBuiltList[8].ShipList[1][2] = MELEE_PKUNK;
|
|
||||||
pMS->PreBuiltList[8].ShipList[1][3] = MELEE_SPATHI;
|
|
||||||
pMS->PreBuiltList[8].ShipList[1][4] = MELEE_SUPOX;
|
|
||||||
pMS->PreBuiltList[8].ShipList[1][5] = MELEE_URQUAN;
|
|
||||||
pMS->PreBuiltList[8].ShipList[1][6] = MELEE_YEHAT;
|
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[9].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[9].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"Little Dudes with Attitudes");
|
utf8StringCopy (pMS->PreBuiltList[7].TeamName,
|
||||||
pMS->PreBuiltList[9].ShipList[0][0] = MELEE_UMGAH;
|
sizeof (pMS->PreBuiltList[7].TeamName),
|
||||||
pMS->PreBuiltList[9].ShipList[0][1] = MELEE_THRADDASH;
|
"The Gregorizers 200");
|
||||||
pMS->PreBuiltList[9].ShipList[0][2] = MELEE_SHOFIXTI;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_ANDROSYNTH;
|
||||||
pMS->PreBuiltList[9].ShipList[0][3] = MELEE_EARTHLING;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_CHMMR;
|
||||||
pMS->PreBuiltList[9].ShipList[0][4] = MELEE_VUX;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_DRUUGE;
|
||||||
pMS->PreBuiltList[9].ShipList[0][5] = MELEE_ZOQFOTPIK;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_MELNORME;
|
||||||
pMS->PreBuiltList[9].ShipList[0][6] = MELEE_NONE;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_EARTHLING;
|
||||||
pMS->PreBuiltList[9].ShipList[1][0] = MELEE_NONE;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_KOHR_AH;
|
||||||
pMS->PreBuiltList[9].ShipList[1][1] = MELEE_NONE;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_SUPOX;
|
||||||
pMS->PreBuiltList[9].ShipList[1][2] = MELEE_NONE;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_ORZ;
|
||||||
pMS->PreBuiltList[9].ShipList[1][3] = MELEE_NONE;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_PKUNK;
|
||||||
pMS->PreBuiltList[9].ShipList[1][4] = MELEE_NONE;
|
pMS->PreBuiltList[7].ShipList[i++] = MELEE_SPATHI;
|
||||||
pMS->PreBuiltList[9].ShipList[1][5] = MELEE_NONE;
|
}
|
||||||
pMS->PreBuiltList[9].ShipList[1][6] = MELEE_NONE;
|
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[10].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[10].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"New Alliance Ships");
|
utf8StringCopy (pMS->PreBuiltList[8].TeamName,
|
||||||
pMS->PreBuiltList[10].ShipList[0][0] = MELEE_ARILOU;
|
sizeof (pMS->PreBuiltList[8].TeamName),
|
||||||
pMS->PreBuiltList[10].ShipList[0][1] = MELEE_CHMMR;
|
"300 point Armada!");
|
||||||
pMS->PreBuiltList[10].ShipList[0][2] = MELEE_EARTHLING;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_ANDROSYNTH;
|
||||||
pMS->PreBuiltList[10].ShipList[0][3] = MELEE_ORZ;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_CHMMR;
|
||||||
pMS->PreBuiltList[10].ShipList[0][4] = MELEE_PKUNK;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_CHENJESU;
|
||||||
pMS->PreBuiltList[10].ShipList[0][5] = MELEE_SHOFIXTI;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_DRUUGE;
|
||||||
pMS->PreBuiltList[10].ShipList[0][6] = MELEE_SUPOX;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_EARTHLING;
|
||||||
pMS->PreBuiltList[10].ShipList[1][0] = MELEE_SYREEN;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_KOHR_AH;
|
||||||
pMS->PreBuiltList[10].ShipList[1][1] = MELEE_UTWIG;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_MELNORME;
|
||||||
pMS->PreBuiltList[10].ShipList[1][2] = MELEE_ZOQFOTPIK;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_MYCON;
|
||||||
pMS->PreBuiltList[10].ShipList[1][3] = MELEE_YEHAT;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_ORZ;
|
||||||
pMS->PreBuiltList[10].ShipList[1][4] = MELEE_DRUUGE;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_PKUNK;
|
||||||
pMS->PreBuiltList[10].ShipList[1][5] = MELEE_THRADDASH;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_SPATHI;
|
||||||
pMS->PreBuiltList[10].ShipList[1][6] = MELEE_SPATHI;
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_SUPOX;
|
||||||
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_URQUAN;
|
||||||
|
pMS->PreBuiltList[8].ShipList[i++] = MELEE_YEHAT;
|
||||||
|
}
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[11].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[11].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"Old Alliance Ships");
|
utf8StringCopy (pMS->PreBuiltList[9].TeamName,
|
||||||
pMS->PreBuiltList[11].ShipList[0][0] = MELEE_ARILOU;
|
sizeof (pMS->PreBuiltList[9].TeamName),
|
||||||
pMS->PreBuiltList[11].ShipList[0][1] = MELEE_CHENJESU;
|
"Little Dudes with Attitudes");
|
||||||
pMS->PreBuiltList[11].ShipList[0][2] = MELEE_EARTHLING;
|
pMS->PreBuiltList[9].ShipList[i++] = MELEE_UMGAH;
|
||||||
pMS->PreBuiltList[11].ShipList[0][3] = MELEE_MMRNMHRM;
|
pMS->PreBuiltList[9].ShipList[i++] = MELEE_THRADDASH;
|
||||||
pMS->PreBuiltList[11].ShipList[0][4] = MELEE_SHOFIXTI;
|
pMS->PreBuiltList[9].ShipList[i++] = MELEE_SHOFIXTI;
|
||||||
pMS->PreBuiltList[11].ShipList[0][5] = MELEE_SYREEN;
|
pMS->PreBuiltList[9].ShipList[i++] = MELEE_EARTHLING;
|
||||||
pMS->PreBuiltList[11].ShipList[0][6] = MELEE_YEHAT;
|
pMS->PreBuiltList[9].ShipList[i++] = MELEE_VUX;
|
||||||
pMS->PreBuiltList[11].ShipList[1][0] = MELEE_NONE;
|
pMS->PreBuiltList[9].ShipList[i++] = MELEE_ZOQFOTPIK;
|
||||||
pMS->PreBuiltList[11].ShipList[1][1] = MELEE_NONE;
|
}
|
||||||
pMS->PreBuiltList[11].ShipList[1][2] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[11].ShipList[1][3] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[11].ShipList[1][4] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[11].ShipList[1][5] = MELEE_NONE;
|
|
||||||
pMS->PreBuiltList[11].ShipList[1][6] = MELEE_NONE;
|
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[12].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[12].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"Old Hierarchy Ships");
|
utf8StringCopy (pMS->PreBuiltList[10].TeamName,
|
||||||
pMS->PreBuiltList[12].ShipList[0][0] = MELEE_ANDROSYNTH;
|
sizeof (pMS->PreBuiltList[10].TeamName),
|
||||||
pMS->PreBuiltList[12].ShipList[0][1] = MELEE_ILWRATH;
|
"New Alliance Ships");
|
||||||
pMS->PreBuiltList[12].ShipList[0][2] = MELEE_MYCON;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_ARILOU;
|
||||||
pMS->PreBuiltList[12].ShipList[0][3] = MELEE_SPATHI;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_CHMMR;
|
||||||
pMS->PreBuiltList[12].ShipList[0][4] = MELEE_UMGAH;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_EARTHLING;
|
||||||
pMS->PreBuiltList[12].ShipList[0][5] = MELEE_URQUAN;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_ORZ;
|
||||||
pMS->PreBuiltList[12].ShipList[0][6] = MELEE_VUX;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_PKUNK;
|
||||||
pMS->PreBuiltList[12].ShipList[1][0] = MELEE_NONE;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_SHOFIXTI;
|
||||||
pMS->PreBuiltList[12].ShipList[1][1] = MELEE_NONE;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_SUPOX;
|
||||||
pMS->PreBuiltList[12].ShipList[1][2] = MELEE_NONE;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_SYREEN;
|
||||||
pMS->PreBuiltList[12].ShipList[1][3] = MELEE_NONE;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_UTWIG;
|
||||||
pMS->PreBuiltList[12].ShipList[1][4] = MELEE_NONE;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_ZOQFOTPIK;
|
||||||
pMS->PreBuiltList[12].ShipList[1][5] = MELEE_NONE;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_YEHAT;
|
||||||
pMS->PreBuiltList[12].ShipList[1][6] = MELEE_NONE;
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_DRUUGE;
|
||||||
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_THRADDASH;
|
||||||
|
pMS->PreBuiltList[10].ShipList[i++] = MELEE_SPATHI;
|
||||||
|
}
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[13].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[13].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"Star Control 1");
|
utf8StringCopy (pMS->PreBuiltList[11].TeamName,
|
||||||
pMS->PreBuiltList[13].ShipList[0][0] = MELEE_ANDROSYNTH;
|
sizeof (pMS->PreBuiltList[11].TeamName),
|
||||||
pMS->PreBuiltList[13].ShipList[0][1] = MELEE_ARILOU;
|
"Old Alliance Ships");
|
||||||
pMS->PreBuiltList[13].ShipList[0][2] = MELEE_CHENJESU;
|
pMS->PreBuiltList[11].ShipList[i++] = MELEE_ARILOU;
|
||||||
pMS->PreBuiltList[13].ShipList[0][3] = MELEE_EARTHLING;
|
pMS->PreBuiltList[11].ShipList[i++] = MELEE_CHENJESU;
|
||||||
pMS->PreBuiltList[13].ShipList[0][4] = MELEE_ILWRATH;
|
pMS->PreBuiltList[11].ShipList[i++] = MELEE_EARTHLING;
|
||||||
pMS->PreBuiltList[13].ShipList[0][5] = MELEE_MMRNMHRM;
|
pMS->PreBuiltList[11].ShipList[i++] = MELEE_MMRNMHRM;
|
||||||
pMS->PreBuiltList[13].ShipList[0][6] = MELEE_MYCON;
|
pMS->PreBuiltList[11].ShipList[i++] = MELEE_SHOFIXTI;
|
||||||
pMS->PreBuiltList[13].ShipList[1][0] = MELEE_SHOFIXTI;
|
pMS->PreBuiltList[11].ShipList[i++] = MELEE_SYREEN;
|
||||||
pMS->PreBuiltList[13].ShipList[1][1] = MELEE_SPATHI;
|
pMS->PreBuiltList[11].ShipList[i++] = MELEE_YEHAT;
|
||||||
pMS->PreBuiltList[13].ShipList[1][2] = MELEE_SYREEN;
|
}
|
||||||
pMS->PreBuiltList[13].ShipList[1][3] = MELEE_UMGAH;
|
|
||||||
pMS->PreBuiltList[13].ShipList[1][4] = MELEE_URQUAN;
|
|
||||||
pMS->PreBuiltList[13].ShipList[1][5] = MELEE_VUX;
|
|
||||||
pMS->PreBuiltList[13].ShipList[1][6] = MELEE_YEHAT;
|
|
||||||
|
|
||||||
utf8StringCopy (pMS->PreBuiltList[14].TeamName,
|
{
|
||||||
sizeof (pMS->PreBuiltList[14].TeamName),
|
FleetShipIndex i = 0;
|
||||||
"Star Control 2");
|
utf8StringCopy (pMS->PreBuiltList[12].TeamName,
|
||||||
pMS->PreBuiltList[14].ShipList[0][0] = MELEE_CHMMR;
|
sizeof (pMS->PreBuiltList[12].TeamName),
|
||||||
pMS->PreBuiltList[14].ShipList[0][1] = MELEE_DRUUGE;
|
"Old Hierarchy Ships");
|
||||||
pMS->PreBuiltList[14].ShipList[0][2] = MELEE_KOHR_AH;
|
pMS->PreBuiltList[12].ShipList[i++] = MELEE_ANDROSYNTH;
|
||||||
pMS->PreBuiltList[14].ShipList[0][3] = MELEE_MELNORME;
|
pMS->PreBuiltList[12].ShipList[i++] = MELEE_ILWRATH;
|
||||||
pMS->PreBuiltList[14].ShipList[0][4] = MELEE_ORZ;
|
pMS->PreBuiltList[12].ShipList[i++] = MELEE_MYCON;
|
||||||
pMS->PreBuiltList[14].ShipList[0][5] = MELEE_PKUNK;
|
pMS->PreBuiltList[12].ShipList[i++] = MELEE_SPATHI;
|
||||||
pMS->PreBuiltList[14].ShipList[0][6] = MELEE_SLYLANDRO;
|
pMS->PreBuiltList[12].ShipList[i++] = MELEE_UMGAH;
|
||||||
pMS->PreBuiltList[14].ShipList[1][0] = MELEE_SUPOX;
|
pMS->PreBuiltList[12].ShipList[i++] = MELEE_URQUAN;
|
||||||
pMS->PreBuiltList[14].ShipList[1][1] = MELEE_THRADDASH;
|
pMS->PreBuiltList[12].ShipList[i++] = MELEE_VUX;
|
||||||
pMS->PreBuiltList[14].ShipList[1][2] = MELEE_UTWIG;
|
}
|
||||||
pMS->PreBuiltList[14].ShipList[1][3] = MELEE_ZOQFOTPIK;
|
|
||||||
pMS->PreBuiltList[14].ShipList[1][4] = MELEE_ZOQFOTPIK;
|
{
|
||||||
pMS->PreBuiltList[14].ShipList[1][5] = MELEE_ZOQFOTPIK;
|
FleetShipIndex i = 0;
|
||||||
pMS->PreBuiltList[14].ShipList[1][6] = MELEE_ZOQFOTPIK;
|
utf8StringCopy (pMS->PreBuiltList[13].TeamName,
|
||||||
|
sizeof (pMS->PreBuiltList[13].TeamName),
|
||||||
|
"Star Control 1");
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_ANDROSYNTH;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_ARILOU;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_CHENJESU;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_EARTHLING;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_ILWRATH;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_MMRNMHRM;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_MYCON;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_SHOFIXTI;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_SPATHI;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_SYREEN;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_UMGAH;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_URQUAN;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_VUX;
|
||||||
|
pMS->PreBuiltList[13].ShipList[i++] = MELEE_YEHAT;
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
FleetShipIndex i = 0;
|
||||||
|
utf8StringCopy (pMS->PreBuiltList[14].TeamName,
|
||||||
|
sizeof (pMS->PreBuiltList[14].TeamName),
|
||||||
|
"Star Control 2");
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_CHMMR;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_DRUUGE;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_KOHR_AH;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_MELNORME;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_ORZ;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_PKUNK;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_SLYLANDRO;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_SUPOX;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_THRADDASH;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_UTWIG;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_ZOQFOTPIK;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_ZOQFOTPIK;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_ZOQFOTPIK;
|
||||||
|
pMS->PreBuiltList[14].ShipList[i++] = MELEE_ZOQFOTPIK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ enum
|
|||||||
#define NUM_MELEE_ROWS 2
|
#define NUM_MELEE_ROWS 2
|
||||||
#define NUM_MELEE_COLUMNS 7
|
#define NUM_MELEE_COLUMNS 7
|
||||||
//#define NUM_MELEE_COLUMNS 6
|
//#define NUM_MELEE_COLUMNS 6
|
||||||
|
#define MELEE_FLEET_SIZE (NUM_MELEE_ROWS * NUM_MELEE_COLUMNS)
|
||||||
#define ICON_WIDTH 16
|
#define ICON_WIDTH 16
|
||||||
#define ICON_HEIGHT 16
|
#define ICON_HEIGHT 16
|
||||||
|
|
||||||
@@ -76,10 +77,11 @@ extern FRAME PickMeleeFrame;
|
|||||||
#define NUM_PICK_ROWS 5
|
#define NUM_PICK_ROWS 5
|
||||||
|
|
||||||
typedef BYTE MELEE_OPTIONS;
|
typedef BYTE MELEE_OPTIONS;
|
||||||
|
typedef COUNT FleetShipIndex;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
BYTE ShipList[NUM_MELEE_ROWS][NUM_MELEE_COLUMNS];
|
BYTE ShipList[MELEE_FLEET_SIZE];
|
||||||
UNICODE TeamName[MAX_TEAM_CHARS + 25]; /* in case default names in starcon.txt
|
UNICODE TeamName[MAX_TEAM_CHARS + 25]; /* in case default names in starcon.txt
|
||||||
are unknowingly mangled */
|
are unknowingly mangled */
|
||||||
} TEAM_IMAGE;
|
} TEAM_IMAGE;
|
||||||
|
|||||||
Reference in New Issue
Block a user