ScummVM API documentation
MM::MM1::Game::UseItem Class Reference
Inheritance diagram for MM::MM1::Game::UseItem:
MM::MM1::Game::SpellCasting MM::MM1::Views::CharacterInfo MM::MM1::ViewsEnh::CharacterInventory MM::MM1::ViewsEnh::Spells::Duplication MM::MM1::ViewsEnh::Spells::RechargeItem

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)
 
- Public Member Functions inherited from MM::MM1::Game::SpellCasting
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 Public Member Functions inherited from MM::MM1::Game::SpellCasting
static int getSpellIndex (const Character *chr, int lvl, int num)
 
static void getSpellLevelNum (int spellIndex, int &lvl, int &num)
 
- Protected Member Functions inherited from MM::MM1::Game::SpellCasting
bool isInCombat () const
 
- Protected Attributes inherited from MM::MM1::Game::SpellCasting
int _spellIndex = 0
 
int _requiredSp = 0
 
int _requiredGems = 0
 
SpellState _spellState = SS_OK
 

Member Function Documentation

◆ combatUseItem()

Common::String MM::MM1::Game::UseItem::combatUseItem ( Inventory inv,
Inventory::Entry invEntry,
bool  isEquipped 
)

Using an item during combat

◆ nonCombatUseItem()

Common::String MM::MM1::Game::UseItem::nonCombatUseItem ( Inventory inv,
Inventory::Entry invEntry,
bool  isEquipped 
)

Using an item outside of combat

◆ applyItemBonus()

void MM::MM1::Game::UseItem::applyItemBonus ( int  id,
int  value 
)

Apply item to a character parameter


The documentation for this class was generated from the following file: