\hypertarget{ScriptThread_8h}{\section{trunk/bwapi/\-B\-W\-Script\-Emulator/\-Script\-Thread.h \-File \-Reference}
\label{ScriptThread_8h}\index{trunk/bwapi/\-B\-W\-Script\-Emulator/\-Script\-Thread.\-h@{trunk/bwapi/\-B\-W\-Script\-Emulator/\-Script\-Thread.\-h}}
}
{\ttfamily \#include $<$windows.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W\-A\-P\-I.\-h$>$}\*
{\ttfamily \#include $<$list$>$}\*
{\ttfamily \#include $<$deque$>$}\*
\-Include dependency graph for \-Script\-Thread.\-h\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{ScriptThread_8h__incl}
\end{center}
\end{figure}
\-This graph shows which files directly or indirectly include this file\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{ScriptThread_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{\-Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classaithread}{aithread}
\end{DoxyCompactItemize}
\subsection*{\-Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{ScriptThread_8h_ad3be8b8d1b51bae5a0a13be1755d4988}{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-B\-R\-O\-O\-D\-W\-A\-R}~0x01
\item 
\#define \hyperlink{ScriptThread_8h_aa9eb391f6d466461911036c835c4212a}{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-K\-I\-L\-L\-A\-B\-L\-E}~0x02
\item 
\#define \hyperlink{ScriptThread_8h_a82fe870371184f3c6c2ba4163114b1e1}{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-W\-A\-N\-T\-\_\-\-K\-I\-L\-L\-E\-D}~0x04
\item 
\#define \hyperlink{ScriptThread_8h_a58aa0a8619dd61f71f53cce682dd095b}{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-T\-A\-R\-G\-\_\-\-E\-X\-P\-A\-N\-S\-I\-O\-N}~0x08
\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{ScriptThread_8h_a4486bfd533d21076008ffa4fa4de6e0e}{\-Update\-Scripts} ()
\item 
bool \hyperlink{ScriptThread_8h_a456be4461a06aad3b23b94a06f6a6d78}{\-Load\-A\-I\-Binary} (const char $\ast$psz\-File\-Name)
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{ScriptThread_8h_acc925ade31f192f37a686312fec58a07}{\-Get\-Standard\-Unit\-Count} (\hyperlink{classBWAPI_1_1UnitType}{\-B\-W\-A\-P\-I\-::\-Unit\-Type} type, bool b\-Completed=\hyperlink{ChaosLauncherInjector_2source_2DLLMain_8cpp_a930920b2bc42824a5c03be681830f4b2}{true}, \hyperlink{classBWAPI_1_1Player}{\-B\-W\-A\-P\-I\-::\-Player} $\ast$player=\hyperlink{Types_8h_a070d2ce7b6bb7e5c05602aa8c308d0c4}{\-N\-U\-L\-L})
\item 
void \hyperlink{ScriptThread_8h_a5f81c1608ce20f3af93958e5d3c0b2a2}{\-A\-I\-Create\-Thread} (\hyperlink{Types_8h_a197942eefa7db30960ae396d68339b97}{\-W\-O\-R\-D} w\-Start\-Block, \hyperlink{classBWAPI_1_1Position}{\-B\-W\-A\-P\-I\-::\-Position} location, void $\ast$p\-Town=\hyperlink{Types_8h_a070d2ce7b6bb7e5c05602aa8c308d0c4}{\-N\-U\-L\-L})
\item 
void \hyperlink{ScriptThread_8h_ac560b30f18800c67685a0535d8b790c4}{\-A\-I\-Create\-Thread} (char $\ast$psz\-Script\-I\-D, \hyperlink{classBWAPI_1_1Position}{\-B\-W\-A\-P\-I\-::\-Position} location)
\end{DoxyCompactItemize}


\subsection{\-Define \-Documentation}
\hypertarget{ScriptThread_8h_ad3be8b8d1b51bae5a0a13be1755d4988}{\index{\-Script\-Thread.\-h@{\-Script\-Thread.\-h}!\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-B\-R\-O\-O\-D\-W\-A\-R@{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-B\-R\-O\-O\-D\-W\-A\-R}}
\index{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-B\-R\-O\-O\-D\-W\-A\-R@{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-B\-R\-O\-O\-D\-W\-A\-R}!ScriptThread.h@{\-Script\-Thread.\-h}}
\subsubsection[{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-B\-R\-O\-O\-D\-W\-A\-R}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-B\-R\-O\-O\-D\-W\-A\-R}~0x01}}\label{ScriptThread_8h_ad3be8b8d1b51bae5a0a13be1755d4988}
\hypertarget{ScriptThread_8h_aa9eb391f6d466461911036c835c4212a}{\index{\-Script\-Thread.\-h@{\-Script\-Thread.\-h}!\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-K\-I\-L\-L\-A\-B\-L\-E@{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-K\-I\-L\-L\-A\-B\-L\-E}}
\index{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-K\-I\-L\-L\-A\-B\-L\-E@{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-K\-I\-L\-L\-A\-B\-L\-E}!ScriptThread.h@{\-Script\-Thread.\-h}}
\subsubsection[{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-K\-I\-L\-L\-A\-B\-L\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-K\-I\-L\-L\-A\-B\-L\-E}~0x02}}\label{ScriptThread_8h_aa9eb391f6d466461911036c835c4212a}
\hypertarget{ScriptThread_8h_a58aa0a8619dd61f71f53cce682dd095b}{\index{\-Script\-Thread.\-h@{\-Script\-Thread.\-h}!\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-T\-A\-R\-G\-\_\-\-E\-X\-P\-A\-N\-S\-I\-O\-N@{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-T\-A\-R\-G\-\_\-\-E\-X\-P\-A\-N\-S\-I\-O\-N}}
\index{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-T\-A\-R\-G\-\_\-\-E\-X\-P\-A\-N\-S\-I\-O\-N@{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-T\-A\-R\-G\-\_\-\-E\-X\-P\-A\-N\-S\-I\-O\-N}!ScriptThread.h@{\-Script\-Thread.\-h}}
\subsubsection[{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-T\-A\-R\-G\-\_\-\-E\-X\-P\-A\-N\-S\-I\-O\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-T\-A\-R\-G\-\_\-\-E\-X\-P\-A\-N\-S\-I\-O\-N}~0x08}}\label{ScriptThread_8h_a58aa0a8619dd61f71f53cce682dd095b}
\hypertarget{ScriptThread_8h_a82fe870371184f3c6c2ba4163114b1e1}{\index{\-Script\-Thread.\-h@{\-Script\-Thread.\-h}!\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-W\-A\-N\-T\-\_\-\-K\-I\-L\-L\-E\-D@{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-W\-A\-N\-T\-\_\-\-K\-I\-L\-L\-E\-D}}
\index{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-W\-A\-N\-T\-\_\-\-K\-I\-L\-L\-E\-D@{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-W\-A\-N\-T\-\_\-\-K\-I\-L\-L\-E\-D}!ScriptThread.h@{\-Script\-Thread.\-h}}
\subsubsection[{\-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-W\-A\-N\-T\-\_\-\-K\-I\-L\-L\-E\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-A\-I\-\_\-\-T\-H\-R\-E\-A\-D\-\_\-\-W\-A\-N\-T\-\_\-\-K\-I\-L\-L\-E\-D}~0x04}}\label{ScriptThread_8h_a82fe870371184f3c6c2ba4163114b1e1}


\subsection{\-Function \-Documentation}
\hypertarget{ScriptThread_8h_a5f81c1608ce20f3af93958e5d3c0b2a2}{\index{\-Script\-Thread.\-h@{\-Script\-Thread.\-h}!\-A\-I\-Create\-Thread@{\-A\-I\-Create\-Thread}}
\index{\-A\-I\-Create\-Thread@{\-A\-I\-Create\-Thread}!ScriptThread.h@{\-Script\-Thread.\-h}}
\subsubsection[{\-A\-I\-Create\-Thread}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-A\-I\-Create\-Thread} (
\begin{DoxyParamCaption}
\item[{{\bf \-W\-O\-R\-D}}]{w\-Start\-Block, }
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Position}}]{location, }
\item[{void $\ast$}]{p\-Town = {\ttfamily {\bf \-N\-U\-L\-L}}}
\end{DoxyParamCaption}
)}}\label{ScriptThread_8h_a5f81c1608ce20f3af93958e5d3c0b2a2}


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


