Package mage.cards.decks

Examples of mage.cards.decks.DeckValidator


    private DeckValidatorFactory() {}

    public DeckValidator createDeckValidator(String deckType) {

        DeckValidator validator;
        Constructor<?> con;
        try {
            con = deckTypes.get(deckType).getConstructor(new Class[]{});
            validator = (DeckValidator)con.newInstance(new Object[] {});
        } catch (Exception ex) {
            logger.fatal("DeckValidatorFactory error", ex);
            return null;
        }
        logger.debug("Deck validator created: " + validator.getName());

        return validator;
    }
View Full Code Here

TOP

Related Classes of mage.cards.decks.DeckValidator

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.