Beispiel #1
0
  public static EcState defaultDestination() {
    EcState d = new EcState();

    d.drones = 0;
    d.overlords = 0;
    d.hatcheries = 0;
    d.targetSeconds = 60 * 120;

    return d;
  }
Beispiel #2
0
  protected void assign(EcState s) {
    for (EcState st : waypoints)
      try {
        s.waypoints.add((EcState) st.clone());
      } catch (CloneNotSupportedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }

    s.minerals = minerals;
    s.gas = gas;
    s.supplyUsed = supplyUsed;

    s.requiredBases = requiredBases;
    s.hatcheries = hatcheries;
    s.lairs = lairs;
    s.hives = hives;
    s.spawningPools = spawningPools;
    s.banelingNest = banelingNest;
    s.evolutionChambers = evolutionChambers;
    s.roachWarrens = roachWarrens;
    s.hydraliskDen = hydraliskDen;
    s.infestationPit = infestationPit;
    s.greaterSpire = greaterSpire;
    s.ultraliskCavern = ultraliskCavern;
    s.gasExtractors = gasExtractors;
    s.spire = spire;
    s.greaterSpire = greaterSpire;
    s.spineCrawlers = spineCrawlers;
    s.sporeCrawlers = sporeCrawlers;
    s.nydusNetwork = nydusNetwork;
    s.nydusWorm = nydusWorm;

    s.zerglings = zerglings;
    s.banelings = banelings;
    s.roaches = roaches;
    s.mutalisks = mutalisks;
    s.drones = drones;
    s.queens = queens;
    s.hydralisks = hydralisks;
    s.infestors = infestors;
    s.corruptors = corruptors;
    s.ultralisks = ultralisks;
    s.broodlords = broodlords;
    s.overlords = overlords;
    s.overseers = overseers;

    s.metabolicBoost = metabolicBoost;
    s.adrenalGlands = adrenalGlands;
    s.glialReconstitution = glialReconstitution;
    s.tunnelingClaws = tunnelingClaws;
    s.burrow = burrow;
    s.pneumatizedCarapace = pneumatizedCarapace;
    s.ventralSacs = ventralSacs;
    s.centrifugalHooks = centrifugalHooks;
    s.melee1 = melee1;
    s.melee2 = melee2;
    s.melee3 = melee3;
    s.missile1 = missile1;
    s.missile2 = missile2;
    s.missile3 = missile3;
    s.armor1 = armor1;
    s.armor2 = armor2;
    s.armor3 = armor3;
    s.groovedSpines = groovedSpines;
    s.neuralParasite = neuralParasite;
    s.pathogenGlands = pathogenGlands;
    s.flyerAttack1 = flyerAttack1;
    s.flyerAttack2 = flyerAttack2;
    s.flyerAttack3 = flyerAttack3;
    s.flyerArmor1 = flyerArmor1;
    s.flyerArmor2 = flyerArmor2;
    s.flyerArmor3 = flyerArmor3;
    s.chitinousPlating = chitinousPlating;

    s.seconds = seconds;
    s.targetSeconds = targetSeconds;
    s.invalidActions = invalidActions;
    s.actionLength = actionLength;
  }