foul-magics/Mage.Common/src/main/java/mage/view/ExileView.java
2018-06-02 17:59:49 +02:00

36 lines
712 B
Java

package mage.view;
import java.util.UUID;
import mage.cards.Card;
import mage.game.ExileZone;
import mage.game.Game;
/**
*
* @author BetaSteward_at_googlemail.com
*/
public class ExileView extends CardsView {
private static final long serialVersionUID = 1L;
private final String name;
private final UUID id;
public ExileView(ExileZone exileZone, Game game) {
this.name = exileZone.getName();
this.id = exileZone.getId();
for (Card card: exileZone.getCards(game)) {
this.put(card.getId(), new CardView(card, game, false));
}
}
public String getName() {
return name;
}
public UUID getId() {
return id;
}
}