BWAPI
Skynet/Skynet/RegionPath.cpp
Go to the documentation of this file.
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 &reg 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 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines