Search in sources :

Example 1 with RepairFrontier

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");
}
Also used : RepairFrontier(games.strategy.engine.data.RepairFrontier) RepairRule(games.strategy.engine.data.RepairRule)

Aggregations

RepairFrontier (games.strategy.engine.data.RepairFrontier)1 RepairRule (games.strategy.engine.data.RepairRule)1