1 /** 2 * \file ui-spell.h 3 * \brief Spell UI handing 4 * 5 * Copyright (c) 2010 Andi Sidwell 6 * 7 * This work is free software; you can redistribute it and/or modify it 8 * under the terms of either: 9 * 10 * a) the GNU General Public License as published by the Free Software 11 * Foundation, version 2, or 12 * 13 * b) the "Angband licence": 14 * This software may be copied and distributed for educational, research, 15 * and not for profit purposes provided that this copyright and statement 16 * are included in all such copies. Other copyrights may also apply. 17 */ 18 19 #ifndef INCLUDED_UI_SPELL_H 20 #define INCLUDED_UI_SPELL_H 21 22 void textui_book_browse(const struct object *obj); 23 void textui_spell_browse(void); 24 int textui_get_spell_from_book(const char *verb, struct object *book, 25 const char *error, 26 bool (*spell_filter)(int spell_index)); 27 int textui_get_spell(const char *verb, item_tester book_filter, 28 cmd_code cmd, const char *error, 29 bool (*spell_filter)(int spell_index)); 30 31 #endif /* INCLUDED_UI_SPELL_H */ 32