BWAPI
|
00001 #include "RegionPath.h" 00002 00003 RegionPath::RegionPath() 00004 : isComplete(false) 00005 { 00006 } 00007 00008 void RegionPath::addNode(Region reg) 00009 { 00010 path.push_front(reg); 00011 } 00012 00013 void RegionPath::drawPath() 00014 { 00015 Region previousRegion; 00016 for each(const Region ® in path) 00017 { 00018 if(previousRegion) 00019 BWAPI::Broodwar->drawLineMap(reg->getCenter().x(), reg->getCenter().y(), previousRegion->getCenter().x(), previousRegion->getCenter().y(), BWAPI::Colors::Purple); 00020 00021 previousRegion = reg; 00022 } 00023 }