diff options
author | DMBrownrigg <netsdanita@hotmail.com> | 2010-02-09 22:36:36 +1100 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2010-02-11 21:37:32 -0500 |
commit | 3d65112467b3c798356edc6da1c9651a8cd7a258 (patch) | |
tree | fead88aa2bf35f9a12e8765fd8939178ba59c27e /crawl-ref/source/spl-util.h | |
parent | 9bfe7f104a39a02eabe3b34ef2c7ad2b8966c77a (diff) | |
download | crawl-ref-3d65112467b3c798356edc6da1c9651a8cd7a258.tar.gz crawl-ref-3d65112467b3c798356edc6da1c9651a8cd7a258.zip |
RC1 of spell highlighting
Signed-off-by: Charles Otto <ottochar@gmail.com>
Diffstat (limited to 'crawl-ref/source/spl-util.h')
-rw-r--r-- | crawl-ref/source/spl-util.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-util.h b/crawl-ref/source/spl-util.h index 9068facff8..72d23a7844 100644 --- a/crawl-ref/source/spl-util.h +++ b/crawl-ref/source/spl-util.h @@ -34,6 +34,16 @@ enum spschool_flag_type struct bolt; class dist; +enum spell_highlight_colours +{ + COL_USELESS = DARKGRAY, // ability would have no useful effect + COL_INAPPLICABLE = DARKGRAY, // ability cannot be meanifully applied (eg, no targets) + COL_USEFUL = LIGHTBLUE, // the palyers status makes this ability notably more useful + COL_EMPOWERED = LIGHTBLUE, // The ability is made stronger by the player's status (unused) + COL_FORBIDDEN = LIGHTRED, // The player's god hates this abilty + COL_FAVORED = YELLOW // the player's god likes this ability +}; + bool is_valid_spell(spell_type spell); void init_spell_descs(void); void init_spell_name_cache(); @@ -123,9 +133,10 @@ int spell_type2skill (unsigned int which_spelltype); spell_type zap_type_to_spell(zap_type zap); -bool spell_is_useless(spell_type spell); +bool spell_is_useless(spell_type spell, bool transient = false); bool spell_is_useful(spell_type spell); -int spell_highlight_by_utility(spell_type spell, int default_color = LIGHTGRAY); +int spell_highlight_by_utility(spell_type spell, int default_color = LIGHTGRAY, bool transient = false); +bool spell_no_hostile_in_range(spell_type spell, int minRange); #endif |