some small tweaks for CardList operations in some Booster draft files

This commit is contained in:
jendave
2011-08-07 01:49:36 +00:00
parent 7e301a5987
commit 83f00b6fb5
3 changed files with 4 additions and 4 deletions

View File

@@ -249,8 +249,8 @@ class BoosterDraft_1 implements BoosterDraft
if (packNum < packs.size()) { if (packNum < packs.size()) {
for(int i = 0; i < list.length; i++) for(int i = 0; i < list.length; i++)
//list[i].addAll(pack.getBoosterPack().toArray()); //list[i].addAll(pack.getBoosterPack());
list[i].addAll(packs.get(packNum).getBoosterPack().toArray()); list[i].addAll(packs.get(packNum).getBoosterPack());
} }
packNum++; packNum++;

View File

@@ -63,7 +63,7 @@ public class BoosterDraftAI
{ {
CardList allBooster = new CardList(); CardList allBooster = new CardList();
for(int i = 0; i < 21; i++) for(int i = 0; i < 21; i++)
allBooster.addAll(booster.getBoosterPack().toArray()); allBooster.addAll(booster.getBoosterPack());
int stop = allBooster.size(); int stop = allBooster.size();
for(int i = 0; i < stop; i++) for(int i = 0; i < stop; i++)

View File

@@ -7,7 +7,7 @@ public class BoosterPack
{ {
CardList all = new CardList(); CardList all = new CardList();
for(int i = 0; i < number; i++) for(int i = 0; i < number; i++)
all.addAll(getBoosterPack().toArray()); all.addAll(getBoosterPack());
return all; return all;
} }