\hypertarget{classBWAPI_1_1TechType}{\section{\-B\-W\-A\-P\-I\-:\-:\-Tech\-Type \-Class \-Reference}
\label{classBWAPI_1_1TechType}\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
}


{\ttfamily \#include $<$\-Tech\-Type.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWAPI_1_1TechType_aa3fe2333cd3abb57e232b2ecae164a53}{\-Tech\-Type} ()
\item 
\hyperlink{classBWAPI_1_1TechType_aa15fa1f18cc6573a021ccd296eddbcad}{\-Tech\-Type} (int id)
\item 
\hyperlink{classBWAPI_1_1TechType_a3a602d275e502365bcc71f5b51e4b822}{\-Tech\-Type} (const \hyperlink{classBWAPI_1_1TechType}{\-Tech\-Type} \&other)
\item 
\hyperlink{classBWAPI_1_1TechType}{\-Tech\-Type} \& \hyperlink{classBWAPI_1_1TechType_a7382e472b930786e0d5d25391c35a780}{operator=} (const \hyperlink{classBWAPI_1_1TechType}{\-Tech\-Type} \&other)
\item 
\hyperlink{classBWAPI_1_1TechType_a31a55a4243b9f516361fc81c8580ee18}{operator int} () const 
\item 
int \hyperlink{classBWAPI_1_1TechType_a14b4c89f05503df91868646e930cd9f6}{get\-I\-D} () const 
\item 
std\-::string \hyperlink{classBWAPI_1_1TechType_a201ccdad191f0fc58f22607a285badfb}{get\-Name} () const 
\item 
\hyperlink{classBWAPI_1_1Race}{\-Race} \hyperlink{classBWAPI_1_1TechType_a4eba41353b7456a289749bd47029a9f8}{get\-Race} () const 
\item 
int \hyperlink{classBWAPI_1_1TechType_a2e98384316a18d6af70401f7fa706ae0}{mineral\-Price} () const 
\item 
int \hyperlink{classBWAPI_1_1TechType_a2a61246dd770c5ec770ba766b1b4668b}{gas\-Price} () const 
\item 
int \hyperlink{classBWAPI_1_1TechType_a8a3a87f469edea3f2d15767ec0589435}{research\-Time} () const 
\item 
int \hyperlink{classBWAPI_1_1TechType_a04e31c7ad46e6ebbceeb789893ba2d43}{energy\-Used} () const 
\item 
\hyperlink{classBWAPI_1_1UnitType}{\-Unit\-Type} \hyperlink{classBWAPI_1_1TechType_add98ab7bf29cf6df879ec4335099569b}{what\-Researches} () const 
\item 
\hyperlink{classBWAPI_1_1WeaponType}{\-Weapon\-Type} \hyperlink{classBWAPI_1_1TechType_a4e088572c70468cdb7e3633790d4ead6}{get\-Weapon} () const 
\item 
bool \hyperlink{classBWAPI_1_1TechType_ad881d61f897cbf5517665b8c06e643dc}{targets\-Unit} () const 
\item 
bool \hyperlink{classBWAPI_1_1TechType_aa6a171b92becb47b7a9978b1b9519a21}{targets\-Position} () const 
\item 
const std\-::set$<$ \hyperlink{classBWAPI_1_1UnitType}{\-Unit\-Type} $>$ \& \hyperlink{classBWAPI_1_1TechType_a0f6a2247dc6fa5879920d18d6233cb63}{what\-Uses} () const 
\item 
\hyperlink{classBWAPI_1_1Order}{\-Order} \hyperlink{classBWAPI_1_1TechType_ac65e476b7305bb0e6a5113ebc4a9e8d2}{get\-Order} () const 
\end{DoxyCompactItemize}


\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classBWAPI_1_1TechType_aa3fe2333cd3abb57e232b2ecae164a53}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!\-Tech\-Type@{\-Tech\-Type}}
\index{\-Tech\-Type@{\-Tech\-Type}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{\-Tech\-Type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::\-Tech\-Type} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1TechType_aa3fe2333cd3abb57e232b2ecae164a53}
\hypertarget{classBWAPI_1_1TechType_aa15fa1f18cc6573a021ccd296eddbcad}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!\-Tech\-Type@{\-Tech\-Type}}
\index{\-Tech\-Type@{\-Tech\-Type}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{\-Tech\-Type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::\-Tech\-Type} (
\begin{DoxyParamCaption}
\item[{int}]{id}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1TechType_aa15fa1f18cc6573a021ccd296eddbcad}
\hypertarget{classBWAPI_1_1TechType_a3a602d275e502365bcc71f5b51e4b822}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!\-Tech\-Type@{\-Tech\-Type}}
\index{\-Tech\-Type@{\-Tech\-Type}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{\-Tech\-Type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::\-Tech\-Type} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Tech\-Type} \&}]{other}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1TechType_a3a602d275e502365bcc71f5b51e4b822}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classBWAPI_1_1TechType_a04e31c7ad46e6ebbceeb789893ba2d43}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!energy\-Used@{energy\-Used}}
\index{energy\-Used@{energy\-Used}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{energy\-Used}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::energy\-Used} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a04e31c7ad46e6ebbceeb789893ba2d43}
\-Returns the amount of energy used each time this tech type is used. \hypertarget{classBWAPI_1_1TechType_a2a61246dd770c5ec770ba766b1b4668b}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!gas\-Price@{gas\-Price}}
\index{gas\-Price@{gas\-Price}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{gas\-Price}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::gas\-Price} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a2a61246dd770c5ec770ba766b1b4668b}
\-Returns the vespene gas price of the tech type. 

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


