\hypertarget{classWorkerManager}{\section{\-Worker\-Manager \-Class \-Reference}
\label{classWorkerManager}\index{\-Worker\-Manager@{\-Worker\-Manager}}
}


{\ttfamily \#include $<$\-Worker\-Manager.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{classWorkerManager_a3a7c0882cf94e12a61d8b6bfb03faa15}{update} ()
\item 
void \hyperlink{classWorkerManager_a720711d35812a4eac27480b1d04b20e4}{on\-Unit\-Destroy} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
void \hyperlink{classWorkerManager_a7aeea201f6afe3d89eb8165ef89380c7}{on\-Unit\-Morph} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
void \hyperlink{classWorkerManager_a44887f96580ca969a4331ad31408236b}{on\-Unit\-Show} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
void \hyperlink{classWorkerManager_a86dc867796e544265875960804217c31}{on\-Unit\-Renegade} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
void \hyperlink{classWorkerManager_a122ed76fe40cba17bcdc98300b6f976e}{finished\-With\-Worker} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$unit)
\item 
void \hyperlink{classWorkerManager_af9813666660aeb0e52033d0e6a983379}{handle\-Idle\-Workers} ()
\item 
void \hyperlink{classWorkerManager_a4b9eb0df3be544aeaaf949bf664eb2ef}{handle\-Gas\-Workers} ()
\item 
void \hyperlink{classWorkerManager_ad6e29b8a5cf9c603dcd173112a7459ad}{handle\-Move\-Workers} ()
\item 
void \hyperlink{classWorkerManager_a93b897d48d7f2f5bb289ab327963e5ae}{handle\-Combat\-Workers} ()
\item 
void \hyperlink{classWorkerManager_a3060be9e59f44427fb126d5fc0c75745}{finished\-With\-Combat\-Workers} ()
\item 
void \hyperlink{classWorkerManager_a52c33b7712a73dadc19ebdd448b058de}{draw\-Resource\-Debug\-Info} ()
\item 
void \hyperlink{classWorkerManager_a7e8ae65c2e006c3845acc23796d092e8}{update\-Worker\-Status} ()
\item 
void \hyperlink{classWorkerManager_afba1070bd812a7dc35fd57d7e12ad4f9}{draw\-Worker\-Information} (int x, int y)
\item 
int \hyperlink{classWorkerManager_ab87cef647a568f3fc300564d1641338b}{get\-Num\-Mineral\-Workers} ()
\item 
int \hyperlink{classWorkerManager_a2f8c16ecc4eb250a28e154690fbc6418}{get\-Num\-Gas\-Workers} ()
\item 
int \hyperlink{classWorkerManager_a715e92e7262d1dc432c9a31399e94949}{get\-Num\-Idle\-Workers} ()
\item 
void \hyperlink{classWorkerManager_a4dd441f10f5937c7d9b230e2a952585b}{set\-Scout\-Worker} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$worker)
\item 
bool \hyperlink{classWorkerManager_a8d7a14ced6161e659e1b16038c56f3bb}{is\-Worker\-Scout} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$worker)
\item 
bool \hyperlink{classWorkerManager_a115e2e8d6369cf1239aabb286c835666}{is\-Builder} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$worker)
\item 
\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$ \hyperlink{classWorkerManager_a573582d80f9315dc5a9bd1d5c8924f92}{get\-Builder} (\hyperlink{classBuilding}{\-Building} \&b, bool set\-Job\-As\-Builder=true)
\item 
\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$ \hyperlink{classWorkerManager_ac87af3849970e00850a3e040dc3ef374}{get\-Move\-Worker} (\hyperlink{classBWAPI_1_1Position}{\-B\-W\-A\-P\-I\-::\-Position} p)
\item 
\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$ \hyperlink{classWorkerManager_aa9b861ecf07feb65cb41f19418cb72a8}{get\-Closest\-Depot} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$worker)
\item 
\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$ \hyperlink{classWorkerManager_a5bbb299a703df014c4e355bd2e4377a2}{get\-Gas\-Worker} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$refinery)
\item 
\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$ \hyperlink{classWorkerManager_a8deef23bf17eaede34be2b0e2056cb4d}{get\-Closest\-Enemy\-Unit} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$worker)
\item 
void \hyperlink{classWorkerManager_ab3bff3de568723274afd676445c206f6}{set\-Move\-Worker} (int m, int g, \hyperlink{classBWAPI_1_1Position}{\-B\-W\-A\-P\-I\-::\-Position} p)
\item 
void \hyperlink{classWorkerManager_a6673e9baf6cb6e2b0984987401c8d8c5}{set\-Combat\-Worker} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$worker)
\item 
void \hyperlink{classWorkerManager_a522745603fa52a521e456fb7e8f01bb2}{smart\-Attack\-Unit} (\hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$attacker, \hyperlink{classBWAPI_1_1Unit}{\-B\-W\-A\-P\-I\-::\-Unit} $\ast$target)
\item 
bool \hyperlink{classWorkerManager_a0a17befce7455f05e7efe1658bb2ad26}{will\-Have\-Resources} (int minerals\-Required, int gas\-Required, double distance)
\item 
void \hyperlink{classWorkerManager_a71030550eb0eade768f0a4383aa420af}{rebalance\-Workers} ()
\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classWorkerManager}{\-Worker\-Manager} $\ast$ \hyperlink{classWorkerManager_a7ab5d3e6a9e066961d8b0914090ff165}{get\-Instance} ()
\end{DoxyCompactItemize}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classWorkerManager_a52c33b7712a73dadc19ebdd448b058de}{\index{\-Worker\-Manager@{\-Worker\-Manager}!draw\-Resource\-Debug\-Info@{draw\-Resource\-Debug\-Info}}
\index{draw\-Resource\-Debug\-Info@{draw\-Resource\-Debug\-Info}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{draw\-Resource\-Debug\-Info}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::draw\-Resource\-Debug\-Info} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a52c33b7712a73dadc19ebdd448b058de}


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




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


