\hypertarget{classBuildTilePath}{\section{\-Build\-Tile\-Path \-Class \-Reference}
\label{classBuildTilePath}\index{\-Build\-Tile\-Path@{\-Build\-Tile\-Path}}
}


{\ttfamily \#include $<$\-Build\-Tile\-Path.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBuildTilePath_ac830216775766ab466299cf2e7709cb1}{\-Build\-Tile\-Path} ()
\item 
void \hyperlink{classBuildTilePath_a5a9787daabc09c9fa73fd9bd1c2a0da4}{add\-Node} (\hyperlink{Interface_8h_ad2186bdc15b990e538451931b3e11c67}{\-Tile\-Position} pos)
\item 
void \hyperlink{classBuildTilePath_a8e782c245090aeb3617aa126de94ae34}{draw\-Path} ()
\item 
bool \hyperlink{classBuildTilePath_ae71f557a3e973c1473405da8e53848d4}{is\-Still\-Valid} ()
\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{classBuildTilePath_ae556ac526c20e5145fbe2789a09e79dc}{is\-Complete}
\item 
std\-::list$<$ \hyperlink{Interface_8h_ad2186bdc15b990e538451931b3e11c67}{\-Tile\-Position} $>$ \hyperlink{classBuildTilePath_a83c52d411a7e074b9f8fb1386b479228}{path}
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}


\-Definition at line 5 of file \-Build\-Tile\-Path.\-h.



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


\-Definition at line 4 of file \-Build\-Tile\-Path.\-cpp.


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


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


\-Definition at line 9 of file \-Build\-Tile\-Path.\-cpp.



\-References path.



\-Referenced by \-Path\-Finder\-Class\-::\-Create\-Tile\-Path().


\begin{DoxyCode}
{
        path.push_front(pos);
}
\end{DoxyCode}


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


\hypertarget{classBuildTilePath_a8e782c245090aeb3617aa126de94ae34}{\index{\-Build\-Tile\-Path@{\-Build\-Tile\-Path}!draw\-Path@{draw\-Path}}
\index{draw\-Path@{draw\-Path}!BuildTilePath@{\-Build\-Tile\-Path}}
\subsubsection[{draw\-Path}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Build\-Tile\-Path\-::draw\-Path} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBuildTilePath_a8e782c245090aeb3617aa126de94ae34}


\-Definition at line 14 of file \-Build\-Tile\-Path.\-cpp.



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


\begin{DoxyCode}
{
        TilePosition previousTile = BWAPI::TilePositions::None;
        for each(const TilePosition &pos in path)
        {
                if(previousTile != BWAPI::TilePositions::None)
                        BWAPI::Broodwar->drawLineMap(pos.x() * 32 + 16, pos.y()
       * 32 + 16, previousTile.x() * 32 + 16, previousTile.y() * 32 + 16, 
      BWAPI::Colors::Yellow);

                previousTile = pos;
        }
}
\end{DoxyCode}


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


\hypertarget{classBuildTilePath_ae71f557a3e973c1473405da8e53848d4}{\index{\-Build\-Tile\-Path@{\-Build\-Tile\-Path}!is\-Still\-Valid@{is\-Still\-Valid}}
\index{is\-Still\-Valid@{is\-Still\-Valid}!BuildTilePath@{\-Build\-Tile\-Path}}
\subsubsection[{is\-Still\-Valid}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Build\-Tile\-Path\-::is\-Still\-Valid} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBuildTilePath_ae71f557a3e973c1473405da8e53848d4}


\-Definition at line 26 of file \-Build\-Tile\-Path.\-cpp.



\-References \-Singleton$<$ T $>$\-::\-Instance(), \-Map\-Helper\-::is\-Tile\-Walkable(), and path.



\-Referenced by \-Worker\-Scout\-Task\-::update().


\begin{DoxyCode}
{
        for each(const TilePosition &pos in path)
        {
                if(!BuildingPlacer::Instance().isTileWalkable(pos))
                        return false;
        }

        return true;
}\end{DoxyCode}


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




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




\subsection{\-Member \-Data \-Documentation}
\hypertarget{classBuildTilePath_ae556ac526c20e5145fbe2789a09e79dc}{\index{\-Build\-Tile\-Path@{\-Build\-Tile\-Path}!is\-Complete@{is\-Complete}}
\index{is\-Complete@{is\-Complete}!BuildTilePath@{\-Build\-Tile\-Path}}
\subsubsection[{is\-Complete}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Build\-Tile\-Path\-::is\-Complete}}}\label{classBuildTilePath_ae556ac526c20e5145fbe2789a09e79dc}


\-Definition at line 12 of file \-Build\-Tile\-Path.\-h.



\-Referenced by \-Path\-Finder\-Class\-::\-Create\-Tile\-Path(), and \-Worker\-Scout\-Task\-::update().

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


\-Definition at line 16 of file \-Build\-Tile\-Path.\-h.



\-Referenced by add\-Node(), draw\-Path(), is\-Still\-Valid(), and \-Worker\-Scout\-Task\-::update().



\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-Skynet/\-Skynet/\hyperlink{BuildTilePath_8h}{\-Build\-Tile\-Path.\-h}\item 
\-Skynet/\-Skynet/\hyperlink{BuildTilePath_8cpp}{\-Build\-Tile\-Path.\-cpp}\end{DoxyCompactItemize}
