Temporarily reverted code for reading the draft rarities from the draft folder.

This commit is contained in:
jendave
2011-08-06 05:54:59 +00:00
parent 6cf4daf60a
commit 006b5f2eaa

View File

@@ -1,20 +1,20 @@
package forge; package forge;
//import java.io.BufferedReader; import java.io.BufferedReader;
//import java.io.File; import java.io.File;
//import java.io.FileReader; import java.io.FileReader;
import java.util.ArrayList; import java.util.ArrayList;
//import forge.error.ErrorViewer; import forge.error.ErrorViewer;
//import forge.properties.ForgeProps; import forge.properties.ForgeProps;
import forge.properties.NewConstants; import forge.properties.NewConstants;
public class ReadDraftBoosterPack implements NewConstants { public class ReadDraftBoosterPack implements NewConstants {
// final private static String comment = "//"; final private static String comment = "//";
private CardList commonCreatureList = new CardList(); private CardList commonCreatureList = new CardList();
private CardList commonNonCreatureList = new CardList(); private CardList commonNonCreatureList = new CardList();
@@ -165,22 +165,22 @@ public class ReadDraftBoosterPack implements NewConstants {
}//getRandomCard() }//getRandomCard()
private void setup() { private void setup() {
//commonList = readFile(ForgeProps.getFile(DRAFT.COMMON)); commonList = readFile(ForgeProps.getFile(DRAFT.COMMON));
//uncommonList = readFile(ForgeProps.getFile(DRAFT.UNCOMMON)); uncommonList = readFile(ForgeProps.getFile(DRAFT.UNCOMMON));
//rareList = readFile(ForgeProps.getFile(DRAFT.RARE)); rareList = readFile(ForgeProps.getFile(DRAFT.RARE));
//System.out.println("commonList size:" + commonList.size()); System.out.println("commonList size:" + commonList.size());
//System.out.println("ucommonList size:" + uncommonList.size()); System.out.println("ucommonList size:" + uncommonList.size());
//System.out.println("rareList size:" + rareList.size()); System.out.println("rareList size:" + rareList.size());
//commonCreatureList = commonList.getType("Creature"); commonCreatureList = commonList.getType("Creature");
//commonNonCreatureList = commonList.filter(new CardListFilter() { commonNonCreatureList = commonList.filter(new CardListFilter() {
// public boolean addCard(Card c) { public boolean addCard(Card c) {
// return !c.isCreature(); return !c.isCreature();
// } }
//}); });
CardList AllCards = AllZone.CardFactory.getAllCards(); /* CardList AllCards = AllZone.CardFactory.getAllCards();
for (int i=0; i<AllCards.size(); i++) for (int i=0; i<AllCards.size(); i++)
{ {
@@ -208,11 +208,11 @@ public class ReadDraftBoosterPack implements NewConstants {
rareList.add(aCard); rareList.add(aCard);
} }
} }*/
}//setup() }//setup()
/* private CardList readFile(File file) { private CardList readFile(File file) {
CardList cardList = new CardList(); CardList cardList = new CardList();
BufferedReader in; BufferedReader in;
@@ -237,7 +237,7 @@ public class ReadDraftBoosterPack implements NewConstants {
} }
return cardList; return cardList;
}//readFile()*/ }//readFile()
} }