\hypertarget{classWorkerManager_afba1070bd812a7dc35fd57d7e12ad4f9}{\index{\-Worker\-Manager@{\-Worker\-Manager}!draw\-Worker\-Information@{draw\-Worker\-Information}}
\index{draw\-Worker\-Information@{draw\-Worker\-Information}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{draw\-Worker\-Information}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::draw\-Worker\-Information} (
\begin{DoxyParamCaption}
\item[{int}]{x, }
\item[{int}]{y}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_afba1070bd812a7dc35fd57d7e12ad4f9}


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


\hypertarget{classWorkerManager_a3060be9e59f44427fb126d5fc0c75745}{\index{\-Worker\-Manager@{\-Worker\-Manager}!finished\-With\-Combat\-Workers@{finished\-With\-Combat\-Workers}}
\index{finished\-With\-Combat\-Workers@{finished\-With\-Combat\-Workers}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{finished\-With\-Combat\-Workers}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::finished\-With\-Combat\-Workers} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a3060be9e59f44427fb126d5fc0c75745}


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




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


\hypertarget{classWorkerManager_a122ed76fe40cba17bcdc98300b6f976e}{\index{\-Worker\-Manager@{\-Worker\-Manager}!finished\-With\-Worker@{finished\-With\-Worker}}
\index{finished\-With\-Worker@{finished\-With\-Worker}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{finished\-With\-Worker}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::finished\-With\-Worker} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a122ed76fe40cba17bcdc98300b6f976e}


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


\hypertarget{classWorkerManager_a573582d80f9315dc5a9bd1d5c8924f92}{\index{\-Worker\-Manager@{\-Worker\-Manager}!get\-Builder@{get\-Builder}}
\index{get\-Builder@{get\-Builder}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{get\-Builder}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$ {\bf \-Worker\-Manager\-::get\-Builder} (
\begin{DoxyParamCaption}
\item[{{\bf \-Building} \&}]{b, }
\item[{bool}]{set\-Job\-As\-Builder = {\ttfamily true}}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a573582d80f9315dc5a9bd1d5c8924f92}


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


\hypertarget{classWorkerManager_aa9b861ecf07feb65cb41f19418cb72a8}{\index{\-Worker\-Manager@{\-Worker\-Manager}!get\-Closest\-Depot@{get\-Closest\-Depot}}
\index{get\-Closest\-Depot@{get\-Closest\-Depot}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{get\-Closest\-Depot}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$ {\bf \-Worker\-Manager\-::get\-Closest\-Depot} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{worker}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_aa9b861ecf07feb65cb41f19418cb72a8}


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


\hypertarget{classWorkerManager_a8deef23bf17eaede34be2b0e2056cb4d}{\index{\-Worker\-Manager@{\-Worker\-Manager}!get\-Closest\-Enemy\-Unit@{get\-Closest\-Enemy\-Unit}}
\index{get\-Closest\-Enemy\-Unit@{get\-Closest\-Enemy\-Unit}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{get\-Closest\-Enemy\-Unit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$ {\bf \-Worker\-Manager\-::get\-Closest\-Enemy\-Unit} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{worker}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a8deef23bf17eaede34be2b0e2056cb4d}


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




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


\hypertarget{classWorkerManager_a5bbb299a703df014c4e355bd2e4377a2}{\index{\-Worker\-Manager@{\-Worker\-Manager}!get\-Gas\-Worker@{get\-Gas\-Worker}}
\index{get\-Gas\-Worker@{get\-Gas\-Worker}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{get\-Gas\-Worker}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$ {\bf \-Worker\-Manager\-::get\-Gas\-Worker} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{refinery}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a5bbb299a703df014c4e355bd2e4377a2}


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




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


\hypertarget{classWorkerManager_a7ab5d3e6a9e066961d8b0914090ff165}{\index{\-Worker\-Manager@{\-Worker\-Manager}!get\-Instance@{get\-Instance}}
\index{get\-Instance@{get\-Instance}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{get\-Instance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Worker\-Manager} $\ast$ {\bf \-Worker\-Manager\-::get\-Instance} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}\label{classWorkerManager_a7ab5d3e6a9e066961d8b0914090ff165}


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


\hypertarget{classWorkerManager_ac87af3849970e00850a3e040dc3ef374}{\index{\-Worker\-Manager@{\-Worker\-Manager}!get\-Move\-Worker@{get\-Move\-Worker}}
\index{get\-Move\-Worker@{get\-Move\-Worker}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{get\-Move\-Worker}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$ {\bf \-Worker\-Manager\-::get\-Move\-Worker} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Position}}]{p}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_ac87af3849970e00850a3e040dc3ef374}


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


\hypertarget{classWorkerManager_a2f8c16ecc4eb250a28e154690fbc6418}{\index{\-Worker\-Manager@{\-Worker\-Manager}!get\-Num\-Gas\-Workers@{get\-Num\-Gas\-Workers}}
\index{get\-Num\-Gas\-Workers@{get\-Num\-Gas\-Workers}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{get\-Num\-Gas\-Workers}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Worker\-Manager\-::get\-Num\-Gas\-Workers} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a2f8c16ecc4eb250a28e154690fbc6418}


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




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


\hypertarget{classWorkerManager_a715e92e7262d1dc432c9a31399e94949}{\index{\-Worker\-Manager@{\-Worker\-Manager}!get\-Num\-Idle\-Workers@{get\-Num\-Idle\-Workers}}
\index{get\-Num\-Idle\-Workers@{get\-Num\-Idle\-Workers}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{get\-Num\-Idle\-Workers}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Worker\-Manager\-::get\-Num\-Idle\-Workers} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a715e92e7262d1dc432c9a31399e94949}


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


\hypertarget{classWorkerManager_ab87cef647a568f3fc300564d1641338b}{\index{\-Worker\-Manager@{\-Worker\-Manager}!get\-Num\-Mineral\-Workers@{get\-Num\-Mineral\-Workers}}
\index{get\-Num\-Mineral\-Workers@{get\-Num\-Mineral\-Workers}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{get\-Num\-Mineral\-Workers}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Worker\-Manager\-::get\-Num\-Mineral\-Workers} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_ab87cef647a568f3fc300564d1641338b}


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




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


\hypertarget{classWorkerManager_a93b897d48d7f2f5bb289ab327963e5ae}{\index{\-Worker\-Manager@{\-Worker\-Manager}!handle\-Combat\-Workers@{handle\-Combat\-Workers}}
\index{handle\-Combat\-Workers@{handle\-Combat\-Workers}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{handle\-Combat\-Workers}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::handle\-Combat\-Workers} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a93b897d48d7f2f5bb289ab327963e5ae}


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




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


\hypertarget{classWorkerManager_a4b9eb0df3be544aeaaf949bf664eb2ef}{\index{\-Worker\-Manager@{\-Worker\-Manager}!handle\-Gas\-Workers@{handle\-Gas\-Workers}}
\index{handle\-Gas\-Workers@{handle\-Gas\-Workers}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{handle\-Gas\-Workers}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::handle\-Gas\-Workers} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a4b9eb0df3be544aeaaf949bf664eb2ef}


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




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


\hypertarget{classWorkerManager_af9813666660aeb0e52033d0e6a983379}{\index{\-Worker\-Manager@{\-Worker\-Manager}!handle\-Idle\-Workers@{handle\-Idle\-Workers}}
\index{handle\-Idle\-Workers@{handle\-Idle\-Workers}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{handle\-Idle\-Workers}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::handle\-Idle\-Workers} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_af9813666660aeb0e52033d0e6a983379}


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




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


\hypertarget{classWorkerManager_ad6e29b8a5cf9c603dcd173112a7459ad}{\index{\-Worker\-Manager@{\-Worker\-Manager}!handle\-Move\-Workers@{handle\-Move\-Workers}}
\index{handle\-Move\-Workers@{handle\-Move\-Workers}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{handle\-Move\-Workers}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::handle\-Move\-Workers} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_ad6e29b8a5cf9c603dcd173112a7459ad}


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




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


\hypertarget{classWorkerManager_a115e2e8d6369cf1239aabb286c835666}{\index{\-Worker\-Manager@{\-Worker\-Manager}!is\-Builder@{is\-Builder}}
\index{is\-Builder@{is\-Builder}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{is\-Builder}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Worker\-Manager\-::is\-Builder} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{worker}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a115e2e8d6369cf1239aabb286c835666}


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




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


\hypertarget{classWorkerManager_a8d7a14ced6161e659e1b16038c56f3bb}{\index{\-Worker\-Manager@{\-Worker\-Manager}!is\-Worker\-Scout@{is\-Worker\-Scout}}
\index{is\-Worker\-Scout@{is\-Worker\-Scout}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{is\-Worker\-Scout}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Worker\-Manager\-::is\-Worker\-Scout} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{worker}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a8d7a14ced6161e659e1b16038c56f3bb}


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


\hypertarget{classWorkerManager_a720711d35812a4eac27480b1d04b20e4}{\index{\-Worker\-Manager@{\-Worker\-Manager}!on\-Unit\-Destroy@{on\-Unit\-Destroy}}
\index{on\-Unit\-Destroy@{on\-Unit\-Destroy}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{on\-Unit\-Destroy}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::on\-Unit\-Destroy} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a720711d35812a4eac27480b1d04b20e4}


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




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


\hypertarget{classWorkerManager_a7aeea201f6afe3d89eb8165ef89380c7}{\index{\-Worker\-Manager@{\-Worker\-Manager}!on\-Unit\-Morph@{on\-Unit\-Morph}}
\index{on\-Unit\-Morph@{on\-Unit\-Morph}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{on\-Unit\-Morph}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::on\-Unit\-Morph} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a7aeea201f6afe3d89eb8165ef89380c7}


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




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


\hypertarget{classWorkerManager_a86dc867796e544265875960804217c31}{\index{\-Worker\-Manager@{\-Worker\-Manager}!on\-Unit\-Renegade@{on\-Unit\-Renegade}}
\index{on\-Unit\-Renegade@{on\-Unit\-Renegade}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{on\-Unit\-Renegade}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::on\-Unit\-Renegade} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a86dc867796e544265875960804217c31}
\hypertarget{classWorkerManager_a44887f96580ca969a4331ad31408236b}{\index{\-Worker\-Manager@{\-Worker\-Manager}!on\-Unit\-Show@{on\-Unit\-Show}}
\index{on\-Unit\-Show@{on\-Unit\-Show}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{on\-Unit\-Show}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::on\-Unit\-Show} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{unit}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a44887f96580ca969a4331ad31408236b}


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




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


\hypertarget{classWorkerManager_a71030550eb0eade768f0a4383aa420af}{\index{\-Worker\-Manager@{\-Worker\-Manager}!rebalance\-Workers@{rebalance\-Workers}}
\index{rebalance\-Workers@{rebalance\-Workers}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{rebalance\-Workers}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::rebalance\-Workers} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a71030550eb0eade768f0a4383aa420af}


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




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


\hypertarget{classWorkerManager_a6673e9baf6cb6e2b0984987401c8d8c5}{\index{\-Worker\-Manager@{\-Worker\-Manager}!set\-Combat\-Worker@{set\-Combat\-Worker}}
\index{set\-Combat\-Worker@{set\-Combat\-Worker}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{set\-Combat\-Worker}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::set\-Combat\-Worker} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{worker}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a6673e9baf6cb6e2b0984987401c8d8c5}


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


\hypertarget{classWorkerManager_ab3bff3de568723274afd676445c206f6}{\index{\-Worker\-Manager@{\-Worker\-Manager}!set\-Move\-Worker@{set\-Move\-Worker}}
\index{set\-Move\-Worker@{set\-Move\-Worker}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{set\-Move\-Worker}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::set\-Move\-Worker} (
\begin{DoxyParamCaption}
\item[{int}]{m, }
\item[{int}]{g, }
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Position}}]{p}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_ab3bff3de568723274afd676445c206f6}


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


\hypertarget{classWorkerManager_a4dd441f10f5937c7d9b230e2a952585b}{\index{\-Worker\-Manager@{\-Worker\-Manager}!set\-Scout\-Worker@{set\-Scout\-Worker}}
\index{set\-Scout\-Worker@{set\-Scout\-Worker}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{set\-Scout\-Worker}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::set\-Scout\-Worker} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{worker}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a4dd441f10f5937c7d9b230e2a952585b}


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




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


\hypertarget{classWorkerManager_a522745603fa52a521e456fb7e8f01bb2}{\index{\-Worker\-Manager@{\-Worker\-Manager}!smart\-Attack\-Unit@{smart\-Attack\-Unit}}
\index{smart\-Attack\-Unit@{smart\-Attack\-Unit}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{smart\-Attack\-Unit}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::smart\-Attack\-Unit} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{attacker, }
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit} $\ast$}]{target}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a522745603fa52a521e456fb7e8f01bb2}


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




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


\hypertarget{classWorkerManager_a3a7c0882cf94e12a61d8b6bfb03faa15}{\index{\-Worker\-Manager@{\-Worker\-Manager}!update@{update}}
\index{update@{update}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::update} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a3a7c0882cf94e12a61d8b6bfb03faa15}


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




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


\hypertarget{classWorkerManager_a7e8ae65c2e006c3845acc23796d092e8}{\index{\-Worker\-Manager@{\-Worker\-Manager}!update\-Worker\-Status@{update\-Worker\-Status}}
\index{update\-Worker\-Status@{update\-Worker\-Status}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{update\-Worker\-Status}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Worker\-Manager\-::update\-Worker\-Status} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a7e8ae65c2e006c3845acc23796d092e8}


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




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


\hypertarget{classWorkerManager_a0a17befce7455f05e7efe1658bb2ad26}{\index{\-Worker\-Manager@{\-Worker\-Manager}!will\-Have\-Resources@{will\-Have\-Resources}}
\index{will\-Have\-Resources@{will\-Have\-Resources}!WorkerManager@{\-Worker\-Manager}}
\subsubsection[{will\-Have\-Resources}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Worker\-Manager\-::will\-Have\-Resources} (
\begin{DoxyParamCaption}
\item[{int}]{minerals\-Required, }
\item[{int}]{gas\-Required, }
\item[{double}]{distance}
\end{DoxyParamCaption}
)}}\label{classWorkerManager_a0a17befce7455f05e7efe1658bb2ad26}


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




\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-U\-Alberta\-Bot\-\_\-src/\-Projects/\-U\-Alberta\-Bot/\-Source/base/\hyperlink{WorkerManager_8h}{\-Worker\-Manager.\-h}\item 
\-U\-Alberta\-Bot\-\_\-src/\-Projects/\-U\-Alberta\-Bot/\-Source/base/\hyperlink{WorkerManager_8cpp}{\-Worker\-Manager.\-cpp}\end{DoxyCompactItemize}
