mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
CardPool renamed to ItemPool, moved to forge.item, dependencies updated
This commit is contained in:
@@ -2,10 +2,10 @@ package forge;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import forge.card.CardPool;
|
||||
import forge.card.CardPrinted;
|
||||
import forge.deck.Deck;
|
||||
import forge.game.limited.BoosterDraftAI;
|
||||
import forge.item.CardPrinted;
|
||||
import forge.item.ItemPool;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class BoosterDraftAITest {
|
||||
public void runTest(BoosterDraftAI ai) {
|
||||
ReadDraftBoosterPack booster = new ReadDraftBoosterPack();
|
||||
for (int outer = 0; outer < 1; outer++) {
|
||||
CardPool<CardPrinted> allBooster = new CardPool<CardPrinted>();
|
||||
ItemPool<CardPrinted> allBooster = new ItemPool<CardPrinted>();
|
||||
for (int i = 0; i < 21; i++)
|
||||
allBooster.addAll(booster.getBoosterPack());
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package forge;
|
||||
|
||||
import forge.card.CardPoolView;
|
||||
import forge.card.CardPrinted;
|
||||
import forge.deck.Deck;
|
||||
|
||||
import forge.game.limited.BoosterDraft;
|
||||
import forge.item.CardPrinted;
|
||||
import forge.item.ItemPoolView;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
@@ -32,7 +33,7 @@ public class BoosterDraftTest implements BoosterDraft {
|
||||
*
|
||||
* @return a {@link forge.CardList} object.
|
||||
*/
|
||||
public CardPoolView<CardPrinted> nextChoice() {
|
||||
public ItemPoolView<CardPrinted> nextChoice() {
|
||||
n--;
|
||||
ReadDraftBoosterPack pack = new ReadDraftBoosterPack();
|
||||
return pack.getBoosterPack();
|
||||
|
||||
@@ -2,10 +2,10 @@ package forge;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import forge.card.CardPrinted;
|
||||
import forge.card.CardPoolView;
|
||||
|
||||
import forge.game.limited.BoosterDraft_1;
|
||||
import forge.item.CardPrinted;
|
||||
import forge.item.ItemPoolView;
|
||||
|
||||
|
||||
/**
|
||||
@@ -21,7 +21,7 @@ public class BoosterDraft_1Test {
|
||||
public void BoosterDraft_1Test1() throws Exception {
|
||||
BoosterDraft_1 draft = new BoosterDraft_1();
|
||||
while (draft.hasNextChoice()) {
|
||||
CardPoolView<CardPrinted> list = draft.nextChoice();
|
||||
ItemPoolView<CardPrinted> list = draft.nextChoice();
|
||||
System.out.println(list.countAll());
|
||||
draft.setChoice(list.toFlatList().get(0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user