This commit is contained in:
BetaSteward 2010-05-02 15:12:02 +00:00
parent cefc8a5963
commit e78bbcd4fe

View file

@ -57,6 +57,7 @@ public class GameView implements Serializable {
private String activePlayerName = ""; private String activePlayerName = "";
private String priorityPlayerName = ""; private String priorityPlayerName = "";
private int turn; private int turn;
private boolean special = false;
public GameView(GameState game) { public GameView(GameState game) {
for (Player player: game.getPlayers().values()) { for (Player player: game.getPlayers().values()) {
@ -83,6 +84,7 @@ public class GameView implements Serializable {
for (CombatGroup combatGroup: game.getCombat().getGroups()) { for (CombatGroup combatGroup: game.getCombat().getGroups()) {
combat.add(new CombatGroupView(combatGroup, game)); combat.add(new CombatGroupView(combatGroup, game));
} }
this.special = game.getSpecialActions().getControlledBy(game.getPriorityPlayerId()).size() > 0;
} }
public List<PlayerView> getPlayers() { public List<PlayerView> getPlayers() {
@ -128,4 +130,8 @@ public class GameView implements Serializable {
public String getPriorityPlayerName() { public String getPriorityPlayerName() {
return priorityPlayerName; return priorityPlayerName;
} }
public boolean getSpecial() {
return special;
}
} }