cardNumber in CardView (copied from Mage/Card)

This commit is contained in:
magenoxx 2010-11-05 14:10:09 +00:00
parent d9686a0a9b
commit 278e6e52a5

View file

@ -64,6 +64,7 @@ public class CardView implements Serializable {
protected String art; protected String art;
protected Rarity rarity; protected Rarity rarity;
protected String expansionSetCode; protected String expansionSetCode;
protected int cardNumber;
public List<UUID> targets; public List<UUID> targets;
@ -95,6 +96,7 @@ public class CardView implements Serializable {
this.rarity = card.getRarity(); this.rarity = card.getRarity();
this.expansionSetCode = card.getExpansionSetCode(); this.expansionSetCode = card.getExpansionSetCode();
} }
this.cardNumber = card.getCardNumber();
if (card instanceof Spell) { if (card instanceof Spell) {
Spell<?> spell = (Spell<?>)card; Spell<?> spell = (Spell<?>)card;
@ -204,6 +206,10 @@ public class CardView implements Serializable {
return id; return id;
} }
public int getCardNumber() {
return cardNumber;
}
/** /**
* Returns UUIDs for targets. * Returns UUIDs for targets.
* Can be null if there is no target selected. * Can be null if there is no target selected.