\hypertarget{classZealotUnit}{\section{\-Zealot\-Unit \-Class \-Reference}
\label{classZealotUnit}\index{\-Zealot\-Unit@{\-Zealot\-Unit}}
}


{\ttfamily \#include $<$\-Zealot\-Unit.\-h$>$}



\-Inheritance diagram for \-Zealot\-Unit\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{classZealotUnit__inherit__graph}
\end{center}
\end{figure}


\-Collaboration diagram for \-Zealot\-Unit\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{classZealotUnit__coll__graph}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classZealotUnit_a6d8311afd4c0ab4586e3e6784dbf7913}{\-Zealot\-Unit} (\-B\-W\-A\-P\-I\-::\-Unit $\ast$u)
\item 
virtual \hyperlink{classZealotUnit_af659cbfc23a6f770f74fd8a0bea7f866}{$\sim$\-Zealot\-Unit} ()
\item 
virtual void \hyperlink{classZealotUnit_a9892bf4301e01046686089b4c6cf6a15}{micro} ()
\item 
virtual void \hyperlink{classZealotUnit_a60e5b36294defcfbc3f06b873ac77e57}{check} ()
\item 
virtual int \hyperlink{classZealotUnit_a737bd497d2c402bf6816be3a3b99f4e5}{get\-Attack\-Duration} ()
\item 
virtual std\-::set$<$ \-B\-W\-A\-P\-I\-::\-Unit\-Type $>$ \hyperlink{classZealotUnit_a8dce986b7b9fe51524327f46387e0dbb}{get\-Set\-Prio} ()
\end{DoxyCompactItemize}
\subsection*{\-Protected \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{classZealotUnit_a74f09f95beb1b5b76e1e03153da6339e}{decide\-To\-Flee} ()
\item 
void \hyperlink{classZealotUnit_a280df4f5fb7bef83c807d641cfca3910}{flee} ()
\item 
void \hyperlink{classZealotUnit_af2cc37fd50e2cd192d173ad38493693e}{update\-Target\-Enemy} ()
\item 
void \hyperlink{classZealotUnit_a4e5367ea7663da6ded375e7cd23cfb57}{clear\-Damages} ()
\item 
int \hyperlink{classZealotUnit_acc9cc869150865da9eb9778635f3d737}{fight\-Move} ()
\end{DoxyCompactItemize}
\subsection*{\-Static \-Protected \-Attributes}
\begin{DoxyCompactItemize}
\item 
static std\-::set$<$ \-B\-W\-A\-P\-I\-::\-Unit\-Type $>$ \hyperlink{classZealotUnit_a40677061b456b4dba310f533a92a9fcd}{set\-Prio}
\end{DoxyCompactItemize}


\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classZealotUnit_a6d8311afd4c0ab4586e3e6784dbf7913}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!\-Zealot\-Unit@{\-Zealot\-Unit}}
\index{\-Zealot\-Unit@{\-Zealot\-Unit}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{\-Zealot\-Unit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Zealot\-Unit\-::\-Zealot\-Unit} (
\begin{DoxyParamCaption}
\item[{\-B\-W\-A\-P\-I\-::\-Unit $\ast$}]{u}
\end{DoxyParamCaption}
)}}\label{classZealotUnit_a6d8311afd4c0ab4586e3e6784dbf7913}
\hypertarget{classZealotUnit_af659cbfc23a6f770f74fd8a0bea7f866}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!$\sim$\-Zealot\-Unit@{$\sim$\-Zealot\-Unit}}
\index{$\sim$\-Zealot\-Unit@{$\sim$\-Zealot\-Unit}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{$\sim$\-Zealot\-Unit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Zealot\-Unit\-::$\sim$\-Zealot\-Unit} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classZealotUnit_af659cbfc23a6f770f74fd8a0bea7f866}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classZealotUnit_a60e5b36294defcfbc3f06b873ac77e57}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!check@{check}}
\index{check@{check}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{check}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Zealot\-Unit\-::check} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classZealotUnit_a60e5b36294defcfbc3f06b873ac77e57}


\-Implements \hyperlink{classGroundUnit_a996035039771a281c2fc53d725bfcfb0}{\-Ground\-Unit}.

\hypertarget{classZealotUnit_a4e5367ea7663da6ded375e7cd23cfb57}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!clear\-Damages@{clear\-Damages}}
\index{clear\-Damages@{clear\-Damages}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{clear\-Damages}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Zealot\-Unit\-::clear\-Damages} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}\label{classZealotUnit_a4e5367ea7663da6ded375e7cd23cfb57}


\-Reimplemented from \hyperlink{classBayesianUnit_a5a57f2b72ad5ce3789f5d108359119b8}{\-Bayesian\-Unit}.

\hypertarget{classZealotUnit_a74f09f95beb1b5b76e1e03153da6339e}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!decide\-To\-Flee@{decide\-To\-Flee}}
\index{decide\-To\-Flee@{decide\-To\-Flee}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{decide\-To\-Flee}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Zealot\-Unit\-::decide\-To\-Flee} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}protected, virtual\mbox{]}}}}\label{classZealotUnit_a74f09f95beb1b5b76e1e03153da6339e}


