roundReport.append ( getPlayer(game.getVictoryPlayerId()).getName() );
roundReport.append( player.getName() );
    private void prepareVictoryReport() {        game.resetRoundReport();        roundReport = game.getRoundReport(); //HACK                roundReport.append("\nVictory!\n-------------------\n\n");                roundReport.append("Winner is: ");        if (game.getVictoryTeam() == Player.TEAM_NONE) {            if ( game.getVictoryPlayerId() == Player.PLAYER_NONE ) {                roundReport.append( "the Chicaco Cubs!!!\n\n" );            } else {                roundReport.append                    ( getPlayer(game.getVictoryPlayerId()).getName() );                roundReport.append("\n\n");            }        } else {            roundReport.append("TEAM #").append(game.getVictoryTeam());            roundReport.append("\n\n");        }        Enumeration survivors = game.getEntities();        if ( survivors.hasMoreElements() ) {            roundReport.append("Survivors are:\n");            while ( survivors.hasMoreElements() ) {                Entity entity = (Entity) survivors.nextElement();                                if ( !entity.isDeployed() )                  continue;                                  roundReport.append(entity.victoryReport());                roundReport.append('\n');            }        }        Enumeration undeployed = game.getEntities();        if ( undeployed.hasMoreElements() ) {            boolean wroteHeader = false;                        while ( undeployed.hasMoreElements() ) {                Entity entity = (Entity) undeployed.nextElement();                                if ( entity.isDeployed() )                  continue;                if ( !wroteHeader ) {                  roundReport.append("The following units never entered the field of battle:\n");                  wroteHeader = true;                }                                                  roundReport.append(entity.victoryReport());                roundReport.append('\n');            }        }        Enumeration retreat = game.getRetreatedEntities();        if ( retreat.hasMoreElements() ) {            roundReport.append("\nThe following units are in retreat:\n");            while ( retreat.hasMoreElements() ) {                Entity entity = (Entity) retreat.nextElement();                roundReport.append(entity.victoryReport());                roundReport.append('\n');            }        }        Enumeration graveyard = game.getGraveyardEntities();        if ( graveyard.hasMoreElements() ) {            roundReport.append("\nGraveyard contains:\n");            while ( graveyard.hasMoreElements() ) {                Entity entity = (Entity) graveyard.nextElement();                roundReport.append(entity.victoryReport());                roundReport.append('\n');            }        }        Enumeration devastated = game.getDevastatedEntities();        if ( devastated.hasMoreElements() ) {            roundReport.append("\nThe following utterly destroyed units are not available for salvage:\n");            while ( devastated.hasMoreElements() ) {                Entity entity = (Entity) devastated.nextElement();                roundReport.append(entity.victoryReport());                roundReport.append('\n');            }        }        roundReport.append("\nDetailed unit status saved to entitystatus.txt\n");    }