mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Removed unused code from Sets.java
This commit is contained in:
parent
271aaab5fd
commit
0c646d60e1
1 changed files with 0 additions and 14 deletions
|
@ -56,7 +56,6 @@ public class Sets extends HashMap<String, ExpansionSet> {
|
|||
private static Set<String> nonLandNames;
|
||||
private static Set<String> creatureTypes;
|
||||
private static List<Card> cards;
|
||||
private static Map<String, Card> cardMap;
|
||||
protected static Random rnd = new Random();
|
||||
|
||||
private static boolean loaded;
|
||||
|
@ -69,7 +68,6 @@ public class Sets extends HashMap<String, ExpansionSet> {
|
|||
names = new TreeSet<String>();
|
||||
nonLandNames = new TreeSet<String>();
|
||||
cards = new ArrayList<Card>();
|
||||
cardMap = new HashMap<String, Card>();
|
||||
creatureTypes = new TreeSet<String>();
|
||||
this.addSet(AlaraReborn.getInstance());
|
||||
this.addSet(Alliances.getInstance());
|
||||
|
@ -264,18 +262,6 @@ public class Sets extends HashMap<String, ExpansionSet> {
|
|||
return symbol.equals("W") || symbol.equals("G") || symbol.equals("U") || symbol.equals("B") || symbol.equals("R");
|
||||
}
|
||||
|
||||
public static Deck generateDeck() {
|
||||
List<ColoredManaSymbol> allowedColors = new ArrayList<ColoredManaSymbol>();
|
||||
int numColors = rnd.nextInt(2) + 1;
|
||||
int cardPoolSize = 60;
|
||||
if (numColors > 2) {
|
||||
cardPoolSize += 20;
|
||||
}
|
||||
Deck deck = new Deck();
|
||||
|
||||
return deck;
|
||||
}
|
||||
|
||||
public static Card findCard(String name) {
|
||||
for (ExpansionSet set: fINSTANCE.values()) {
|
||||
Card card = set.findCard(name);
|
||||
|
|
Loading…
Reference in a new issue