OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ESM::Spell Struct Reference

#include <loadspel.hpp>

Collaboration diagram for ESM::Spell:

Classes

struct  SPDTstruct
 

Public Types

enum  SpellType {
  ST_Spell = 0, ST_Ability = 1, ST_Blight = 2, ST_Disease = 3,
  ST_Curse = 4, ST_Power = 5
}
 
enum  Flags { F_Autocalc = 1, F_PCStart = 2, F_Always = 4 }
 

Public Member Functions

void load (ESMReader &esm, bool &isDeleted)
 
void save (ESMWriter &esm, bool isDeleted=false) const
 
void blank ()
 Set record to default state (does not touch the ID/index). More...
 

Static Public Member Functions

static std::string getRecordType ()
 Return a string descriptor for this record type. Currently used for debugging / error logs only. More...
 

Public Attributes

SPDTstruct mData
 
std::string mId
 
std::string mName
 
EffectList mEffects
 

Static Public Attributes

static unsigned int sRecordId = REC_SPEL
 

Member Enumeration Documentation

Enumerator
F_Autocalc 
F_PCStart 
F_Always 
Enumerator
ST_Spell 
ST_Ability 
ST_Blight 
ST_Disease 
ST_Curse 
ST_Power 

Member Function Documentation

void ESM::Spell::blank ( )

Set record to default state (does not touch the ID/index).

static std::string ESM::Spell::getRecordType ( )
inlinestatic

Return a string descriptor for this record type. Currently used for debugging / error logs only.

void ESM::Spell::load ( ESMReader esm,
bool isDeleted 
)

Here is the call graph for this function:

void ESM::Spell::save ( ESMWriter esm,
bool  isDeleted = false 
) const

Here is the call graph for this function:

Member Data Documentation

SPDTstruct ESM::Spell::mData
EffectList ESM::Spell::mEffects
std::string ESM::Spell::mId
std::string ESM::Spell::mName
unsigned int ESM::Spell::sRecordId = REC_SPEL
static

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