\hypertarget{classExampleTournamentAI}{\section{\-Example\-Tournament\-A\-I \-Class \-Reference}
\label{classExampleTournamentAI}\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}}
}


{\ttfamily \#include $<$\-Example\-Tournament\-Module.\-h$>$}



\-Inheritance diagram for \-Example\-Tournament\-A\-I\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=196pt]{classExampleTournamentAI__inherit__graph}
\end{center}
\end{figure}


\-Collaboration diagram for \-Example\-Tournament\-A\-I\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=196pt]{classExampleTournamentAI__coll__graph}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{classExampleTournamentAI_a7d98f68b52d399829dcc025593067c95}{on\-Start} ()
\item 
virtual void \hyperlink{classExampleTournamentAI_a83b0d3c3ff238738123d30764e945208}{on\-End} (bool is\-Winner)
\item 
virtual void \hyperlink{classExampleTournamentAI_abbbb2eb5c7bae123cf5706e07a4b6d37}{on\-Frame} ()
\item 
virtual void \hyperlink{classExampleTournamentAI_a042f3af2fe204c104582577288bca8a7}{on\-Send\-Text} (std\-::string text)
\item 
virtual void \hyperlink{classExampleTournamentAI_a54da380aac43f37fdd4c86cb1bfe2186}{on\-Receive\-Text} (\hyperlink{classBWAPI_1_1Player}{\-B\-W\-A\-P\-I\-::\-Player} $\ast$player, std\-::string text)
\item 
virtual void \hyperlink{classExampleTournamentAI_a0fd5bde3f8c668e614cb48b12685b3ee}{on\-Player\-Left} (\hyperlink{classBWAPI_1_1Player}{\-B\-W\-A\-P\-I\-::\-Player} $\ast$player)
\item 
virtual void \hyperlink{classExampleTournamentAI_abd3e72b069df4a30cc0ce57d0e412539}{on\-Nuke\-Detect} (\hyperlink{classBWAPI_1_1Position}{\-B\-W\-A\-P\-I\-::\-Position} target)
\item 
virtual void \hyperlink{classExampleTournamentAI_a87fc5ab1f93137291c3531339f2d2e0b}{on\-Unit\-Discover} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExampleTournamentAI_a5caae465e241b191f28bca48c27a4382}{on\-Unit\-Evade} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExampleTournamentAI_aa08eddcd672bc932c008b96abf70de8a}{on\-Unit\-Show} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExampleTournamentAI_a00fc50a643772f34915072b8460c0036}{on\-Unit\-Hide} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExampleTournamentAI_a9cb9adb029443c43c52202562ebae31d}{on\-Unit\-Create} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExampleTournamentAI_a9390868991349adc7b9e2ebf6aae27a9}{on\-Unit\-Destroy} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExampleTournamentAI_a066c6afa1aa69cc6c024b12cff7107dd}{on\-Unit\-Morph} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExampleTournamentAI_a7247ff37dd8b96902b10a143d2f32780}{on\-Unit\-Renegade} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExampleTournamentAI_a60836b5b9913a96750cb82ad5a19a4be}{on\-Save\-Game} (std\-::string game\-Name)
\item 
virtual void \hyperlink{classExampleTournamentAI_a564ac7972dc4142ed38d3d0ebbc0d3a0}{on\-Unit\-Complete} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
virtual void \hyperlink{classExampleTournamentAI_a77049fcc9ddc28df3dc4d17f99aea728}{on\-Player\-Dropped} (\hyperlink{classBWAPI_1_1Player}{\-B\-W\-A\-P\-I\-::\-Player} $\ast$player)
\end{DoxyCompactItemize}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classExampleTournamentAI_a83b0d3c3ff238738123d30764e945208}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-End@{on\-End}}
\index{on\-End@{on\-End}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-End}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::on\-End} (
\begin{DoxyParamCaption}
\item[{bool}]{is\-Winner}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExampleTournamentAI_a83b0d3c3ff238738123d30764e945208}
\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{classExampleTournamentAI_abbbb2eb5c7bae123cf5706e07a4b6d37}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Frame@{on\-Frame}}
\index{on\-Frame@{on\-Frame}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Frame}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::on\-Frame} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExampleTournamentAI_abbbb2eb5c7bae123cf5706e07a4b6d37}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this on every logical frame in the game. 

