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::Class Struct Reference

#include <loadclas.hpp>

Collaboration diagram for ESM::Class:

Classes

struct  CLDTstruct
 

Public Types

enum  AutoCalc {
  Weapon = 0x00001, Armor = 0x00002, Clothing = 0x00004, Books = 0x00008,
  Ingredient = 0x00010, Lockpick = 0x00020, Probe = 0x00040, Lights = 0x00080,
  Apparatus = 0x00100, Repair = 0x00200, Misc = 0x00400, Spells = 0x00800,
  MagicItems = 0x01000, Potions = 0x02000, Training = 0x04000, Spellmaking = 0x08000,
  Enchanting = 0x10000, RepairItem = 0x20000
}
 
enum  Specialization { Combat = 0, Magic = 1, Stealth = 2 }
 

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

std::string mId
 
std::string mName
 
std::string mDescription
 
CLDTstruct mData
 

Static Public Attributes

static unsigned int sRecordId = REC_CLAS
 
static const Specialization sSpecializationIds [3]
 
static const char * sGmstSpecializationIds [3]
 

Member Enumeration Documentation

Enumerator
Weapon 
Armor 
Clothing 
Books 
Ingredient 
Lockpick 
Probe 
Lights 
Apparatus 
Repair 
Misc 
Spells 
MagicItems 
Potions 
Training 
Spellmaking 
Enchanting 
RepairItem 
Enumerator
Combat 
Magic 
Stealth 

Member Function Documentation

void ESM::Class::blank ( )

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

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

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Member Data Documentation

CLDTstruct ESM::Class::mData
std::string ESM::Class::mDescription
std::string ESM::Class::mId
std::string ESM::Class::mName
const char * ESM::Class::sGmstSpecializationIds
static
Initial value:
= {
"sSpecializationCombat",
"sSpecializationMagic",
"sSpecializationStealth"
}
unsigned int ESM::Class::sRecordId = REC_CLAS
static
const Class::Specialization ESM::Class::sSpecializationIds
static
Initial value:

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