BWAPI
trunk/bwapi/include/BWAPI/Color.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <string>
00003 #include <set>
00004 #include "Type.h"
00005 namespace BWAPI
00006 {
00007   // TODO: Add color palette image and info about text color
00010   class Color : public Type
00011   {
00012     public:
00013       Color();
00014 
00016       Color(int id);
00017 
00019       Color(int red, int green, int blue);
00020 
00022       int red() const;
00023 
00025       int green() const;
00026 
00028       int blue() const;
00029   };
00030 
00032   namespace Colors
00033   {
00034     void init();
00035     extern const Color Red;
00036     extern const Color Blue;
00037     extern const Color Teal;
00038     extern const Color Purple;
00039     extern const Color Orange;
00040     extern const Color Brown;
00041     extern const Color White;
00042     extern const Color Yellow;
00043     extern const Color Green;
00044     extern const Color Cyan;
00045     extern const Color Black;
00046     extern const Color Grey;
00047   }
00048 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines