public final class Graph extends Object
Modifier and Type | Method and Description |
---|---|
void |
collectInformation() |
void |
computeChokePointDistanceMatrix() |
void |
createBases(TerrainData terrainData) |
void |
createChokePoints(List<StaticBuilding> staticBuildings,
List<Mineral> minerals,
List<Pair<Pair<AreaId,AreaId>,WalkPosition>> rawFrontier) |
int |
distance(ChokePoint cpA,
ChokePoint cpB) |
Area |
getArea(AreaId id) |
Area |
getArea(TilePosition tilePosition) |
Area |
getArea(WalkPosition walkPosition) |
int |
getAreaCount() |
List<Area> |
getAreas() |
List<Base> |
getBases() |
List<ChokePoint> |
getChokePoints() |
BWMap |
getMap() |
Area |
getNearestArea(TilePosition tilePosition) |
Area |
getNearestArea(WalkPosition walkPosition) |
CPPath |
getPath(ChokePoint cpA,
ChokePoint cpB) |
Optional<CPPath> |
getPath(Position a,
Position b) |
Optional<PathingResult> |
getPathingResult(Position a,
Position b) |
public BWMap getMap()
public int getAreaCount()
public Area getArea(WalkPosition walkPosition)
public Area getArea(TilePosition tilePosition)
public Area getNearestArea(WalkPosition walkPosition)
public Area getNearestArea(TilePosition tilePosition)
public List<ChokePoint> getChokePoints()
public int distance(ChokePoint cpA, ChokePoint cpB)
public CPPath getPath(ChokePoint cpA, ChokePoint cpB)
public Optional<PathingResult> getPathingResult(Position a, Position b)
public void createChokePoints(List<StaticBuilding> staticBuildings, List<Mineral> minerals, List<Pair<Pair<AreaId,AreaId>,WalkPosition>> rawFrontier)
public void computeChokePointDistanceMatrix()
public void collectInformation()
public void createBases(TerrainData terrainData)
Copyright © 2022. All rights reserved.