BWAPI
Public Member Functions | Public Attributes
RegionPath Class Reference

#include <RegionPath.h>

List of all members.

Public Member Functions

 RegionPath ()
void addNode (Region reg)
void drawPath ()

Public Attributes

bool isComplete
std::list< Regionpath

Detailed Description

Definition at line 7 of file RegionPath.h.


Constructor & Destructor Documentation

Definition at line 3 of file RegionPath.cpp.

        : isComplete(false)
{
}

Member Function Documentation

void RegionPath::addNode ( Region  reg)

Definition at line 8 of file RegionPath.cpp.

References path.

Referenced by PathFinderClass::CreateRegionPath().

{
        path.push_front(reg);
}

Here is the caller graph for this function:

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 &reg in path)
        {
                if(previousRegion)
                        BWAPI::Broodwar->drawLineMap(reg->getCenter().x(), reg->getCenter().y(), previousRegion->getCenter().x(), previousRegion->getCenter().y(), BWAPI::Colors::Purple);

                previousRegion = reg;
        }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 17 of file RegionPath.h.

Referenced by addNode(), and drawPath().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines