r.subject = entity.getId();
r.addDesc(entity);
r.add(entity.getInitiative().toString());
addReport(r);
} else {
Player player = getPlayer(t.getPlayerNum());
if (null != player) {
r = new Report(1050, Report.PUBLIC);
r.add(player.getName());
addReport(r);
}
}
}
} else {
for (Enumeration<Team> i = game.getTeams(); i.hasMoreElements();) {
final Team team = i.nextElement();
// If there is only one player, list them as the 'team', and
// use the team iniative
if (team.getSize() == 1) {
final Player player = team.getPlayers().nextElement();
r = new Report(1015, Report.PUBLIC);
r.add(player.getName());
r.add(team.getInitiative().toString());
addReport(r);
} else {
// Multiple players. List the team, then break it down.
r = new Report(1015, Report.PUBLIC);
r.add(Player.teamNames[team.getId()]);
r.add(team.getInitiative().toString());
addReport(r);
for (Enumeration<Player> j = team.getPlayers(); j.hasMoreElements();) {
final Player player = j.nextElement();
r = new Report(1015, Report.PUBLIC);
r.indent();
r.add(player.getName());
r.add(player.getInitiative().toString());
addReport(r);
}
}
}
if (!doBlind()) {
// The turn order is different in movement phase
// if a player has any "even" moving units.
r = new Report(1020, Report.PUBLIC);
boolean hasEven = false;
for (Enumeration<GameTurn> i = game.getTurns(); i.hasMoreElements();) {
GameTurn turn = i.nextElement();
Player player = getPlayer(turn.getPlayerNum());
if (null != player) {
r.add(player.getName());
if (player.getEvenTurns() > 0) {
hasEven = true;
}
}
}
r.newlines = 2;