use of games.strategy.engine.data.RepairFrontier in project triplea by triplea-game.
the class GameDataExporter method repairFrontiers.
private void repairFrontiers(final GameData data) {
for (final String frontierName : data.getRepairFrontierList().getRepairFrontierNames()) {
final RepairFrontier frontier = data.getRepairFrontierList().getRepairFrontier(frontierName);
xmlfile.append("\n");
xmlfile.append(" <repairFrontier name=\"").append(frontier.getName()).append("\">\n");
for (final RepairRule rule : frontier.getRules()) {
xmlfile.append(" <repairRules name=\"").append(rule.getName()).append("\"/>\n");
}
xmlfile.append(" </repairFrontier>\n");
}
xmlfile.append("\n");
}
Aggregations