use of games.strategy.triplea.ui.screen.drawable.TerritoryEffectDrawable in project triplea by triplea-game.
the class TileManager method drawTerritoryEffects.
private static void drawTerritoryEffects(final Territory territory, final MapData mapData, final Set<IDrawable> drawing) {
final Iterator<Point> effectPoints = mapData.getTerritoryEffectPoints(territory).iterator();
Point drawingPoint = effectPoints.next();
for (final TerritoryEffect te : TerritoryEffectHelper.getEffects(territory)) {
drawing.add(new TerritoryEffectDrawable(te, drawingPoint));
drawingPoint = effectPoints.hasNext() ? effectPoints.next() : drawingPoint;
}
}
Aggregations