Package com.fray.evo

Examples of com.fray.evo.EcState.supply()


    int overlordScore;
   
    if (c.getOverlords() > destination.getOverlords())
      overlordScore = (int)Math.min(100, (destination.getOverlords() * (1 / Math.max(1, destination.supply() - destination.supplyUsed))) * 10);
    else
      overlordScore = (int)Math.min(100, (c.getOverlords() * (1 / Math.max(1, c.supply() - c.supplyUsed))) * 10);

    score = augmentScore(score, c.getZerglings(), destination.getZerglings(), 25, .25, waypoint);
    score = augmentScore(score, c.getBanelings(), destination.getBanelings(), 75, .75, waypoint);
    score = augmentScore(score, c.getRoaches(), destination.getRoaches(), 100, 1.0, waypoint);
    score = augmentScore(score, c.getMutalisks(), destination.getMutalisks(), 200, 2.0, waypoint);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.