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

#include <loadweap.hpp>

List of all members.

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  Flags { Magical = 0x01, Silver = 0x02 }

Public Member Functions

void load (ESMReader &esm)
void save (ESMWriter &esm) const
void blank ()
 Set record to default state (does not touch the ID).

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:
Magical 
Silver 
Enumerator:
ShortBladeOneHand 
LongBladeOneHand 
LongBladeTwoHand 
BluntOneHand 
BluntTwoClose 
BluntTwoWide 
SpearTwoWide 
AxeOneHand 
AxeTwoHand 
MarksmanBow 
MarksmanCrossbow 
MarksmanThrown 
Arrow 
Bolt 

Member Function Documentation

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

void ESM::Weapon::load ( ESMReader esm)
void ESM::Weapon::save ( ESMWriter esm) const

Member Data Documentation

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: