Examples of DragonLayer


Examples of com.jcloisterzone.ui.grid.layer.DragonLayer



        if (game.hasCapability(DragonCapability.class)) {
            gridPanel.addLayer(new DragonAvailableMove(gridPanel), false);
            dragonLayer = new DragonLayer(gridPanel);
            gridPanel.addLayer(dragonLayer); //90
        }
        if (game.hasCapability(FairyCapability.class)) {
            fairyLayer = new FairyLayer(gridPanel);
            gridPanel.addLayer(fairyLayer); //90
View Full Code Here

Examples of com.jcloisterzone.ui.grid.layer.DragonLayer

    public void selectDragonMove(SelectDragonMoveEvent ev) {
        Set<Position> positions = ev.getPositions();
        int movesLeft = ev.getMovesLeft();
        client.clearActions();
        client.getControlPanel().getActionPanel().setFakeAction("dragonmove");
        DragonLayer dragonDecoration = gamePanel.getGridPanel().findLayer(DragonLayer.class);
        dragonDecoration.setMoves(movesLeft);
        gamePanel.getGridPanel().repaint();
        logger.debug("UI selectdragon move, left {}, {}", movesLeft, positions);
        if (ev.getTargetPlayer().isLocalHuman()) {
            DragonAvailableMove availMoves = gamePanel.getGridPanel().findLayer(DragonAvailableMove.class);
            availMoves.setPositions(positions);
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.