ScummVM API documentation
MM::Xeen::Spells Class Reference

Public Member Functions

 Spells (XeenEngine *vm)
 
int calcSpellCost (int spellId, int expenseFactor) const
 
int calcSpellPoints (int spellId, int expenseFactor) const
 
void castItemSpell (int itemSpellId)
 
int castSpell (Character *c, MagicSpell spellId)
 
int subSpellCost (Character &c, int spellId)
 
void addSpellCost (Character &c, int spellId)
 

Public Attributes

Common::StringArray _spellNames
 
int _lastCaster
 

Member Function Documentation

◆ castItemSpell()

void MM::Xeen::Spells::castItemSpell ( int  itemSpellId)

Cast a spell associated with an item

◆ castSpell()

int MM::Xeen::Spells::castSpell ( Character c,
MagicSpell  spellId 
)

Cast a given spell

◆ subSpellCost()

int MM::Xeen::Spells::subSpellCost ( Character c,
int  spellId 
)

Subtract the requirements for a given spell if available, returning true if there was sufficient

◆ addSpellCost()

void MM::Xeen::Spells::addSpellCost ( Character c,
int  spellId 
)

Add the SP and gem requirements for a given spell to the given character and party


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