mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 14:02:05 -08:00
[UI] Displaying creatures that can attack
This commit is contained in:
parent
a8476d3613
commit
65a0c9fc79
15 changed files with 132 additions and 120 deletions
|
|
@ -77,4 +77,11 @@ public final class Constants {
|
|||
DISCONNECTED, CONNECTED, CONNECTING, DISCONNECTING, SERVER_UNAVAILABLE, SERVER_STARTING;
|
||||
}
|
||||
|
||||
public enum Option {
|
||||
;
|
||||
|
||||
public static final String POSSIBLE_ATTACKERS = "possibleAttackers";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ public class CardView extends SimpleCardView {
|
|||
|
||||
protected boolean isPlayable;
|
||||
protected boolean isChoosable;
|
||||
protected boolean canAttack;
|
||||
|
||||
public CardView(Card card) {
|
||||
this(card, null, false);
|
||||
|
|
@ -685,4 +686,12 @@ public class CardView extends SimpleCardView {
|
|||
public boolean isChoosable() {
|
||||
return isChoosable;
|
||||
}
|
||||
|
||||
public boolean isCanAttack() {
|
||||
return canAttack;
|
||||
}
|
||||
|
||||
public void setCanAttack(boolean canAttack) {
|
||||
this.canAttack = canAttack;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,12 @@ public class GameClientMessage implements Serializable {
|
|||
this.message = message;
|
||||
}
|
||||
|
||||
public GameClientMessage(GameView gameView, String message, Map<String, Serializable> options) {
|
||||
this.gameView = gameView;
|
||||
this.message = message;
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
private GameClientMessage(GameView gameView, String question, CardsView cardView, Set<UUID> targets, boolean required) {
|
||||
this.gameView = gameView;
|
||||
this.message = question;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue