mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
cardNumber in CardView (copied from Mage/Card)
This commit is contained in:
parent
d9686a0a9b
commit
278e6e52a5
1 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,7 @@ public class CardView implements Serializable {
|
|||
protected String art;
|
||||
protected Rarity rarity;
|
||||
protected String expansionSetCode;
|
||||
protected int cardNumber;
|
||||
|
||||
public List<UUID> targets;
|
||||
|
||||
|
@ -95,6 +96,7 @@ public class CardView implements Serializable {
|
|||
this.rarity = card.getRarity();
|
||||
this.expansionSetCode = card.getExpansionSetCode();
|
||||
}
|
||||
this.cardNumber = card.getCardNumber();
|
||||
|
||||
if (card instanceof Spell) {
|
||||
Spell<?> spell = (Spell<?>)card;
|
||||
|
@ -204,6 +206,10 @@ public class CardView implements Serializable {
|
|||
return id;
|
||||
}
|
||||
|
||||
public int getCardNumber() {
|
||||
return cardNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns UUIDs for targets.
|
||||
* Can be null if there is no target selected.
|
||||
|
|
Loading…
Reference in a new issue