\hypertarget{classUnitToProduce}{\section{\-Unit\-To\-Produce \-Class \-Reference}
\label{classUnitToProduce}\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}}
}


{\ttfamily \#include $<$\-Build\-Order.\-h$>$}



\-Collaboration diagram for \-Unit\-To\-Produce\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classUnitToProduce__coll__graph}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classUnitToProduce_a8ad980f734402b6fcf35e821103790e3}{\-Unit\-To\-Produce} (\hyperlink{classBWAPI_1_1UnitType}{\-B\-W\-A\-P\-I\-::\-Unit\-Type} unit\-Type, int weight, int priority=100, const \hyperlink{structCondition}{\-Condition} \&unit\-Cond=\hyperlink{structCondition}{\-Condition}(\hyperlink{structConditionTestDef_a46599a25a7d294294423774d514273dead0b3fc17f198f30416e9947d658c27c3}{\-Condition\-Test\-::\-None}, true), const \hyperlink{structCondition}{\-Condition} \&factory\-Cond=\hyperlink{structCondition}{\-Condition}(\hyperlink{structConditionTestDef_a46599a25a7d294294423774d514273dead0b3fc17f198f30416e9947d658c27c3}{\-Condition\-Test\-::\-None}, true))
\item 
bool \hyperlink{classUnitToProduce_aae64fbe910229b2674c5ded2410a3f00}{can\-Build\-Unit} () const 
\item 
bool \hyperlink{classUnitToProduce_a8dbe95143a17e98ee7f28c593b411364}{can\-Build\-Factory} () const 
\item 
\hyperlink{classBWAPI_1_1UnitType}{\-B\-W\-A\-P\-I\-::\-Unit\-Type} \hyperlink{classUnitToProduce_a53a740e94bf0419f72804df7695206cc}{get\-Unit\-Type} () const 
\item 
int \hyperlink{classUnitToProduce_acadacd894485d41decbd6ce326bd973d}{get\-Unit\-Weight} () const 
\item 
int \hyperlink{classUnitToProduce_ae71c558ca0fa43a9e3f5ce54455bcb75}{get\-Priority} () const 
\end{DoxyCompactItemize}
\subsection*{\-Private \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWAPI_1_1UnitType}{\-B\-W\-A\-P\-I\-::\-Unit\-Type} \hyperlink{classUnitToProduce_a01dbc9c908d83949542d64c1835c99f4}{m\-Unit\-Type}
\item 
int \hyperlink{classUnitToProduce_a4573f3d43607a904ae15ab78c3157ee0}{m\-Weight}
\item 
int \hyperlink{classUnitToProduce_a2f684926a1538f4ec8c4f13d1ee62683}{m\-Priority}
\item 
\hyperlink{structCondition}{\-Condition} \hyperlink{classUnitToProduce_a2fa8a9b4b83cfcb4e63197c4e17fefe6}{m\-Create\-Unit\-Condition}
\item 
\hyperlink{structCondition}{\-Condition} \hyperlink{classUnitToProduce_ad25b45886941022d417f853e35ea6cbb}{m\-Create\-Factory\-Condition}
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}


\-Definition at line 228 of file \-Build\-Order.\-h.



\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classUnitToProduce_a8ad980f734402b6fcf35e821103790e3}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!\-Unit\-To\-Produce@{\-Unit\-To\-Produce}}
\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{\-Unit\-To\-Produce}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Unit\-To\-Produce\-::\-Unit\-To\-Produce} (
\begin{DoxyParamCaption}
\item[{{\bf \-B\-W\-A\-P\-I\-::\-Unit\-Type}}]{unit\-Type, }
\item[{int}]{weight, }
\item[{int}]{priority = {\ttfamily 100}, }
\item[{const {\bf \-Condition} \&}]{unit\-Cond = {\ttfamily {\bf \-Condition}({\bf \-Condition\-Test\-::\-None},~true)}, }
\item[{const {\bf \-Condition} \&}]{factory\-Cond = {\ttfamily {\bf \-Condition}({\bf \-Condition\-Test\-::\-None},~true)}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classUnitToProduce_a8ad980f734402b6fcf35e821103790e3}


\-Definition at line 238 of file \-Build\-Order.\-h.


\begin{DoxyCode}
                : mUnitType(unitType)
                , mWeight(weight)
                , mCreateUnitCondition(unitCond)
                , mCreateFactoryCondition(factoryCond)
                , mPriority(priority)
        {}
\end{DoxyCode}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classUnitToProduce_a8dbe95143a17e98ee7f28c593b411364}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!can\-Build\-Factory@{can\-Build\-Factory}}
\index{can\-Build\-Factory@{can\-Build\-Factory}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{can\-Build\-Factory}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Unit\-To\-Produce\-::can\-Build\-Factory} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classUnitToProduce_a8dbe95143a17e98ee7f28c593b411364}


\-Definition at line 247 of file \-Build\-Order.\-h.



\-References \-Condition\-::evauluate(), and m\-Create\-Factory\-Condition.



\-Referenced by \-Macro\-Manager\-Class\-::update\-Production\-Production().


\begin{DoxyCode}
{ return mCreateFactoryCondition.evauluate(); }
\end{DoxyCode}


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




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


\hypertarget{classUnitToProduce_aae64fbe910229b2674c5ded2410a3f00}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!can\-Build\-Unit@{can\-Build\-Unit}}
\index{can\-Build\-Unit@{can\-Build\-Unit}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{can\-Build\-Unit}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-Unit\-To\-Produce\-::can\-Build\-Unit} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classUnitToProduce_aae64fbe910229b2674c5ded2410a3f00}


