1 #ifndef MWMECHANICS_SPELLSUCCESS_H
2 #define MWMECHANICS_SPELLSUCCESS_H
8 #include "../mwworld/ptr.hpp"
61 const ESM::Spell* spell = NULL,
const MagicEffects* effects = NULL);
68 const ESM::Spell* spell = NULL,
const MagicEffects* effects = NULL);
110 bool cast (
const std::string&
id);
141 const std::string& ,
const std::string& ,
int ,
142 float ,
float = -1,
float = -1);
Definition: magiceffects.hpp:73
MWWorld::Ptr mActor
Definition: spellcasting.hpp:132
float getEffectMultiplier(short effectId, const MWWorld::Ptr &actor, const MWWorld::Ptr &caster, const ESM::Spell *spell, const MagicEffects *effects)
Definition: spellcasting.cpp:270
float getEffectResistance(short effectId, const MWWorld::Ptr &actor, const MWWorld::Ptr &caster, const ESM::Spell *spell, const MagicEffects *effects)
Definition: spellcasting.cpp:221
ESM::Skill::SkillEnum spellSchoolToSkill(int school)
Definition: spellcasting.cpp:35
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:278
bool mFromProjectile
Definition: spellcasting.hpp:92
virtual void visit(MWMechanics::EffectKey key, const std::string &, const std::string &, int, float, float=-1, float=-1)
Definition: spellcasting.cpp:1362
Definition: loadspel.hpp:14
float getSpellSuccessChance(const ESM::Spell *spell, const MWWorld::Ptr &actor, int *effectiveSchool, bool cap, bool checkMagicka)
Definition: spellcasting.cpp:127
bool mManualSpell
Definition: spellcasting.hpp:93
MWWorld::Ptr mTarget
Definition: spellcasting.hpp:85
Definition: spellcasting.hpp:81
int getSpellSchool(const std::string &spellId, const MWWorld::Ptr &actor)
Definition: spellcasting.cpp:172
bool applyInstantEffect(const MWWorld::Ptr &target, const MWWorld::Ptr &caster, const MWMechanics::EffectKey &effect, float magnitude)
Definition: spellcasting.cpp:657
Definition: effectlist.hpp:17
std::string mSourceName
Definition: spellcasting.hpp:89
RangeType
Definition: defs.hpp:27
std::string getSummonedCreature(int effectId)
Definition: spellcasting.cpp:1326
ApplyLoopingParticlesVisitor(const MWWorld::Ptr &actor)
Definition: spellcasting.hpp:135
float calcSpellBaseSuccessChance(const ESM::Spell *spell, const MWWorld::Ptr &actor, int *effectiveSchool)
Definition: spellcasting.cpp:83
bool mAlwaysSucceed
Definition: spellcasting.hpp:91
MWWorld::Ptr mCaster
Definition: spellcasting.hpp:84
Definition: magiceffects.hpp:17
bool mStack
Definition: spellcasting.hpp:87
int getEffectiveEnchantmentCastCost(float castCost, const MWWorld::Ptr &actor)
Definition: spellcasting.cpp:1106
bool isSummoningEffect(int effectId)
Definition: spellcasting.cpp:1118
Definition: spellcasting.hpp:129
Definition: loadmgef.hpp:13
bool spellIncreasesSkill()
Definition: spellcasting.cpp:1098
std::string mId
Definition: spellcasting.hpp:88
bool spellIncreasesSkill(const ESM::Spell *spell)
Get whether or not the given spell contributes to skill progress.
Definition: spellcasting.cpp:186
void playSpellCastingEffects(const std::string &spellid)
Definition: spellcasting.cpp:1014
float calcEffectCost(const ESM::ENAMstruct &effect)
Definition: spellcasting.cpp:52
bool effectTick(CreatureStats &creatureStats, const MWWorld::Ptr &actor, const EffectKey &effectKey, float magnitude)
Definition: spellcasting.cpp:1175
void launchMagicBolt()
Launch a bolt with the given effects.
Definition: spellcasting.cpp:338
float getEffectResistanceAttribute(short effectId, const MagicEffects *actorEffects)
Definition: spellcasting.cpp:200
osg::Vec3f mHitPosition
Definition: spellcasting.hpp:90
bool cast(const ESM::Spell *spell)
Definition: spellcasting.cpp:873
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
CastSpell(const MWWorld::Ptr &caster, const MWWorld::Ptr &target, const bool fromProjectile=false, const bool manualSpell=false)
Definition: spellcasting.cpp:327
Definition: loadalch.hpp:18
SkillEnum
Definition: loadskil.hpp:45
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:355