diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 11:46:08 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 11:48:33 +0100 |
commit | 5aaf885970318231f988606b0f6d6e1a3288cda0 (patch) | |
tree | 089e5bab5fa7efcf07059a26ff70548d076fd7f9 /crawl-ref/source/showsymb.h | |
parent | a37af0a7641b0178d66e09d51ad8dcb9ec5e42c6 (diff) | |
download | crawl-ref-5aaf885970318231f988606b0f6d6e1a3288cda0.tar.gz crawl-ref-5aaf885970318231f988606b0f6d6e1a3288cda0.zip |
Add missing showsymb.cc and showsymb.h.
Also split out feature colouring into separate function.
Diffstat (limited to 'crawl-ref/source/showsymb.h')
-rw-r--r-- | crawl-ref/source/showsymb.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/crawl-ref/source/showsymb.h b/crawl-ref/source/showsymb.h new file mode 100644 index 0000000000..c5f47be763 --- /dev/null +++ b/crawl-ref/source/showsymb.h @@ -0,0 +1,24 @@ +#ifndef SHOWSYMB_H +#define SHOWSYMB_H + +struct show_type; + +void get_item_glyph(const item_def *item, unsigned *glych, + unsigned short *glycol); +void get_mons_glyph(const monsters *mons, unsigned *glych, + unsigned short *glycol); +unsigned get_screen_glyph( int x, int y ); +unsigned get_screen_glyph( const coord_def &p ); + +int get_mons_colour(const monsters *mons); + +unsigned grid_character_at(const coord_def &c); +unsigned get_symbol(show_type object, unsigned short *colour = NULL, + bool magic_mapped = false); +void get_symbol(const coord_def& where, + show_type object, unsigned *ch, + unsigned short *colour, + bool magic_mapped = false); + +#endif + |