forked from External/mage
changes to support multiplayer
This commit is contained in:
parent
7d27c06329
commit
313ff97119
5 changed files with 123 additions and 13 deletions
|
|
@ -84,8 +84,12 @@ public class GameView implements Serializable {
|
|||
this.turn = game.getTurnNum();
|
||||
if (game.getActivePlayerId() != null)
|
||||
this.activePlayerName = game.getPlayer(game.getActivePlayerId()).getName();
|
||||
else
|
||||
this.activePlayerName = "";
|
||||
if (game.getPriorityPlayerId() != null)
|
||||
this.priorityPlayerName = game.getPlayer(game.getPriorityPlayerId()).getName();
|
||||
else
|
||||
this.priorityPlayerName = "";
|
||||
for (CombatGroup combatGroup: game.getCombat().getGroups()) {
|
||||
combat.add(new CombatGroupView(combatGroup, game));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue