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

33 lines
671 B
Java

package mage.view;
import java.io.Serializable;
import mage.cards.Card;
import mage.cards.Cards;
import mage.game.Game;
/**
* @author BetaSteward_at_googlemail.com
*/
public class RevealedView implements Serializable {
private final String name;
private final CardsView cards = new CardsView();
public RevealedView(String name, Cards cards, Game game) {
this.name = name;
for (Card card : cards.getCards(game)) {
this.cards.put(card.getId(), new CardView(card, game, card.getId()));
}
}
public String getName() {
return name;
}
public CardsView getCards() {
return cards;
}
}