\hypertarget{classGoalManager}{\section{\-Goal\-Manager \-Class \-Reference}
\label{classGoalManager}\index{\-Goal\-Manager@{\-Goal\-Manager}}
}


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



\-Inheritance diagram for \-Goal\-Manager\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=220pt]{classGoalManager__inherit__graph}
\end{center}
\end{figure}


\-Collaboration diagram for \-Goal\-Manager\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=220pt]{classGoalManager__coll__graph}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{classGoalManager_a8813e0e06c94aba09217f332f8596eac}{add\-Goal} (\hyperlink{Goal_8h_a91c35f755d3565c046697e53c8be98e9}{p\-Goal} g)
\item 
void \hyperlink{classGoalManager_ae9dfa43a60f238d9d584de7a879cb705}{add\-Goals} (const std\-::list$<$ \hyperlink{Goal_8h_a91c35f755d3565c046697e53c8be98e9}{p\-Goal} $>$ \&l)
\item 
void \hyperlink{classGoalManager_ab38d9d8123cb653b82e2087203367b34}{on\-Unit\-Create} (\-B\-W\-A\-P\-I\-::\-Unit $\ast$u)
\begin{DoxyCompactList}\small\item\em \-Add all units not building. \end{DoxyCompactList}\item 
void \hyperlink{classGoalManager_a4bf124f7135e69d688e266b1919a8318}{on\-Unit\-Destroy} (\-B\-W\-A\-P\-I\-::\-Unit $\ast$u)
\begin{DoxyCompactList}\small\item\em \-Remove from \-\_\-completed\-Units or from \-\_\-in\-Training\-Units. \end{DoxyCompactList}\item 
void \hyperlink{classGoalManager_a27a62d8586af586e2bba4cd917f271e3}{on\-Unit\-Renegade} (\-B\-W\-A\-P\-I\-::\-Unit $\ast$u)
\item 
const std\-::map$<$ \-B\-W\-A\-P\-I\-::\-Unit \*
$\ast$, \hyperlink{BayesianUnit_8h_a2733cae2b679bb7515a0168ab04eb2b8}{p\-Bayesian\-Unit} $>$ \& \hyperlink{classGoalManager_ac8a30abb24a9b851f865348c775558a9}{get\-Completed\-Units} () const 
\item 
\hyperlink{BayesianUnit_8h_a2733cae2b679bb7515a0168ab04eb2b8}{p\-Bayesian\-Unit} \hyperlink{classGoalManager_a7181724ae35c170fde4726a9e0d91890}{get\-Completed\-Unit} (\-B\-W\-A\-P\-I\-::\-Unit $\ast$u)
\item 
virtual void \hyperlink{classGoalManager_a6b4c495a2246d8dfe8a5a090c9481167}{update} ()
\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classGoalManager_a600ae4229321f9cdc4c17fec0d628f9b}{attack\-Goals}
\end{DoxyCompactItemize}
\subsection*{\-Friends}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classGoalManager_a9315ca1968733fb176a65c07f8c74c79}{\-C\-Singleton$<$ Goal\-Manager $>$}
\end{DoxyCompactItemize}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classGoalManager_a8813e0e06c94aba09217f332f8596eac}{\index{\-Goal\-Manager@{\-Goal\-Manager}!add\-Goal@{add\-Goal}}
\index{add\-Goal@{add\-Goal}!GoalManager@{\-Goal\-Manager}}
\subsubsection[{add\-Goal}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Goal\-Manager\-::add\-Goal} (
\begin{DoxyParamCaption}
\item[{{\bf p\-Goal}}]{g}
\end{DoxyParamCaption}
)}}\label{classGoalManager_a8813e0e06c94aba09217f332f8596eac}


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


\hypertarget{classGoalManager_ae9dfa43a60f238d9d584de7a879cb705}{\index{\-Goal\-Manager@{\-Goal\-Manager}!add\-Goals@{add\-Goals}}
\index{add\-Goals@{add\-Goals}!GoalManager@{\-Goal\-Manager}}
\subsubsection[{add\-Goals}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Goal\-Manager\-::add\-Goals} (
\begin{DoxyParamCaption}
\item[{const std\-::list$<$ {\bf p\-Goal} $>$ \&}]{l}
\end{DoxyParamCaption}
)}}\label{classGoalManager_ae9dfa43a60f238d9d584de7a879cb705}


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


\hypertarget{classGoalManager_a7181724ae35c170fde4726a9e0d91890}{\index{\-Goal\-Manager@{\-Goal\-Manager}!get\-Completed\-Unit@{get\-Completed\-Unit}}
\index{get\-Completed\-Unit@{get\-Completed\-Unit}!GoalManager@{\-Goal\-Manager}}
\subsubsection[{get\-Completed\-Unit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf p\-Bayesian\-Unit} {\bf \-Goal\-Manager\-::get\-Completed\-Unit} (
\begin{DoxyParamCaption}
\item[{\-B\-W\-A\-P\-I\-::\-Unit $\ast$}]{u}
\end{DoxyParamCaption}
)}}\label{classGoalManager_a7181724ae35c170fde4726a9e0d91890}


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


