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

#include <loadnpc.hpp>

Collaboration diagram for ESM::NPC:

Classes

struct  NPDTstruct12
 
struct  NPDTstruct52
 

Public Types

enum  Services {
  Weapon = 0x00001, Armor = 0x00002, Clothing = 0x00004, Books = 0x00008,
  Ingredients = 0x00010, Picks = 0x00020, Probes = 0x00040, Lights = 0x00080,
  Apparatus = 0x00100, RepairItem = 0x00200, Misc = 0x00400, Potions = 0x02000,
  Spells = 0x00800, MagicItems = 0x01000, Training = 0x04000, Spellmaking = 0x08000,
  Enchanting = 0x10000, Repair = 0x20000
}
 
enum  Flags {
  Female = 0x0001, Essential = 0x0002, Respawn = 0x0004, Autocalc = 0x0010,
  Skeleton = 0x0400, Metal = 0x0800
}
 
enum  NpcType { NPC_WITH_AUTOCALCULATED_STATS = 12, NPC_DEFAULT = 52 }
 

Public Member Functions

int getFactionRank () const
 
const std::vector
< Transport::Dest > & 
getTransport () const
 
void load (ESMReader &esm, bool &isDeleted)
 
void save (ESMWriter &esm, bool isDeleted=false) const
 
bool isMale () const
 
void setIsMale (bool value)
 
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

unsigned char mNpdtType
 
NPDTstruct52 mNpdt52
 
NPDTstruct12 mNpdt12
 
int mFlags
 wrapper for mNpdt*, -1 = no rank More...
 
bool mPersistent
 
InventoryList mInventory
 
SpellList mSpells
 
AIData mAiData
 
bool mHasAI
 
Transport mTransport
 
AIPackageList mAiPackage
 
std::string mId
 
std::string mName
 
std::string mModel
 
std::string mRace
 
std::string mClass
 
std::string mFaction
 
std::string mScript
 
std::string mHair
 
std::string mHead
 

Static Public Attributes

static unsigned int sRecordId = REC_NPC_
 

Member Enumeration Documentation

Enumerator
Female 
Essential 
Respawn 
Autocalc 
Skeleton 
Metal 
Enumerator
NPC_WITH_AUTOCALCULATED_STATS 
NPC_DEFAULT 
Enumerator
Weapon 
Armor 
Clothing 
Books 
Ingredients 
Picks 
Probes 
Lights 
Apparatus 
RepairItem 
Misc 
Potions 
Spells 
MagicItems 
Training 
Spellmaking 
Enchanting 
Repair 

Member Function Documentation

void ESM::NPC::blank ( )

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

Here is the call graph for this function:

int ESM::NPC::getFactionRank ( ) const

Here is the caller graph for this function:

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

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

const std::vector< Transport::Dest > & ESM::NPC::getTransport ( ) const

Here is the caller graph for this function:

bool ESM::NPC::isMale ( ) const

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::NPC::setIsMale ( bool  value)

Here is the caller graph for this function:

Member Data Documentation

AIData ESM::NPC::mAiData
AIPackageList ESM::NPC::mAiPackage
std::string ESM::NPC::mClass
std::string ESM::NPC::mFaction
int ESM::NPC::mFlags

wrapper for mNpdt*, -1 = no rank

std::string ESM::NPC::mHair
bool ESM::NPC::mHasAI
std::string ESM::NPC::mHead
std::string ESM::NPC::mId
InventoryList ESM::NPC::mInventory
std::string ESM::NPC::mModel
std::string ESM::NPC::mName
NPDTstruct12 ESM::NPC::mNpdt12
NPDTstruct52 ESM::NPC::mNpdt52
unsigned char ESM::NPC::mNpdtType
bool ESM::NPC::mPersistent
std::string ESM::NPC::mRace
std::string ESM::NPC::mScript
SpellList ESM::NPC::mSpells
Transport ESM::NPC::mTransport
unsigned int ESM::NPC::sRecordId = REC_NPC_
static

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