\hypertarget{classExistenceTest}{\section{\-Existence\-Test \-Class \-Reference}
\label{classExistenceTest}\index{\-Existence\-Test@{\-Existence\-Test}}
}


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



\-Inheritance diagram for \-Existence\-Test\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{classExistenceTest__inherit__graph}
\end{center}
\end{figure}


\-Collaboration diagram for \-Existence\-Test\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{classExistenceTest__coll__graph}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{classExistenceTest_ae7466e18024d58fbdcf726224970dfc9}{on\-Start} ()
\item 
virtual void \hyperlink{classExistenceTest_a0976eb35fc8fbcb9279da518a65e643e}{on\-Frame} ()
\item 
virtual void \hyperlink{classExistenceTest_ad01b89053fbb3df66f71953ff4cff0b1}{on\-Unit\-Create} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExistenceTest_aca4fb74336f702d297a77402ddc56d12}{on\-Unit\-Destroy} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\end{DoxyCompactItemize}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classExistenceTest_a0976eb35fc8fbcb9279da518a65e643e}{\index{\-Existence\-Test@{\-Existence\-Test}!on\-Frame@{on\-Frame}}
\index{on\-Frame@{on\-Frame}!ExistenceTest@{\-Existence\-Test}}
\subsubsection[{on\-Frame}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Existence\-Test\-::on\-Frame} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExistenceTest_a0976eb35fc8fbcb9279da518a65e643e}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this on every logical frame in the game. 

\-Reimplemented from \hyperlink{classTestModule_a1501004532dfbf7a4c6fdae22d958996}{\-Test\-Module}.



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


\hypertarget{classExistenceTest_ae7466e18024d58fbdcf726224970dfc9}{\index{\-Existence\-Test@{\-Existence\-Test}!on\-Start@{on\-Start}}
\index{on\-Start@{on\-Start}!ExistenceTest@{\-Existence\-Test}}
\subsubsection[{on\-Start}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Existence\-Test\-::on\-Start} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExistenceTest_ae7466e18024d58fbdcf726224970dfc9}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this at the start of a match. \-Typically an \-A\-I will execute set up code in this method (initialize data structures, load build orders, etc). 

\-Reimplemented from \hyperlink{classBWAPI_1_1AIModule_aa4a6794e0c2d130b9128524f065a4d53}{\-B\-W\-A\-P\-I\-::\-A\-I\-Module}.



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


\hypertarget{classExistenceTest_ad01b89053fbb3df66f71953ff4cff0b1}{\index{\-Existence\-Test@{\-Existence\-Test}!on\-Unit\-Create@{on\-Unit\-Create}}
\index{on\-Unit\-Create@{on\-Unit\-Create}!ExistenceTest@{\-Existence\-Test}}
\subsubsection[{on\-Unit\-Create}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Existence\-Test\-::on\-Unit\-Create} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExistenceTest_ad01b89053fbb3df66f71953ff4cff0b1}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when a unit is created. \-Note that this is \-N\-O\-T called when a unit changes type (such as larva into egg or egg into drone). \-Building a refinery/assimilator/extractor will not produce an on\-Unit\-Create call since the vespene geyser changes to the unit type of the refinery/assimilator/extractor. \-If \-Complete \-Map \-Information is enabled, this will also be called for new units that are hidden by the fog of war. \-If the unit is visible upon creation, on\-Unit\-Show will be called shortly after on\-Unit\-Create is called. 

\-Reimplemented from \hyperlink{classTestModule_ae3a8b6abedf92039017fb0f0d74e2a3b}{\-Test\-Module}.



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


\hypertarget{classExistenceTest_aca4fb74336f702d297a77402ddc56d12}{\index{\-Existence\-Test@{\-Existence\-Test}!on\-Unit\-Destroy@{on\-Unit\-Destroy}}
\index{on\-Unit\-Destroy@{on\-Unit\-Destroy}!ExistenceTest@{\-Existence\-Test}}
\subsubsection[{on\-Unit\-Destroy}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Existence\-Test\-::on\-Unit\-Destroy} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExistenceTest_aca4fb74336f702d297a77402ddc56d12}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when a unit dies or otherwise removed from the game (i.\-e. a mined out mineral patch). \-When a zerg drone becomes an extractor, the \-Vespene geyser changes to the \-Zerg \-Extractor type and the drone is removed. \-If \-Complete \-Map \-Information is enabled, this will also be called for units that are hidden by the fog of war. \-If a unit that was visible gets destroyed, on\-Unit\-Hide will be called right before on\-Unit\-Destroy is called. 

\-Reimplemented from \hyperlink{classTestModule_abcc3b8f226862a5feaf1891760551257}{\-Test\-Module}.



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




\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
trunk/bwapi/\-Test\-A\-I\-Module/\-Source/\hyperlink{ExistenceTest_8h}{\-Existence\-Test.\-h}\item 
trunk/bwapi/\-Test\-A\-I\-Module/\-Source/\hyperlink{ExistenceTest_8cpp}{\-Existence\-Test.\-cpp}\end{DoxyCompactItemize}
