1 /** 2 * @file spells.h 3 * 4 * Interface of functionality for casting player spells. 5 */ 6 #ifndef __SPELLS_H__ 7 #define __SPELLS_H__ 8 9 DEVILUTION_BEGIN_NAMESPACE 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 int GetManaAmount(int id, int sn); 16 void UseMana(int id, int sn); 17 Uint64 GetSpellBitmask(int spellId); 18 BOOL CheckSpell(int id, int sn, char st, BOOL manaonly); 19 void EnsureValidReadiedSpell(PlayerStruct &player); 20 void CastSpell(int id, int spl, int sx, int sy, int dx, int dy, int spllvl); 21 void DoResurrect(int pnum, int rid); 22 void DoHealOther(int pnum, int rid); 23 int GetSpellBookLevel(spell_id s); 24 int GetSpellStaffLevel(spell_id s); 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 DEVILUTION_END_NAMESPACE 31 32 #endif /* __SPELLS_H__ */ 33