forked from External/mage
Reworking card types in preparation for implementing Grist, the Hunger Tide (#7899)
Co-authored-by: Oleg Agafonov <jaydi85@gmail.com>
This commit is contained in:
parent
07e1dff10c
commit
572104b8fc
1159 changed files with 2704 additions and 2203 deletions
|
|
@ -59,7 +59,7 @@ public class CardView extends SimpleCardView {
|
|||
@Expose
|
||||
protected String loyalty = "";
|
||||
protected String startingLoyalty;
|
||||
protected ArrayList<CardType> cardTypes;
|
||||
protected List<CardType> cardTypes;
|
||||
protected SubTypes subTypes;
|
||||
protected Set<SuperType> superTypes;
|
||||
protected ObjectColor color;
|
||||
|
|
@ -246,7 +246,7 @@ public class CardView extends SimpleCardView {
|
|||
for (SuperType superType : card.getSuperType()) {
|
||||
sbType.append(superType).append(' ');
|
||||
}
|
||||
for (CardType cardType : card.getCardType()) {
|
||||
for (CardType cardType : card.getCardType(game)) {
|
||||
sbType.append(cardType.toString()).append(' ');
|
||||
}
|
||||
if (!card.getSubtype(game).isEmpty()) {
|
||||
|
|
@ -312,7 +312,7 @@ public class CardView extends SimpleCardView {
|
|||
} else if (card instanceof Permanent) {
|
||||
this.power = Integer.toString(card.getPower().getValue());
|
||||
this.toughness = Integer.toString(card.getToughness().getValue());
|
||||
this.cardTypes = card.getCardType();
|
||||
this.cardTypes = card.getCardType(game);
|
||||
this.faceDown = card.isFaceDown(game);
|
||||
} else {
|
||||
// this.hideInfo = true;
|
||||
|
|
@ -434,7 +434,7 @@ public class CardView extends SimpleCardView {
|
|||
}
|
||||
this.power = Integer.toString(card.getPower().getValue());
|
||||
this.toughness = Integer.toString(card.getToughness().getValue());
|
||||
this.cardTypes = card.getCardType();
|
||||
this.cardTypes = card.getCardType(game);
|
||||
this.subTypes = card.getSubtype(game);
|
||||
this.superTypes = card.getSuperType();
|
||||
this.color = card.getColor(game);
|
||||
|
|
@ -561,7 +561,7 @@ public class CardView extends SimpleCardView {
|
|||
this.toughness = object.getToughness().toString();
|
||||
this.loyalty = "";
|
||||
}
|
||||
this.cardTypes = object.getCardType();
|
||||
this.cardTypes = object.getCardType(game);
|
||||
this.subTypes = object.getSubtype(game);
|
||||
this.superTypes = object.getSuperType();
|
||||
this.color = object.getColor(game);
|
||||
|
|
@ -749,7 +749,7 @@ public class CardView extends SimpleCardView {
|
|||
this.toughness = token.getToughness().toString();
|
||||
this.loyalty = "";
|
||||
this.startingLoyalty = "";
|
||||
this.cardTypes = token.getCardType();
|
||||
this.cardTypes = token.getCardType(game);
|
||||
this.subTypes = token.getSubtype(game);
|
||||
this.superTypes = token.getSuperType();
|
||||
this.color = token.getColor(game);
|
||||
|
|
@ -842,7 +842,7 @@ public class CardView extends SimpleCardView {
|
|||
return startingLoyalty;
|
||||
}
|
||||
|
||||
public ArrayList<CardType> getCardTypes() {
|
||||
public List<CardType> getCardTypes() {
|
||||
return cardTypes;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue