changes to support multiplayer

This commit is contained in:
BetaSteward 2010-05-17 03:19:13 +00:00
parent 7d27c06329
commit 313ff97119
5 changed files with 123 additions and 13 deletions

View file

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