forked from External/mage
added sorting and counts to deck editor
This commit is contained in:
parent
f36254445a
commit
d217d332b6
15 changed files with 372 additions and 507 deletions
|
|
@ -64,6 +64,7 @@ public class CardView implements Serializable {
|
|||
protected List<String> superTypes;
|
||||
protected ObjectColor color;
|
||||
protected List<String> manaCost;
|
||||
protected int convertedManaCost;
|
||||
protected String art;
|
||||
protected Rarity rarity;
|
||||
protected String expansionSetCode;
|
||||
|
|
@ -91,6 +92,7 @@ public class CardView implements Serializable {
|
|||
this.superTypes = card.getSupertype();
|
||||
this.color = card.getColor();
|
||||
this.manaCost = card.getManaCost().getSymbols();
|
||||
this.convertedManaCost = card.getManaCost().convertedManaCost();
|
||||
if (card instanceof PermanentToken) {
|
||||
this.art = "";
|
||||
this.rarity = Rarity.NA;
|
||||
|
|
@ -209,6 +211,10 @@ public class CardView implements Serializable {
|
|||
return manaCost;
|
||||
}
|
||||
|
||||
public int getConvertedManaCost() {
|
||||
return convertedManaCost;
|
||||
}
|
||||
|
||||
public String getArt() {
|
||||
return art;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue