diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-23 17:11:56 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-23 17:11:56 +0000 |
commit | 7e8a32831f88e720c9ba724037b76d09fc5c1cd0 (patch) | |
tree | c6cf3786e3650ee690136f8330fd8c50033c5eb3 /crawl-ref/source/externs.h | |
parent | 74306af7d80b6dc3360b145270bd7d5ca20eb19f (diff) | |
download | crawl-ref-7e8a32831f88e720c9ba724037b76d09fc5c1cd0.tar.gz crawl-ref-7e8a32831f88e720c9ba724037b76d09fc5c1cd0.zip |
Allow monster symbols to be customised using the mon_glyph option.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1916 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index 67138455c0..bba92b51c0 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -1535,6 +1535,17 @@ private: void set_comparators(std::string &s); }; +struct mon_display +{ + monster_type type; + unsigned glyph; + unsigned colour; + + mon_display(monster_type m = MONS_PROGRAM_BUG, + unsigned gly = 0, + unsigned col = 0) : type(m), glyph(gly), colour(col) { } +}; + class InitLineInput; struct game_options { @@ -1549,6 +1560,7 @@ public: public: // View options std::vector<feature_override> feature_overrides; + std::vector<mon_display> mon_glyph_overrides; unsigned cset_override[NUM_CSET][NUM_DCHAR_TYPES]; std::string save_dir; // Directory where saves and bones go. @@ -1852,6 +1864,13 @@ private: int read_explore_stop_conditions(const std::string &) const; void validate_options(); + void add_all(const std::string &s, const std::string &separator, + void (game_options::*add)(const std::string &)); + void add_mon_glyph_override(monster_type mtype, mon_display &mdisp); + void add_mon_glyph_overrides(const std::string &mons, mon_display &mdisp); + void add_mon_glyph_override(const std::string &); + mon_display parse_mon_glyph(const std::string &s) const; + static const std::string interrupt_prefix; }; |