00001 #ifndef SHOWSYMB_H
00002 #define SHOWSYMB_H
00003
00004 #include "show.h"
00005 #include "mon-info.h"
00006
00007 struct map_cell;
00008 struct glyph
00009 {
00010 wchar_t ch;
00011 unsigned short col;
00012
00013 glyph(wchar_t _ch = ' ', unsigned short _col = LIGHTGREY)
00014 : ch(_ch), col(_col)
00015 {
00016 }
00017 };
00018
00019 std::string glyph_to_tagstr(const glyph& g);
00020
00021 wchar_t get_feat_symbol(dungeon_feature_type feat);
00022 wchar_t get_item_symbol(show_item_type it);
00023 glyph get_item_glyph(const item_def *item);
00024 glyph get_mons_glyph(const monster_info& mi, bool realcol=true);
00025
00026 show_class get_cell_show_class(const map_cell& cell, bool only_stationary_monsters = false);
00027 glyph get_cell_glyph(const coord_def& loc, bool only_stationary_monsters = false, int color_mode = 0);
00028 glyph get_cell_glyph(const map_cell& cell, const coord_def& loc, bool only_stationary_monsters = false, int color_mode = 0);
00029 glyph get_cell_glyph_with_class(const map_cell& cell, const coord_def& loc, show_class cls, int color_mode = 0);
00030
00031 #endif