22 #ifndef MM1_GAME_SPELL_CASTING_H 23 #define MM1_GAME_SPELL_CASTING_H 25 #include "mm/mm1/data/character.h" 32 SS_OK, SS_NOT_ENOUGH_SP, SS_NOT_ENOUGH_GEMS,
33 SS_COMBAT_ONLY, SS_NONCOMBAT_ONLY, SS_DOESNT_WORK,
43 int _requiredSp = 0, _requiredGems = 0;
44 SpellState _spellState = SS_OK;
70 void setSpell(
int spellIndex,
int requiredSp,
int requiredGems);
82 return _spellState == SS_OK;
bool hasCharTarget() const
Common::String getSpellError() const
void setSpell(const Character *chr, int lvl, int num)
bool canCast() const
Definition: spell_casting.h:81
static void getSpellLevelNum(int spellIndex, int &lvl, int &num)
Definition: spell_casting.h:40
bool isMagicAllowed() const
Definition: detection.h:27
Definition: character.h:432
SpellState getSpellState() const
Definition: spell_casting.h:93
static int getSpellIndex(const Character *chr, int lvl, int num)