Package com.jcloisterzone.board

Examples of com.jcloisterzone.board.TilePack


//    GridPanel gp = client.getGridPanel();

        paintBackgroundBody(g2);

        TilePack tilePack = game.getTilePack();
        if (tilePack != null) { //null is possible for just loaded game
            g2.setFont(FONT_PACK_SIZE);
            g2.setColor(HEADER_FONT_COLOR);
            int packSize = tilePack.totalSize();
            g2.drawString("" + packSize, PANEL_WIDTH - 42, 24);
        }

        g2.translate(0, 46);
        actionPanel.paintComponent(g2);
View Full Code Here


            String tileId = debugTiles.remove(0);
            if (tileId.equals(DEBUG_END_OF_PACK)) {
                next(GameOverPhase.class);
                return true;
            }
            TilePack tilePack = getTilePack();
            Tile tile = tilePack.drawTile(tileId);
            if (tile == null) {
                logger.warn("Invalid debug draw id: " + tileId);
            } else {
                boolean riverActive = tilePack.getGroupState("river-start") == TileGroupState.ACTIVE || tilePack.getGroupState("river") == TileGroupState.ACTIVE;
                if (game.hasCapability(RiverCapability.class) && tile.getRiver() == null && riverActive) {
                    game.getCapability(RiverCapability.class).activateNonRiverTiles();
                    tilePack.setGroupState("river-start", TileGroupState.RETIRED);
                    game.setCurrentTile(tile); //recovery from lake placement
                }
                nextTile(tile);
                return true;
            }
View Full Code Here

TOP

Related Classes of com.jcloisterzone.board.TilePack

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.