\hypertarget{classBWAPI_1_1Color}{\section{\-B\-W\-A\-P\-I\-:\-:\-Color \-Class \-Reference}
\label{classBWAPI_1_1Color}\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}}
}


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

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWAPI_1_1Color_aeef8f3434bed4d5327cb88705649777e}{\-Color} ()
\item 
\hyperlink{classBWAPI_1_1Color_a34d73936e3db4e31c20e9532d17ed729}{\-Color} (int id)
\item 
\hyperlink{classBWAPI_1_1Color_a41e303e5ed90f6bbb10d3893ca6c80ca}{\-Color} (const \hyperlink{classBWAPI_1_1Color}{\-Color} \&other)
\item 
\hyperlink{classBWAPI_1_1Color_af97a14cd2da614d4df62ac5cd0962603}{\-Color} (int \hyperlink{classBWAPI_1_1Color_ac1894347565d74bb82e9bcdcaa5f1e76}{red}, int \hyperlink{classBWAPI_1_1Color_a1ed22a02ac606b962ab2da64bd8f19bc}{green}, int \hyperlink{classBWAPI_1_1Color_a14b40346316b72a68bcc8bb7c4b90847}{blue})
\item 
int \hyperlink{classBWAPI_1_1Color_ad888a09987be28c4a15cb665ecb203ba}{get\-I\-D} () const 
\item 
int \hyperlink{classBWAPI_1_1Color_ac1894347565d74bb82e9bcdcaa5f1e76}{red} () const 
\item 
int \hyperlink{classBWAPI_1_1Color_a1ed22a02ac606b962ab2da64bd8f19bc}{green} () const 
\item 
int \hyperlink{classBWAPI_1_1Color_a14b40346316b72a68bcc8bb7c4b90847}{blue} () const 
\item 
\hyperlink{classBWAPI_1_1Color}{\-Color} \& \hyperlink{classBWAPI_1_1Color_a5cedfdcfeaf1d44495f9b45e35c556fb}{operator=} (const \hyperlink{classBWAPI_1_1Color}{\-Color} \&other)
\item 
\hyperlink{classBWAPI_1_1Color_aee761bd84e65b2839d871126580a56dc}{operator int} () const 
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Star\-Craft uses a 256 color palette to render everything, so the colors we can use to draw shapes using \hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} is limited to the colors available in the \-Palette. 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classBWAPI_1_1Color_aeef8f3434bed4d5327cb88705649777e}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!\-Color@{\-Color}}
\index{\-Color@{\-Color}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{\-Color}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Color\-::\-Color} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Color_aeef8f3434bed4d5327cb88705649777e}
\hypertarget{classBWAPI_1_1Color_a34d73936e3db4e31c20e9532d17ed729}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!\-Color@{\-Color}}
\index{\-Color@{\-Color}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{\-Color}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Color\-::\-Color} (
\begin{DoxyParamCaption}
\item[{int}]{id}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Color_a34d73936e3db4e31c20e9532d17ed729}
\-Create a color using the specified index from the \-Broodwar color palette. \hypertarget{classBWAPI_1_1Color_a41e303e5ed90f6bbb10d3893ca6c80ca}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!\-Color@{\-Color}}
\index{\-Color@{\-Color}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{\-Color}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Color\-::\-Color} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Color} \&}]{other}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Color_a41e303e5ed90f6bbb10d3893ca6c80ca}
\hypertarget{classBWAPI_1_1Color_af97a14cd2da614d4df62ac5cd0962603}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!\-Color@{\-Color}}
\index{\-Color@{\-Color}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{\-Color}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Color\-::\-Color} (
\begin{DoxyParamCaption}
\item[{int}]{red, }
\item[{int}]{green, }
\item[{int}]{blue}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Color_af97a14cd2da614d4df62ac5cd0962603}
\-Create a color using the color in the palette that is closest to the \-R\-G\-B color specified. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classBWAPI_1_1Color_a14b40346316b72a68bcc8bb7c4b90847}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!blue@{blue}}
\index{blue@{blue}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{blue}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Color\-::blue} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Color_a14b40346316b72a68bcc8bb7c4b90847}
\-Return the blue component of the color. \hypertarget{classBWAPI_1_1Color_ad888a09987be28c4a15cb665ecb203ba}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!get\-I\-D@{get\-I\-D}}
\index{get\-I\-D@{get\-I\-D}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{get\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Color\-::get\-I\-D} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Color_ad888a09987be28c4a15cb665ecb203ba}
\-Return the index of the color in the color palette. \hypertarget{classBWAPI_1_1Color_a1ed22a02ac606b962ab2da64bd8f19bc}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!green@{green}}
\index{green@{green}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{green}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Color\-::green} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Color_a1ed22a02ac606b962ab2da64bd8f19bc}
\-Return the green component of the color. \hypertarget{classBWAPI_1_1Color_aee761bd84e65b2839d871126580a56dc}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!operator int@{operator int}}
\index{operator int@{operator int}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{operator int}]{\setlength{\rightskip}{0pt plus 5cm}\-B\-W\-A\-P\-I\-::\-Color\-::operator int (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Color_aee761bd84e65b2839d871126580a56dc}
\hypertarget{classBWAPI_1_1Color_a5cedfdcfeaf1d44495f9b45e35c556fb}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!operator=@{operator=}}
\index{operator=@{operator=}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Color}\& \-B\-W\-A\-P\-I\-::\-Color\-::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf \-Color} \&}]{other}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Color_a5cedfdcfeaf1d44495f9b45e35c556fb}
\hypertarget{classBWAPI_1_1Color_ac1894347565d74bb82e9bcdcaa5f1e76}{\index{\-B\-W\-A\-P\-I\-::\-Color@{\-B\-W\-A\-P\-I\-::\-Color}!red@{red}}
\index{red@{red}!BWAPI::Color@{\-B\-W\-A\-P\-I\-::\-Color}}
\subsubsection[{red}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Color\-::red} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Color_ac1894347565d74bb82e9bcdcaa5f1e76}
\-Return the red component of the color. 

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