I made this code to test adding in a AI but something doesn't work right. I want to make the AI have units of their own and have more or less units. But any changes I make to struct VehicleInfo unitSet2[] = never show up? can anyone give me a little help here?
#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 VehicleInfo unitSet1[] =
{
{ 14, 14, mapConVec, mapCommandCenter, 2},
{ 13, 14, mapConVec, mapStructureFactory, 2},
{ 14, 13, mapConVec, mapTokamak, 2},
{ 12, 14, mapConVec, mapStandardLab, 2},
{ 12, 13, mapConVec, mapAgridome, 2},
{ 13, 13, mapConVec, mapCommonOreSmelter, 2},
{ 9, 9, mapCargoTruck, mapNone, 2},
{ 10, 9, mapCargoTruck, mapNone, 2},
{ 9, 10, mapCargoTruck, mapNone, 2},
{ 10, 10, mapCargoTruck, mapNone, 2},
{ 10, 13, mapRoboSurveyor, mapNone, 2},
{ 11, 14, mapRoboMiner, mapNone, 2},
{ 11, 13, mapEarthworker, mapNone, 2},
{ 10, 14, mapRoboDozer, mapNone, 2},
{ 15, 10, mapLynx, mapMicrowave, 2},
{ 16, 10, mapLynx, mapMicrowave, 2},
{ 15, 9, mapLynx, mapMicrowave, 2},
{ 16, 9, mapLynx, mapMicrowave, 2},
};
struct VehicleInfo unitSet2[] =
{
{ 19, 19, mapConVec, mapCommandCenter, 2},
};
struct BaseInfo base[] =
{
{ autosize(beaconSet1), 0, 0, 0,0, 0, 0, autosize(unitSet1) },
{ autosize(beaconSet1), 0, 0, 0,0, 0, 0, autosize(unitSet2) },
};
struct StartLocation startLocation[] =
{
{ 49, 14, &base[0]},
{ 29, 14, &base[0]},
};