\hypertarget{BWAPI_2Source_2BWAPI_2UnitImpl_8h}{\section{trunk/bwapi/\-B\-W\-A\-P\-I/\-Source/\-B\-W\-A\-P\-I/\-Unit\-Impl.h \-File \-Reference}
\label{BWAPI_2Source_2BWAPI_2UnitImpl_8h}\index{trunk/bwapi/\-B\-W\-A\-P\-I/\-Source/\-B\-W\-A\-P\-I/\-Unit\-Impl.\-h@{trunk/bwapi/\-B\-W\-A\-P\-I/\-Source/\-B\-W\-A\-P\-I/\-Unit\-Impl.\-h}}
}
{\ttfamily \#include \char`\"{}\-B\-W\-A\-P\-I/\-Unit.\-h\char`\"{}}\*
{\ttfamily \#include $<$list$>$}\*
{\ttfamily \#include $<$\-Util/\-Types.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W\-A\-P\-I/\-Order.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W\-A\-P\-I/\-Region.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W\-A\-P\-I/\-Tech\-Type.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W\-A\-P\-I/\-Upgrade\-Type.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W\-A\-P\-I/\-Unit\-Type.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W\-A\-P\-I/\-Unit\-Command.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W/\-Tile\-Position.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W/\-Order\-I\-D.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W\-A\-P\-I/\-Client/\-Unit\-Data.\-h$>$}\*
\-Include dependency graph for \-Unit\-Impl.\-h\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{BWAPI_2Source_2BWAPI_2UnitImpl_8h__incl}
\end{center}
\end{figure}
\-This graph shows which files directly or indirectly include this file\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{BWAPI_2Source_2BWAPI_2UnitImpl_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{\-Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classBWAPI_1_1UnitImpl}{\-B\-W\-A\-P\-I\-::\-Unit\-Impl}
\end{DoxyCompactItemize}
\subsection*{\-Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{namespaceBW}{\-B\-W}
\item 
namespace \hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I}
\end{DoxyCompactItemize}
\subsection*{\-Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{BWAPI_2Source_2BWAPI_2UnitImpl_8h_a7d0faf90fb3f9095256017038c63d054}{check\-Ownership}()
\end{DoxyCompactItemize}


\subsection{\-Define \-Documentation}
\hypertarget{BWAPI_2Source_2BWAPI_2UnitImpl_8h_a7d0faf90fb3f9095256017038c63d054}{\index{\-B\-W\-A\-P\-I/\-Source/\-B\-W\-A\-P\-I/\-Unit\-Impl.\-h@{\-B\-W\-A\-P\-I/\-Source/\-B\-W\-A\-P\-I/\-Unit\-Impl.\-h}!check\-Ownership@{check\-Ownership}}
\index{check\-Ownership@{check\-Ownership}!BWAPI/Source/BWAPI/UnitImpl.h@{\-B\-W\-A\-P\-I/\-Source/\-B\-W\-A\-P\-I/\-Unit\-Impl.\-h}}
\subsubsection[{check\-Ownership}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf check\-Ownership}(
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{BWAPI_2Source_2BWAPI_2UnitImpl_8h_a7d0faf90fb3f9095256017038c63d054}
{\bfseries \-Value\-:}
\begin{DoxyCode}
{\
  if (_getPlayer != Broodwar->self())\
    return BroodwarImpl.setLastError(Errors::Unit_Not_Owned);\
}
\end{DoxyCode}
