mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
Displaying tooltips and green arrows for paired creatures
This commit is contained in:
parent
36c2b240fb
commit
1bf0e216de
4 changed files with 37 additions and 42 deletions
|
|
@ -71,7 +71,9 @@ public class CardView extends SimpleCardView {
|
|||
protected CardView secondCardFace;
|
||||
protected boolean transformed;
|
||||
|
||||
public List<UUID> targets;
|
||||
protected List<UUID> targets;
|
||||
|
||||
protected UUID pairedCard;
|
||||
|
||||
public CardView(Card card, UUID cardId) {
|
||||
this(card);
|
||||
|
|
@ -93,6 +95,7 @@ public class CardView extends SimpleCardView {
|
|||
this.power = Integer.toString(card.getPower().getValue());
|
||||
this.toughness = Integer.toString(card.getToughness().getValue());
|
||||
this.loyalty = Integer.toString(((Permanent) card).getCounters().getCount(CounterType.LOYALTY));
|
||||
this.pairedCard = ((Permanent)card).getPairedCard();
|
||||
} else {
|
||||
this.power = card.getPower().toString();
|
||||
this.toughness = card.getToughness().toString();
|
||||
|
|
@ -356,4 +359,8 @@ public class CardView extends SimpleCardView {
|
|||
public boolean isTransformed() {
|
||||
return this.transformed;
|
||||
}
|
||||
|
||||
public UUID getPairedCard() {
|
||||
return pairedCard;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue