Angband
ui-spell.h
Go to the documentation of this file.
1 
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 */
void textui_spell_browse(void)
Browse the given book.
Definition: ui-spell.c:271
int textui_get_spell(const char *verb, item_tester book_filter, cmd_code cmd, const char *error, bool(*spell_filter)(int spell_index))
Get a spell from the player.
Definition: ui-spell.c:315
bool(* item_tester)(const struct object *)
Definition: object.h:508
cmd_code
All valid game commands.
Definition: cmd-core.h:29
void textui_book_browse(const struct object *obj)
Browse a given book.
Definition: ui-spell.c:254
int textui_get_spell_from_book(const char *verb, struct object *book, const char *error, bool(*spell_filter)(int spell_index))
Get a spell from specified book.
Definition: ui-spell.c:291