BWAPI
quorum/include/BWAPI/Color.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <string>
00003 #include <set>
00004 namespace BWAPI
00005 {
00006   // TODO: Add color palette image and info about text color
00009   class Color
00010   {
00011     public:
00012       Color();
00013 
00015       Color(int id);
00016       Color(const Color& other);
00017 
00019       Color(int red, int green, int blue);
00020 
00022       int getID() const;
00023 
00025       int red() const;
00026 
00028       int green() const;
00029 
00031       int blue() const;
00032 
00033       Color& operator=(const Color& other);
00034       operator int() const;
00035     private:
00036       int id;
00037   };
00038 
00040   namespace Colors
00041   {
00042     void init();
00043     extern const Color Red;
00044     extern const Color Blue;
00045     extern const Color Teal;
00046     extern const Color Purple;
00047     extern const Color Orange;
00048     extern const Color Brown;
00049     extern const Color White;
00050     extern const Color Yellow;
00051     extern const Color Green;
00052     extern const Color Cyan;
00053     extern const Color Black;
00054     extern const Color Grey;
00055   }
00056 }
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines