\hypertarget{classWalkPositionPath}{\section{\-Walk\-Position\-Path \-Class \-Reference}
\label{classWalkPositionPath}\index{\-Walk\-Position\-Path@{\-Walk\-Position\-Path}}
}


{\ttfamily \#include $<$\-Walk\-Position\-Path.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classWalkPositionPath_aa8557ac584dadd1afd0a9ca7e67f64a1}{\-Walk\-Position\-Path} ()
\item 
void \hyperlink{classWalkPositionPath_a9b345829e079b439c1b562c22e40d883}{add\-Node} (\hyperlink{classWalkPosition}{\-Walk\-Position} pos)
\item 
void \hyperlink{classWalkPositionPath_a60e5e78084e6135ce60ea2de0e617209}{draw\-Path} ()
\item 
\hyperlink{classWalkPositionPath}{\-Walk\-Position\-Path} \hyperlink{classWalkPositionPath_a39e749b4ae5faafbe8fea86422462bca}{get\-Reverse} ()
\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{classWalkPositionPath_a268deb9de80d5fed8e26e8979a8dac03}{is\-Complete}
\item 
std\-::list$<$ \hyperlink{classWalkPosition}{\-Walk\-Position} $>$ \hyperlink{classWalkPositionPath_a3cb14481806774522a20c5e28094216b}{path}
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}


\-Definition at line 5 of file \-Walk\-Position\-Path.\-h.



\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classWalkPositionPath_aa8557ac584dadd1afd0a9ca7e67f64a1}{\index{\-Walk\-Position\-Path@{\-Walk\-Position\-Path}!\-Walk\-Position\-Path@{\-Walk\-Position\-Path}}
\index{\-Walk\-Position\-Path@{\-Walk\-Position\-Path}!WalkPositionPath@{\-Walk\-Position\-Path}}
\subsubsection[{\-Walk\-Position\-Path}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Walk\-Position\-Path\-::\-Walk\-Position\-Path} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWalkPositionPath_aa8557ac584dadd1afd0a9ca7e67f64a1}


\-Definition at line 3 of file \-Walk\-Position\-Path.\-cpp.


\begin{DoxyCode}
        : isComplete(false)
{
}
\end{DoxyCode}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classWalkPositionPath_a9b345829e079b439c1b562c22e40d883}{\index{\-Walk\-Position\-Path@{\-Walk\-Position\-Path}!add\-Node@{add\-Node}}
\index{add\-Node@{add\-Node}!WalkPositionPath@{\-Walk\-Position\-Path}}
\subsubsection[{add\-Node}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Walk\-Position\-Path\-::add\-Node} (
\begin{DoxyParamCaption}
\item[{{\bf \-Walk\-Position}}]{pos}
\end{DoxyParamCaption}
)}}\label{classWalkPositionPath_a9b345829e079b439c1b562c22e40d883}


\-Definition at line 8 of file \-Walk\-Position\-Path.\-cpp.



\-References path.


\begin{DoxyCode}
{
        path.push_front(pos);
}
\end{DoxyCode}
\hypertarget{classWalkPositionPath_a60e5e78084e6135ce60ea2de0e617209}{\index{\-Walk\-Position\-Path@{\-Walk\-Position\-Path}!draw\-Path@{draw\-Path}}
\index{draw\-Path@{draw\-Path}!WalkPositionPath@{\-Walk\-Position\-Path}}
\subsubsection[{draw\-Path}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Walk\-Position\-Path\-::draw\-Path} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWalkPositionPath_a60e5e78084e6135ce60ea2de0e617209}


\-Definition at line 13 of file \-Walk\-Position\-Path.\-cpp.



\-References \-B\-W\-A\-P\-I\-::\-Broodwar, \-B\-W\-A\-P\-I\-::\-Game\-::draw\-Line\-Map(), path, \-Walk\-Position\-::x, \-Walk\-Position\-::y, and \-B\-W\-A\-P\-I\-::\-Colors\-::\-Yellow.


\begin{DoxyCode}
{
        WalkPosition previousPosition(-1, -1);
        for each(const WalkPosition &pos in path)
        {
                if(previousPosition.x != -1 && previousPosition.y != -1)
                        BWAPI::Broodwar->drawLineMap(pos.x * 8 + 4, pos.y * 8 +
       4, previousPosition.x * 8 + 4, previousPosition.y * 8 + 4, BWAPI::Colors::Yellow
      );

                previousPosition = pos;
        }
}
\end{DoxyCode}


\-Here is the call graph for this function\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classWalkPositionPath_a60e5e78084e6135ce60ea2de0e617209_cgraph}
\end{center}
\end{figure}


\hypertarget{classWalkPositionPath_a39e749b4ae5faafbe8fea86422462bca}{\index{\-Walk\-Position\-Path@{\-Walk\-Position\-Path}!get\-Reverse@{get\-Reverse}}
\index{get\-Reverse@{get\-Reverse}!WalkPositionPath@{\-Walk\-Position\-Path}}
\subsubsection[{get\-Reverse}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Walk\-Position\-Path} {\bf \-Walk\-Position\-Path\-::get\-Reverse} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWalkPositionPath_a39e749b4ae5faafbe8fea86422462bca}


\-Definition at line 25 of file \-Walk\-Position\-Path.\-cpp.



\-References is\-Complete, and path.


\begin{DoxyCode}
{
        WalkPositionPath returnPath;

        for each(const WalkPosition &pos in path)
        {
                returnPath.path.push_front(pos);
                returnPath.isComplete = isComplete;
        }

        return returnPath;
}\end{DoxyCode}


\subsection{\-Member \-Data \-Documentation}
\hypertarget{classWalkPositionPath_a268deb9de80d5fed8e26e8979a8dac03}{\index{\-Walk\-Position\-Path@{\-Walk\-Position\-Path}!is\-Complete@{is\-Complete}}
\index{is\-Complete@{is\-Complete}!WalkPositionPath@{\-Walk\-Position\-Path}}
\subsubsection[{is\-Complete}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Walk\-Position\-Path\-::is\-Complete}}}\label{classWalkPositionPath_a268deb9de80d5fed8e26e8979a8dac03}


\-Definition at line 12 of file \-Walk\-Position\-Path.\-h.



\-Referenced by get\-Reverse().

\hypertarget{classWalkPositionPath_a3cb14481806774522a20c5e28094216b}{\index{\-Walk\-Position\-Path@{\-Walk\-Position\-Path}!path@{path}}
\index{path@{path}!WalkPositionPath@{\-Walk\-Position\-Path}}
\subsubsection[{path}]{\setlength{\rightskip}{0pt plus 5cm}std\-::list$<${\bf \-Walk\-Position}$>$ {\bf \-Walk\-Position\-Path\-::path}}}\label{classWalkPositionPath_a3cb14481806774522a20c5e28094216b}


\-Definition at line 16 of file \-Walk\-Position\-Path.\-h.



\-Referenced by add\-Node(), draw\-Path(), and get\-Reverse().



\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-Skynet/\-Skynet/\hyperlink{WalkPositionPath_8h}{\-Walk\-Position\-Path.\-h}\item 
\-Skynet/\-Skynet/\hyperlink{WalkPositionPath_8cpp}{\-Walk\-Position\-Path.\-cpp}\end{DoxyCompactItemize}
