mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08: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 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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue