\hypertarget{classBWAPI_1_1Position}{\section{\-B\-W\-A\-P\-I\-:\-:\-Position \-Class \-Reference}
\label{classBWAPI_1_1Position}\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}}
}


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

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWAPI_1_1Position_a9e13b9947a0c7a525b47300e8642dfe5}{\-Position} ()
\item 
\hyperlink{classBWAPI_1_1Position_a2c3eea58113bc509a6904347759092a2}{\-Position} (const \hyperlink{classBWAPI_1_1TilePosition}{\-Tile\-Position} \&position)
\item 
\hyperlink{classBWAPI_1_1Position_aaa66f6eb4f812ff67a95a85d2a3b601c}{\-Position} (int \hyperlink{classBWAPI_1_1Position_a4abd359cc5d093f752c0f76146c4ebad}{x}, int \hyperlink{classBWAPI_1_1Position_a45a86eeb1f56db5227d5a9953df75bec}{y})
\item 
bool \hyperlink{classBWAPI_1_1Position_a1b27182ed6fefe768ce125553f3ad10d}{operator==} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&position) const 
\item 
bool \hyperlink{classBWAPI_1_1Position_ad0255d9640898744d0524844feb77c7f}{operator!=} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&position) const 
\item 
bool \hyperlink{classBWAPI_1_1Position_a3884130429ab0dd2ae68feaa9b374218}{operator$<$} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&position) const 
\item 
bool \hyperlink{classBWAPI_1_1Position_a8c878c5c3f4982fb852ddff3e0155d46}{is\-Valid} () const 
\item 
\hyperlink{classBWAPI_1_1Position}{\-Position} \hyperlink{classBWAPI_1_1Position_a5a78c65fcbaed2403b46be85f0354b64}{operator+} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&position) const 
\item 
\hyperlink{classBWAPI_1_1Position}{\-Position} \hyperlink{classBWAPI_1_1Position_a7f34f342cf68f4a84ef32aaf59e5c605}{operator-\/} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&position) const 
\item 
\hyperlink{classBWAPI_1_1Position}{\-Position} \& \hyperlink{classBWAPI_1_1Position_a8fded4b59267d1460ae5398569c3932a}{make\-Valid} ()
\item 
\hyperlink{classBWAPI_1_1Position}{\-Position} \& \hyperlink{classBWAPI_1_1Position_a33fcb0c0ef21e2f8f40ef3111fe17156}{operator+=} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&position)
\item 
\hyperlink{classBWAPI_1_1Position}{\-Position} \& \hyperlink{classBWAPI_1_1Position_a7a9089d9f76d8dbcd276492cfc14a46b}{operator-\/=} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&position)
\item 
double \hyperlink{classBWAPI_1_1Position_a4aa38930e63d7652881eab8de40ab39c}{get\-Distance} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&position) const 
\item 
int \hyperlink{classBWAPI_1_1Position_aa56d3eb6dd0164cfffc4daee4261439d}{get\-Approx\-Distance} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&position) const 
\item 
double \hyperlink{classBWAPI_1_1Position_a121e03b65b2d6a7de50fd4ecf263c909}{get\-Length} () const 
\item 
bool \hyperlink{classBWAPI_1_1Position_aece32e27160ef93cccb4c09309d672a2}{has\-Path} (const \hyperlink{classBWAPI_1_1Position}{\-Position} \&destination) const 
\item 
int \& \hyperlink{classBWAPI_1_1Position_a4abd359cc5d093f752c0f76146c4ebad}{x} ()
\item 
int \& \hyperlink{classBWAPI_1_1Position_a45a86eeb1f56db5227d5a9953df75bec}{y} ()
\item 
int \hyperlink{classBWAPI_1_1Position_ab1fa5cdcb22751256380d37d018a7aca}{x} () const 
\item 
int \hyperlink{classBWAPI_1_1Position_a797f180518dae6a54729742b6c5e5402}{y} () const 
\end{DoxyCompactItemize}


