Package com.jcloisterzone.board.pointer

Examples of com.jcloisterzone.board.pointer.FeaturePointer


            for (Position p : availableTowers) {
                if (game.isDeployAllowed(getBoard().get(p), Follower.class)) {
                    for (MeepleAction ma : followerActions) {
                        //only small, big and phantoms are allowed on top of tower
                        if (SmallFollower.class.isAssignableFrom(ma.getMeepleType()) || BigFollower.class.isAssignableFrom(ma.getMeepleType())) {
                            ma.add(new FeaturePointer(p, Location.TOWER));
                        }
                    }
                }
            }
        }
View Full Code Here


    public void postPrepareActions(List<PlayerAction<?>> actions, Set<FeaturePointer> followerOptions) {
        for (MeepleAction ma : findFollowerActions(actions)) {
            List<FeaturePointer> abbots = new ArrayList<>();
            for (FeaturePointer fp : ma.getOptions()) {
                if (fp.getLocation() == Location.CLOISTER && ((Cloister) getBoard().get(fp)).isMonastery()) {
                    abbots.add(new FeaturePointer(fp.getPosition(), Location.ABBOT));
                }
            }
            ma.addAll(abbots);
        }
    }
View Full Code Here

TOP

Related Classes of com.jcloisterzone.board.pointer.FeaturePointer

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.