diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-12 19:25:13 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-12 19:25:13 +0000 |
commit | 5324e928729d678c71ef055eea9623d16b73cb2e (patch) | |
tree | 4d11ac9ab7847185bdc3e209cc5f17f47be045fd /crawl-ref/source/spl-book.h | |
parent | 1eee7e398be993bd28d97073059736779822ec2a (diff) | |
download | crawl-ref-5324e928729d678c71ef055eea9623d16b73cb2e.tar.gz crawl-ref-5324e928729d678c71ef055eea9623d16b73cb2e.zip |
Adapt Matthew's new memorisation interface for tiles, using the same
display as for spellcasting. Also force a redraw() if the player clicked
on a spell.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10661 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.h')
-rw-r--r-- | crawl-ref/source/spl-book.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-book.h b/crawl-ref/source/spl-book.h index b1ba53796b..a3adf58dd1 100644 --- a/crawl-ref/source/spl-book.h +++ b/crawl-ref/source/spl-book.h @@ -51,8 +51,8 @@ int read_book( item_def &item, read_book_action_type action ); bool player_can_memorise(const item_def &book); bool can_learn_spell(bool silent = false); bool learn_spell(); -bool learn_spell(spell_type spell, const item_def &book, - bool is_safest_book); +bool learn_spell(spell_type spell, const item_def *book = NULL, + bool is_safest_book = true); bool player_can_read_spellbook( const item_def &book ); @@ -65,6 +65,7 @@ bool is_memorised(spell_type spell); bool you_cannot_memorise(spell_type spell); bool has_spells_to_memorise(); +std::vector<spell_type> get_mem_spell_list(); int spellbook_contents( item_def &book, read_book_action_type action, formatted_string *fs = NULL ); |