Wiki

Clone wiki

BWTA2 / Chokepoint

Chokepoint

Class header file: BWTA/Chokepoint.h

A chokepoint connects exactly two regions.

Methods:

getRegions

const std::pair<Region*,Region*>& getRegions() const;

Returns the two regions the chokepoint connects.

getSides

const std::pair<BWAPI::Position,BWAPI::Position>& getSides() const;

Returns the two sides of the chokepoint.

getCenter

BWAPI::Position getCenter() const;

Returns the center of the chokepoint.

getWidth

double getWidth() const;

Returns the width of the chokepoint.

Updated