\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classBWAPI_1_1Position_a9e13b9947a0c7a525b47300e8642dfe5}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!\-Position@{\-Position}}
\index{\-Position@{\-Position}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{\-Position}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Position\-::\-Position} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Position_a9e13b9947a0c7a525b47300e8642dfe5}
\hypertarget{classBWAPI_1_1Position_a2c3eea58113bc509a6904347759092a2}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!\-Position@{\-Position}}
\index{\-Position@{\-Position}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{\-Position}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Position\-::\-Position} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Tile\-Position} \&}]{position}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}explicit\mbox{]}}}}\label{classBWAPI_1_1Position_a2c3eea58113bc509a6904347759092a2}
\hypertarget{classBWAPI_1_1Position_aaa66f6eb4f812ff67a95a85d2a3b601c}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!\-Position@{\-Position}}
\index{\-Position@{\-Position}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{\-Position}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Position\-::\-Position} (
\begin{DoxyParamCaption}
\item[{int}]{x, }
\item[{int}]{y}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Position_aaa66f6eb4f812ff67a95a85d2a3b601c}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classBWAPI_1_1Position_aa56d3eb6dd0164cfffc4daee4261439d}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!get\-Approx\-Distance@{get\-Approx\-Distance}}
\index{get\-Approx\-Distance@{get\-Approx\-Distance}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{get\-Approx\-Distance}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Position\-::get\-Approx\-Distance} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_aa56d3eb6dd0164cfffc4daee4261439d}
\hypertarget{classBWAPI_1_1Position_a4aa38930e63d7652881eab8de40ab39c}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!get\-Distance@{get\-Distance}}
\index{get\-Distance@{get\-Distance}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{get\-Distance}]{\setlength{\rightskip}{0pt plus 5cm}double {\bf \-B\-W\-A\-P\-I\-::\-Position\-::get\-Distance} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_a4aa38930e63d7652881eab8de40ab39c}


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


\hypertarget{classBWAPI_1_1Position_a121e03b65b2d6a7de50fd4ecf263c909}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!get\-Length@{get\-Length}}
\index{get\-Length@{get\-Length}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{get\-Length}]{\setlength{\rightskip}{0pt plus 5cm}double {\bf \-B\-W\-A\-P\-I\-::\-Position\-::get\-Length} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_a121e03b65b2d6a7de50fd4ecf263c909}
\hypertarget{classBWAPI_1_1Position_aece32e27160ef93cccb4c09309d672a2}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!has\-Path@{has\-Path}}
\index{has\-Path@{has\-Path}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{has\-Path}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-B\-W\-A\-P\-I\-::\-Position\-::has\-Path} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{destination}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_aece32e27160ef93cccb4c09309d672a2}
\hypertarget{classBWAPI_1_1Position_a8c878c5c3f4982fb852ddff3e0155d46}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!is\-Valid@{is\-Valid}}
\index{is\-Valid@{is\-Valid}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{is\-Valid}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-B\-W\-A\-P\-I\-::\-Position\-::is\-Valid} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_a8c878c5c3f4982fb852ddff3e0155d46}


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


\hypertarget{classBWAPI_1_1Position_a8fded4b59267d1460ae5398569c3932a}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!make\-Valid@{make\-Valid}}
\index{make\-Valid@{make\-Valid}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{make\-Valid}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Position}\& {\bf \-B\-W\-A\-P\-I\-::\-Position\-::make\-Valid} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Position_a8fded4b59267d1460ae5398569c3932a}
\hypertarget{classBWAPI_1_1Position_ad0255d9640898744d0524844feb77c7f}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!operator!=@{operator!=}}
\index{operator!=@{operator!=}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{operator!=}]{\setlength{\rightskip}{0pt plus 5cm}bool \-B\-W\-A\-P\-I\-::\-Position\-::operator!= (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_ad0255d9640898744d0524844feb77c7f}
\hypertarget{classBWAPI_1_1Position_a5a78c65fcbaed2403b46be85f0354b64}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!operator+@{operator+}}
\index{operator+@{operator+}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Position} \-B\-W\-A\-P\-I\-::\-Position\-::operator+ (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_a5a78c65fcbaed2403b46be85f0354b64}
\hypertarget{classBWAPI_1_1Position_a33fcb0c0ef21e2f8f40ef3111fe17156}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!operator+=@{operator+=}}
\index{operator+=@{operator+=}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{operator+=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Position}\& \-B\-W\-A\-P\-I\-::\-Position\-::operator+= (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Position_a33fcb0c0ef21e2f8f40ef3111fe17156}
\hypertarget{classBWAPI_1_1Position_a7f34f342cf68f4a84ef32aaf59e5c605}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!operator-\/@{operator-\/}}
\index{operator-\/@{operator-\/}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Position} \-B\-W\-A\-P\-I\-::\-Position\-::operator-\/ (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_a7f34f342cf68f4a84ef32aaf59e5c605}
\hypertarget{classBWAPI_1_1Position_a7a9089d9f76d8dbcd276492cfc14a46b}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!operator-\/=@{operator-\/=}}
\index{operator-\/=@{operator-\/=}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{operator-\/=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Position}\& \-B\-W\-A\-P\-I\-::\-Position\-::operator-\/= (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Position_a7a9089d9f76d8dbcd276492cfc14a46b}
\hypertarget{classBWAPI_1_1Position_a3884130429ab0dd2ae68feaa9b374218}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!operator$<$@{operator$<$}}
\index{operator$<$@{operator$<$}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{operator$<$}]{\setlength{\rightskip}{0pt plus 5cm}bool \-B\-W\-A\-P\-I\-::\-Position\-::operator$<$ (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_a3884130429ab0dd2ae68feaa9b374218}
\hypertarget{classBWAPI_1_1Position_a1b27182ed6fefe768ce125553f3ad10d}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!operator==@{operator==}}
\index{operator==@{operator==}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{operator==}]{\setlength{\rightskip}{0pt plus 5cm}bool \-B\-W\-A\-P\-I\-::\-Position\-::operator== (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_a1b27182ed6fefe768ce125553f3ad10d}
\hypertarget{classBWAPI_1_1Position_a4abd359cc5d093f752c0f76146c4ebad}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!x@{x}}
\index{x@{x}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{x}]{\setlength{\rightskip}{0pt plus 5cm}int\& {\bf \-B\-W\-A\-P\-I\-::\-Position\-::x} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Position_a4abd359cc5d093f752c0f76146c4ebad}


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


\hypertarget{classBWAPI_1_1Position_ab1fa5cdcb22751256380d37d018a7aca}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!x@{x}}
\index{x@{x}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{x}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Position\-::x} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_ab1fa5cdcb22751256380d37d018a7aca}
\hypertarget{classBWAPI_1_1Position_a45a86eeb1f56db5227d5a9953df75bec}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!y@{y}}
\index{y@{y}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{y}]{\setlength{\rightskip}{0pt plus 5cm}int\& {\bf \-B\-W\-A\-P\-I\-::\-Position\-::y} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Position_a45a86eeb1f56db5227d5a9953df75bec}


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


\hypertarget{classBWAPI_1_1Position_a797f180518dae6a54729742b6c5e5402}{\index{\-B\-W\-A\-P\-I\-::\-Position@{\-B\-W\-A\-P\-I\-::\-Position}!y@{y}}
\index{y@{y}!BWAPI::Position@{\-B\-W\-A\-P\-I\-::\-Position}}
\subsubsection[{y}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Position\-::y} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Position_a797f180518dae6a54729742b6c5e5402}


\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-U\-Alberta\-Bot\-\_\-src/\-B\-W\-A\-P\-I\-\_\-3\-\_\-6/include/\-B\-W\-A\-P\-I/\hyperlink{Position_8h}{\-Position.\-h}\end{DoxyCompactItemize}
