OpenMW
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
ESM::MagicEffect Struct Reference

#include <loadmgef.hpp>

List of all members.

Classes

struct  MEDTstruct

Public Types

enum  Flags {
  TargetSkill = 0x1, TargetAttribute = 0x2, NoDuration = 0x4, NoMagnitude = 0x8,
  Harmful = 0x10, ContinuousVfx = 0x20, CastSelf = 0x40, CastTouch = 0x80,
  CastTarget = 0x100, UncappedDamage = 0x1000, NonRecastable = 0x4000, Unreflectable = 0x10000,
  CasterLinked = 0x20000, SpellMaking = 0x0200, Enchanting = 0x0400, Negative = 0x0800
}
enum  MagnitudeDisplayType {
  MDT_None, MDT_Feet, MDT_Level, MDT_Percentage,
  MDT_Points, MDT_TimesInt
}
enum  Effects {
  WaterBreathing = 0, SwiftSwim = 1, WaterWalking = 2, Shield = 3,
  FireShield = 4, LightningShield = 5, FrostShield = 6, Burden = 7,
  Feather = 8, Jump = 9, Levitate = 10, SlowFall = 11,
  Lock = 12, Open = 13, FireDamage = 14, ShockDamage = 15,
  FrostDamage = 16, DrainAttribute = 17, DrainHealth = 18, DrainMagicka = 19,
  DrainFatigue = 20, DrainSkill = 21, DamageAttribute = 22, DamageHealth = 23,
  DamageMagicka = 24, DamageFatigue = 25, DamageSkill = 26, Poison = 27,
  WeaknessToFire = 28, WeaknessToFrost = 29, WeaknessToShock = 30, WeaknessToMagicka = 31,
  WeaknessToCommonDisease = 32, WeaknessToBlightDisease = 33, WeaknessToCorprusDisease = 34, WeaknessToPoison = 35,
  WeaknessToNormalWeapons = 36, DisintegrateWeapon = 37, DisintegrateArmor = 38, Invisibility = 39,
  Chameleon = 40, Light = 41, Sanctuary = 42, NightEye = 43,
  Charm = 44, Paralyze = 45, Silence = 46, Blind = 47,
  Sound = 48, CalmHumanoid = 49, CalmCreature = 50, FrenzyHumanoid = 51,
  FrenzyCreature = 52, DemoralizeHumanoid = 53, DemoralizeCreature = 54, RallyHumanoid = 55,
  RallyCreature = 56, Dispel = 57, Soultrap = 58, Telekinesis = 59,
  Mark = 60, Recall = 61, DivineIntervention = 62, AlmsiviIntervention = 63,
  DetectAnimal = 64, DetectEnchantment = 65, DetectKey = 66, SpellAbsorption = 67,
  Reflect = 68, CureCommonDisease = 69, CureBlightDisease = 70, CureCorprusDisease = 71,
  CurePoison = 72, CureParalyzation = 73, RestoreAttribute = 74, RestoreHealth = 75,
  RestoreMagicka = 76, RestoreFatigue = 77, RestoreSkill = 78, FortifyAttribute = 79,
  FortifyHealth = 80, FortifyMagicka = 81, FortifyFatigue = 82, FortifySkill = 83,
  FortifyMaximumMagicka = 84, AbsorbAttribute = 85, AbsorbHealth = 86, AbsorbMagicka = 87,
  AbsorbFatigue = 88, AbsorbSkill = 89, ResistFire = 90, ResistFrost = 91,
  ResistShock = 92, ResistMagicka = 93, ResistCommonDisease = 94, ResistBlightDisease = 95,
  ResistCorprusDisease = 96, ResistPoison = 97, ResistNormalWeapons = 98, ResistParalysis = 99,
  RemoveCurse = 100, TurnUndead = 101, SummonScamp = 102, SummonClannfear = 103,
  SummonDaedroth = 104, SummonDremora = 105, SummonAncestralGhost = 106, SummonSkeletalMinion = 107,
  SummonBonewalker = 108, SummonGreaterBonewalker = 109, SummonBonelord = 110, SummonWingedTwilight = 111,
  SummonHunger = 112, SummonGoldenSaint = 113, SummonFlameAtronach = 114, SummonFrostAtronach = 115,
  SummonStormAtronach = 116, FortifyAttack = 117, CommandCreature = 118, CommandHumanoid = 119,
  BoundDagger = 120, BoundLongsword = 121, BoundMace = 122, BoundBattleAxe = 123,
  BoundSpear = 124, BoundLongbow = 125, ExtraSpell = 126, BoundCuirass = 127,
  BoundHelm = 128, BoundBoots = 129, BoundShield = 130, BoundGloves = 131,
  Corprus = 132, Vampirism = 133, SummonCenturionSphere = 134, SunDamage = 135,
  StuntedMagicka = 136, SummonFabricant = 137, SummonWolf = 138, SummonBear = 139,
  SummonBonewolf = 140, SummonCreature04 = 141, SummonCreature05 = 142, Length
}

Public Member Functions

MagnitudeDisplayType getMagnitudeDisplayType () const
void load (ESMReader &esm)
void save (ESMWriter &esm) const

Static Public Member Functions

static const std::string & effectIdToString (short effectID)
static short effectStringToId (const std::string &effect)
static short getResistanceEffect (short effect)
 Returns the effect that provides resistance against effect (or -1 if there's none)
static short getWeaknessEffect (short effect)
 Returns the effect that induces weakness against effect (or -1 if there's none)

Public Attributes

MEDTstruct mData
std::string mIcon
std::string mParticle
std::string mCasting
std::string mHit
std::string mArea
std::string mBolt
std::string mCastSound
std::string mBoltSound
std::string mHitSound
std::string mAreaSound
std::string mDescription
int mIndex

Static Public Attributes

static unsigned int sRecordId = REC_MGEF
static const std::map< short,
std::string > 
sNames = genNameMap()

Member Enumeration Documentation

Enumerator:
WaterBreathing 
SwiftSwim 
WaterWalking 
Shield 
FireShield 
LightningShield 
FrostShield 
Burden 
Feather 
Jump 
Levitate 
SlowFall 
Lock 
Open 
FireDamage 
ShockDamage 
FrostDamage 
DrainAttribute 
DrainHealth 
DrainMagicka 
DrainFatigue 
DrainSkill 
DamageAttribute 
DamageHealth 
DamageMagicka 
DamageFatigue 
DamageSkill 
Poison 
WeaknessToFire 
WeaknessToFrost 
WeaknessToShock 
WeaknessToMagicka 
WeaknessToCommonDisease 
WeaknessToBlightDisease 
WeaknessToCorprusDisease 
WeaknessToPoison 
WeaknessToNormalWeapons 
DisintegrateWeapon 
DisintegrateArmor 
Invisibility 
Chameleon 
Light 
Sanctuary 
NightEye 
Charm 
Paralyze 
Silence 
Blind 
Sound 
CalmHumanoid 
CalmCreature 
FrenzyHumanoid 
FrenzyCreature 
DemoralizeHumanoid 
DemoralizeCreature 
RallyHumanoid 
RallyCreature 
Dispel 
Soultrap 
Telekinesis 
Mark 
Recall 
DivineIntervention 
AlmsiviIntervention 
DetectAnimal 
DetectEnchantment 
DetectKey 
SpellAbsorption 
Reflect 
CureCommonDisease 
CureBlightDisease 
CureCorprusDisease 
CurePoison 
CureParalyzation 
RestoreAttribute 
RestoreHealth 
RestoreMagicka 
RestoreFatigue 
RestoreSkill 
FortifyAttribute 
FortifyHealth 
FortifyMagicka 
FortifyFatigue 
FortifySkill 
FortifyMaximumMagicka 
AbsorbAttribute 
AbsorbHealth 
AbsorbMagicka 
AbsorbFatigue 
AbsorbSkill 
ResistFire 
ResistFrost 
ResistShock 
ResistMagicka 
ResistCommonDisease 
ResistBlightDisease 
ResistCorprusDisease 
ResistPoison 
ResistNormalWeapons 
ResistParalysis 
RemoveCurse 
TurnUndead 
SummonScamp 
SummonClannfear 
SummonDaedroth 
SummonDremora 
SummonAncestralGhost 
SummonSkeletalMinion 
SummonBonewalker 
SummonGreaterBonewalker 
SummonBonelord 
SummonWingedTwilight 
SummonHunger 
SummonGoldenSaint 
SummonFlameAtronach 
SummonFrostAtronach 
SummonStormAtronach 
FortifyAttack 
CommandCreature 
CommandHumanoid 
BoundDagger 
BoundLongsword 
BoundMace 
BoundBattleAxe 
BoundSpear 
BoundLongbow 
ExtraSpell 
BoundCuirass 
BoundHelm 
BoundBoots 
BoundShield 
BoundGloves 
Corprus 
Vampirism 
SummonCenturionSphere 
SunDamage 
StuntedMagicka 
SummonFabricant 
SummonWolf 
SummonBear 
SummonBonewolf 
SummonCreature04 
SummonCreature05 
Length 
Enumerator:
TargetSkill 
TargetAttribute 
NoDuration 
NoMagnitude 
Harmful 
ContinuousVfx 
CastSelf 
CastTouch 
CastTarget 
UncappedDamage 
NonRecastable 
Unreflectable 
CasterLinked 
SpellMaking 
Enchanting 
Negative 
Enumerator:
MDT_None 
MDT_Feet 
MDT_Level 
MDT_Percentage 
MDT_Points 
MDT_TimesInt 

Member Function Documentation

const std::string & ESM::MagicEffect::effectIdToString ( short  effectID) [static]
short ESM::MagicEffect::effectStringToId ( const std::string &  effect) [static]
short ESM::MagicEffect::getResistanceEffect ( short  effect) [static]

Returns the effect that provides resistance against effect (or -1 if there's none)

short ESM::MagicEffect::getWeaknessEffect ( short  effect) [static]

Returns the effect that induces weakness against effect (or -1 if there's none)

void ESM::MagicEffect::save ( ESMWriter esm) const

Member Data Documentation

const std::map< short, std::string > ESM::MagicEffect::sNames = genNameMap() [static]
unsigned int ESM::MagicEffect::sRecordId = REC_MGEF [static]

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