BWAPI
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Public Member Functions
BWAPI::Color Class Reference

#include <Color.h>

List of all members.

Public Member Functions

 Color ()
 Color (int id)
 Color (const Color &other)
 Color (int red, int green, int blue)
int getID () const
int red () const
int green () const
int blue () const
Coloroperator= (const Color &other)
 operator int () const

Detailed Description

StarCraft uses a 256 color palette to render everything, so the colors we can use to draw shapes using BWAPI is limited to the colors available in the Palette.


Constructor & Destructor Documentation

BWAPI::Color::Color ( int  id)

Create a color using the specified index from the Broodwar color palette.

BWAPI::Color::Color ( const Color other)
BWAPI::Color::Color ( int  red,
int  green,
int  blue 
)

Create a color using the color in the palette that is closest to the RGB color specified.


Member Function Documentation

int BWAPI::Color::blue ( ) const

Return the blue component of the color.

int BWAPI::Color::getID ( ) const

Return the index of the color in the color palette.

int BWAPI::Color::green ( ) const

Return the green component of the color.

BWAPI::Color::operator int ( ) const
Color& BWAPI::Color::operator= ( const Color other)
int BWAPI::Color::red ( ) const

Return the red component of the color.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines