Public Member Functions | |
Common::String | combatUseItem (Inventory &inv, Inventory::Entry &invEntry, bool isEquipped) |
Common::String | nonCombatUseItem (Inventory &inv, Inventory::Entry &invEntry, bool isEquipped) |
void | applyItemBonus (int id, int value) |
![]() | |
void | setSpell (const Character *chr, int lvl, int num) |
void | setSpell (int spellIndex, int requiredSp, int requiredGems) |
bool | hasCharTarget () const |
bool | canCast () const |
bool | isMagicAllowed () const |
SpellState | getSpellState () const |
Common::String | getSpellError () const |
Additional Inherited Members | |
![]() | |
static int | getSpellIndex (const Character *chr, int lvl, int num) |
static void | getSpellLevelNum (int spellIndex, int &lvl, int &num) |
![]() | |
bool | isInCombat () const |
![]() | |
int | _spellIndex = 0 |
int | _requiredSp = 0 |
int | _requiredGems = 0 |
SpellState | _spellState = SS_OK |
Common::String MM::MM1::Game::UseItem::combatUseItem | ( | Inventory & | inv, |
Inventory::Entry & | invEntry, | ||
bool | isEquipped | ||
) |
Using an item during combat
Common::String MM::MM1::Game::UseItem::nonCombatUseItem | ( | Inventory & | inv, |
Inventory::Entry & | invEntry, | ||
bool | isEquipped | ||
) |
Using an item outside of combat
void MM::MM1::Game::UseItem::applyItemBonus | ( | int | id, |
int | value | ||
) |
Apply item to a character parameter