mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
remove some debug code in GuiDisplay4.java
This commit is contained in:
@@ -1507,7 +1507,7 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
|
|||||||
|
|
||||||
Iterable<Card> myIterable = YieldUtils.toIterable(c);
|
Iterable<Card> myIterable = YieldUtils.toIterable(c);
|
||||||
ArrayList<Card> choices = YieldUtils.toArrayList(myIterable);
|
ArrayList<Card> choices = YieldUtils.toArrayList(myIterable);
|
||||||
System.out.println("immediately after: "+choices);
|
//System.out.println("immediately after: "+choices);
|
||||||
//Iterator<Card> iter = myIterable.iterator();
|
//Iterator<Card> iter = myIterable.iterator();
|
||||||
|
|
||||||
ArrayList<Card> choices2 = new ArrayList<Card>();
|
ArrayList<Card> choices2 = new ArrayList<Card>();
|
||||||
@@ -1518,18 +1518,18 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
|
|||||||
else {
|
else {
|
||||||
for(int i = 0; i < choices.size(); i++) {
|
for(int i = 0; i < choices.size(); i++) {
|
||||||
Card crd = choices.get(i);
|
Card crd = choices.get(i);
|
||||||
System.out.println(crd+": "+crd.isFaceDown());
|
//System.out.println(crd+": "+crd.isFaceDown());
|
||||||
if(crd.isFaceDown()) {
|
if(crd.isFaceDown()) {
|
||||||
Card faceDown = new Card();
|
Card faceDown = new Card();
|
||||||
faceDown.setName("Face Down");
|
faceDown.setName("Face Down");
|
||||||
choices2.add(faceDown);
|
choices2.add(faceDown);
|
||||||
System.out.println("Added: "+faceDown);
|
//System.out.println("Added: "+faceDown);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
choices2.add(crd);
|
choices2.add(crd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println("Face down cards replaced: "+choices2);
|
//System.out.println("Face down cards replaced: "+choices2);
|
||||||
Card choice = (Card) GuiUtils.getChoiceOptional(title, choices2.toArray());
|
Card choice = (Card) GuiUtils.getChoiceOptional(title, choices2.toArray());
|
||||||
if (choice != null) doAction(choice);
|
if (choice != null) doAction(choice);
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user