- CheckStyle.

This commit is contained in:
Chris
2012-02-18 21:41:16 +00:00
parent efe6adc243
commit aeb44f00f0
3 changed files with 22 additions and 17 deletions

View File

@@ -26,7 +26,7 @@ import forge.item.CardPrinted;
import forge.item.ItemPool; import forge.item.ItemPool;
/** /**
* Deck section * Deck section.
* *
*/ */
public class DeckSection extends ItemPool<CardPrinted> { public class DeckSection extends ItemPool<CardPrinted> {

View File

@@ -30,7 +30,11 @@ public class DeckSet extends DeckBase implements IHasName {
} }
public final void setHumanDeck(Deck humanDeck) { this.humanDeck = humanDeck; } 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 @Override
public ItemPoolView<CardPrinted> getCardPool() { public ItemPoolView<CardPrinted> getCardPool() {
@@ -38,9 +42,10 @@ public class DeckSet extends DeckBase implements IHasName {
} }
public void addAiDecks(Deck[] computer) { 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]); aiDecks.add(computer[i]);
} }
}
/* (non-Javadoc) /* (non-Javadoc)
* @see forge.deck.DeckBase#newInstance(java.lang.String) * @see forge.deck.DeckBase#newInstance(java.lang.String)
*/ */