Okay I tried using this code but I don't think I did it right. So will someone show me where and what to change to start with just 5 convecs loaded with a base?
#ifndef BASEDATA_H
#define BASEDATA_H
#include <OP2Helper.h>
#include <BaseBuilder.h>
#define numof(array) (sizeof(array)/sizeof(array[0]))
#define autosize(array) numof(array), array
struct BeaconInfo beaconSet1[] =
{ { 10, 17, mapMiningBeacon, 1, 0, -1},
{ 5, 17, mapMiningBeacon, 1, 0, -1},
{ -5, 17, mapMiningBeacon, 0, 0, -1},
{ 0, 17, mapMiningBeacon, 0, 0, -1},
{ 15, 17, mapFumarole, -1, -1, -1},
{ 20, 17, mapFumarole, -1, -1, -1},
};
struct BuildingInfo buildingSet1[] =
{
{ 0, 0, mapCommandCenter},
{ 7, 7, mapStructureFactory},
{ 7, -7, mapCommonOreSmelter},
{-7, -7, mapTokamak},
{-7, 7, mapStandardLab},
{-7, 0, mapAgridome}
};
struct TubeWallInfo tubeSet1[] =
{
{ 3, 0, 7, -4}, // Command Center to Smelter
{ 7, 1, 7, 5}, // Command Center to Smelter joint to Structure Factory
{-2, 0, -4, 0}, // Command Center to Agridome
{-7, 2, -7, 5} // Agridome to Standard Lab
};
struct VehicleInfo unitSet1[] =
{
{ 4, 10, mapConVec, mapNone, 3},
{ 7, 10, mapConVec, mapNone, 1},
{ 10, -6, mapCargoTruck, mapNone, 0},
{ 10, -4, mapCargoTruck, mapNone, 1},
{ 8, -4, mapCargoTruck, mapNone, 2},
{ 12, -6, mapRoboSurveyor, mapNone, 7},
{ 12, -4, mapRoboMiner, mapNone, 7},
{ 3, 1, mapEarthworker, mapNone, 1},
{ 3, -1, mapRoboDozer, mapNone, 7}
};
struct BaseInfo base[] =
{
{ autosize(beaconSet1), autosize(buildingSet1), autosize(tubeSet1), 0, 0, autosize(unitSet1) },
};
struct StartLocation startLocation[] =
{
{ 49, 14, &base[0]},
};
#endif