{
Date today = new Date();
mBoosterBaseName = "tmp"+File.separator+"booster_" + today.getTime()+"_";
}
CardHeap heap;
CardDeck deck;
if (mPlayer != null)
{
heap = new CardHeap(playerHeap.getCards(), mBoosterBaseName+"Human_Heap");
heap.save();
if (!pdeckDone)
{
pdeckDone = true;
deck = new CardDeck(playerHeap, mBoosterBaseName+"Human_", "", mBoosterBaseName+"Human_", true);
deck.save();
playerDeck = deck.getCardList();
}
}
if (aiDeckCreationDone) return;
aiDeckCreationDone = true;
for (int i = 0; i < mPlayers.size(); i++)
{
BoosterPlayer p = mPlayers.elementAt(i);
p.mDeckBase = mBoosterBaseName;
heap = new CardHeap(p.heap.getCards(), mBoosterBaseName+"AI"+(i+1)+"_Heap");
heap.save();
CardList deckList = p.cplayer.buildBoosterDeck(p.heap);
deck = new CardDeck(deckList, mBoosterBaseName+"AI"+(i+1)+"_", "", mBoosterBaseName+"AI"+(i+1)+"_", true);
deck.save();