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

#include <loadcrea.hpp>

Collaboration diagram for ESM::Creature:

Classes

struct  NPDTstruct
 

Public Types

enum  Flags {
  Bipedal = 0x001, Swims = 0x010, Flies = 0x020, Walks = 0x040,
  Respawn = 0x002, Weapon = 0x004, None = 0x008, Essential = 0x080,
  Skeleton = 0x400, Metal = 0x800
}
 
enum  Type { Creatures = 0, Daedra = 1, Undead = 2, Humanoid = 3 }
 

Public Member Functions

const std::vector
< Transport::Dest > & 
getTransport () const
 
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

NPDTstruct mData
 
int mFlags
 
bool mPersistent
 
float mScale
 
std::string mId
 
std::string mModel
 
std::string mName
 
std::string mScript
 
std::string mOriginal
 
InventoryList mInventory
 
SpellList mSpells
 
bool mHasAI
 
AIData mAiData
 
AIPackageList mAiPackage
 
Transport mTransport
 

Static Public Attributes

static unsigned int sRecordId = REC_CREA
 

Member Enumeration Documentation

Enumerator
Bipedal 
Swims 
Flies 
Walks 
Respawn 
Weapon 
None 
Essential 
Skeleton 
Metal 
Enumerator
Creatures 
Daedra 
Undead 
Humanoid 

Member Function Documentation

void ESM::Creature::blank ( )

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

Here is the call graph for this function:

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

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

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Member Data Documentation

AIData ESM::Creature::mAiData
AIPackageList ESM::Creature::mAiPackage
NPDTstruct ESM::Creature::mData
int ESM::Creature::mFlags
bool ESM::Creature::mHasAI
std::string ESM::Creature::mId
InventoryList ESM::Creature::mInventory
std::string ESM::Creature::mModel
std::string ESM::Creature::mName
std::string ESM::Creature::mOriginal
bool ESM::Creature::mPersistent
float ESM::Creature::mScale
std::string ESM::Creature::mScript
SpellList ESM::Creature::mSpells
Transport ESM::Creature::mTransport
unsigned int ESM::Creature::sRecordId = REC_CREA
static

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