Angband
player-spell.h
Go to the documentation of this file.
1 
19 void player_spells_init(struct player *p);
20 void player_spells_free(struct player *p);
21 const class_book *object_to_book(const struct object *obj);
22 const class_spell *spell_by_index(int index);
23 int spell_collect_from_book(const object_type *o_ptr, int **spells);
24 int spell_book_count_spells(const object_type *o_ptr, bool (*tester)(int spell));
25 bool spell_okay_list(bool (*spell_test)(int spell), const int spells[], int n_spells);
26 bool spell_okay_to_cast(int spell);
27 bool spell_okay_to_study(int spell);
28 bool spell_okay_to_browse(int spell);
29 s16b spell_chance(int spell);
30 void spell_learn(int spell);
31 bool spell_cast(int spell, int dir);
32 
33 extern void get_spell_info(int index, char *buf, size_t len);
34 extern bool cast_spell(int tval, int index, int dir);
35 extern bool spell_needs_aim(int spell);
36 extern bool spell_is_identify(int spell);
38