Search in sources :

Example 1 with AreaInitializerImpl

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));
    }
}
Also used : AreaInitializerImpl(bwem.area.AreaInitializerImpl) WalkPosition(org.openbw.bwapi4j.WalkPosition) AreaId(bwem.area.typedef.AreaId)

Aggregations

AreaInitializerImpl (bwem.area.AreaInitializerImpl)1 AreaId (bwem.area.typedef.AreaId)1 WalkPosition (org.openbw.bwapi4j.WalkPosition)1