1 #ifndef MWMECHANICS_SPELLSUCCESS_H
2 #define MWMECHANICS_SPELLSUCCESS_H
6 #include "../mwworld/ptr.hpp"
53 const ESM::Spell* spell = NULL,
const MagicEffects* effects = NULL);
60 const ESM::Spell* spell = NULL,
const MagicEffects* effects = NULL);
98 bool cast (
const std::string&
id);
float getEffectMultiplier(short effectId, const MWWorld::Ptr &actor, const MWWorld::Ptr &caster, const ESM::Spell *spell, const MagicEffects *effects)
Definition: spellcasting.cpp:220
float getEffectResistance(short effectId, const MWWorld::Ptr &actor, const MWWorld::Ptr &caster, const ESM::Spell *spell, const MagicEffects *effects)
Definition: spellcasting.cpp:164
ESM::Skill::SkillEnum spellSchoolToSkill(int school)
Definition: spellcasting.cpp:34
Definition: loadingr.hpp:16
bool checkEffectTarget(int effectId, const MWWorld::Ptr &target, const MWWorld::Ptr &caster, bool castByPlayer)
Check if the given effect can be applied to the target. If castByPlayer, emits a message box on failu...
Definition: spellcasting.cpp:228
bool mFromProjectile
Definition: spellcasting.hpp:81
Definition: loadspel.hpp:14
CastSpell(const MWWorld::Ptr &caster, const MWWorld::Ptr &target, const bool fromProjectile=false)
Definition: spellcasting.cpp:277
MWWorld::Ptr mTarget
Definition: spellcasting.hpp:74
Definition: spellcasting.hpp:70
int getSpellSchool(const std::string &spellId, const MWWorld::Ptr &actor)
Definition: spellcasting.cpp:115
bool applyInstantEffect(const MWWorld::Ptr &target, const MWWorld::Ptr &caster, const MWMechanics::EffectKey &effect, float magnitude)
Definition: spellcasting.cpp:586
std::string mSourceName
Definition: spellcasting.hpp:78
RangeType
Definition: defs.hpp:27
bool mAlwaysSucceed
Definition: spellcasting.hpp:80
MWWorld::Ptr mCaster
Definition: spellcasting.hpp:73
Definition: magiceffects.hpp:17
bool mStack
Definition: spellcasting.hpp:76
int getEffectiveEnchantmentCastCost(float castCost, const MWWorld::Ptr &actor)
Definition: spellcasting.cpp:968
bool isSummoningEffect(int effectId)
Definition: spellcasting.cpp:980
float getSpellSuccessChance(const ESM::Spell *spell, const MWWorld::Ptr &actor, int *effectiveSchool, bool cap)
Definition: spellcasting.cpp:47
std::string mId
Definition: spellcasting.hpp:77
bool spellIncreasesSkill(const ESM::Spell *spell)
Get whether or not the given spell contributes to skill progress.
Definition: spellcasting.cpp:129
void playSpellCastingEffects(const std::string &spellid)
Definition: spellcasting.cpp:926
bool effectTick(CreatureStats &creatureStats, const MWWorld::Ptr &actor, const EffectKey &effectKey, float magnitude)
Definition: spellcasting.cpp:1037
float getEffectResistanceAttribute(short effectId, const MagicEffects *actorEffects)
Definition: spellcasting.cpp:143
osg::Vec3f mHitPosition
Definition: spellcasting.hpp:79
bool cast(const ESM::Spell *spell)
Definition: spellcasting.cpp:792
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
Definition: loadalch.hpp:18
SkillEnum
Definition: loadskil.hpp:45
void launchMagicBolt(const ESM::EffectList &effects)
Launch a bolt with the given effects.
Definition: spellcasting.cpp:287
EffectList, ENAM subrecord.
Definition: effectlist.hpp:33
void inflict(const MWWorld::Ptr &target, const MWWorld::Ptr &caster, const ESM::EffectList &effects, ESM::RangeType range, bool reflected=false, bool exploded=false)
Definition: spellcasting.cpp:302