OpenMW
Public Member Functions | Public Attributes | Private Attributes
MWMechanics::CastSpell Class Reference

#include <spellcasting.hpp>

List of all members.

Public Member Functions

 CastSpell (const MWWorld::Ptr &caster, const MWWorld::Ptr &target)
bool cast (const ESM::Spell *spell)
bool cast (const MWWorld::Ptr &item)
bool cast (const ESM::Ingredient *ingredient)
bool cast (const ESM::Potion *potion)
bool cast (const std::string &id)
void inflict (const MWWorld::Ptr &target, const MWWorld::Ptr &caster, const ESM::EffectList &effects, ESM::RangeType range, bool reflected=false)
void applyInstantEffect (const MWWorld::Ptr &target, short effectId, float magnitude)

Public Attributes

bool mStack
std::string mId
std::string mSourceName

Private Attributes

MWWorld::Ptr mCaster
MWWorld::Ptr mTarget

Constructor & Destructor Documentation

MWMechanics::CastSpell::CastSpell ( const MWWorld::Ptr caster,
const MWWorld::Ptr target 
)

Member Function Documentation

void MWMechanics::CastSpell::applyInstantEffect ( const MWWorld::Ptr target,
short  effectId,
float  magnitude 
)
bool MWMechanics::CastSpell::cast ( const ESM::Spell spell)
bool MWMechanics::CastSpell::cast ( const ESM::Ingredient ingredient)
bool MWMechanics::CastSpell::cast ( const ESM::Potion potion)
bool MWMechanics::CastSpell::cast ( const std::string &  id)
Note:
Auto detects if spell, ingredient or potion
void MWMechanics::CastSpell::inflict ( const MWWorld::Ptr target,
const MWWorld::Ptr caster,
const ESM::EffectList effects,
ESM::RangeType  range,
bool  reflected = false 
)

Member Data Documentation


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