forked from External/mage
Face down changes: * GUI: added visible face down type and real card name for controller/owner (opponent can see it after game ends); * GUI: added day/night button to view real card for controller/owner (opponent can see it after game ends); * game: fixed that faced-down card can render symbols, abilities and other hidden data from a real card; * images: added image support for normal faced-down cards; * images: added image support for morph and megamorph faced-down cards; * images: added image support for foretell faced-down cards; Other changes: * images: fixed missing tokens from DDD set; * images: no more client restart to apply newly downloaded images or render settings; * images: improved backface image quality (use main menu -> symbols to download it);
33 lines
657 B
Java
33 lines
657 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));
|
|
}
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public CardsView getCards() {
|
|
return cards;
|
|
}
|
|
}
|