use of bwem.area.AreaInitializerImpl in project BWAPI4J by OpenBW.
the class Graph method createAreas.
// Creates a new Area for each pair (top, miniTiles) in areasList (See Area::top() and Area::miniTiles())
public void createAreas(final List<MutablePair<WalkPosition, Integer>> areasList) {
for (int id = 1; id <= areasList.size(); ++id) {
final WalkPosition top = areasList.get(id - 1).getLeft();
final int miniTileCount = areasList.get(id - 1).getRight();
this.areas.add(new AreaInitializerImpl(getMap(), new AreaId(id), top, miniTileCount));
}
}
Aggregations