\hypertarget{BuildOrderManager_8cpp}{\section{\-Skynet/\-Skynet/\-Build\-Order\-Manager.cpp \-File \-Reference}
\label{BuildOrderManager_8cpp}\index{\-Skynet/\-Skynet/\-Build\-Order\-Manager.\-cpp@{\-Skynet/\-Skynet/\-Build\-Order\-Manager.\-cpp}}
}
{\ttfamily \#include \char`\"{}\-Build\-Order\-Manager.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Logger.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Macro\-Manager.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Squad\-Manager.\-h\char`\"{}}\*
{\ttfamily \#include $<$ctime$>$}\*
{\ttfamily \#include $<$boost/random.\-hpp$>$}\*
\-Include dependency graph for \-Build\-Order\-Manager.\-cpp\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{BuildOrderManager_8cpp__incl}
\end{center}
\end{figure}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{BuildOrder_8h_a95570ebabe37e0eb9f307c6e9074de1c}{\-Build\-Order\-I\-D} \hyperlink{BuildOrderManager_8cpp_a72fa23aae63f610900f30cc9631c7fb8}{get\-Random\-Build} (const std\-::vector$<$ \hyperlink{BuildOrder_8h_a95570ebabe37e0eb9f307c6e9074de1c}{\-Build\-Order\-I\-D} $>$ \&builds)
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{BuildOrderManager_8cpp_a72fa23aae63f610900f30cc9631c7fb8}{\index{\-Build\-Order\-Manager.\-cpp@{\-Build\-Order\-Manager.\-cpp}!get\-Random\-Build@{get\-Random\-Build}}
\index{get\-Random\-Build@{get\-Random\-Build}!BuildOrderManager.cpp@{\-Build\-Order\-Manager.\-cpp}}
\subsubsection[{get\-Random\-Build}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Build\-Order\-I\-D} {\bf get\-Random\-Build} (
\begin{DoxyParamCaption}
\item[{const std\-::vector$<$ {\bf \-Build\-Order\-I\-D} $>$ \&}]{builds}
\end{DoxyParamCaption}
)}}\label{BuildOrderManager_8cpp_a72fa23aae63f610900f30cc9631c7fb8}


\-Definition at line 25 of file \-Build\-Order\-Manager.\-cpp.



\-References \-Build\-Order\-I\-D\-Def\-::\-Unknown.



\-Referenced by \-Build\-Order\-Manager\-Class\-::update().


\begin{DoxyCode}
{
        if(builds.empty())
                return BuildOrderID::Unknown;

        static boost::mt19937 rng(static_cast<unsigned int>(std::time(0)));
        boost::uniform_int<> dist(0, builds.size() - 1);
        boost::variate_generator<boost::mt19937, boost::uniform_int<>> 
      randIndex(rng, dist);

        return builds[randIndex()];
}
\end{DoxyCode}


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