\hypertarget{ScriptThread_8h_ac560b30f18800c67685a0535d8b790c4}{\index{\-Script\-Thread.\-h@{\-Script\-Thread.\-h}!\-A\-I\-Create\-Thread@{\-A\-I\-Create\-Thread}}
\index{\-A\-I\-Create\-Thread@{\-A\-I\-Create\-Thread}!ScriptThread.h@{\-Script\-Thread.\-h}}
\subsubsection[{\-A\-I\-Create\-Thread}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-A\-I\-Create\-Thread} (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{psz\-Script\-I\-D, }
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Position}}]{location}
\end{DoxyParamCaption}
)}}\label{ScriptThread_8h_ac560b30f18800c67685a0535d8b790c4}


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


\hypertarget{ScriptThread_8h_acc925ade31f192f37a686312fec58a07}{\index{\-Script\-Thread.\-h@{\-Script\-Thread.\-h}!\-Get\-Standard\-Unit\-Count@{\-Get\-Standard\-Unit\-Count}}
\index{\-Get\-Standard\-Unit\-Count@{\-Get\-Standard\-Unit\-Count}!ScriptThread.h@{\-Script\-Thread.\-h}}
\subsubsection[{\-Get\-Standard\-Unit\-Count}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} {\bf \-Get\-Standard\-Unit\-Count} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit\-Type}}]{type, }
\item[{bool}]{b\-Completed = {\ttfamily {\bf true}}, }
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Player} $\ast$}]{player = {\ttfamily {\bf \-N\-U\-L\-L}}}
\end{DoxyParamCaption}
)}}\label{ScriptThread_8h_acc925ade31f192f37a686312fec58a07}


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




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


\hypertarget{ScriptThread_8h_a456be4461a06aad3b23b94a06f6a6d78}{\index{\-Script\-Thread.\-h@{\-Script\-Thread.\-h}!\-Load\-A\-I\-Binary@{\-Load\-A\-I\-Binary}}
\index{\-Load\-A\-I\-Binary@{\-Load\-A\-I\-Binary}!ScriptThread.h@{\-Script\-Thread.\-h}}
\subsubsection[{\-Load\-A\-I\-Binary}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Load\-A\-I\-Binary} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{psz\-File\-Name}
\end{DoxyParamCaption}
)}}\label{ScriptThread_8h_a456be4461a06aad3b23b94a06f6a6d78}


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




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


\hypertarget{ScriptThread_8h_a4486bfd533d21076008ffa4fa4de6e0e}{\index{\-Script\-Thread.\-h@{\-Script\-Thread.\-h}!\-Update\-Scripts@{\-Update\-Scripts}}
\index{\-Update\-Scripts@{\-Update\-Scripts}!ScriptThread.h@{\-Script\-Thread.\-h}}
\subsubsection[{\-Update\-Scripts}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Update\-Scripts} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{ScriptThread_8h_a4486bfd533d21076008ffa4fa4de6e0e}


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