\hypertarget{classBWAPI_1_1TechType_a14b4c89f05503df91868646e930cd9f6}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!get\-I\-D@{get\-I\-D}}
\index{get\-I\-D@{get\-I\-D}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{get\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::get\-I\-D} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a14b4c89f05503df91868646e930cd9f6}
\-Returns the unique \-I\-D for this tech type. \hypertarget{classBWAPI_1_1TechType_a201ccdad191f0fc58f22607a285badfb}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!get\-Name@{get\-Name}}
\index{get\-Name@{get\-Name}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{get\-Name}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::get\-Name} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a201ccdad191f0fc58f22607a285badfb}
\-Returns the name of the tech type. 

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


\hypertarget{classBWAPI_1_1TechType_ac65e476b7305bb0e6a5113ebc4a9e8d2}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!get\-Order@{get\-Order}}
\index{get\-Order@{get\-Order}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{get\-Order}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Order} {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::get\-Order} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_ac65e476b7305bb0e6a5113ebc4a9e8d2}
\-Returns the order used to execute this tech type as an action. \hypertarget{classBWAPI_1_1TechType_a4eba41353b7456a289749bd47029a9f8}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!get\-Race@{get\-Race}}
\index{get\-Race@{get\-Race}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{get\-Race}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Race} {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::get\-Race} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a4eba41353b7456a289749bd47029a9f8}
\-Returns the race that uses the \hyperlink{classBWAPI_1_1TechType}{\-Tech\-Type}. \-For example, \hyperlink{namespaceBWAPI_1_1TechTypes_a0b67332f1175fa8c27fd5ca41667cf60}{\-Tech\-Types\-::\-Scanner\-\_\-\-Sweep}?.\hyperlink{classBWAPI_1_1TechType_a4eba41353b7456a289749bd47029a9f8}{get\-Race()} will return \hyperlink{namespaceBWAPI_1_1Races_a25ad2ce27e709ec8d8567b297f2d9f27}{\-Races\-::\-Terran}. \hypertarget{classBWAPI_1_1TechType_a4e088572c70468cdb7e3633790d4ead6}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!get\-Weapon@{get\-Weapon}}
\index{get\-Weapon@{get\-Weapon}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{get\-Weapon}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Weapon\-Type} {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::get\-Weapon} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a4e088572c70468cdb7e3633790d4ead6}
\-Returns the corresponding weapon for this tech type, or \hyperlink{namespaceBWAPI_1_1TechTypes_a888026c44fa65bbcc338fcca795c4d25}{\-Tech\-Types\-::\-None} if no corresponding weapon exists. \-For example, \-Tech\-Types\-::\-Dark\-\_\-\-Swarm.\-get\-Weapon() will return a pointer to \hyperlink{namespaceBWAPI_1_1WeaponTypes_aead777353eacf6c280cbac1cc7f3ffe6}{\-Weapon\-Types\-::\-Dark\-\_\-\-Swarm}. \hypertarget{classBWAPI_1_1TechType_a2e98384316a18d6af70401f7fa706ae0}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!mineral\-Price@{mineral\-Price}}
\index{mineral\-Price@{mineral\-Price}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{mineral\-Price}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::mineral\-Price} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a2e98384316a18d6af70401f7fa706ae0}
\-Returns the mineral cost of the tech type. 

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


