xoreos  0.0.5
Classes | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Engines::NWN2::Creature Class Reference

#include <creature.h>

Inheritance diagram for Engines::NWN2::Creature:
Inheritance graph
[legend]
Collaboration diagram for Engines::NWN2::Creature:
Collaboration graph
[legend]

Classes

struct  Class
 A class. More...
 

Public Member Functions

 Creature ()
 Create a dummy creature instance. More...
 
 Creature (const Aurora::GFF3Struct &creature)
 Load from a creature instance. More...
 
 Creature (const Common::UString &bic, bool local)
 Load from a character file. More...
 
 ~Creature ()
 
void loadModel ()
 Load the creature's model. More...
 
void unloadModel ()
 Unload the creature's model. More...
 
void show ()
 Show the creature's model. More...
 
void hide ()
 Hide the creature's model. More...
 
const Common::UStringgetFirstName () const
 Return the creature's first name. More...
 
const Common::UStringgetLastName () const
 Return the creature's last name. More...
 
uint32 getGender () const
 Get the creature's gender. More...
 
void setGender (uint32 gender)
 Set the creature's gender. More...
 
bool isFemale () const
 Is the creature female, do we need female dialogs tokens? More...
 
uint32 getRace () const
 Return the creature's race value. More...
 
void setRace (uint32 race)
 Set the creature's race. More...
 
uint32 getSubRace () const
 Return the creature's subrace value. More...
 
void setSubRace (uint32 subRace)
 Set the creature's subrace. More...
 
void getClass (uint32 position, uint32 &classID, uint16 &level) const
 Get the creature's class and level at that class slot position. More...
 
uint16 getClassLevel (uint32 classID) const
 Get the creature's level for this class. More...
 
uint8 getHitDice () const
 Returns the number of hit dice, which is effectively the total number of levels. More...
 
uint8 getAbility (Ability ability) const
 Return a creature's ability score. More...
 
int8 getSkillRank (uint32 skill) const
 Return the creature's rank in this skill. More...
 
bool hasFeat (uint32 feat) const
 Does the creature have this feat? More...
 
const Common::UStringgetDeity () const
 Get the creature's deity. More...
 
uint8 getGoodEvil () const
 
uint8 getLawChaos () const
 
bool isPC () const
 Is the creature a player character? More...
 
bool isDM () const
 Is the creature a dungeon master? More...
 
uint32 getAge () const
 Return the creature's age. More...
 
uint32 getXP () const
 Return the creature's XP. More...
 
int32 getCurrentHP () const
 Return the current HP this creature has. More...
 
int32 getMaxHP () const
 Return the max HP this creature can have. More...
 
void setPosition (float x, float y, float z)
 Set the creature's position. More...
 
void setOrientation (float x, float y, float z, float angle)
 Set the creature's orientation. More...
 
void enter ()
 The cursor entered the creature. More...
 
void leave ()
 The cursor left the creature. More...
 
void highlight (bool enabled)
 (Un)Highlight the creature. More...
 
bool click (Object *triggerer=0)
 The creature was clicked. More...
 
- Public Member Functions inherited from Engines::NWN2::Object
 Object (ObjectType type=kObjectTypeInvalid)
 
virtual ~Object ()
 
ObjectType getType () const
 Return the exact type of the object. More...
 
const std::list< uint32 > & getIDs () const
 Return the object's model IDs. More...
 
const Common::UStringgetName () const
 Return the object's name. More...
 
const Common::UStringgetDescription () const
 Return the object's description. More...
 
const Common::UStringgetConversation () const
 Return the object's default conversation (DLG). More...
 
const Aurora::SSFFilegetSSF ()
 Return the object's sound set. More...
 
bool isStatic () const
 Is the object static (not manipulable at all)? More...
 
bool isUsable () const
 Can the object be used by the PC? More...
 
bool isClickable () const
 Can the player click the object? More...
 
AreagetArea () const
 Return the area this object is currently in. More...
 
void setArea (Area *)
 Set the area this object is currently in. More...
 
virtual void getPosition (float &x, float &y, float &z) const
 Return the object's position within its area. More...
 
virtual void getOrientation (float &x, float &y, float &z, float &angle) const
 Return the object's orientation. More...
 
Location getLocation () const
 Create a Location out of the object's area, position and orientation. More...
 
