Search in sources :

Example 1 with TerritoryEffectDrawable

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;
    }
}
Also used : TerritoryEffect(games.strategy.engine.data.TerritoryEffect) TerritoryEffectDrawable(games.strategy.triplea.ui.screen.drawable.TerritoryEffectDrawable) Point(java.awt.Point)

Aggregations

TerritoryEffect (games.strategy.engine.data.TerritoryEffect)1 TerritoryEffectDrawable (games.strategy.triplea.ui.screen.drawable.TerritoryEffectDrawable)1 Point (java.awt.Point)1