Examples of supply()


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

Examples of com.fray.evo.util.EcYabotEncoder.supply()

              warnings.add("YABOT action not found for '" + a.getClass().getName() + "'.");
            }
          }
         
          //enter the rest of the build step info
          encoder.supply((int) s.supplyUsed).minerals((int) s.minerals).gas((int) s.gas).timestamp(s.timestamp()).next();
        }
        else
        {
          // Yabot doesn't support extractor trick so the author suggested telling it to build an extractor and send a cancel string shortly after for the same building
          encoder.supply((int)s.supplyUsed).minerals((int)s.minerals).gas((int)s.gas).timestamp(s.timestamp()).action(EcYabotEncoder.Action.Extractor).tag("Extractor_Trick").next();
View Full Code Here

Examples of com.fray.evo.util.EcYabotEncoder.supply()

          encoder.supply((int) s.supplyUsed).minerals((int) s.minerals).gas((int) s.gas).timestamp(s.timestamp()).next();
        }
        else
        {
          // Yabot doesn't support extractor trick so the author suggested telling it to build an extractor and send a cancel string shortly after for the same building
          encoder.supply((int)s.supplyUsed).minerals((int)s.minerals).gas((int)s.gas).timestamp(s.timestamp()).action(EcYabotEncoder.Action.Extractor).tag("Extractor_Trick").next();
          encoder.supply((int)s.supplyUsed).minerals((int)s.minerals).gas((int)s.gas).timestamp(s.timestampIncremented(3)).action(EcYabotEncoder.Action.Extractor).cancel(true).tag("Extractor_Trick").next();
        }
      }
     
      a.execute(s, log);
View Full Code Here

Examples of com.fray.evo.util.EcYabotEncoder.supply()

        }
        else
        {
          // Yabot doesn't support extractor trick so the author suggested telling it to build an extractor and send a cancel string shortly after for the same building
          encoder.supply((int)s.supplyUsed).minerals((int)s.minerals).gas((int)s.gas).timestamp(s.timestamp()).action(EcYabotEncoder.Action.Extractor).tag("Extractor_Trick").next();
          encoder.supply((int)s.supplyUsed).minerals((int)s.minerals).gas((int)s.gas).timestamp(s.timestampIncremented(3)).action(EcYabotEncoder.Action.Extractor).cancel(true).tag("Extractor_Trick").next();
        }
      }
     
      a.execute(s, log);
    }
View Full Code Here

Examples of org.gradle.api.publication.maven.internal.ant.EmptyMavenSettingsSupplier.supply()

        logger.info("Publishing to repository {}", artifactRepository);
        T deployTask = createDeployTask();
        deployTask.setProject(AntUtil.createProject());

        MavenSettingsSupplier mavenSettingsSupplier = new EmptyMavenSettingsSupplier();
        mavenSettingsSupplier.supply(deployTask);

        postConfigure(deployTask, artifactRepository);
        addPomAndArtifacts(deployTask, publication);
        execute(deployTask);
View Full Code Here

Examples of org.gradle.api.publication.maven.internal.ant.MavenSettingsSupplier.supply()

        logger.info("Publishing to repository {}", artifactRepository);
        T deployTask = createDeployTask();
        deployTask.setProject(AntUtil.createProject());

        MavenSettingsSupplier mavenSettingsSupplier = new EmptyMavenSettingsSupplier();
        mavenSettingsSupplier.supply(deployTask);

        postConfigure(deployTask, artifactRepository);
        addPomAndArtifacts(deployTask, publication);
        execute(deployTask);
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.