diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-09-10 00:41:52 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-09-10 05:18:02 -0500 |
commit | e8284b8f1cd05f3ba9f72a4a87e0a58b8fd882c2 (patch) | |
tree | 3deb15a6b6374c22d9c9cb94fe481b349e6ec2c6 /crawl-ref/source/colour.h | |
parent | 1662f12c9852360e36cfe22cca1c68c3956e08f0 (diff) | |
download | crawl-ref-e8284b8f1cd05f3ba9f72a4a87e0a58b8fd882c2.tar.gz crawl-ref-e8284b8f1cd05f3ba9f72a4a87e0a58b8fd882c2.zip |
generate colour names dynamically too
Diffstat (limited to 'crawl-ref/source/colour.h')
-rw-r--r-- | crawl-ref/source/colour.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/colour.h b/crawl-ref/source/colour.h index ba63c9f954..59d2f531be 100644 --- a/crawl-ref/source/colour.h +++ b/crawl-ref/source/colour.h @@ -56,10 +56,11 @@ typedef int (*element_colour_calculator)(int, const coord_def&); struct element_colour_calc { element_type type; + std::string name; - element_colour_calc(element_type _type, + element_colour_calc(element_type _type, std::string _name, element_colour_calculator _calc) - : type(_type), calc(_calc) + : type(_type), name(_name), calc(_calc) {}; virtual int get(const coord_def& loc = coord_def(), |