diff options
author | Luca Barbieri <luca@luca-barbieri.com> | 2010-06-07 02:52:28 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-07-29 00:43:58 +0200 |
commit | 7184b88d886d74490447b01699bd2f95dc9cc804 (patch) | |
tree | 45a5acc8744c2dfd96aff8ecd0e764f0c4cb2964 /crawl-ref/source/showsymb.h | |
parent | 698259e9db09aea1c2bf60375daed4200dd25987 (diff) | |
download | crawl-ref-7184b88d886d74490447b01699bd2f95dc9cc804.tar.gz crawl-ref-7184b88d886d74490447b01699bd2f95dc9cc804.zip |
Remove env.show in favor of using env.map_knowledge
Currently env.show stores information about the LOS rectangle, while
env.map_knowledge stores the rest of the map.
This unnecessarily complicates the code, makes serialization harder,
and makes it hard to change the LOS model.
This code uses map_knowledge for both kinds of data.
Regressions are quite possible.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/showsymb.h')
-rw-r--r-- | crawl-ref/source/showsymb.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/showsymb.h b/crawl-ref/source/showsymb.h index 270670a28c..b7ea9d195e 100644 --- a/crawl-ref/source/showsymb.h +++ b/crawl-ref/source/showsymb.h @@ -4,6 +4,7 @@ #include "show.h" #include "mon-info.h" +struct map_cell; struct glyph { unsigned ch; @@ -16,8 +17,6 @@ unsigned get_feat_symbol(dungeon_feature_type feat); unsigned get_item_symbol(show_item_type it); glyph get_item_glyph(const item_def *item); glyph get_mons_glyph(const monster_info& mi, bool realcol=true); -glyph get_show_glyph(show_type object); - -unsigned get_screen_glyph( const coord_def &p ); +glyph get_cell_glyph(const map_cell& cell, bool clean_map = false); #endif |