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

#include <loadweap.hpp>

Collaboration diagram for ESM::Weapon:

Classes

struct  WPDTstruct
 

Public Types

enum  Type {
  ShortBladeOneHand = 0, LongBladeOneHand = 1, LongBladeTwoHand = 2, BluntOneHand = 3,
  BluntTwoClose = 4, BluntTwoWide = 5, SpearTwoWide = 6, AxeOneHand = 7,
  AxeTwoHand = 8, MarksmanBow = 9, MarksmanCrossbow = 10, MarksmanThrown = 11,
  Arrow = 12, Bolt = 13
}
 
enum  AttackType { AT_Chop, AT_Slash, AT_Thrust }
 
enum  Flags { Magical = 0x01, Silver = 0x02 }
 

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). 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

WPDTstruct mData
 
std::string mId
 
std::string mName
 
std::string mModel
 
std::string mIcon
 
std::string mEnchant
 
std::string mScript
 

Static Public Attributes

static unsigned int sRecordId = REC_WEAP
 

Member Enumeration Documentation

Enumerator
AT_Chop 
AT_Slash 
AT_Thrust 
Enumerator
Magical 
Silver 
Enumerator
ShortBladeOneHand 
LongBladeOneHand 
LongBladeTwoHand 
BluntOneHand 
BluntTwoClose 
BluntTwoWide 
SpearTwoWide 
AxeOneHand 
AxeTwoHand 
MarksmanBow 
MarksmanCrossbow 
MarksmanThrown 
Arrow 
Bolt 

Member Function Documentation

void ESM::Weapon::blank ( )

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

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

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

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Member Data Documentation

WPDTstruct ESM::Weapon::mData
std::string ESM::Weapon::mEnchant
std::string ESM::Weapon::mIcon
std::string ESM::Weapon::mId
std::string ESM::Weapon::mModel
std::string ESM::Weapon::mName
std::string ESM::Weapon::mScript
unsigned int ESM::Weapon::sRecordId = REC_WEAP
static

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