\hypertarget{ExampleTournamentModule_8cpp}{\section{trunk/bwapi/\-Example\-Tournament\-Module/\-Source/\-Example\-Tournament\-Module.cpp \-File \-Reference}
\label{ExampleTournamentModule_8cpp}\index{trunk/bwapi/\-Example\-Tournament\-Module/\-Source/\-Example\-Tournament\-Module.\-cpp@{trunk/bwapi/\-Example\-Tournament\-Module/\-Source/\-Example\-Tournament\-Module.\-cpp}}
}
{\ttfamily \#include $<$windows.\-h$>$}\*
{\ttfamily \#include $<$\-Shlwapi.\-h$>$}\*
{\ttfamily \#include $<$vector$>$}\*
{\ttfamily \#include \char`\"{}\-Example\-Tournament\-Module.\-h\char`\"{}}\*
\-Include dependency graph for \-Example\-Tournament\-Module.\-cpp\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{ExampleTournamentModule_8cpp__incl}
\end{center}
\end{figure}
\subsection*{\-Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classcoolevent}{coolevent}
\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{ExampleTournamentModule_8cpp_aae5ca5e1c4aefa9e752d0196b587bdfe}{\-Add\-Event} (\hyperlink{classBWAPI_1_1Position}{\-Position} pos, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} priority, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} timer=25, const char $\ast$psz\-Debug=\hyperlink{Types_8h_a070d2ce7b6bb7e5c05602aa8c308d0c4}{\-N\-U\-L\-L})
\item 
void \hyperlink{ExampleTournamentModule_8cpp_aa5ab2e7bc0fe7b53f98a0b085f535524}{\-Add\-Event} (\hyperlink{classBWAPI_1_1Unit}{\-Unit} $\ast$unit, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} priority, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} timer=25)
\item 
void \hyperlink{ExampleTournamentModule_8cpp_a404b4421598f48fb2f86e3547695e404}{\-Remove\-Event} (\hyperlink{classBWAPI_1_1Unit}{\-Unit} $\ast$unit)
\item 
void \hyperlink{ExampleTournamentModule_8cpp_a670bd718fe351f45f635ae5905fd83c5}{\-Clear\-Event} (const \hyperlink{classcoolevent}{coolevent} \&evt)
\item 
void \hyperlink{ExampleTournamentModule_8cpp_a724ad22092a29f1adee046288f1342fa}{\-Run\-Events} ()
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{ExampleTournamentModule_8cpp_ad0f92d4f2920acacca5a735c21cf9850}{leader} = false
\item 
char \hyperlink{ExampleTournamentModule_8cpp_abec14d655bdcbe36e72cbd44731784e0}{sz\-Bot\-Name} \mbox{[}\-M\-A\-X\-\_\-\-P\-A\-T\-H\mbox{]}
\item 
char $\ast$ \hyperlink{ExampleTournamentModule_8cpp_a317145ba171bf5e06fc236b6c09009cd}{psz\-Bot\-Name}
\item 
bool \hyperlink{ExampleTournamentModule_8cpp_a126ebcbdfa25976dc7d4d538670facb4}{is\-Joiner} = false
\item 
std\-::vector$<$ \hyperlink{classcoolevent}{coolevent} $>$ \hyperlink{ExampleTournamentModule_8cpp_a3602e6f6fda81df07f1de0a291f5cbea}{events}
\item 
\hyperlink{classcoolevent}{coolevent} \hyperlink{ExampleTournamentModule_8cpp_a50178d855c1168a80a4ae722081ec315}{current\-Event}
\item 
\hyperlink{classBWAPI_1_1Player}{\-Player} $\ast$ \hyperlink{ExampleTournamentModule_8cpp_a4919817fba0f21f5cc702b84751193b0}{self}
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{ExampleTournamentModule_8cpp_ad36d64bf440e9aa8e67fc479c9db97cf}{max\-A\-P\-M}
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{ExampleTournamentModule_8cpp_aae5ca5e1c4aefa9e752d0196b587bdfe}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!\-Add\-Event@{\-Add\-Event}}
\index{\-Add\-Event@{\-Add\-Event}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{\-Add\-Event}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Add\-Event} (
\begin{DoxyParamCaption}
\item[{{\bf \-Position}}]{pos, }
\item[{{\bf int}}]{priority, }
\item[{{\bf int}}]{timer = {\ttfamily 25}, }
\item[{const char $\ast$}]{psz\-Debug = {\ttfamily {\bf \-N\-U\-L\-L}}}
\end{DoxyParamCaption}
)}}\label{ExampleTournamentModule_8cpp_aae5ca5e1c4aefa9e752d0196b587bdfe}


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




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


