Displaying tooltips and green arrows for paired creatures

This commit is contained in:
magenoxx 2012-05-17 11:59:47 +04:00
parent 36c2b240fb
commit 1bf0e216de
4 changed files with 37 additions and 42 deletions

View file

@ -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;
}
}