void speakString (const Common::UString &string, uint32 volume)
 Speak the specified string. More...
 
void speakOneLiner (Common::UString conv, Object *tokenTarget=0)
 Speak an one-liner from the specified conversation file. More...
 
void stopSound ()
 Stop the current object sound. More...
 
void playSound (const Common::UString &sound, bool pitchVariance=false)
 Play an object sound. More...
 
- Public Member Functions inherited from Aurora::NWScript::Object
 Object ()
 
uint32 getID () const
 
const Common::UStringgetTag () const
 
- Public Member Functions inherited from Aurora::NWScript::VariableContainer
 VariableContainer ()
 
virtual ~VariableContainer ()
 
bool hasVariable (const Common::UString &var) const
 
VariablegetVariable (const Common::UString &var, Type type=kTypeVoid)
 
const VariablegetVariable (const Common::UString &var) const
 
void setVariable (const Common::UString &var, const Variable &value)
 
void removeVariable (const Common::UString &var)
 
void clearVariables ()
 
- Public Member Functions inherited from Engines::NWN2::ScriptContainer
 ScriptContainer ()
 
 ~ScriptContainer ()
 
const Common::UStringgetScript (Script script) const
 
bool hasScript (Script script) const
 
bool runScript (Script script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 

Private Types

typedef Common::PtrList< Graphics::Aurora::ModelModelParts
 

Private Member Functions

void init ()
 Init the creature. More...
 
void loadCharacter (const Common::UString &bic, bool local)
 Load from a character file. More...
 
void load (const Aurora::GFF3Struct &creature)
 Load from a creature instance. More...
 
void load (const Aurora::GFF3Struct &instance, const Aurora::GFF3Struct *blueprint)
 Load the creature from an instance and its blueprint. More...
 
void loadProperties (const Aurora::GFF3Struct &gff)
 Load general creature properties. More...
 
Common::UString getBaseModel (const Common::UString &base)
 
bool loadArmorModel (const Common::UString &body, const Common::UString &armor, uint8 visualType, uint8 variation)
 
bool loadHeadModel (uint8 appearance)
 
bool loadHairModel (uint8 appearance)
 

Static Private Member Functions

static void loadClasses (const Aurora::GFF3Struct &gff, std::vector< Class > &classes, uint8 &hitDice)
 Load the creature's classes. More...
 
static Aurora::GFF3FileopenPC (const Common::UString &bic, bool local)
 

Private Attributes

Common::UString _firstName
 The creature's first name. More...
 
Common::UString _lastName
 The creature's last name. More...
 
uint32 _gender
 The creature's gender. More...
 
uint32 _race
 The creature's race. More...
 
uint32 _subRace
 The creature's subrace. More...
 
bool _isPC
 Is the creature a PC? More...
 
bool _isDM
 Is the creature a DM? More...
 
uint32 _age
 The creature's age. More...
 
uint32 _xp
 The creature's experience. More...
 
int32 _baseHP
 The creature's base maximum health points. More...
 
int32 _bonusHP
 The creature's bonus health points. More...
 
int32 _currentHP
 The creature's current health points. More...
 
uint8 _abilities [kAbilityMAX]
 The creature's abilities. More...
 
std::vector< Class_classes
 The creature's classes. More...
 
std::vector< int8_skills
 The creature's skills. More...
 
std::vector< uint32_feats
 The creature's feats. More...
 
uint8 _hitDice
 The creature's hit dice. More...
 
Common::UString _deity
 The creature's deity. More...
 
uint8 _goodEvil
 The creature's good/evil value (0-100). More...
 
uint8 _lawChaos
 The creature's law/chaos value (0-100). More...
 
uint32 _appearanceID
 The creature's general appearance. More...
 
uint8 _armorVisualType
 
uint8 _armorVariation
 
uint8 _bootsVisualType
 
uint8 _bootsVariation
 
uint8 _appearanceHead
 The model variant used for the head. More...
 
uint8 _appearanceMHair
 The model variant used for male hair. More...
 
uint8 _appearanceFHair
 The model variant used for female hair. More...
 
ModelParts _modelParts
 

Additional Inherited Members

- Static Public Member Functions inherited from Engines::NWN2::ScriptContainer
static bool runScript (const Common::UString &script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 
static bool runScript (const Common::UString &script, const Aurora::NWScript::ScriptState &state, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 
- Protected Member Functions inherited from Engines::NWN2::Object
void loadSSF ()
 Load the object's sound set. More...
 
void readVarTable (const Aurora::GFF3List &varTable)
 Read the object's variable table. More...
 
void readVarTable (const Aurora::GFF3Struct &gff)
 
- Protected Member Functions inherited from Engines::NWN2::ScriptContainer
void clearScripts ()
 
void readScripts (const Aurora::GFF3Struct &gff)
 
void readScripts (const ScriptContainer &container)
 
- Protected Attributes inherited from Engines::NWN2::Object
ObjectType _type
 The object's type. More...
 
Common::UString _name
 The object's display name. More...
 
Common::UString _description
 The object's description. More...
 
Common::UString _conversation
 The object's default conversation. More...
 
uint32 _soundSet
 The object's sound set, as an index into soundset.2da. More...
 
Common::ScopedPtr< Aurora::SSFFile_ssf
 The object's sound set. More...
 
bool _static
 Is the object static? More...
 
bool _usable
 Is the object usable? More...
 
std::list< uint32_ids
 The object's model IDs. More...
 
Area_area
 The area the object is currently in. More...
 
float _position [3]
 The object's position. More...
 
float _orientation [4]
 The object's orientation. More...
 
Sound::ChannelHandle _sound
 The currently playing object sound. More...
 
- Protected Attributes inherited from Aurora::NWScript::Object
uint32 _id
 
Common::UString _tag
 

Detailed Description

Definition at line 46 of file creature.h.

Member Typedef Documentation

◆ ModelParts

Definition at line 142 of file creature.h.

Constructor & Destructor Documentation

◆ Creature() [1/3]

Engines::NWN2::Creature::Creature ( )

Create a dummy creature instance.

Not playable as it is.

Definition at line 52 of file creature.cpp.

References init().

Here is the call graph for this function:

◆ Creature() [2/3]

Engines::NWN2::Creature::Creature ( const Aurora::GFF3Struct creature)

Load from a creature instance.

Definition at line 56 of file creature.cpp.

References init(), and load().

Here is the call graph for this function:

◆ Creature() [3/3]

Engines::NWN2::Creature::Creature ( const Common::UString bic,
bool  local 
)

Load from a character file.

Definition at line 62 of file creature.cpp.

References init(), and loadCharacter().

Here is the call graph for this function:

◆ ~Creature()

Engines::NWN2::Creature::~Creature ( )

Definition at line 68 of file creature.cpp.

Member Function Documentation

◆ click()

bool Engines::NWN2::Creature::click ( Object triggerer = 0)
virtual

The creature was clicked.

Reimplemented from Engines::NWN2::Object.

Definition at line 150 of file creature.cpp.

References Engines::NWN2::ScriptContainer::hasScript(), Engines::NWN2::kScriptClick, Engines::NWN2::kScriptDialogue, and Engines::NWN2::ScriptContainer::runScript().

Here is the call graph for this function:

◆ enter()

void Engines::NWN2::Creature::enter ( )
virtual

The cursor entered the creature.

Reimplemented from Engines::NWN2::Object.

Definition at line 137 of file creature.cpp.

References highlight().

Here is the call graph for this function:

◆ getAbility()

uint8 Engines::NWN2::Creature::getAbility ( Ability  ability) const

Return a creature's ability score.

Definition at line 563 of file creature.cpp.

References _abilities, and Engines::NWN2::kAbilityMAX.

Referenced by Engines::NWN2::Functions::getAbilityScore().

Here is the caller graph for this function:

◆ getAge()

uint32 Engines::NWN2::Creature::getAge ( ) const

Return the creature's age.

Definition at line 209 of file creature.cpp.

References _age.

◆ getBaseModel()

Common::UString Engines::NWN2::Creature::getBaseModel ( const Common::UString base)
private

Definition at line 225 of file creature.cpp.

References _appearanceID, Aurora::TwoDARow::getString(), isFemale(), Common::UString::replaceAll(), and TwoDAReg.

Referenced by loadHairModel(), loadHeadModel(), and loadModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClass()

void Engines::NWN2::Creature::getClass ( uint32  position,
uint32 classID,
uint16 level 
) const

Get the creature's class and level at that class slot position.

Definition at line 528 of file creature.cpp.

References _classes, and Engines::NWN2::kClassInvalid.

Referenced by Engines::NWN2::Functions::getClassByPosition(), and Engines::NWN2::Functions::getLevelByPosition().

Here is the caller graph for this function:

◆ getClassLevel()

uint16 Engines::NWN2::Creature::getClassLevel ( uint32  classID) const

Get the creature's level for this class.

Definition at line 539 of file creature.cpp.

References _classes.

Referenced by Engines::NWN2::Functions::getLevelByClass().

Here is the caller graph for this function:

◆ getCurrentHP()

int32 Engines::NWN2::Creature::getCurrentHP ( ) const

Return the current HP this creature has.

Definition at line 217 of file creature.cpp.

References _bonusHP, and _currentHP.

Referenced by Engines::NWN2::Functions::getIsDead().

Here is the caller graph for this function:

◆ getDeity()

const Common::UString & Engines::NWN2::Creature::getDeity ( ) const

Get the creature's deity.

Definition at line 547 of file creature.cpp.

References _deity.

◆ getFirstName()

const Common::UString & Engines::NWN2::Creature::getFirstName ( ) const

Return the creature's first name.

Definition at line 162 of file creature.cpp.

References _firstName.

◆ getGender()

uint32 Engines::NWN2::Creature::getGender ( ) const

Get the creature's gender.

Definition at line 170 of file creature.cpp.

References _gender.

Referenced by Engines::NWN2::Functions::getGender().

Here is the caller graph for this function:

◆ getGoodEvil()

uint8 Engines::NWN2::Creature::getGoodEvil ( ) const

Definition at line 551 of file creature.cpp.

References _goodEvil.

Referenced by Engines::NWN2::Functions::getAlignmentGoodEvil(), and Engines::NWN2::Functions::getGoodEvilValue().

Here is the caller graph for this function:

◆ getHitDice()

uint8 Engines::NWN2::Creature::getHitDice ( ) const

Returns the number of hit dice, which is effectively the total number of levels.

Definition at line 559 of file creature.cpp.

References _hitDice.

Referenced by Engines::NWN2::Functions::getHitDice().

Here is the caller graph for this function:

◆ getLastName()

const Common::UString & Engines::NWN2::Creature::getLastName ( ) const

Return the creature's last name.

Definition at line 166 of file creature.cpp.

References _lastName.

◆ getLawChaos()

uint8 Engines::NWN2::Creature::getLawChaos ( ) const

Definition at line 555 of file creature.cpp.

References _lawChaos.

Referenced by Engines::NWN2::Functions::getAlignmentLawChaos(), and Engines::NWN2::Functions::getLawChaosValue().

Here is the caller graph for this function:

◆ getMaxHP()

int32 Engines::NWN2::Creature::getMaxHP ( ) const

Return the max HP this creature can have.

Definition at line 221 of file creature.cpp.

References _baseHP, and _bonusHP.

◆ getRace()

uint32 Engines::NWN2::Creature::getRace ( ) const

Return the creature's race value.

Definition at line 185 of file creature.cpp.

References _race.

Referenced by Engines::NWN2::Functions::getRacialType().

Here is the caller graph for this function:

◆ getSkillRank()

int8 Engines::NWN2::Creature::getSkillRank ( uint32  skill) const

Return the creature's rank in this skill.

Definition at line 569 of file creature.cpp.

References _skills.

Referenced by Engines::NWN2::Functions::getSkillRank().

Here is the caller graph for this function:

◆ getSubRace()

uint32 Engines::NWN2::Creature::getSubRace ( ) const

Return the creature's subrace value.

Definition at line 193 of file creature.cpp.

References _subRace.

◆ getXP()

uint32 Engines::NWN2::Creature::getXP ( ) const

Return the creature's XP.

Definition at line 213 of file creature.cpp.

References _xp.

Referenced by Engines::NWN2::Functions::getXP().

Here is the caller graph for this function:

◆ hasFeat()

bool Engines::NWN2::Creature::hasFeat ( uint32  feat) const

Does the creature have this feat?

Definition at line 576 of file creature.cpp.

References _feats.

Referenced by Engines::NWN2::Functions::getHasFeat().

Here is the caller graph for this function:

◆ hide()

void Engines::NWN2::Creature::hide ( )
virtual

Hide the creature's model.

Reimplemented from Engines::NWN2::Object.

Definition at line 116 of file creature.cpp.

References _modelParts.

Referenced by Engines::NWN2::Module::enterArea(), unloadModel(), and Engines::NWN2::Module::unloadPC().

Here is the caller graph for this function:

◆ highlight()

void Engines::NWN2::Creature::highlight ( bool  enabled)
virtual

(Un)Highlight the creature.

Reimplemented from Engines::NWN2::Object.

Definition at line 145 of file creature.cpp.

References _modelParts.

Referenced by enter(), and leave().

Here is the caller graph for this function:

◆ init()

void Engines::NWN2::Creature::init ( )
private

◆ isDM()

bool Engines::NWN2::Creature::isDM ( ) const

Is the creature a dungeon master?

Definition at line 205 of file creature.cpp.

References _isDM.

Referenced by Engines::NWN2::Functions::getIsDM().

Here is the caller graph for this function:

◆ isFemale()

bool Engines::NWN2::Creature::isFemale ( ) const

Is the creature female, do we need female dialogs tokens?

Definition at line 178 of file creature.cpp.

References _gender, and Engines::NWN2::kGenderFemale.

Referenced by getBaseModel().

Here is the caller graph for this function:

◆ isPC()

bool Engines::NWN2::Creature::isPC ( ) const

Is the creature a player character?

Definition at line 201 of file creature.cpp.

References _isPC.

Referenced by Engines::NWN2::ObjectContainer::toPC().

Here is the caller graph for this function:

◆ leave()

void Engines::NWN2::Creature::leave ( )
virtual

The cursor left the creature.

Reimplemented from Engines::NWN2::Object.

Definition at line 141 of file creature.cpp.

References highlight().

Here is the call graph for this function:

◆ load() [1/2]

void Engines::NWN2::Creature::load ( const Aurora::GFF3Struct creature)
private

Load from a creature instance.

Definition at line 344 of file creature.cpp.

References Common::UString::empty(), Aurora::GFF3Struct::getString(), Aurora::kFileTypeUTC, Engines::loadOptionalGFF3(), MKTAG, and Common::ScopedPtrBase< T, Deallocator >::reset().

Referenced by Creature(), and loadCharacter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load() [2/2]

void Engines::NWN2::Creature::load ( const Aurora::GFF3Struct instance,
const Aurora::GFF3Struct blueprint 
)
private

Load the creature from an instance and its blueprint.

Definition at line 368 of file creature.cpp.

References Aurora::GFF3Struct::getDouble(), loadProperties(), Common::rad2deg(), setOrientation(), and setPosition().

Here is the call graph for this function:

◆ loadArmorModel()

bool Engines::NWN2::Creature::loadArmorModel ( const Common::UString body,
const Common::UString armor,
uint8  visualType,
uint8  variation 
)
private

Definition at line 236 of file creature.cpp.

References _modelParts, Common::UString::c_str(), Common::UString::format(), Aurora::TwoDARow::getString(), Engines::loadModelObject(), and TwoDAReg.

Referenced by loadModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadCharacter()

void Engines::NWN2::Creature::loadCharacter ( const Common::UString bic,
bool  local 
)
private

Load from a character file.

Definition at line 354 of file creature.cpp.

References _isPC, Engines::NWN2::Object::_name, Aurora::NWScript::Object::_tag, Common::UString::c_str(), Common::UString::format(), load(), and openPC().

Referenced by Creature().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadClasses()

void Engines::NWN2::Creature::loadClasses ( const Aurora::GFF3Struct gff,
std::vector< Class > &  classes,
uint8 hitDice 
)
staticprivate

Load the creature's classes.

Definition at line 506 of file creature.cpp.

References Aurora::GFF3Struct::getList(), Aurora::GFF3Struct::getUint(), and Aurora::GFF3Struct::hasField().

Referenced by loadProperties().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadHairModel()

bool Engines::NWN2::Creature::loadHairModel ( uint8  appearance)
private

Definition at line 271 of file creature.cpp.

References _modelParts, Common::UString::c_str(), Common::UString::empty(), Common::UString::format(), getBaseModel(), and Engines::loadModelObject().

Referenced by loadModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadHeadModel()

bool Engines::NWN2::Creature::loadHeadModel ( uint8  appearance)
private

Definition at line 253 of file creature.cpp.

References _modelParts, Common::UString::c_str(), Common::UString::empty(), Common::UString::format(), getBaseModel(), and Engines::loadModelObject().

Referenced by loadModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadModel()

void Engines::NWN2::Creature::loadModel ( )
virtual

◆ loadProperties()

void Engines::NWN2::Creature::loadProperties ( const Aurora::GFF3Struct gff)
private

◆ openPC()

Aurora::GFF3File * Engines::NWN2::Creature::openPC ( const Common::UString bic,
bool  local 
)
staticprivate

Definition at line 584 of file creature.cpp.

References ConfigMan, and kBICID.

Referenced by loadCharacter().

Here is the caller graph for this function:

◆ setGender()

void Engines::NWN2::Creature::setGender ( uint32  gender)

Set the creature's gender.

Definition at line 174 of file creature.cpp.

References _gender.

◆ setOrientation()

void Engines::NWN2::Creature::setOrientation ( float  x,
float  y,
float  z,
float  angle 
)
virtual

Set the creature's orientation.

Reimplemented from Engines::NWN2::Object.

Definition at line 129 of file creature.cpp.

References _modelParts, Engines::NWN2::Object::getOrientation(), and Engines::NWN2::Object::setOrientation().

Referenced by Engines::NWN2::Module::enter(), load(), and loadModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPosition()

void Engines::NWN2::Creature::setPosition ( float  x,
float  y,
float  z 
)
virtual

Set the creature's position.

Reimplemented from Engines::NWN2::Object.

Definition at line 121 of file creature.cpp.

References _modelParts, Engines::NWN2::Object::getPosition(), and Engines::NWN2::Object::setPosition().

Referenced by Engines::NWN2::Module::enter(), load(), loadModel(), and Engines::NWN2::Module::movePC().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRace()

void Engines::NWN2::Creature::setRace ( uint32  race)

Set the creature's race.

Definition at line 189 of file creature.cpp.

References _race.

◆ setSubRace()

void Engines::NWN2::Creature::setSubRace ( uint32  subRace)

Set the creature's subrace.

Definition at line 197 of file creature.cpp.

References _subRace.

◆ show()

void Engines::NWN2::Creature::show ( )
virtual

Show the creature's model.

Reimplemented from Engines::NWN2::Object.

Definition at line 111 of file creature.cpp.

References _modelParts.

Referenced by Engines::NWN2::Module::enterArea().

Here is the caller graph for this function:

◆ unloadModel()

void Engines::NWN2::Creature::unloadModel ( )
virtual

Unload the creature's model.

Reimplemented from Engines::NWN2::Object.

Definition at line 338 of file creature.cpp.

References _modelParts, Common::PtrList< T, Deallocator >::clear(), and hide().

Here is the call graph for this function:

Member Data Documentation

◆ _abilities

uint8 Engines::NWN2::Creature::_abilities[kAbilityMAX]
private

The creature's abilities.

Definition at line 168 of file creature.h.

Referenced by getAbility(), init(), and loadProperties().

◆ _age

uint32 Engines::NWN2::Creature::_age
private

The creature's age.

Definition at line 160 of file creature.h.

Referenced by getAge(), init(), and loadProperties().

◆ _appearanceFHair

uint8 Engines::NWN2::Creature::_appearanceFHair
private

The model variant used for female hair.

Definition at line 191 of file creature.h.

Referenced by init(), loadModel(), and loadProperties().

◆ _appearanceHead

uint8 Engines::NWN2::Creature::_appearanceHead
private

The model variant used for the head.

Definition at line 189 of file creature.h.

Referenced by init(), loadModel(), and loadProperties().

◆ _appearanceID

uint32 Engines::NWN2::Creature::_appearanceID
private

The creature's general appearance.

Definition at line 181 of file creature.h.

Referenced by getBaseModel(), init(), loadModel(), and loadProperties().

◆ _appearanceMHair

uint8 Engines::NWN2::Creature::_appearanceMHair
private

The model variant used for male hair.

Definition at line 190 of file creature.h.

Referenced by init(), loadModel(), and loadProperties().

◆ _armorVariation

uint8 Engines::NWN2::Creature::_armorVariation
private

Definition at line 184 of file creature.h.

Referenced by init(), loadModel(), and loadProperties().

◆ _armorVisualType

uint8 Engines::NWN2::Creature::_armorVisualType
private

Definition at line 183 of file creature.h.

Referenced by init(), loadModel(), and loadProperties().

◆ _baseHP

int32 Engines::NWN2::Creature::_baseHP
private

The creature's base maximum health points.

Definition at line 164 of file creature.h.

Referenced by getMaxHP(), init(), and loadProperties().

◆ _bonusHP

int32 Engines::NWN2::Creature::_bonusHP
private

The creature's bonus health points.

Definition at line 165 of file creature.h.

Referenced by getCurrentHP(), getMaxHP(), init(), and loadProperties().

◆ _bootsVariation

uint8 Engines::NWN2::Creature::_bootsVariation
private

Definition at line 187 of file creature.h.

Referenced by init(), loadModel(), and loadProperties().

◆ _bootsVisualType

uint8 Engines::NWN2::Creature::_bootsVisualType
private

Definition at line 186 of file creature.h.

Referenced by init(), loadModel(), and loadProperties().

◆ _classes

std::vector<Class> Engines::NWN2::Creature::_classes
private

The creature's classes.

Definition at line 170 of file creature.h.

Referenced by getClass(), getClassLevel(), and loadProperties().

◆ _currentHP

int32 Engines::NWN2::Creature::_currentHP
private

The creature's current health points.

Definition at line 166 of file creature.h.

Referenced by getCurrentHP(), init(), and loadProperties().

◆ _deity

Common::UString Engines::NWN2::Creature::_deity
private

The creature's deity.

Definition at line 176 of file creature.h.

Referenced by getDeity(), and loadProperties().

◆ _feats

std::vector<uint32> Engines::NWN2::Creature::_feats
private

The creature's feats.

Definition at line 172 of file creature.h.

Referenced by hasFeat(), and loadProperties().

◆ _firstName

Common::UString Engines::NWN2::Creature::_firstName
private

The creature's first name.

Definition at line 150 of file creature.h.

Referenced by getFirstName(), and loadProperties().

◆ _gender

uint32 Engines::NWN2::Creature::_gender
private

The creature's gender.

Definition at line 153 of file creature.h.

Referenced by getGender(), init(), isFemale(), loadProperties(), and setGender().

◆ _goodEvil

uint8 Engines::NWN2::Creature::_goodEvil
private

The creature's good/evil value (0-100).

Definition at line 178 of file creature.h.

Referenced by getGoodEvil(), init(), and loadProperties().

◆ _hitDice

uint8 Engines::NWN2::Creature::_hitDice
private

The creature's hit dice.

Definition at line 174 of file creature.h.

Referenced by getHitDice(), init(), and loadProperties().

◆ _isDM

bool Engines::NWN2::Creature::_isDM
private

Is the creature a DM?

Definition at line 158 of file creature.h.

Referenced by init(), isDM(), and loadProperties().

◆ _isPC

bool Engines::NWN2::Creature::_isPC
private

Is the creature a PC?

Definition at line 157 of file creature.h.

Referenced by init(), isPC(), loadCharacter(), and loadProperties().

◆ _lastName

Common::UString Engines::NWN2::Creature::_lastName
private

The creature's last name.

Definition at line 151 of file creature.h.

Referenced by getLastName(), and loadProperties().

◆ _lawChaos

uint8 Engines::NWN2::Creature::_lawChaos
private

The creature's law/chaos value (0-100).

Definition at line 179 of file creature.h.

Referenced by getLawChaos(), init(), and loadProperties().

◆ _modelParts

ModelParts Engines::NWN2::Creature::_modelParts
private

◆ _race

uint32 Engines::NWN2::Creature::_race
private

The creature's race.

Definition at line 154 of file creature.h.

Referenced by getRace(), init(), loadProperties(), and setRace().

◆ _skills

std::vector<int8> Engines::NWN2::Creature::_skills
private

The creature's skills.

Definition at line 171 of file creature.h.

Referenced by getSkillRank(), and loadProperties().

◆ _subRace

uint32 Engines::NWN2::Creature::_subRace
private

The creature's subrace.

Definition at line 155 of file creature.h.

Referenced by getSubRace(), init(), loadProperties(), and setSubRace().

◆ _xp

uint32 Engines::NWN2::Creature::_xp
private

The creature's experience.

Definition at line 162 of file creature.h.

Referenced by getXP(), init(), and loadProperties().


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