[UI] Displaying creatures that can attack

This commit is contained in:
magenoxx 2014-07-18 16:05:21 +04:00
parent a8476d3613
commit 65a0c9fc79
15 changed files with 132 additions and 120 deletions

View file

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

View file

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

View file

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