mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Token refactor
This commit is contained in:
parent
a532368b84
commit
e73e7d8600
20 changed files with 1449 additions and 744 deletions
|
|
@ -125,6 +125,7 @@ public class CardView extends SimpleCardView {
|
|||
protected boolean isChoosable;
|
||||
protected boolean selected;
|
||||
protected boolean canAttack;
|
||||
protected boolean inViewerOnly;
|
||||
|
||||
public CardView(Card card) {
|
||||
this(card, null, false);
|
||||
|
|
@ -213,6 +214,7 @@ public class CardView extends SimpleCardView {
|
|||
this.isChoosable = cardView.isChoosable;
|
||||
this.selected = cardView.selected;
|
||||
this.canAttack = cardView.canAttack;
|
||||
this.inViewerOnly = cardView.inViewerOnly;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1009,4 +1011,12 @@ public class CardView extends SimpleCardView {
|
|||
public boolean isTribal() {
|
||||
return cardTypes.contains(CardType.TRIBAL);
|
||||
}
|
||||
|
||||
public void setInViewerOnly(boolean inViewerOnly) {
|
||||
this.inViewerOnly = inViewerOnly;
|
||||
}
|
||||
|
||||
public boolean inViewerOnly() {
|
||||
return inViewerOnly;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue