Package mage.game.draft

Examples of mage.game.draft.DraftCube$CardIdentity


    protected void openBoosters() {
        for (TournamentPlayer player: this.players.values()) {
            player.setDeck(new Deck());
            if (options.getLimitedOptions().getDraftCube() != null) {
                DraftCube cube = options.getLimitedOptions().getDraftCube();
                for (int i = 0; i < options.getLimitedOptions().getNumberBoosters(); i++) {
                    player.getDeck().getSideboard().addAll(cube.createBooster());
                }
            } else {
                for (ExpansionSet set: sets) {
                    player.getDeck().getSideboard().addAll(set.createBooster());
                }
View Full Code Here


    private CubeFactory() {}

    public DraftCube createDraftCube(String draftCubeName) {

        DraftCube draftCube;
        Constructor<?> con;
        try {
            con = draftCubes.get(draftCubeName).getConstructor(new Class[]{});
            draftCube = (DraftCube)con.newInstance(new Object[] {});
        } catch (Exception ex) {
            logger.fatal("CubeFactory error", ex);
            return null;
        }
        logger.debug("Draft cube created: " + draftCube.getName());

        return draftCube;
    }
View Full Code Here

TOP

Related Classes of mage.game.draft.DraftCube$CardIdentity

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.