mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -26,7 +26,7 @@ import forge.item.CardPrinted;
|
||||
import forge.item.ItemPool;
|
||||
|
||||
/**
|
||||
* Deck section
|
||||
* Deck section.
|
||||
*
|
||||
*/
|
||||
public class DeckSection extends ItemPool<CardPrinted> {
|
||||
|
||||
@@ -30,7 +30,11 @@ public class DeckSet extends DeckBase implements IHasName {
|
||||
}
|
||||
public final void setHumanDeck(Deck humanDeck) { this.humanDeck = humanDeck; }
|
||||
|
||||
public final void addAiDeck(Deck aiDeck) { if ( aiDeck != null ) this.aiDecks.add(aiDeck); }
|
||||
public final void addAiDeck(Deck aiDeck) {
|
||||
if (aiDeck != null) {
|
||||
this.aiDecks.add(aiDeck);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemPoolView<CardPrinted> getCardPool() {
|
||||
@@ -38,9 +42,10 @@ public class DeckSet extends DeckBase implements IHasName {
|
||||
}
|
||||
|
||||
public void addAiDecks(Deck[] computer) {
|
||||
for(int i = 0; i < computer.length; i++)
|
||||
for (int i = 0; i < computer.length; i++) {
|
||||
aiDecks.add(computer[i]);
|
||||
}
|
||||
}
|
||||
/* (non-Javadoc)
|
||||
* @see forge.deck.DeckBase#newInstance(java.lang.String)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user