Package com.jcloisterzone.feature.visitor.score

Examples of com.jcloisterzone.feature.visitor.score.ScoreContext


        return rating;
    }

    private ScoreContext futureConnectionCreateScoreContext(Game game, Feature feature) {
        LegacyAiScoreAllCallback ctxHelper = new LegacyAiScoreAllCallback(game);
        ScoreContext ctx;
        if (feature instanceof Completable) {
            ctx = ctxHelper.getCompletableScoreContext((Completable) feature);
        } else {
            ctx = ctxHelper.getFarmScoreContext((Farm) feature);
            ((LegacyAiFarmScoreContext) ctx).setCityCache(new HashMap<City, CityScoreContext>());
View Full Code Here


        }
        return rating;
    }

    private double futureConnectionRateCrossing(Game game, Location toEmpty, Location toFeature, double chance, Feature f1, Feature f2) {
        ScoreContext f1Ctx = futureConnectionCreateScoreContext(game, f1);
        ScoreContext f2Ctx = futureConnectionCreateScoreContext(game, f2);
        Map<Player, Integer> f1Powers = f1Ctx.getPowers();
        Map<Player, Integer> f2Powers = f2Ctx.getPowers();

        int[] powers = funtureConnectionSumPower(f2Powers, null);
        int myPower = powers[0];
        int bestEnemy = powers[1];
View Full Code Here

        return 0;
    }


    private double futureConnectionRateFeatures(Game game, Location toEmpty, Location toFeature, double chance, Feature f1, Feature f2) {
        ScoreContext f1Ctx = futureConnectionCreateScoreContext(game, f1);
        ScoreContext f2Ctx = futureConnectionCreateScoreContext(game, f2);
        Map<Player, Integer> f1Powers = f1Ctx.getPowers();
        Map<Player, Integer> f2Powers = f2Ctx.getPowers();

        if (f1Powers.size() == 0) {
            return 0;
        }
View Full Code Here

TOP

Related Classes of com.jcloisterzone.feature.visitor.score.ScoreContext

Copyright © 2018 www.massapicom. 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.