\hypertarget{classBWAPI_1_1TournamentModule}{\section{\-B\-W\-A\-P\-I\-:\-:\-Tournament\-Module \-Class \-Reference}
\label{classBWAPI_1_1TournamentModule}\index{\-B\-W\-A\-P\-I\-::\-Tournament\-Module@{\-B\-W\-A\-P\-I\-::\-Tournament\-Module}}
}


{\ttfamily \#include $<$\-A\-I\-Module.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWAPI_1_1TournamentModule_ae3142f8c1bcfb743264d87bf14e90ba8}{\-Tournament\-Module} ()
\item 
virtual \hyperlink{classBWAPI_1_1TournamentModule_a64170d381304fb6baca7040f0b5a1c69}{$\sim$\-Tournament\-Module} ()
\item 
virtual bool \hyperlink{classBWAPI_1_1TournamentModule_add85c1f323c1dba2bee2abb2db165013}{on\-Action} (int action\-Type, void $\ast$parameter=\-N\-U\-L\-L)
\item 
virtual void \hyperlink{classBWAPI_1_1TournamentModule_a8f610d0a46708b0d27f7cec0fb0251d6}{on\-First\-Advertisement} ()
\end{DoxyCompactItemize}


\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classBWAPI_1_1TournamentModule_ae3142f8c1bcfb743264d87bf14e90ba8}{\index{\-B\-W\-A\-P\-I\-::\-Tournament\-Module@{\-B\-W\-A\-P\-I\-::\-Tournament\-Module}!\-Tournament\-Module@{\-Tournament\-Module}}
\index{\-Tournament\-Module@{\-Tournament\-Module}!BWAPI::TournamentModule@{\-B\-W\-A\-P\-I\-::\-Tournament\-Module}}
\subsubsection[{\-Tournament\-Module}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Tournament\-Module\-::\-Tournament\-Module} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1TournamentModule_ae3142f8c1bcfb743264d87bf14e90ba8}
\hypertarget{classBWAPI_1_1TournamentModule_a64170d381304fb6baca7040f0b5a1c69}{\index{\-B\-W\-A\-P\-I\-::\-Tournament\-Module@{\-B\-W\-A\-P\-I\-::\-Tournament\-Module}!$\sim$\-Tournament\-Module@{$\sim$\-Tournament\-Module}}
\index{$\sim$\-Tournament\-Module@{$\sim$\-Tournament\-Module}!BWAPI::TournamentModule@{\-B\-W\-A\-P\-I\-::\-Tournament\-Module}}
\subsubsection[{$\sim$\-Tournament\-Module}]{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf \-B\-W\-A\-P\-I\-::\-Tournament\-Module\-::$\sim$\-Tournament\-Module} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classBWAPI_1_1TournamentModule_a64170d381304fb6baca7040f0b5a1c69}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classBWAPI_1_1TournamentModule_add85c1f323c1dba2bee2abb2db165013}{\index{\-B\-W\-A\-P\-I\-::\-Tournament\-Module@{\-B\-W\-A\-P\-I\-::\-Tournament\-Module}!on\-Action@{on\-Action}}
\index{on\-Action@{on\-Action}!BWAPI::TournamentModule@{\-B\-W\-A\-P\-I\-::\-Tournament\-Module}}
\subsubsection[{on\-Action}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool {\bf \-B\-W\-A\-P\-I\-::\-Tournament\-Module\-::on\-Action} (
\begin{DoxyParamCaption}
\item[{int}]{action\-Type, }
\item[{void $\ast$}]{parameter = {\ttfamily \-N\-U\-L\-L}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classBWAPI_1_1TournamentModule_add85c1f323c1dba2bee2abb2db165013}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this any time some \-Game-\/related functions are called. \-Return true to allow them, or false to disallow them. \-This includes functions like \hyperlink{classBWAPI_1_1Game_a79bf233045490ed0cfc5649ccfba8984}{\-Game\-::pause\-Game} and \hyperlink{classBWAPI_1_1Game_a4db25bc867384c505cacfafc3ee49314}{\-Game\-::enable\-Flag}. \hypertarget{classBWAPI_1_1TournamentModule_a8f610d0a46708b0d27f7cec0fb0251d6}{\index{\-B\-W\-A\-P\-I\-::\-Tournament\-Module@{\-B\-W\-A\-P\-I\-::\-Tournament\-Module}!on\-First\-Advertisement@{on\-First\-Advertisement}}
\index{on\-First\-Advertisement@{on\-First\-Advertisement}!BWAPI::TournamentModule@{\-B\-W\-A\-P\-I\-::\-Tournament\-Module}}
\subsubsection[{on\-First\-Advertisement}]{\setlength{\rightskip}{0pt plus 5cm}virtual void {\bf \-B\-W\-A\-P\-I\-::\-Tournament\-Module\-::on\-First\-Advertisement} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classBWAPI_1_1TournamentModule_a8f610d0a46708b0d27f7cec0fb0251d6}
\hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} calls this when this module was the first to send out its tournament advertisement. \-It can prevent both modules from performing the same task if it's necessary. 

\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-Undermind/proxy/cpp/include/\-B\-W\-A\-P\-I/\hyperlink{AIModule_8h}{\-A\-I\-Module.\-h}\end{DoxyCompactItemize}
