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;
Definition: spell_casting.h:40
Common::String getSpellError() const
static int getSpellIndex(const Character *chr, int lvl, int num)
static void getSpellLevelNum(int spellIndex, int &lvl, int &num)
bool hasCharTarget() const
static Common::String spellResultMessage(const Common::String &msg)
bool canCast() const
Definition: spell_casting.h:81
void setSpell(const Character *chr, int lvl, int num)
void setSpell(int spellIndex, int requiredSp, int requiredGems)
SpellState getSpellState() const
Definition: spell_casting.h:93
bool isMagicAllowed() const
Definition: detection.h:27
Definition: character.h:432