public class Region
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.List<BaseLocation> |
getBaseLocations()
Returns the set of base locations in the region.
|
Position |
getCenter()
Returns the center of the region.
|
java.util.List<Chokepoint> |
getChokepoints()
Returns the set of chokepoints adjacent to the region.
|
Polygon |
getPolygon()
Returns the polygon border of the region.
|
java.util.List<Region> |
getReachableRegions()
Returns the set of regions reachable from this region.
|
boolean |
isReachable(Region region)
Returns true if its possible to walk from this region to the given region.
|
public Polygon getPolygon()
public Position getCenter()
public java.util.List<Chokepoint> getChokepoints()
public java.util.List<BaseLocation> getBaseLocations()
public boolean isReachable(Region region)
public java.util.List<Region> getReachableRegions()