mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
...
This commit is contained in:
parent
cefc8a5963
commit
e78bbcd4fe
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue