|
OpenMW
|
Spell list. More...
#include <spells.hpp>
Public Types | |
| typedef std::map< std::string, std::vector< float > > | TContainer |
| typedef TContainer::const_iterator | TIterator |
Public Member Functions | |
| void | purgeCommonDisease () |
| void | purgeBlightDisease () |
| void | purgeCorprusDisease () |
| void | purgeCurses () |
| TIterator | begin () const |
| TIterator | end () const |
| void | add (const std::string &spell) |
| Adding a spell that is already listed in *this is a no-op. | |
| void | remove (const std::string &spell) |
| MagicEffects | getMagicEffects () const |
| Return sum of magic effects resulting from abilities, blights, deseases and curses. | |
| void | clear () |
| Remove all spells of al types. | |
| void | setSelectedSpell (const std::string &spellId) |
| This function does not verify, if the spell is available. | |
| const std::string | getSelectedSpell () const |
| May return an empty string. | |
| bool | hasCommonDisease () const |
| bool | hasBlightDisease () const |
| void | visitEffectSources (MWMechanics::EffectSourceVisitor &visitor) const |
Private Attributes | |
| TContainer | mSpells |
| std::string | mSelectedSpell |
Spell list.
This class manages known spells as well as abilities, powers and permanent negative effects like diseaes.
| typedef std::map<std::string, std::vector<float> > MWMechanics::Spells::TContainer |
| typedef TContainer::const_iterator MWMechanics::Spells::TIterator |
| void MWMechanics::Spells::add | ( | const std::string & | spell | ) |
Adding a spell that is already listed in *this is a no-op.
| Spells::TIterator MWMechanics::Spells::begin | ( | ) | const |
| void MWMechanics::Spells::clear | ( | ) |
Remove all spells of al types.
| Spells::TIterator MWMechanics::Spells::end | ( | ) | const |
Return sum of magic effects resulting from abilities, blights, deseases and curses.
| const std::string MWMechanics::Spells::getSelectedSpell | ( | ) | const |
May return an empty string.
| bool MWMechanics::Spells::hasBlightDisease | ( | ) | const |
| bool MWMechanics::Spells::hasCommonDisease | ( | ) | const |
| void MWMechanics::Spells::purgeCurses | ( | ) |
| void MWMechanics::Spells::remove | ( | const std::string & | spell | ) |
If the spell to be removed is the selected spell, the selected spell will be changed to no spell (empty string).
| void MWMechanics::Spells::setSelectedSpell | ( | const std::string & | spellId | ) |
This function does not verify, if the spell is available.
| void MWMechanics::Spells::visitEffectSources | ( | MWMechanics::EffectSourceVisitor & | visitor | ) | const |
std::string MWMechanics::Spells::mSelectedSpell [private] |
TContainer MWMechanics::Spells::mSpells [private] |
1.7.6.1