\-Reimplemented from \hyperlink{classBayesianUnit_a0bac7c9caded449a52d43afe735e3fe4}{\-Bayesian\-Unit}.



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


\hypertarget{classZealotUnit_acc9cc869150865da9eb9778635f3d737}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!fight\-Move@{fight\-Move}}
\index{fight\-Move@{fight\-Move}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{fight\-Move}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Zealot\-Unit\-::fight\-Move} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}\label{classZealotUnit_acc9cc869150865da9eb9778635f3d737}
approach our target enemy if not in range and in our priority targets

approach out of range target 

\-Reimplemented from \hyperlink{classBayesianUnit_a73c15447bb9ed4184cf087e0f2894b16}{\-Bayesian\-Unit}.



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




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


\hypertarget{classZealotUnit_a280df4f5fb7bef83c807d641cfca3910}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!flee@{flee}}
\index{flee@{flee}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{flee}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Zealot\-Unit\-::flee} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}\label{classZealotUnit_a280df4f5fb7bef83c807d641cfca3910}


\-Reimplemented from \hyperlink{classBayesianUnit_a69ec2fb43663c2c17ab16c53202554d8}{\-Bayesian\-Unit}.



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




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


\hypertarget{classZealotUnit_a737bd497d2c402bf6816be3a3b99f4e5}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!get\-Attack\-Duration@{get\-Attack\-Duration}}
\index{get\-Attack\-Duration@{get\-Attack\-Duration}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{get\-Attack\-Duration}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Zealot\-Unit\-::get\-Attack\-Duration} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classZealotUnit_a737bd497d2c402bf6816be3a3b99f4e5}


\-Implements \hyperlink{classGroundUnit_a9ab7d8ec4b3c70c44130d9ee410092ac}{\-Ground\-Unit}.



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


\hypertarget{classZealotUnit_a8dce986b7b9fe51524327f46387e0dbb}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!get\-Set\-Prio@{get\-Set\-Prio}}
\index{get\-Set\-Prio@{get\-Set\-Prio}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{get\-Set\-Prio}]{\setlength{\rightskip}{0pt plus 5cm}std\-::set$<$ \-B\-W\-A\-P\-I\-::\-Unit\-Type $>$ {\bf \-Zealot\-Unit\-::get\-Set\-Prio} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classZealotUnit_a8dce986b7b9fe51524327f46387e0dbb}


\-Implements \hyperlink{classGroundUnit_aa6cde490705d76f7bb102eab9bc22fde}{\-Ground\-Unit}.

\hypertarget{classZealotUnit_a9892bf4301e01046686089b4c6cf6a15}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!micro@{micro}}
\index{micro@{micro}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{micro}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Zealot\-Unit\-::micro} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classZealotUnit_a9892bf4301e01046686089b4c6cf6a15}
\-Dodge storm, drag mine, drag scarab 

\-Implements \hyperlink{classGroundUnit_a925f3b5ce54675b8772a7b7bbb3daf64}{\-Ground\-Unit}.



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


\hypertarget{classZealotUnit_af2cc37fd50e2cd192d173ad38493693e}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!update\-Target\-Enemy@{update\-Target\-Enemy}}
\index{update\-Target\-Enemy@{update\-Target\-Enemy}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{update\-Target\-Enemy}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Zealot\-Unit\-::update\-Target\-Enemy} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}\label{classZealotUnit_af2cc37fd50e2cd192d173ad38493693e}
oor\-Target = closest in the set\-Prio

target\-Enemy = in range, the ones in set\-Prio have the priority otherwise the closest

\-Rule out what we don't want to attack

\-Take one in the set\-Prio and in range or one in range or the closest 

\-Reimplemented from \hyperlink{classBayesianUnit_a7b3b354eaef04e732fb1a79044343600}{\-Bayesian\-Unit}.



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




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




\subsection{\-Member \-Data \-Documentation}
\hypertarget{classZealotUnit_a40677061b456b4dba310f533a92a9fcd}{\index{\-Zealot\-Unit@{\-Zealot\-Unit}!set\-Prio@{set\-Prio}}
\index{set\-Prio@{set\-Prio}!ZealotUnit@{\-Zealot\-Unit}}
\subsubsection[{set\-Prio}]{\setlength{\rightskip}{0pt plus 5cm}std\-::set$<$ \-B\-W\-A\-P\-I\-::\-Unit\-Type $>$ {\bf \-Zealot\-Unit\-::set\-Prio}\hspace{0.3cm}{\ttfamily  \mbox{[}static, protected\mbox{]}}}}\label{classZealotUnit_a40677061b456b4dba310f533a92a9fcd}


\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-Snippy\-Hollo\-W-\/\-Broodwar\-Bot\-Q-\/f01ab56/src/\-Micro/\-Units/\-Protoss\-Ground/\hyperlink{ZealotUnit_8h}{\-Zealot\-Unit.\-h}\item 
\-Snippy\-Hollo\-W-\/\-Broodwar\-Bot\-Q-\/f01ab56/src/\-Micro/\-Units/\-Protoss\-Ground/\hyperlink{ZealotUnit_8cpp}{\-Zealot\-Unit.\-cpp}\end{DoxyCompactItemize}
