Package com.jcloisterzone.feature

Examples of com.jcloisterzone.feature.Bridge


        }
        return pluginGeometry.getBridgeArea(loc).createTransformedArea(transform1);
    }

    private void substractBridge(Area substractions, Tile tile) {
        Bridge bridge = tile.getBridge();
        if (bridge != null) {
            Area area;
            area = getArea(tile, Bridge.class, bridge.getLocation());
            substractions.add(area);
        }
    }
View Full Code Here


    }

    public void placeBridge(Location bridgeLoc) {
        assert bridge == null && bridgeLoc != null; //TODO AI support - remove bridge from tile
        Location normalizedLoc = bridgeLoc.rotateCCW(rotation);
        bridge = new Bridge();
        bridge.setId(game.idSequnceNextVal());
        bridge.setTile(this);
        bridge.setLocation(normalizedLoc);
        features.add(bridge);
        edgePattern = edgePattern.getBridgePattern(normalizedLoc);
View Full Code Here

TOP

Related Classes of com.jcloisterzone.feature.Bridge

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.