mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
[minor] formatting
This commit is contained in:
parent
6fe49fff2d
commit
6aee547572
3 changed files with 26 additions and 16 deletions
|
|
@ -403,7 +403,7 @@ public abstract class CardImpl<T extends CardImpl<T>> extends MageObjectImpl<T>
|
|||
game.getPlayer(ownerId).removeFromLibrary(this, game);
|
||||
break;
|
||||
default:
|
||||
//logger.warning("moveToExile, not fully implemented: from="+fromZone);
|
||||
logger.warn("moveToExile, not fully implemented: from="+fromZone);
|
||||
}
|
||||
game.rememberLKI(objectId, event.getFromZone(), this);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,12 +28,17 @@
|
|||
|
||||
package mage.game;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.UUID;
|
||||
import mage.cards.Card;
|
||||
import mage.util.Copyable;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.*;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -75,7 +80,7 @@ public class Exile implements Serializable, Copyable<Exile> {
|
|||
return createZone(id, name + " - Exile", false);
|
||||
}
|
||||
|
||||
public ExileZone createZone(UUID id, String name, boolean hidden) {
|
||||
private ExileZone createZone(UUID id, String name, boolean hidden) {
|
||||
if (!exileZones.containsKey(id)) {
|
||||
ExileZone exile = new ExileZone(id, name, hidden);
|
||||
exileZones.put(id, exile);
|
||||
|
|
@ -89,8 +94,9 @@ public class Exile implements Serializable, Copyable<Exile> {
|
|||
|
||||
public Card getCard(UUID cardId, Game game) {
|
||||
for (ExileZone exile: exileZones.values()) {
|
||||
if (exile.contains(cardId))
|
||||
if (exile.contains(cardId)) {
|
||||
return game.getCard(cardId);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
@ -105,8 +111,9 @@ public class Exile implements Serializable, Copyable<Exile> {
|
|||
|
||||
public void removeCard(Card card, Game game) {
|
||||
for (ExileZone exile: exileZones.values()) {
|
||||
if (exile.contains(card.getId()))
|
||||
if (exile.contains(card.getId())) {
|
||||
exile.remove(card);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue