Wiki
Clone wikiBWTA2 / Region
Region
Class header file: BWTA/Region.h
A region is a partition of the map with a polygon boundary, and is connected to other regions via choke points.
Methods:
getPolygon
const Polygon& getPolygon() const;
Returns the polygon border of the region.
getCenter
const BWAPI::Position& getCenter() const;
Returns the center of the region.
getChokepoints
const std::set<Chokepoint*>& getChokepoints() const;
Returns the set of chokepoints adjacent to the region.
getBaseLocations
const std::set<BaseLocation*>& getBaseLocations() const;
Returns the set of base locations in the region.
isReachable
bool isReachable(Region* region) const;
Returns true if its possible to walk from this region to the given region.
getReachableRegions
const std::set<Region*>& getReachableRegions() const;
Returns the set of regions reachable from this region.
Updated