diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-07-10 08:15:39 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-07-14 08:47:43 -0400 |
commit | fff14fb3beb1d2e70d702f1cda6a7de6355c2507 (patch) | |
tree | b18cefd32601dc87d815b1573a903537660375d5 /crawl-ref/source/feature.h | |
parent | dc4f2bac322bd5c5cb7073bd8a568aca169ceaf0 (diff) | |
download | crawl-ref-fff14fb3beb1d2e70d702f1cda6a7de6355c2507.tar.gz crawl-ref-fff14fb3beb1d2e70d702f1cda6a7de6355c2507.zip |
Separate feature data into feature-data.h.
Diffstat (limited to 'crawl-ref/source/feature.h')
-rw-r--r-- | crawl-ref/source/feature.h | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/crawl-ref/source/feature.h b/crawl-ref/source/feature.h index 7690f6b2b4..aacadd7db1 100644 --- a/crawl-ref/source/feature.h +++ b/crawl-ref/source/feature.h @@ -5,33 +5,23 @@ struct feature_def { - dungeon_char_type dchar; - ucs_t symbol; // symbol used for seen terrain - ucs_t magic_symbol; // symbol used for magic-mapped terrain - unsigned short colour; // normal in LoS colour - unsigned short map_colour; // colour when out of LoS on display - unsigned short seen_colour; // map_colour when env.map_knowledge().seen() - unsigned short em_colour; // Emphasised colour when in LoS. - unsigned short seen_em_colour; // Emphasised colour when out of LoS - unsigned flags; - map_feature minimap; // mini-map categorization - - feature_def() : - dchar(NUM_DCHAR_TYPES), - symbol(0), - magic_symbol(0), - colour(BLACK), - map_colour(DARKGREY), - seen_colour(BLACK), - em_colour(BLACK), - seen_em_colour(BLACK), - flags(FFT_NONE), - minimap(MF_UNSEEN) - {} + dungeon_feature_type feat; + dungeon_char_type dchar; // used for creating symbol + ucs_t symbol; // symbol used for seen terrain + ucs_t magic_symbol; // symbol used for magic-mapped terrain + unsigned short colour; // normal in LoS colour + unsigned short map_colour; // colour when out of LoS on display + unsigned short seen_colour; // map_colour when env.map_knowledge().seen() + unsigned short em_colour; // Emphasised colour when in LoS. + unsigned short seen_em_colour; // Emphasised colour when out of LoS + unsigned flags; + map_feature minimap; // mini-map categorization bool is_notable() const { return flags & FFT_NOTABLE; } }; +void init_fd(feature_def& fd); + const feature_def &get_feature_def(show_type object); const feature_def &get_feature_def(dungeon_feature_type feat); |