My Project
Public Types | Public Member Functions | Public Attributes | List of all members
ParaEngine::CNpcDbItem Struct Reference

NPC database item (complete) More...

#include <NpcDatabase.h>

Public Types

enum  UPDATE_FIELDS {
  POSITION_FACING = 0x1<<0, APPEARANCE_ATTRIBUTES = 0x1<<1, MENTAL_STATE_0 = 0x1<<2, MENTAL_STATE_1 = 0x1<<3,
  MENTAL_STATE_2 = 0x1<<4, MENTAL_STATE_3 = 0x1<<5, RPG_ATTRIBUTES = 0x1<<6, DND_ATTRIBUTES = 0x1<<7,
  ALL_ATTRIBUTES = 0xffffffff
}
 selectively update data fields. More...
 

Public Member Functions

void LoadDefaultValues ()
 load the default database values. More...
 

Public Attributes

string m_sName
 
string m_sAssetName
 
bool m_bIsGlobal
 
bool m_bSnapToTerrain
 
float m_fRadius
 
float m_fFacing
 
float m_fScaling
 
Vector3 m_vPos
 
int m_nID
 character ID in database. More...
 
int m_nCharacterType
 
DWORD m_MentalState [4]
 character mental states
 
float m_fLifePoint
 the life or hit point of the character. More...
 
float m_fAge
 the age of the character. More...
 
float m_fHeight
 the height of the character. More...
 
float m_fWeight
 the weight of the character. More...
 
int m_nOccupation
 the occupation of the character. More...
 
int m_nRaceSex
 the race and sex of the character. More...
 
float m_fStrength
 character strength
 
float m_fDexterity
 character dexterity
 
float m_fIntelligence
 character Intelligence
 
float m_fBaseDefense
 character base defense
 
float m_fDefense
 
float m_fDefenseflat
 
float m_fDefenseMental
 
float m_fBaseAttack
 character base attack
 
float m_fAttackMelee
 
float m_fAttackRanged
 
float m_fAttackMental
 
float m_fMaxLifeLoad
 the maximum load that a character can lift or carry
 
int m_nHeroPoints
 levels can be deducted from this value. More...
 
float m_fPerceptiveRadius
 
float m_fSentientRadius
 
int m_nGroupID
 
DWORD m_dwSentientField
 
string m_sOnLoadScript
 
vector< byte > m_binCustomAppearance
 

Detailed Description

NPC database item (complete)

Member Enumeration Documentation

§ UPDATE_FIELDS

selectively update data fields.

Member Function Documentation

§ LoadDefaultValues()

void CNpcDbItem::LoadDefaultValues ( )

load the default database values.

perform test cases when reseting db.

Member Data Documentation

§ m_fAge

float ParaEngine::CNpcDbItem::m_fAge

the age of the character.

§ m_fHeight

float ParaEngine::CNpcDbItem::m_fHeight

the height of the character.

§ m_fLifePoint

float ParaEngine::CNpcDbItem::m_fLifePoint

the life or hit point of the character.

§ m_fWeight

float ParaEngine::CNpcDbItem::m_fWeight

the weight of the character.

§ m_nCharacterType

int ParaEngine::CNpcDbItem::m_nCharacterType
See also
CHARACTER_TYPE, default to CHAR_NONE

§ m_nHeroPoints

int ParaEngine::CNpcDbItem::m_nHeroPoints

levels can be deducted from this value.

§ m_nID

int ParaEngine::CNpcDbItem::m_nID

character ID in database.

§ m_nOccupation

int ParaEngine::CNpcDbItem::m_nOccupation

the occupation of the character.

§ m_nRaceSex

int ParaEngine::CNpcDbItem::m_nRaceSex

the race and sex of the character.

It 2N it is female, if 2N+1, it is male.


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