summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-04 10:04:17 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-04 16:50:18 +0100
commit6f10cd2574eeb8a1417eff84718edd309287ac0d (patch)
tree69a45fe0e35cb559a3285b08697c96c230fc0c0f /crawl-ref/source/view.h
parent9ad85435681ad82c7ef07d2083e40e525e2b0f55 (diff)
downloadcrawl-ref-6f10cd2574eeb8a1417eff84718edd309287ac0d.tar.gz
crawl-ref-6f10cd2574eeb8a1417eff84718edd309287ac0d.zip
Get rid of multiple-meaning "int object" in env.show.
env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h
index 88b2958a79..978fcad050 100644
--- a/crawl-ref/source/view.h
+++ b/crawl-ref/source/view.h
@@ -9,6 +9,7 @@
#define VIEW_H
#include "externs.h"
+#include "show.h"
void init_char_table(char_set_type set);
void init_monsters_seens();
@@ -49,22 +50,19 @@ unsigned get_screen_glyph( const coord_def &p );
std::string stringize_glyph(unsigned glyph);
int multibyte_strlen(const std::string &s);
-void get_item_symbol(unsigned int object, unsigned *ch,
- unsigned short *colour);
-
// Applies ETC_ colour substitutions and brands.
unsigned real_colour(unsigned raw_colour);
int get_mons_colour(const monsters *mons);
-void set_envmap_obj( const coord_def& where, int object );
+void set_envmap_obj(const coord_def& where, show_type object);
unsigned get_envmap_char(int x, int y);
inline unsigned get_envmap_char(const coord_def& c) {
return get_envmap_char(c.x, c.y);
}
bool inside_level_bounds(int x, int y);
bool inside_level_bounds(const coord_def &p);
-int get_envmap_obj(int x, int y);
-inline int get_envmap_obj(const coord_def& c) {
+show_type get_envmap_obj(int x, int y);
+inline show_type get_envmap_obj(const coord_def& c) {
return get_envmap_obj(c.x, c.y);
}
void set_envmap_detected_item(int x, int y, bool detected = true);