\hypertarget{Unit_8cpp}{\section{\-Skynet/\-Skynet/\-Unit.cpp \-File \-Reference}
\label{Unit_8cpp}\index{\-Skynet/\-Skynet/\-Unit.\-cpp@{\-Skynet/\-Skynet/\-Unit.\-cpp}}
}
{\ttfamily \#include \char`\"{}\-Unit.\-h\char`\"{}}\*
{\ttfamily \#include $<$cassert$>$}\*
{\ttfamily \#include \char`\"{}\-Map\-Helper.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Unit\-Tracker.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Drawing\-Helper.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Requirement.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Latency\-Tracker.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Logger.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Unit\-Helper.\-h\char`\"{}}\*
\-Include dependency graph for \-Unit.\-cpp\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{Unit_8cpp__incl}
\end{center}
\end{figure}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWAPI_1_1Order}{\-B\-W\-A\-P\-I\-::\-Order} \hyperlink{Unit_8cpp_a865d01a42c9de708e79131ce25ddbd9e}{get\-Tech\-Cast\-Order} (\hyperlink{classBWAPI_1_1TechType}{\-B\-W\-A\-P\-I\-::\-Tech\-Type} tech)
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{Unit_8cpp_a865d01a42c9de708e79131ce25ddbd9e}{\index{\-Unit.\-cpp@{\-Unit.\-cpp}!get\-Tech\-Cast\-Order@{get\-Tech\-Cast\-Order}}
\index{get\-Tech\-Cast\-Order@{get\-Tech\-Cast\-Order}!Unit.cpp@{\-Unit.\-cpp}}
\subsubsection[{get\-Tech\-Cast\-Order}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Order} {\bf get\-Tech\-Cast\-Order} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type}}]{tech}
\end{DoxyParamCaption}
)}}\label{Unit_8cpp_a865d01a42c9de708e79131ce25ddbd9e}


\-Definition at line 1295 of file \-Unit.\-cpp.



\-References \-B\-W\-A\-P\-I\-::\-Tech\-Types\-::\-Archon\-\_\-\-Warp, \-B\-W\-A\-P\-I\-::\-Orders\-::\-Archon\-Warp, \-B\-W\-A\-P\-I\-::\-Orders\-::\-Cast\-Psionic\-Storm, \-B\-W\-A\-P\-I\-::\-Orders\-::\-Cast\-Recall, \-B\-W\-A\-P\-I\-::\-Orders\-::\-Cast\-Stasis\-Field, \-B\-W\-A\-P\-I\-::\-Orders\-::\-None, \-B\-W\-A\-P\-I\-::\-Tech\-Types\-::\-Psionic\-\_\-\-Storm, \-B\-W\-A\-P\-I\-::\-Tech\-Types\-::\-Recall, and \-B\-W\-A\-P\-I\-::\-Tech\-Types\-::\-Stasis\-\_\-\-Field.



\-Referenced by \-Unit\-Class\-::use\-Tech().


\begin{DoxyCode}
{
        if(tech == BWAPI::TechTypes::Psionic_Storm)
                return BWAPI::Orders::CastPsionicStorm;
        else if(tech == BWAPI::TechTypes::Archon_Warp)
                return BWAPI::Orders::ArchonWarp;
        else if(tech == BWAPI::TechTypes::Stasis_Field)
                return BWAPI::Orders::CastStasisField;
        else if(tech == BWAPI::TechTypes::Recall)
                return BWAPI::Orders::CastRecall;

        return BWAPI::Orders::None;
}
\end{DoxyCode}


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


