This commit is contained in:
jendave
2011-08-06 02:37:41 +00:00
parent e0630099c5
commit e0224bd465
203 changed files with 107449 additions and 0 deletions

27
src/BoosterPack.java Normal file
View File

@@ -0,0 +1,27 @@
public class BoosterPack
{
public static CardList getBoosterPack(int number)
{
CardList all = new CardList();
for(int i = 0; i < number; i++)
all.addAll(getBoosterPack().toArray());
return all;
}
public static CardList getBoosterPack()
{
CardList all = AllZone.CardFactory.getAllCards();
CardList pack = new CardList();
for(int i = 0; i < 10; i++)
pack.add(all.get(MyRandom.random.nextInt(all.size())));
for(int i = 0; i < 5; i++)
pack.add(AllZone.CardFactory.copyCard(pack.get(i)));
return pack;
}//getBoosterPack()
}