diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-28 14:22:11 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-28 14:22:11 +0000 |
commit | 14855516c12f34ae5d289631a665d61837563a7a (patch) | |
tree | fe926753c926a5f4cb3365a2c8e02f88ea84c905 /crawl-ref/source/view.h | |
parent | 1bbfa550c2f3a16c1a4964771e4905c90461442d (diff) | |
download | crawl-ref-14855516c12f34ae5d289631a665d61837563a7a.tar.gz crawl-ref-14855516c12f34ae5d289631a665d61837563a7a.zip |
Added add_glyph methods to formatted string to show a monster or item glyph as
displayed on screen. Still is a bit messy to use, and you must initialise the
formatted_string with a base colour before using add_glyph(), or the
formatted_string will reset to lightgrey after the glyph.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@897 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r-- | crawl-ref/source/view.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h index f655bb1ce9..22f3b5bdf2 100644 --- a/crawl-ref/source/view.h +++ b/crawl-ref/source/view.h @@ -112,6 +112,11 @@ void clear_map(); bool is_feature(int feature, int x, int y); +void get_item_glyph(const item_def *item, unsigned short *glych, + unsigned short *glycol); +void get_mons_glyph(const monsters *mons, unsigned short *glych, + unsigned short *glycol); + void set_envmap_char( int x, int y, unsigned char chr ); unsigned get_envmap_char(int x, int y); void set_envmap_detected_item(int x, int y, bool detected = true); |