\hypertarget{ExampleTournamentModule_8cpp_aa5ab2e7bc0fe7b53f98a0b085f535524}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!\-Add\-Event@{\-Add\-Event}}
\index{\-Add\-Event@{\-Add\-Event}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{\-Add\-Event}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Add\-Event} (
\begin{DoxyParamCaption}
\item[{{\bf \-Unit} $\ast$}]{unit, }
\item[{{\bf int}}]{priority, }
\item[{{\bf int}}]{timer = {\ttfamily 25}}
\end{DoxyParamCaption}
)}}\label{ExampleTournamentModule_8cpp_aa5ab2e7bc0fe7b53f98a0b085f535524}
\hypertarget{ExampleTournamentModule_8cpp_a670bd718fe351f45f635ae5905fd83c5}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!\-Clear\-Event@{\-Clear\-Event}}
\index{\-Clear\-Event@{\-Clear\-Event}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{\-Clear\-Event}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Clear\-Event} (
\begin{DoxyParamCaption}
\item[{const {\bf coolevent} \&}]{evt}
\end{DoxyParamCaption}
)}}\label{ExampleTournamentModule_8cpp_a670bd718fe351f45f635ae5905fd83c5}


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


\hypertarget{ExampleTournamentModule_8cpp_a404b4421598f48fb2f86e3547695e404}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!\-Remove\-Event@{\-Remove\-Event}}
\index{\-Remove\-Event@{\-Remove\-Event}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{\-Remove\-Event}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Remove\-Event} (
\begin{DoxyParamCaption}
\item[{{\bf \-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)}}\label{ExampleTournamentModule_8cpp_a404b4421598f48fb2f86e3547695e404}


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


\hypertarget{ExampleTournamentModule_8cpp_a724ad22092a29f1adee046288f1342fa}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!\-Run\-Events@{\-Run\-Events}}
\index{\-Run\-Events@{\-Run\-Events}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{\-Run\-Events}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Run\-Events} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{ExampleTournamentModule_8cpp_a724ad22092a29f1adee046288f1342fa}


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




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




\subsection{\-Variable \-Documentation}
\hypertarget{ExampleTournamentModule_8cpp_a50178d855c1168a80a4ae722081ec315}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!current\-Event@{current\-Event}}
\index{current\-Event@{current\-Event}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{current\-Event}]{\setlength{\rightskip}{0pt plus 5cm}{\bf coolevent} {\bf current\-Event}}}\label{ExampleTournamentModule_8cpp_a50178d855c1168a80a4ae722081ec315}
\hypertarget{ExampleTournamentModule_8cpp_a3602e6f6fda81df07f1de0a291f5cbea}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!events@{events}}
\index{events@{events}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{events}]{\setlength{\rightskip}{0pt plus 5cm}std\-::vector$<${\bf coolevent}$>$ {\bf events}}}\label{ExampleTournamentModule_8cpp_a3602e6f6fda81df07f1de0a291f5cbea}
\hypertarget{ExampleTournamentModule_8cpp_a126ebcbdfa25976dc7d4d538670facb4}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!is\-Joiner@{is\-Joiner}}
\index{is\-Joiner@{is\-Joiner}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{is\-Joiner}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf is\-Joiner} = false}}\label{ExampleTournamentModule_8cpp_a126ebcbdfa25976dc7d4d538670facb4}
\hypertarget{ExampleTournamentModule_8cpp_ad0f92d4f2920acacca5a735c21cf9850}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!leader@{leader}}
\index{leader@{leader}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{leader}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf leader} = false}}\label{ExampleTournamentModule_8cpp_ad0f92d4f2920acacca5a735c21cf9850}
\hypertarget{ExampleTournamentModule_8cpp_ad36d64bf440e9aa8e67fc479c9db97cf}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!max\-A\-P\-M@{max\-A\-P\-M}}
\index{max\-A\-P\-M@{max\-A\-P\-M}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{max\-A\-P\-M}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} {\bf max\-A\-P\-M}}}\label{ExampleTournamentModule_8cpp_ad36d64bf440e9aa8e67fc479c9db97cf}
\hypertarget{ExampleTournamentModule_8cpp_a317145ba171bf5e06fc236b6c09009cd}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!psz\-Bot\-Name@{psz\-Bot\-Name}}
\index{psz\-Bot\-Name@{psz\-Bot\-Name}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{psz\-Bot\-Name}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf psz\-Bot\-Name}}}\label{ExampleTournamentModule_8cpp_a317145ba171bf5e06fc236b6c09009cd}
\hypertarget{ExampleTournamentModule_8cpp_a4919817fba0f21f5cc702b84751193b0}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!self@{self}}
\index{self@{self}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{self}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Player}$\ast$ {\bf self}}}\label{ExampleTournamentModule_8cpp_a4919817fba0f21f5cc702b84751193b0}
\hypertarget{ExampleTournamentModule_8cpp_abec14d655bdcbe36e72cbd44731784e0}{\index{\-Example\-Tournament\-Module.\-cpp@{\-Example\-Tournament\-Module.\-cpp}!sz\-Bot\-Name@{sz\-Bot\-Name}}
\index{sz\-Bot\-Name@{sz\-Bot\-Name}!ExampleTournamentModule.cpp@{\-Example\-Tournament\-Module.\-cpp}}
\subsubsection[{sz\-Bot\-Name}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf sz\-Bot\-Name}\mbox{[}\-M\-A\-X\-\_\-\-P\-A\-T\-H\mbox{]}}}\label{ExampleTournamentModule_8cpp_abec14d655bdcbe36e72cbd44731784e0}
