Package com.jcloisterzone.feature

Examples of com.jcloisterzone.feature.City.walk()


                City c = (City) feature;
                CityScoreContext ctx = cityCache.get(c);
                if (ctx == null) {
                    ctx = c.getScoreContext();
                    ctx.setCityCache(cityCache);
                    c.walk(ctx);
                }
                if (ctx.isCompleted()) {
                    adjoiningCompletedCities.put((City) ctx.getMasterFeature(), ctx);
                }
            } else if (feature instanceof Castle) {
View Full Code Here


    }

    @Override
    public void prepareActions(List<PlayerAction<?>> actions, Set<FeaturePointer> followerOptions) {
        City c = getTile().getCityWithPrincess();
        if (c == null || ! c.walk(new IsOccupied().with(Follower.class))) return;
        Feature cityRepresentative = c.getMaster();

        PrincessAction princessAction = null;
        for (Meeple m : game.getDeployedMeeples()) {
            if (!(m.getFeature() instanceof City)) continue;
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.