Improved the handling of image files for handling also different images of non basic lands (e.g. Fallen Empires).

This commit is contained in:
LevelX2 2012-11-25 20:09:13 +01:00
parent efe5611c76
commit f72e1a1038
11 changed files with 51 additions and 33 deletions

View file

@ -44,7 +44,7 @@ public class SimpleCardsView extends LinkedHashMap<UUID, SimpleCardView> {
public SimpleCardsView(Collection<Card> cards) {
for (Card card: cards) {
this.put(card.getId(), new SimpleCardView(card.getId(), card.getExpansionSetCode(), card.getCardNumber(), card.isFaceDown()));
this.put(card.getId(), new SimpleCardView(card.getId(), card.getExpansionSetCode(), card.getCardNumber(), card.isFaceDown(), Character.isDigit(card.getClass().getName().charAt(card.getClass().getName().length()-1))));
}
}