\-Reimplemented from \hyperlink{classBWAPI_1_1AIModule_a4956c50e0d9d26128b34f679399fc89a}{\-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]{classExampleTournamentAI_abbbb2eb5c7bae123cf5706e07a4b6d37_cgraph}
\end{center}
\end{figure}


\hypertarget{classExampleTournamentAI_abd3e72b069df4a30cc0ce57d0e412539}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Nuke\-Detect@{on\-Nuke\-Detect}}
\index{on\-Nuke\-Detect@{on\-Nuke\-Detect}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Nuke\-Detect}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::on\-Nuke\-Detect} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Position}}]{target}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExampleTournamentAI_abd3e72b069df4a30cc0ce57d0e412539}
\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}.



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


\hypertarget{classExampleTournamentAI_a77049fcc9ddc28df3dc4d17f99aea728}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Player\-Dropped@{on\-Player\-Dropped}}
\index{on\-Player\-Dropped@{on\-Player\-Dropped}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Player\-Dropped}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::on\-Player\-Dropped} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Player} $\ast$}]{player}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExampleTournamentAI_a77049fcc9ddc28df3dc4d17f99aea728}


\-Reimplemented from \hyperlink{classBWAPI_1_1AIModule_a865cd334112466dced04a51418fa6db0}{\-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]{classExampleTournamentAI_a77049fcc9ddc28df3dc4d17f99aea728_cgraph}
\end{center}
\end{figure}


\hypertarget{classExampleTournamentAI_a0fd5bde3f8c668e614cb48b12685b3ee}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Player\-Left@{on\-Player\-Left}}
\index{on\-Player\-Left@{on\-Player\-Left}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Player\-Left}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_a0fd5bde3f8c668e614cb48b12685b3ee}
\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}.



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


\hypertarget{classExampleTournamentAI_a54da380aac43f37fdd4c86cb1bfe2186}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Receive\-Text@{on\-Receive\-Text}}
\index{on\-Receive\-Text@{on\-Receive\-Text}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Receive\-Text}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_a54da380aac43f37fdd4c86cb1bfe2186}
\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}.



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


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


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

\hypertarget{classExampleTournamentAI_a042f3af2fe204c104582577288bca8a7}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Send\-Text@{on\-Send\-Text}}
\index{on\-Send\-Text@{on\-Send\-Text}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Send\-Text}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::on\-Send\-Text} (
\begin{DoxyParamCaption}
\item[{std\-::string}]{text}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExampleTournamentAI_a042f3af2fe204c104582577288bca8a7}
\-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}.



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


\hypertarget{classExampleTournamentAI_a7d98f68b52d399829dcc025593067c95}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Start@{on\-Start}}
\index{on\-Start@{on\-Start}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Start}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::on\-Start} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExampleTournamentAI_a7d98f68b52d399829dcc025593067c95}
\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]{classExampleTournamentAI_a7d98f68b52d399829dcc025593067c95_cgraph}
\end{center}
\end{figure}


\hypertarget{classExampleTournamentAI_a564ac7972dc4142ed38d3d0ebbc0d3a0}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Unit\-Complete@{on\-Unit\-Complete}}
\index{on\-Unit\-Complete@{on\-Unit\-Complete}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Unit\-Complete}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::on\-Unit\-Complete} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classExampleTournamentAI_a564ac7972dc4142ed38d3d0ebbc0d3a0}