\hypertarget{classBWAPI_1_1TechType_a31a55a4243b9f516361fc81c8580ee18}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!operator int@{operator int}}
\index{operator int@{operator int}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{operator int}]{\setlength{\rightskip}{0pt plus 5cm}\-B\-W\-A\-P\-I\-::\-Tech\-Type\-::operator int (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a31a55a4243b9f516361fc81c8580ee18}
\hypertarget{classBWAPI_1_1TechType_a7382e472b930786e0d5d25391c35a780}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!operator=@{operator=}}
\index{operator=@{operator=}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Tech\-Type}\& \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf \-Tech\-Type} \&}]{other}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1TechType_a7382e472b930786e0d5d25391c35a780}
\hypertarget{classBWAPI_1_1TechType_a8a3a87f469edea3f2d15767ec0589435}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!research\-Time@{research\-Time}}
\index{research\-Time@{research\-Time}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{research\-Time}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::research\-Time} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a8a3a87f469edea3f2d15767ec0589435}
\-Returns the number of frames needed to research the tech type. \hypertarget{classBWAPI_1_1TechType_aa6a171b92becb47b7a9978b1b9519a21}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!targets\-Position@{targets\-Position}}
\index{targets\-Position@{targets\-Position}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{targets\-Position}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::targets\-Position} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_aa6a171b92becb47b7a9978b1b9519a21}
\-Returns true if this tech type must be specified a position (i.\-e. \-Dark \-Swarm) \hypertarget{classBWAPI_1_1TechType_ad881d61f897cbf5517665b8c06e643dc}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!targets\-Unit@{targets\-Unit}}
\index{targets\-Unit@{targets\-Unit}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{targets\-Unit}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::targets\-Unit} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_ad881d61f897cbf5517665b8c06e643dc}
\-Returns true if this tech type must be used on another unit (i.\-e. \-Irradiate) \hypertarget{classBWAPI_1_1TechType_add98ab7bf29cf6df879ec4335099569b}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!what\-Researches@{what\-Researches}}
\index{what\-Researches@{what\-Researches}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{what\-Researches}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Unit\-Type} {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::what\-Researches} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_add98ab7bf29cf6df879ec4335099569b}
\-Returns the type of unit that researches this tech type. \-If this tech type is available for free (does not need to be researched), then this method will return \hyperlink{namespaceBWAPI_1_1UnitTypes_a8131aa8e787af82a2abe291c2e9a7486}{\-Unit\-Types\-::\-None}. 

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


\hypertarget{classBWAPI_1_1TechType_a0f6a2247dc6fa5879920d18d6233cb63}{\index{\-B\-W\-A\-P\-I\-::\-Tech\-Type@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}!what\-Uses@{what\-Uses}}
\index{what\-Uses@{what\-Uses}!BWAPI::TechType@{\-B\-W\-A\-P\-I\-::\-Tech\-Type}}
\subsubsection[{what\-Uses}]{\setlength{\rightskip}{0pt plus 5cm}const std\-::set$<${\bf \-Unit\-Type}$>$\& {\bf \-B\-W\-A\-P\-I\-::\-Tech\-Type\-::what\-Uses} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1TechType_a0f6a2247dc6fa5879920d18d6233cb63}
\-Returns the set of units that can use this tech type. \-Usually this will just be a set of one unit type, however in some cases, such as \hyperlink{namespaceBWAPI_1_1TechTypes_a0b55d5ae2d0dab7536e25af580b3f351}{\-Tech\-Types\-::\-Burrowing}, several unit types will be returned. 

\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-Aiur/include/\-B\-W\-A\-P\-I/\hyperlink{TechType_8h}{\-Tech\-Type.\-h}\end{DoxyCompactItemize}
