Package mage.cards

Examples of mage.cards.ExpansionSet


    int setEnd = line.indexOf(']');
    String setCode = line.substring(setStart, setEnd).trim();
    String lineName = line.substring(setEnd + 1).trim();
    try {
      int num = Integer.parseInt(lineNum);
      ExpansionSet set = Sets.findSet(setCode);
      String cardName;
      if (set != null) {
        cardName = set.findCard(lineName);
      }
      else {
        cardName = Sets.findCard(lineName);
      }
      if (cardName == null)
View Full Code Here


        if (sets.size() == 1) {
            if (!this.limited) {
                this.limited = true;
                cards.clear();
            }
            ExpansionSet expansionSet = Sets.getInstance().get(sets.get(0));
            if (expansionSet != null) {
                List<Card> booster = expansionSet.createBooster();
                cards.addAll(booster);
                filterCards();
            }
        } else {
            JOptionPane.showMessageDialog(null, "An expansion set must be selected to be able to generate a booster.");
View Full Code Here

TOP

Related Classes of mage.cards.ExpansionSet

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.