\hypertarget{classBW_1_1Position}{\section{\-B\-W\-:\-:\-Position \-Class \-Reference}
\label{classBW_1_1Position}\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}}
}


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

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBW_1_1Position_a8cbace0c676db1142f70a52ccc697556}{\-Position} ()
\item 
\hyperlink{classBW_1_1Position_ae397d9b4b5289ee20c38517c16762c77}{\-Position} (const \hyperlink{classBW_1_1TilePosition}{\-B\-W\-::\-Tile\-Position} \&position)
\item 
\hyperlink{classBW_1_1Position_a5563bfd17f41d63804dad00e9d0dbf54}{\-Position} (\hyperlink{NewHackUtil_8h_ac8008e9f99a9e3bdd6649ba6fe685975}{u16} \hyperlink{classBW_1_1Position_aec787dd8907047c86d0131c265befa5a}{x}, \hyperlink{NewHackUtil_8h_ac8008e9f99a9e3bdd6649ba6fe685975}{u16} \hyperlink{classBW_1_1Position_abe0b81f358b20ac97124763307cacb4c}{y})
\item 
bool \hyperlink{classBW_1_1Position_ab32abbbf6143a3bf68429837af40ca6c}{operator==} (const \hyperlink{classBW_1_1Position}{\-B\-W\-::\-Position} \&position) const 
\item 
bool \hyperlink{classBW_1_1Position_a25b732386be81dcf0208fc2ee7439eb6}{operator!=} (const \hyperlink{classBW_1_1Position}{\-B\-W\-::\-Position} \&position) const 
\item 
bool \hyperlink{classBW_1_1Position_a3bf8774de9e9833d4cf3f627837270e6}{operator$<$} (const \hyperlink{classBW_1_1Position}{\-B\-W\-::\-Position} \&position) const 
\item 
\hyperlink{NewHackUtil_8h_ac8008e9f99a9e3bdd6649ba6fe685975}{u16} \hyperlink{classBW_1_1Position_a20ff8d2cecd27edd98b4ad1f2d2e6f37}{get\-Distance} (const \hyperlink{classBW_1_1Position}{\-Position} \&position) const 
\item 
\hyperlink{namespaceBW_ae39c0ab8f888a361ade2d3964d779193}{int} \hyperlink{classBW_1_1Position_a1d5418e24466dec4d5d5fb62e453ef96}{get\-Approx\-Distance} (const \hyperlink{classBW_1_1Position}{\-Position} \&position) const 
\item 
\hyperlink{classBW_1_1region}{region} $\ast$ \hyperlink{classBW_1_1Position_a5e1e7c9de1d43d60193bf919240ceb93}{get\-Region} () const 
\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{NewHackUtil_8h_ac8008e9f99a9e3bdd6649ba6fe685975}{u16} \hyperlink{classBW_1_1Position_aec787dd8907047c86d0131c265befa5a}{x}
\item 
\hyperlink{NewHackUtil_8h_ac8008e9f99a9e3bdd6649ba6fe685975}{u16} \hyperlink{classBW_1_1Position_abe0b81f358b20ac97124763307cacb4c}{y}
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Direct mapping of bw representation of map position. 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classBW_1_1Position_a8cbace0c676db1142f70a52ccc697556}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!\-Position@{\-Position}}
\index{\-Position@{\-Position}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{\-Position}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-::\-Position\-::\-Position} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBW_1_1Position_a8cbace0c676db1142f70a52ccc697556}
\hypertarget{classBW_1_1Position_ae397d9b4b5289ee20c38517c16762c77}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!\-Position@{\-Position}}
\index{\-Position@{\-Position}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{\-Position}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-::\-Position\-::\-Position} (
\begin{DoxyParamCaption}
\item[{const {\bf \-B\-W\-::\-Tile\-Position} \&}]{position}
\end{DoxyParamCaption}
)}}\label{classBW_1_1Position_ae397d9b4b5289ee20c38517c16762c77}
\hypertarget{classBW_1_1Position_a5563bfd17f41d63804dad00e9d0dbf54}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!\-Position@{\-Position}}
\index{\-Position@{\-Position}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{\-Position}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-::\-Position\-::\-Position} (
\begin{DoxyParamCaption}
\item[{{\bf u16}}]{x, }
\item[{{\bf u16}}]{y}
\end{DoxyParamCaption}
)}}\label{classBW_1_1Position_a5563bfd17f41d63804dad00e9d0dbf54}


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


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


\hypertarget{classBW_1_1Position_a20ff8d2cecd27edd98b4ad1f2d2e6f37}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!get\-Distance@{get\-Distance}}
\index{get\-Distance@{get\-Distance}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{get\-Distance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf u16} {\bf \-B\-W\-::\-Position\-::get\-Distance} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBW_1_1Position_a20ff8d2cecd27edd98b4ad1f2d2e6f37}
\hypertarget{classBW_1_1Position_a5e1e7c9de1d43d60193bf919240ceb93}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!get\-Region@{get\-Region}}
\index{get\-Region@{get\-Region}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{get\-Region}]{\setlength{\rightskip}{0pt plus 5cm}{\bf region} $\ast$ {\bf \-B\-W\-::\-Position\-::get\-Region} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBW_1_1Position_a5e1e7c9de1d43d60193bf919240ceb93}


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


\hypertarget{classBW_1_1Position_a25b732386be81dcf0208fc2ee7439eb6}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!operator!=@{operator!=}}
\index{operator!=@{operator!=}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{operator!=}]{\setlength{\rightskip}{0pt plus 5cm}bool \-B\-W\-::\-Position\-::operator!= (
\begin{DoxyParamCaption}
\item[{const {\bf \-B\-W\-::\-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBW_1_1Position_a25b732386be81dcf0208fc2ee7439eb6}
\hypertarget{classBW_1_1Position_a3bf8774de9e9833d4cf3f627837270e6}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!operator$<$@{operator$<$}}
\index{operator$<$@{operator$<$}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{operator$<$}]{\setlength{\rightskip}{0pt plus 5cm}bool \-B\-W\-::\-Position\-::operator$<$ (
\begin{DoxyParamCaption}
\item[{const {\bf \-B\-W\-::\-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBW_1_1Position_a3bf8774de9e9833d4cf3f627837270e6}
\hypertarget{classBW_1_1Position_ab32abbbf6143a3bf68429837af40ca6c}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!operator==@{operator==}}
\index{operator==@{operator==}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{operator==}]{\setlength{\rightskip}{0pt plus 5cm}bool \-B\-W\-::\-Position\-::operator== (
\begin{DoxyParamCaption}
\item[{const {\bf \-B\-W\-::\-Position} \&}]{position}
\end{DoxyParamCaption}
) const}}\label{classBW_1_1Position_ab32abbbf6143a3bf68429837af40ca6c}


\subsection{\-Member \-Data \-Documentation}
\hypertarget{classBW_1_1Position_aec787dd8907047c86d0131c265befa5a}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!x@{x}}
\index{x@{x}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{x}]{\setlength{\rightskip}{0pt plus 5cm}{\bf u16} {\bf \-B\-W\-::\-Position\-::x}}}\label{classBW_1_1Position_aec787dd8907047c86d0131c265befa5a}
\hypertarget{classBW_1_1Position_abe0b81f358b20ac97124763307cacb4c}{\index{\-B\-W\-::\-Position@{\-B\-W\-::\-Position}!y@{y}}
\index{y@{y}!BW::Position@{\-B\-W\-::\-Position}}
\subsubsection[{y}]{\setlength{\rightskip}{0pt plus 5cm}{\bf u16} {\bf \-B\-W\-::\-Position\-::y}}}\label{classBW_1_1Position_abe0b81f358b20ac97124763307cacb4c}


\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
trunk/bwapi/\-B\-W\-A\-P\-I/\-Source/\-B\-W/\hyperlink{BWAPI_2Source_2BW_2Position_8h}{\-Position.\-h}\item 
trunk/bwapi/\-B\-W\-A\-P\-I/\-Source/\-B\-W/\hyperlink{Source_2BW_2Position_8cpp}{\-Position.\-cpp}\end{DoxyCompactItemize}
