foul-magics/Mage.Common/src/main/java/mage/view/LookedAtView.java
Oleg Agafonov 66d0ef4b35 Refactor cards and token images code (#10139):
- removed outdated token store format (example: BIRD.W.BIRD.CREATURE.1.1.full.jpg)
 - removed duplicated cache images code;
 - removed duplicated set code fields;
 - removed outdated auto-generated thumb files (also all *.thumb.zip files will be deleted on startup);
2023-03-24 06:44:11 +04:00

34 lines
770 B
Java

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