Package com.jcloisterzone.board

Examples of com.jcloisterzone.board.TilePackFactory


        createPlayers();
        initializePlayersMeeples();
    }

    protected void prepareTilePack() {
        TilePackFactory tilePackFactory = new TilePackFactory();
        tilePackFactory.setGame(game);
        tilePackFactory.setConfig(game.getConfig());
        tilePackFactory.setExpansions(game.getExpansions());
        game.setTilePack(tilePackFactory.createTilePack());
        getTilePack().setGroupState("default", TileGroupState.ACTIVE);
        getTilePack().setGroupState("count", TileGroupState.ACTIVE);
        getTilePack().setGroupState("wind-rose-initial", TileGroupState.ACTIVE);
        game.begin();
    }
View Full Code Here


        expansionPanel = new JPanel();
        expansionPanel.setBorder(new TitledBorder(null, _("Expansions"),
                TitledBorder.LEADING, TitledBorder.TOP, null, null));

        TilePackFactory tilePackFactory = new TilePackFactory();
        tilePackFactory.setConfig(client.getConfig());

        expansionPanel.setLayout(new MigLayout("", "[][right]", "[]"));
        for (Expansion exp : Expansion.values()) {
            if (!exp.isImplemented()) continue;
            createExpansionLine(exp, tilePackFactory.getExpansionSize(exp));
        }
        add(expansionPanel, "cell 1 1,grow");

        rulesPanel = new JPanel();
        rulesPanel.setBorder(new TitledBorder(null, _("Rules"),
View Full Code Here

TOP

Related Classes of com.jcloisterzone.board.TilePackFactory

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.