\hypertarget{classGoalManager_ac8a30abb24a9b851f865348c775558a9}{\index{\-Goal\-Manager@{\-Goal\-Manager}!get\-Completed\-Units@{get\-Completed\-Units}}
\index{get\-Completed\-Units@{get\-Completed\-Units}!GoalManager@{\-Goal\-Manager}}
\subsubsection[{get\-Completed\-Units}]{\setlength{\rightskip}{0pt plus 5cm}const map$<$ \-Unit $\ast$, {\bf p\-Bayesian\-Unit} $>$ \& {\bf \-Goal\-Manager\-::get\-Completed\-Units} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classGoalManager_ac8a30abb24a9b851f865348c775558a9}


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


\hypertarget{classGoalManager_ab38d9d8123cb653b82e2087203367b34}{\index{\-Goal\-Manager@{\-Goal\-Manager}!on\-Unit\-Create@{on\-Unit\-Create}}
\index{on\-Unit\-Create@{on\-Unit\-Create}!GoalManager@{\-Goal\-Manager}}
\subsubsection[{on\-Unit\-Create}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Goal\-Manager\-::on\-Unit\-Create} (
\begin{DoxyParamCaption}
\item[{\-B\-W\-A\-P\-I\-::\-Unit $\ast$}]{u}
\end{DoxyParamCaption}
)}}\label{classGoalManager_ab38d9d8123cb653b82e2087203367b34}


\-Add all units not building. 



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


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


\-Remove from \-\_\-completed\-Units or from \-\_\-in\-Training\-Units. 



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


\hypertarget{classGoalManager_a27a62d8586af586e2bba4cd917f271e3}{\index{\-Goal\-Manager@{\-Goal\-Manager}!on\-Unit\-Renegade@{on\-Unit\-Renegade}}
\index{on\-Unit\-Renegade@{on\-Unit\-Renegade}!GoalManager@{\-Goal\-Manager}}
\subsubsection[{on\-Unit\-Renegade}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Goal\-Manager\-::on\-Unit\-Renegade} (
\begin{DoxyParamCaption}
\item[{\-B\-W\-A\-P\-I\-::\-Unit $\ast$}]{u}
\end{DoxyParamCaption}
)}}\label{classGoalManager_a27a62d8586af586e2bba4cd917f271e3}
\hypertarget{classGoalManager_a6b4c495a2246d8dfe8a5a090c9481167}{\index{\-Goal\-Manager@{\-Goal\-Manager}!update@{update}}
\index{update@{update}!GoalManager@{\-Goal\-Manager}}
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Goal\-Manager\-::update} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classGoalManager_a6b4c495a2246d8dfe8a5a090c9481167}
\-Check if units in training are completed and create \-Bayesian\-Units if so

\-Do a regroup goal garbage collect units if nothing else to do, lowest bid

\-Do a first poke with at least 2 zealots against \-Z and at least 2 goons against others \-Hackety hack! \-T\-O\-D\-O remove

\-Update all goals

\-Removed finished goals 

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




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




\subsection{\-Friends \-And \-Related \-Function \-Documentation}
\hypertarget{classGoalManager_a9315ca1968733fb176a65c07f8c74c79}{\index{\-Goal\-Manager@{\-Goal\-Manager}!\-C\-Singleton$<$ Goal\-Manager $>$@{\-C\-Singleton$<$ Goal\-Manager $>$}}
\index{\-C\-Singleton$<$ Goal\-Manager $>$@{\-C\-Singleton$<$ Goal\-Manager $>$}!GoalManager@{\-Goal\-Manager}}
\subsubsection[{\-C\-Singleton$<$ Goal\-Manager $>$}]{\setlength{\rightskip}{0pt plus 5cm}friend class {\bf \-C\-Singleton}$<$ {\bf \-Goal\-Manager} $>$\hspace{0.3cm}{\ttfamily  \mbox{[}friend\mbox{]}}}}\label{classGoalManager_a9315ca1968733fb176a65c07f8c74c79}


\subsection{\-Member \-Data \-Documentation}
\hypertarget{classGoalManager_a600ae4229321f9cdc4c17fec0d628f9b}{\index{\-Goal\-Manager@{\-Goal\-Manager}!attack\-Goals@{attack\-Goals}}
\index{attack\-Goals@{attack\-Goals}!GoalManager@{\-Goal\-Manager}}
\subsubsection[{attack\-Goals}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Goal\-Manager\-::attack\-Goals}}}\label{classGoalManager_a600ae4229321f9cdc4c17fec0d628f9b}


\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-Snippy\-Hollo\-W-\/\-Broodwar\-Bot\-Q-\/f01ab56/src/\-Micro/\-Goals/\hyperlink{GoalManager_8h}{\-Goal\-Manager.\-h}\item 
\-Snippy\-Hollo\-W-\/\-Broodwar\-Bot\-Q-\/f01ab56/src/\-Micro/\-Goals/\hyperlink{GoalManager_8cpp}{\-Goal\-Manager.\-cpp}\end{DoxyCompactItemize}
