\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$>$}



\-Inheritance diagram for \-B\-W\-A\-P\-I\-:\-:\-Color\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=160pt]{classBWAPI_1_1Color__inherit__graph}
\end{center}
\end{figure}


\-Collaboration diagram for \-B\-W\-A\-P\-I\-:\-:\-Color\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=160pt]{classBWAPI_1_1Color__coll__graph}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWAPI_1_1Color_aeef8f3434bed4d5327cb88705649777e}{\-Color} ()
\item 
\hyperlink{classBWAPI_1_1Color_a34d73936e3db4e31c20e9532d17ed729}{\-Color} (\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} id)
\item 
\hyperlink{classBWAPI_1_1Color_af97a14cd2da614d4df62ac5cd0962603}{\-Color} (\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{classBWAPI_1_1Color_ac1894347565d74bb82e9bcdcaa5f1e76}{red}, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{classBWAPI_1_1Color_a1ed22a02ac606b962ab2da64bd8f19bc}{green}, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{classBWAPI_1_1Color_a14b40346316b72a68bcc8bb7c4b90847}{blue})
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{classBWAPI_1_1Color_ac1894347565d74bb82e9bcdcaa5f1e76}{red} () const 
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{classBWAPI_1_1Color_a1ed22a02ac606b962ab2da64bd8f19bc}{green} () const 
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{classBWAPI_1_1Color_a14b40346316b72a68bcc8bb7c4b90847}{blue} () 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[{{\bf 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_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[{{\bf int}}]{red, }
\item[{{\bf int}}]{green, }
\item[{{\bf 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}{\bf 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. 

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




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


\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}{\bf 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. 

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




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


\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}{\bf 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. 

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




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




\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
trunk/bwapi/include/\-B\-W\-A\-P\-I/\hyperlink{Color_8h}{\-Color.\-h}\item 
trunk/bwapi/\-B\-W\-A\-P\-I\-L\-I\-B/\-Source/\hyperlink{Color_8cpp}{\-Color.\-cpp}\end{DoxyCompactItemize}