\-Reimplemented from \hyperlink{classBWAPI_1_1AIModule_a960f9da65eaad73bb9e6c6c59332d210}{\-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]{classExampleTournamentAI_a564ac7972dc4142ed38d3d0ebbc0d3a0_cgraph}
\end{center}
\end{figure}


\hypertarget{classExampleTournamentAI_a9cb9adb029443c43c52202562ebae31d}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Unit\-Create@{on\-Unit\-Create}}
\index{on\-Unit\-Create@{on\-Unit\-Create}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Unit\-Create}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_a9cb9adb029443c43c52202562ebae31d}
\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{classBWAPI_1_1AIModule_aa445d7eba03ab515c7e6e6f23628e761}{\-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]{classExampleTournamentAI_a9cb9adb029443c43c52202562ebae31d_cgraph}
\end{center}
\end{figure}


\hypertarget{classExampleTournamentAI_a9390868991349adc7b9e2ebf6aae27a9}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Unit\-Destroy@{on\-Unit\-Destroy}}
\index{on\-Unit\-Destroy@{on\-Unit\-Destroy}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Unit\-Destroy}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_a9390868991349adc7b9e2ebf6aae27a9}
\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{classBWAPI_1_1AIModule_a32637d3e091a5fe7ee53e2de6caccfb6}{\-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]{classExampleTournamentAI_a9390868991349adc7b9e2ebf6aae27a9_cgraph}
\end{center}
\end{figure}


\hypertarget{classExampleTournamentAI_a87fc5ab1f93137291c3531339f2d2e0b}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Unit\-Discover@{on\-Unit\-Discover}}
\index{on\-Unit\-Discover@{on\-Unit\-Discover}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Unit\-Discover}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_a87fc5ab1f93137291c3531339f2d2e0b}
\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{classExampleTournamentAI_a5caae465e241b191f28bca48c27a4382}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Unit\-Evade@{on\-Unit\-Evade}}
\index{on\-Unit\-Evade@{on\-Unit\-Evade}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Unit\-Evade}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_a5caae465e241b191f28bca48c27a4382}
\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{classExampleTournamentAI_a00fc50a643772f34915072b8460c0036}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Unit\-Hide@{on\-Unit\-Hide}}
\index{on\-Unit\-Hide@{on\-Unit\-Hide}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Unit\-Hide}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_a00fc50a643772f34915072b8460c0036}
\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{classExampleTournamentAI_a066c6afa1aa69cc6c024b12cff7107dd}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Unit\-Morph@{on\-Unit\-Morph}}
\index{on\-Unit\-Morph@{on\-Unit\-Morph}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Unit\-Morph}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_a066c6afa1aa69cc6c024b12cff7107dd}
\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}.



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


\hypertarget{classExampleTournamentAI_a7247ff37dd8b96902b10a143d2f32780}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Unit\-Renegade@{on\-Unit\-Renegade}}
\index{on\-Unit\-Renegade@{on\-Unit\-Renegade}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Unit\-Renegade}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_a7247ff37dd8b96902b10a143d2f32780}
\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{classExampleTournamentAI_aa08eddcd672bc932c008b96abf70de8a}{\index{\-Example\-Tournament\-A\-I@{\-Example\-Tournament\-A\-I}!on\-Unit\-Show@{on\-Unit\-Show}}
\index{on\-Unit\-Show@{on\-Unit\-Show}!ExampleTournamentAI@{\-Example\-Tournament\-A\-I}}
\subsubsection[{on\-Unit\-Show}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Example\-Tournament\-A\-I\-::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{classExampleTournamentAI_aa08eddcd672bc932c008b96abf70de8a}
\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}.



\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
trunk/bwapi/\-Example\-Tournament\-Module/\-Source/\hyperlink{ExampleTournamentModule_8h}{\-Example\-Tournament\-Module.\-h}\item 
trunk/bwapi/\-Example\-Tournament\-Module/\-Source/\hyperlink{ExampleTournamentModule_8cpp}{\-Example\-Tournament\-Module.\-cpp}\end{DoxyCompactItemize}
