Package com.jcloisterzone.action

Examples of com.jcloisterzone.action.PrincessAction


    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;
            if (m.getFeature().getMaster().equals(cityRepresentative) && m instanceof Follower) {
                if (princessAction == null) {
                    princessAction = new PrincessAction();
                    actions.add(princessAction);
                }
                princessAction.add(new MeeplePointer(m));
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.jcloisterzone.action.PrincessAction

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.