OpenMW
Classes | Namespaces | Functions
apps/openmw/mwmechanics/spellcasting.hpp File Reference
#include <cfloat>
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwworld/ptr.hpp"
#include "../mwworld/class.hpp"
#include "../mwmechanics/creaturestats.hpp"
#include "../mwworld/esmstore.hpp"
#include "npcstats.hpp"

Go to the source code of this file.

Classes

class  MWMechanics::CastSpell

Namespaces

namespace  MWMechanics
 

Game mechanics and NPC-AI.


Functions

int MWMechanics::spellSchoolToSkill (int school)
float MWMechanics::getSpellSuccessChance (const ESM::Spell *spell, const MWWorld::Ptr &actor, int *effectiveSchool=NULL)
float MWMechanics::getSpellSuccessChance (const std::string &spellId, const MWWorld::Ptr &actor, int *effectiveSchool=NULL)
int MWMechanics::getSpellSchool (const std::string &spellId, const MWWorld::Ptr &actor)
int MWMechanics::getSpellSchool (const ESM::Spell *spell, const MWWorld::Ptr &actor)
float MWMechanics::getEffectResistance (short effectId, const MWWorld::Ptr &actor, const MWWorld::Ptr &caster, const ESM::Spell *spell=NULL)
float MWMechanics::getEffectMultiplier (short effectId, const MWWorld::Ptr &actor, const MWWorld::Ptr &caster, const ESM::Spell *spell=NULL)