summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-07 17:32:26 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-07 17:32:26 +0000
commitee653d2656b747a8b8426fafc55c7c1cff008871 (patch)
tree527f7ed8f8a53532963f8d5eeb18fc91acf3c193 /crawl-ref/source/view.h
parent23931ce20599deb7cac821f41964d232855e7133 (diff)
downloadcrawl-ref-ee653d2656b747a8b8426fafc55c7c1cff008871.tar.gz
crawl-ref-ee653d2656b747a8b8426fafc55c7c1cff008871.zip
Added support for Unicode characters in the map display with ncursesw (enabled
by setting UNICODE_GLYPHS=y in makefile.unix). Removed the (1,1) offset between map and grid. Both map and grid are now in sync. Store object indexes instead of raw characters in env.map so that players can change charsets and have the display update immediately. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1552 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h
index ce31141055..38bdc47b61 100644
--- a/crawl-ref/source/view.h
+++ b/crawl-ref/source/view.h
@@ -110,19 +110,20 @@ void clear_map(bool clear_items = true, bool clear_mons = true);
bool is_feature(int feature, int x, int y);
-void get_item_glyph(const item_def *item, unsigned short *glych,
+void get_item_glyph(const item_def *item, unsigned *glych,
unsigned short *glycol);
-void get_mons_glyph(const monsters *mons, unsigned short *glych,
+void get_mons_glyph(const monsters *mons, unsigned *glych,
unsigned short *glycol);
int get_screen_glyph( int x, int y );
-void get_item_symbol(unsigned int object, unsigned short *ch,
+void get_item_symbol(unsigned int object, unsigned *ch,
unsigned short *colour);
// Applies EC_ colour substitutions and brands.
unsigned real_colour(unsigned raw_colour);
-void set_envmap_char( int x, int y, unsigned char chr );
+void set_envmap_obj( int x, int y, int object );
unsigned get_envmap_char(int x, int y);
+int get_envmap_obj(int x, int y);
void set_envmap_detected_item(int x, int y, bool detected = true);
void set_envmap_detected_mons(int x, int y, bool detected = true);
void set_envmap_col( int x, int y, int colour, int flags );
@@ -150,8 +151,8 @@ bool see_grid( int grx, int gry );
std::string screenshot(bool fullscreen = false);
-unsigned char get_sightmap_char(int feature);
-unsigned char get_magicmap_char(int feature);
+unsigned get_sightmap_char(int feature);
+unsigned get_magicmap_char(int feature);
void viewwindow(bool draw_it, bool do_updates);
void fire_monster_alerts();