diff options
Diffstat (limited to 'crawl-ref/source/rltiles/tool/tile_colour.cc')
-rw-r--r-- | crawl-ref/source/rltiles/tool/tile_colour.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/crawl-ref/source/rltiles/tool/tile_colour.cc b/crawl-ref/source/rltiles/tool/tile_colour.cc new file mode 100644 index 0000000000..88cb69c75f --- /dev/null +++ b/crawl-ref/source/rltiles/tool/tile_colour.cc @@ -0,0 +1,25 @@ +#include "tile_colour.h" + +tile_colour tile_colour::background(71, 108, 108, 255); +tile_colour tile_colour::transparent(0, 0, 0, 0); +tile_colour tile_colour::black(0, 0, 0, 255); + +bool tile_colour::operator==(const tile_colour &rhs) const +{ + return (r == rhs.r && g == rhs.g && b == rhs.b && a == rhs.a); +} + +bool tile_colour::operator!=(const tile_colour &rhs) const +{ + return (r != rhs.r || g != rhs.g || b != rhs.b || a != rhs.a); +} + +const tile_colour &tile_colour::operator=(const tile_colour &rhs) +{ + r = rhs.r; + g = rhs.g; + b = rhs.b; + a = rhs.a; + + return *this; +} |