\hypertarget{classEventTest}{\section{\-Event\-Test \-Class \-Reference}
\label{classEventTest}\index{\-Event\-Test@{\-Event\-Test}}
}


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



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


\-Collaboration diagram for \-Event\-Test\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{classEventTest__coll__graph}
\end{center}
\end{figure}
\subsection*{\-Public \-Types}
\begin{DoxyCompactItemize}
\item 
enum \{ \*
\hyperlink{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda965ede921879158494a335e21943d20b}{\-Start}, 
\hyperlink{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda6a5fb3f5e6909cac60ecfd10b9f14dc5}{\-Training\-S\-C\-V}, 
\hyperlink{classEventTest_aca7dcf9306584941a160cea6a9ce2bcdaba7986b97a34412504b4617f5c40f928}{\-Building\-Refinery}, 
\hyperlink{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda91cb6be6e258488ad12d6b102312ade6}{\-Killing\-S\-C\-V}, 
\*
\hyperlink{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda0d5345b3efa6dabcce7f4592ca91f28a}{\-Training\-Nuke}, 
\hyperlink{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda144d45f64c2fa0bebeca77b6063f81e3}{\-Using\-Nuke}, 
\hyperlink{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda075a9e2a4da3a68d08d2ad9b6e1c7e61}{\-Destroying\-Enemy}
 \}
\end{DoxyCompactItemize}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classEventTest_a5aa3b8084720f1c7957303a0f60e8df7}{\-Event\-Test} ()
\item 
virtual void \hyperlink{classEventTest_ac1a36f6fd374e4fb96920a9ef0702ba9}{on\-Start} ()
\item 
virtual void \hyperlink{classEventTest_ac423a847a3fb8c395629fe60c5d65512}{on\-End} (bool is\-Winner)
\item 
virtual void \hyperlink{classEventTest_a5639872db89df2047ab4a468f0b372fb}{on\-Frame} ()
\item 
virtual void \hyperlink{classEventTest_a519d0d338d83371e4ba7477dbc655775}{on\-Send\-Text} (std\-::string text)
\item 
virtual void \hyperlink{classEventTest_aabadff77d464b1d2c91ab190c1e18638}{on\-Receive\-Text} (\hyperlink{classBWAPI_1_1Player}{\-B\-W\-A\-P\-I\-::\-Player} $\ast$player, std\-::string text)
\item 
virtual void \hyperlink{classEventTest_aaa93d917c523e16cb4dbda9e5a319862}{on\-Player\-Left} (\hyperlink{classBWAPI_1_1Player}{\-B\-W\-A\-P\-I\-::\-Player} $\ast$player)
\item 
virtual void \hyperlink{classEventTest_a8dc92b6358f577c481467904509fb32e}{on\-Nuke\-Detect} (\hyperlink{classBWAPI_1_1Position}{\-B\-W\-A\-P\-I\-::\-Position} target)
\item 
virtual void \hyperlink{classEventTest_a3d8484c30cc78d8bf6a76a41af60785c}{on\-Unit\-Discover} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classEventTest_a7a4451b7069f9a379ff4c6797cf513ee}{on\-Unit\-Evade} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classEventTest_a9bda3179d34f649c0d8877ed2f8ec9aa}{on\-Unit\-Show} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classEventTest_a28c7761d49a305dae3ca3126748a3e66}{on\-Unit\-Hide} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classEventTest_a4fa6bd532e08cee790a28108971c3932}{on\-Unit\-Create} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classEventTest_a80f8764a5a4bba14a6bea486a46ade94}{on\-Unit\-Destroy} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classEventTest_a461e6989fa7ddc130e7aaf0922be3b7a}{on\-Unit\-Morph} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classEventTest_a296897b19d6af6ca6e4e0feda99916d2}{on\-Unit\-Renegade} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classEventTest_a9b1367a81c2d27347f07c7aab590e05b}{on\-Save\-Game} (std\-::string game\-Name)
\item 
bool \hyperlink{classEventTest_ab370f54a14819fc8af5e8d91a0169857}{is\-Event\-Expected\-Next} (\hyperlink{classBWAPI_1_1Event}{\-B\-W\-A\-P\-I\-::\-Event} \hyperlink{sha1_8cpp_a270b1ecf56619755ce62f6970dfabc91}{e})
\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::list$<$ \hyperlink{classBWAPI_1_1Event}{\-B\-W\-A\-P\-I\-::\-Event} $>$ \hyperlink{classEventTest_a7486291abd19a31b0026b40bb9105207}{expected\-Events}
\item 
bool \hyperlink{classEventTest_a6beb38b6739990a918ec60dbe7de09f1}{strict\-Event\-Checking}
\item 
bool \hyperlink{classEventTest_a7d2d7ed18e45b68c217ac7db728eb2aa}{on\-Start\-Called}
\item 
bool \hyperlink{classEventTest_a797a0652bde38be6dfd6b946c3f3b477}{on\-End\-Called}
\item 
enum \-Event\-Test\-:: \{ ... \}  \hyperlink{classEventTest_a930d781048afb837e6e85171ad28d238}{state}
\end{DoxyCompactItemize}


\subsection{\-Member \-Enumeration \-Documentation}
\hypertarget{classEventTest_aca7dcf9306584941a160cea6a9ce2bcd}{\subsubsection[{anonymous enum}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}}\label{classEventTest_aca7dcf9306584941a160cea6a9ce2bcd}
\begin{Desc}
\item[\-Enumerator\-: ]\par
\begin{description}
\index{\-Start@{\-Start}!\-Event\-Test@{\-Event\-Test}}\index{\-Event\-Test@{\-Event\-Test}!\-Start@{\-Start}}\item[{\em 
\hypertarget{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda965ede921879158494a335e21943d20b}{\-Start}\label{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda965ede921879158494a335e21943d20b}
}]\index{\-Training\-S\-C\-V@{\-Training\-S\-C\-V}!\-Event\-Test@{\-Event\-Test}}\index{\-Event\-Test@{\-Event\-Test}!\-Training\-S\-C\-V@{\-Training\-S\-C\-V}}\item[{\em 
\hypertarget{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda6a5fb3f5e6909cac60ecfd10b9f14dc5}{\-Training\-S\-C\-V}\label{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda6a5fb3f5e6909cac60ecfd10b9f14dc5}
}]\index{\-Building\-Refinery@{\-Building\-Refinery}!\-Event\-Test@{\-Event\-Test}}\index{\-Event\-Test@{\-Event\-Test}!\-Building\-Refinery@{\-Building\-Refinery}}\item[{\em 
\hypertarget{classEventTest_aca7dcf9306584941a160cea6a9ce2bcdaba7986b97a34412504b4617f5c40f928}{\-Building\-Refinery}\label{classEventTest_aca7dcf9306584941a160cea6a9ce2bcdaba7986b97a34412504b4617f5c40f928}
}]\index{\-Killing\-S\-C\-V@{\-Killing\-S\-C\-V}!\-Event\-Test@{\-Event\-Test}}\index{\-Event\-Test@{\-Event\-Test}!\-Killing\-S\-C\-V@{\-Killing\-S\-C\-V}}\item[{\em 
\hypertarget{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda91cb6be6e258488ad12d6b102312ade6}{\-Killing\-S\-C\-V}\label{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda91cb6be6e258488ad12d6b102312ade6}
}]\index{\-Training\-Nuke@{\-Training\-Nuke}!\-Event\-Test@{\-Event\-Test}}\index{\-Event\-Test@{\-Event\-Test}!\-Training\-Nuke@{\-Training\-Nuke}}\item[{\em 
\hypertarget{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda0d5345b3efa6dabcce7f4592ca91f28a}{\-Training\-Nuke}\label{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda0d5345b3efa6dabcce7f4592ca91f28a}
}]\index{\-Using\-Nuke@{\-Using\-Nuke}!\-Event\-Test@{\-Event\-Test}}\index{\-Event\-Test@{\-Event\-Test}!\-Using\-Nuke@{\-Using\-Nuke}}\item[{\em 
\hypertarget{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda144d45f64c2fa0bebeca77b6063f81e3}{\-Using\-Nuke}\label{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda144d45f64c2fa0bebeca77b6063f81e3}
}]\index{\-Destroying\-Enemy@{\-Destroying\-Enemy}!\-Event\-Test@{\-Event\-Test}}\index{\-Event\-Test@{\-Event\-Test}!\-Destroying\-Enemy@{\-Destroying\-Enemy}}\item[{\em 
\hypertarget{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda075a9e2a4da3a68d08d2ad9b6e1c7e61}{\-Destroying\-Enemy}\label{classEventTest_aca7dcf9306584941a160cea6a9ce2bcda075a9e2a4da3a68d08d2ad9b6e1c7e61}
}]\end{description}
\end{Desc}



\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classEventTest_a5aa3b8084720f1c7957303a0f60e8df7}{\index{\-Event\-Test@{\-Event\-Test}!\-Event\-Test@{\-Event\-Test}}
\index{\-Event\-Test@{\-Event\-Test}!EventTest@{\-Event\-Test}}
\subsubsection[{\-Event\-Test}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Event\-Test\-::\-Event\-Test} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classEventTest_a5aa3b8084720f1c7957303a0f60e8df7}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classEventTest_ab370f54a14819fc8af5e8d91a0169857}{\index{\-Event\-Test@{\-Event\-Test}!is\-Event\-Expected\-Next@{is\-Event\-Expected\-Next}}
\index{is\-Event\-Expected\-Next@{is\-Event\-Expected\-Next}!EventTest@{\-Event\-Test}}
\subsubsection[{is\-Event\-Expected\-Next}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Event\-Test\-::is\-Event\-Expected\-Next} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Event}}]{e}
\end{DoxyParamCaption}
)}}\label{classEventTest_ab370f54a14819fc8af5e8d91a0169857}


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


\hypertarget{classEventTest_ac423a847a3fb8c395629fe60c5d65512}{\index{\-Event\-Test@{\-Event\-Test}!on\-End@{on\-End}}
\index{on\-End@{on\-End}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-End}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-End} (
\begin{DoxyParamCaption}
\item[{bool}]{is\-Winner}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_ac423a847a3fb8c395629fe60c5d65512}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this at the end of the match. is\-Winner will be true if the \-A\-I\-Module won the game. \-If the game is a replay, is\-Winner will always be false. 

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

\hypertarget{classEventTest_a5639872db89df2047ab4a468f0b372fb}{\index{\-Event\-Test@{\-Event\-Test}!on\-Frame@{on\-Frame}}
\index{on\-Frame@{on\-Frame}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Frame}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Frame} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a5639872db89df2047ab4a468f0b372fb}
\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]{classEventTest_a5639872db89df2047ab4a468f0b372fb_cgraph}
\end{center}
\end{figure}


\hypertarget{classEventTest_a8dc92b6358f577c481467904509fb32e}{\index{\-Event\-Test@{\-Event\-Test}!on\-Nuke\-Detect@{on\-Nuke\-Detect}}
\index{on\-Nuke\-Detect@{on\-Nuke\-Detect}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Nuke\-Detect}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Nuke\-Detect} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Position}}]{target}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a8dc92b6358f577c481467904509fb32e}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when a nuclear launch has been detected. \-If the target position is visible, or if \-Complete \-Map \-Information is enabled, the target position will also be provided. \-If \-Complete \-Map \-Information is disabled and the target position is not visible, target will be set to \-Positions\-::\-Unknown. 

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

\hypertarget{classEventTest_aaa93d917c523e16cb4dbda9e5a319862}{\index{\-Event\-Test@{\-Event\-Test}!on\-Player\-Left@{on\-Player\-Left}}
\index{on\-Player\-Left@{on\-Player\-Left}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Player\-Left}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Player\-Left} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Player} $\ast$}]{player}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_aaa93d917c523e16cb4dbda9e5a319862}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when a player leaves the game. 

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

\hypertarget{classEventTest_aabadff77d464b1d2c91ab190c1e18638}{\index{\-Event\-Test@{\-Event\-Test}!on\-Receive\-Text@{on\-Receive\-Text}}
\index{on\-Receive\-Text@{on\-Receive\-Text}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Receive\-Text}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Receive\-Text} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Player} $\ast$}]{player, }
\item[{std\-::string}]{text}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_aabadff77d464b1d2c91ab190c1e18638}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when another player sends a message. 

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

\hypertarget{classEventTest_a9b1367a81c2d27347f07c7aab590e05b}{\index{\-Event\-Test@{\-Event\-Test}!on\-Save\-Game@{on\-Save\-Game}}
\index{on\-Save\-Game@{on\-Save\-Game}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Save\-Game}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Save\-Game} (
\begin{DoxyParamCaption}
\item[{std\-::string}]{game\-Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a9b1367a81c2d27347f07c7aab590e05b}


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

\hypertarget{classEventTest_a519d0d338d83371e4ba7477dbc655775}{\index{\-Event\-Test@{\-Event\-Test}!on\-Send\-Text@{on\-Send\-Text}}
\index{on\-Send\-Text@{on\-Send\-Text}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Send\-Text}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Send\-Text} (
\begin{DoxyParamCaption}
\item[{std\-::string}]{text}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a519d0d338d83371e4ba7477dbc655775}
\-If \-Flag\-::\-User\-Input is enabled, \hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} will call this each time a user enters a message into the chat. 

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

\hypertarget{classEventTest_ac1a36f6fd374e4fb96920a9ef0702ba9}{\index{\-Event\-Test@{\-Event\-Test}!on\-Start@{on\-Start}}
\index{on\-Start@{on\-Start}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Start}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Start} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_ac1a36f6fd374e4fb96920a9ef0702ba9}
\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]{classEventTest_ac1a36f6fd374e4fb96920a9ef0702ba9_cgraph}
\end{center}
\end{figure}


\hypertarget{classEventTest_a4fa6bd532e08cee790a28108971c3932}{\index{\-Event\-Test@{\-Event\-Test}!on\-Unit\-Create@{on\-Unit\-Create}}
\index{on\-Unit\-Create@{on\-Unit\-Create}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Unit\-Create}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-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{classEventTest_a4fa6bd532e08cee790a28108971c3932}
\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}.

\hypertarget{classEventTest_a80f8764a5a4bba14a6bea486a46ade94}{\index{\-Event\-Test@{\-Event\-Test}!on\-Unit\-Destroy@{on\-Unit\-Destroy}}
\index{on\-Unit\-Destroy@{on\-Unit\-Destroy}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Unit\-Destroy}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-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{classEventTest_a80f8764a5a4bba14a6bea486a46ade94}
\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}.

\hypertarget{classEventTest_a3d8484c30cc78d8bf6a76a41af60785c}{\index{\-Event\-Test@{\-Event\-Test}!on\-Unit\-Discover@{on\-Unit\-Discover}}
\index{on\-Unit\-Discover@{on\-Unit\-Discover}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Unit\-Discover}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Unit\-Discover} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a3d8484c30cc78d8bf6a76a41af60785c}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when a unit becomes accessible. 

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

\hypertarget{classEventTest_a7a4451b7069f9a379ff4c6797cf513ee}{\index{\-Event\-Test@{\-Event\-Test}!on\-Unit\-Evade@{on\-Unit\-Evade}}
\index{on\-Unit\-Evade@{on\-Unit\-Evade}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Unit\-Evade}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Unit\-Evade} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a7a4451b7069f9a379ff4c6797cf513ee}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when a unit becomes inaccessible. 

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

\hypertarget{classEventTest_a28c7761d49a305dae3ca3126748a3e66}{\index{\-Event\-Test@{\-Event\-Test}!on\-Unit\-Hide@{on\-Unit\-Hide}}
\index{on\-Unit\-Hide@{on\-Unit\-Hide}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Unit\-Hide}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Unit\-Hide} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a28c7761d49a305dae3ca3126748a3e66}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this right before a unit becomes invisible, so if you want your non-\/cheating \-A\-I to remember where it last saw a unit, this callback would be a good place to implement it. \-The complete map information flag has no effect on this callback. 

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

