BWAPI
|
#include <RegionPath.h>
Public Member Functions | |
RegionPath () | |
void | addNode (Region reg) |
void | drawPath () |
Public Attributes | |
bool | isComplete |
std::list< Region > | path |
Definition at line 7 of file RegionPath.h.
Definition at line 3 of file RegionPath.cpp.
: isComplete(false) { }
void RegionPath::addNode | ( | Region | reg | ) |
Definition at line 8 of file RegionPath.cpp.
References path.
Referenced by PathFinderClass::CreateRegionPath().
{ path.push_front(reg); }
void RegionPath::drawPath | ( | ) |
Definition at line 13 of file RegionPath.cpp.
References BWAPI::Broodwar, BWAPI::Game::drawLineMap(), path, and BWAPI::Colors::Purple.
Referenced by PathFinderClass::CreateCheapWalkPath().
{ Region previousRegion; for each(const Region ® in path) { if(previousRegion) BWAPI::Broodwar->drawLineMap(reg->getCenter().x(), reg->getCenter().y(), previousRegion->getCenter().x(), previousRegion->getCenter().y(), BWAPI::Colors::Purple); previousRegion = reg; } }
Definition at line 14 of file RegionPath.h.
Referenced by PathFinderClass::CreateCheapWalkPath(), and PathFinderClass::CreateRegionPath().
std::list<Region> RegionPath::path |
Definition at line 17 of file RegionPath.h.
Referenced by addNode(), and drawPath().