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

#include <loadnpc.hpp>

List of all members.

Classes

struct  Dest
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 = 0x0008,
  Skeleton = 0x0400, Metal = 0x0800
}
enum  NpcType { NPC_WITH_AUTOCALCULATED_STATS = 12, NPC_DEFAULT = 52 }

Public Member Functions

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

Public Attributes

char mNpdtType
NPDTstruct52 mNpdt52
NPDTstruct12 mNpdt12
int mFlags
bool mPersistent
InventoryList mInventory
SpellList mSpells
AIData mAiData
bool mHasAI
std::vector< DestmTransport
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).

bool ESM::NPC::isMale ( ) const
void ESM::NPC::load ( ESMReader esm)
void ESM::NPC::save ( ESMWriter esm) const
void ESM::NPC::setIsMale ( bool  value)

Member Data Documentation

std::string ESM::NPC::mClass
std::string ESM::NPC::mFaction
std::string ESM::NPC::mHair
std::string ESM::NPC::mHead
std::string ESM::NPC::mId
std::string ESM::NPC::mModel
std::string ESM::NPC::mName
std::string ESM::NPC::mRace
std::string ESM::NPC::mScript
std::vector<Dest> ESM::NPC::mTransport
unsigned int ESM::NPC::sRecordId = REC_NPC_ [static]

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