Examples of TunnelAction


Examples of com.jcloisterzone.action.TunnelAction

        List<Road> openTunnels = getOpenTunnels();
        if (openTunnels.isEmpty()) return;

        List<TunnelAction> tunnelActions = new ArrayList<>(2);
        if (getTunnelTokens(game.getActivePlayer(), false) > 0) {
            tunnelActions.add(new TunnelAction(false));
        }
        if (getTunnelTokens(game.getActivePlayer(), true) > 0) {
            tunnelActions.add(new TunnelAction(true));
        }
        for (TunnelAction ta : tunnelActions) {
            for (Road tunnelEnd : openTunnels) {
                ta.add(new FeaturePointer(tunnelEnd.getTile().getPosition(), tunnelEnd.getLocation()));
            }
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.