\hypertarget{classEventTest_a461e6989fa7ddc130e7aaf0922be3b7a}{\index{\-Event\-Test@{\-Event\-Test}!on\-Unit\-Morph@{on\-Unit\-Morph}}
\index{on\-Unit\-Morph@{on\-Unit\-Morph}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Unit\-Morph}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Unit\-Morph} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a461e6989fa7ddc130e7aaf0922be3b7a}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when a unit changes type, such as from a \-Zerg \-Drone to a \-Zerg \-Hatchery, or from a \-Terran \-Siege \-Tank \-Tank \-Mode to \-Terran \-Siege \-Tank \-Siege \-Mode. \-This is not called when the type changes to or from \-Unit\-Types\-::\-Unknown (which happens when a unit becomes visible or invisible). 

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

\hypertarget{classEventTest_a296897b19d6af6ca6e4e0feda99916d2}{\index{\-Event\-Test@{\-Event\-Test}!on\-Unit\-Renegade@{on\-Unit\-Renegade}}
\index{on\-Unit\-Renegade@{on\-Unit\-Renegade}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Unit\-Renegade}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Unit\-Renegade} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a296897b19d6af6ca6e4e0feda99916d2}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when an accessible unit changes ownership. 

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

\hypertarget{classEventTest_a9bda3179d34f649c0d8877ed2f8ec9aa}{\index{\-Event\-Test@{\-Event\-Test}!on\-Unit\-Show@{on\-Unit\-Show}}
\index{on\-Unit\-Show@{on\-Unit\-Show}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Unit\-Show}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Event\-Test\-::on\-Unit\-Show} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classEventTest_a9bda3179d34f649c0d8877ed2f8ec9aa}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this the instant a previously invisible unit becomes visible. \-The complete map information flag has no effect on this callback. 

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



\subsection{\-Member \-Data \-Documentation}
\hypertarget{classEventTest_a7486291abd19a31b0026b40bb9105207}{\index{\-Event\-Test@{\-Event\-Test}!expected\-Events@{expected\-Events}}
\index{expected\-Events@{expected\-Events}!EventTest@{\-Event\-Test}}
\subsubsection[{expected\-Events}]{\setlength{\rightskip}{0pt plus 5cm}std\-::list$<${\bf \-B\-W\-A\-P\-I\-::\-Event}$>$ {\bf \-Event\-Test\-::expected\-Events}}}\label{classEventTest_a7486291abd19a31b0026b40bb9105207}
\hypertarget{classEventTest_a797a0652bde38be6dfd6b946c3f3b477}{\index{\-Event\-Test@{\-Event\-Test}!on\-End\-Called@{on\-End\-Called}}
\index{on\-End\-Called@{on\-End\-Called}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-End\-Called}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Event\-Test\-::on\-End\-Called}}}\label{classEventTest_a797a0652bde38be6dfd6b946c3f3b477}
\hypertarget{classEventTest_a7d2d7ed18e45b68c217ac7db728eb2aa}{\index{\-Event\-Test@{\-Event\-Test}!on\-Start\-Called@{on\-Start\-Called}}
\index{on\-Start\-Called@{on\-Start\-Called}!EventTest@{\-Event\-Test}}
\subsubsection[{on\-Start\-Called}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Event\-Test\-::on\-Start\-Called}}}\label{classEventTest_a7d2d7ed18e45b68c217ac7db728eb2aa}
\hypertarget{classEventTest_a930d781048afb837e6e85171ad28d238}{\index{\-Event\-Test@{\-Event\-Test}!state@{state}}
\index{state@{state}!EventTest@{\-Event\-Test}}
\subsubsection[{state}]{\setlength{\rightskip}{0pt plus 5cm}enum \{ ... \}   {\bf \-Event\-Test\-::state}}}\label{classEventTest_a930d781048afb837e6e85171ad28d238}
\hypertarget{classEventTest_a6beb38b6739990a918ec60dbe7de09f1}{\index{\-Event\-Test@{\-Event\-Test}!strict\-Event\-Checking@{strict\-Event\-Checking}}
\index{strict\-Event\-Checking@{strict\-Event\-Checking}!EventTest@{\-Event\-Test}}
\subsubsection[{strict\-Event\-Checking}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Event\-Test\-::strict\-Event\-Checking}}}\label{classEventTest_a6beb38b6739990a918ec60dbe7de09f1}


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