\-Definition at line 246 of file \-Build\-Order.\-h.



\-References \-Condition\-::evauluate(), and m\-Create\-Unit\-Condition.


\begin{DoxyCode}
{ return mCreateUnitCondition.evauluate(); }
\end{DoxyCode}


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


\hypertarget{classUnitToProduce_ae71c558ca0fa43a9e3f5ce54455bcb75}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!get\-Priority@{get\-Priority}}
\index{get\-Priority@{get\-Priority}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{get\-Priority}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Unit\-To\-Produce\-::get\-Priority} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classUnitToProduce_ae71c558ca0fa43a9e3f5ce54455bcb75}


\-Definition at line 252 of file \-Build\-Order.\-h.



\-References m\-Priority.



\-Referenced by \-Macro\-Manager\-Class\-::on\-Change\-Build().


\begin{DoxyCode}
{ return mPriority; }
\end{DoxyCode}


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


\hypertarget{classUnitToProduce_a53a740e94bf0419f72804df7695206cc}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!get\-Unit\-Type@{get\-Unit\-Type}}
\index{get\-Unit\-Type@{get\-Unit\-Type}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{get\-Unit\-Type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Unit\-Type} {\bf \-Unit\-To\-Produce\-::get\-Unit\-Type} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classUnitToProduce_a53a740e94bf0419f72804df7695206cc}


\-Definition at line 249 of file \-Build\-Order.\-h.



\-References m\-Unit\-Type.



\-Referenced by \-Macro\-Manager\-Class\-::on\-Change\-Build(), \-Macro\-Manager\-Class\-::update\-Production\-Production(), and \-Macro\-Manager\-Class\-::update\-Unit\-Production().


\begin{DoxyCode}
{ return mUnitType; }
\end{DoxyCode}


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


\hypertarget{classUnitToProduce_acadacd894485d41decbd6ce326bd973d}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!get\-Unit\-Weight@{get\-Unit\-Weight}}
\index{get\-Unit\-Weight@{get\-Unit\-Weight}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{get\-Unit\-Weight}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Unit\-To\-Produce\-::get\-Unit\-Weight} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classUnitToProduce_acadacd894485d41decbd6ce326bd973d}


\-Definition at line 250 of file \-Build\-Order.\-h.



\-References m\-Weight.



\-Referenced by \-Macro\-Manager\-Class\-::update\-Unit\-Production().


\begin{DoxyCode}
{ return mWeight; }
\end{DoxyCode}


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




\subsection{\-Member \-Data \-Documentation}
\hypertarget{classUnitToProduce_ad25b45886941022d417f853e35ea6cbb}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!m\-Create\-Factory\-Condition@{m\-Create\-Factory\-Condition}}
\index{m\-Create\-Factory\-Condition@{m\-Create\-Factory\-Condition}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{m\-Create\-Factory\-Condition}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Condition} {\bf \-Unit\-To\-Produce\-::m\-Create\-Factory\-Condition}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{classUnitToProduce_ad25b45886941022d417f853e35ea6cbb}


\-Definition at line 260 of file \-Build\-Order.\-h.



\-Referenced by can\-Build\-Factory().

\hypertarget{classUnitToProduce_a2fa8a9b4b83cfcb4e63197c4e17fefe6}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!m\-Create\-Unit\-Condition@{m\-Create\-Unit\-Condition}}
\index{m\-Create\-Unit\-Condition@{m\-Create\-Unit\-Condition}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{m\-Create\-Unit\-Condition}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Condition} {\bf \-Unit\-To\-Produce\-::m\-Create\-Unit\-Condition}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{classUnitToProduce_a2fa8a9b4b83cfcb4e63197c4e17fefe6}


\-Definition at line 259 of file \-Build\-Order.\-h.



\-Referenced by can\-Build\-Unit().

\hypertarget{classUnitToProduce_a2f684926a1538f4ec8c4f13d1ee62683}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!m\-Priority@{m\-Priority}}
\index{m\-Priority@{m\-Priority}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{m\-Priority}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Unit\-To\-Produce\-::m\-Priority}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{classUnitToProduce_a2f684926a1538f4ec8c4f13d1ee62683}


\-Definition at line 257 of file \-Build\-Order.\-h.



\-Referenced by get\-Priority().

\hypertarget{classUnitToProduce_a01dbc9c908d83949542d64c1835c99f4}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!m\-Unit\-Type@{m\-Unit\-Type}}
\index{m\-Unit\-Type@{m\-Unit\-Type}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{m\-Unit\-Type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Unit\-Type} {\bf \-Unit\-To\-Produce\-::m\-Unit\-Type}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{classUnitToProduce_a01dbc9c908d83949542d64c1835c99f4}


\-Definition at line 255 of file \-Build\-Order.\-h.



\-Referenced by get\-Unit\-Type().

\hypertarget{classUnitToProduce_a4573f3d43607a904ae15ab78c3157ee0}{\index{\-Unit\-To\-Produce@{\-Unit\-To\-Produce}!m\-Weight@{m\-Weight}}
\index{m\-Weight@{m\-Weight}!UnitToProduce@{\-Unit\-To\-Produce}}
\subsubsection[{m\-Weight}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Unit\-To\-Produce\-::m\-Weight}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{classUnitToProduce_a4573f3d43607a904ae15ab78c3157ee0}


\-Definition at line 256 of file \-Build\-Order.\-h.



\-Referenced by get\-Unit\-Weight().



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-Skynet/\-Skynet/\hyperlink{BuildOrder_8h}{\-Build\-Order.\-h}\end{DoxyCompactItemize}
