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

#include <creature.h>

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

Classes

struct  Associate
 An associate. More...
 
struct  BodyPart
 A part of a creature body. More...
 
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 ()
 
uint32 lastChangedGUIDisplay () const
 Last time info was changed that's displayed in the GUI. More...
 
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...
 
Gender getGender () const
 Get the creature's gender. More...
 
void setGender (Gender 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...
 
void setPortrait (const Common::UString &portrait)
 Set the creature's portrait. More...
 
const Common::UStringgetPortrait () const
 Get the creature's portrait. More...
 
const Common::UStringgetConvRace () const
 Return the creature's race as needed in conversations, e.g. More...
 
const Common::UStringgetConvrace () const
 Return the creature's lowercase race as needed in conversations, e.g. More...
 
const Common::UStringgetConvRaces () const
 Return the creature's race plural as needed in conversations, e.g. More...
 
const Common::UStringgetSubRace () const
 Get 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...
 
void changeClassLevel (uint32 classID, int16 levelChange)
 Set the creature's level for this class. More...
 
const Common::UStringgetConvClass () const
 Return the creature's class as needed in conversations, e.g. More...
 
const Common::UStringgetConvclass () const
 Return the creature's class as needed in conversations, e.g. More...
 
const Common::UStringgetConvClasses () const
 Return the creature's class plural as needed in conversations, e.g. More...
 
Common::UString getClassString () const
 Return the creature's class description. 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...
 
void setAbility (Ability ability, uint8 score)
 Set the creature's ability score. More...
 
int8 getSkillRank (uint32 skill) const
 Return the creature's rank in this skill. More...
 
void setSkillRank (size_t skill, uint8 rank)
 Set the creature's skill rank. More...
 
void setFeat (uint32 feat)
 Append a feat to the creature. 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
 Get the creature's good-evil alignment. More...
 
void setGoodEvil (uint8 goodness)
 Set the creature's good-evil alignment. More...
 
uint8 getLawChaos () const
 Get the creature's law-chaos alignment. More...
 
void setLawChaos (uint8 lawfulness)
 Set the creature's law-chaos alignment. More...
 
void setSoundSet (uint32 soundSet)
 Set the creature's sound set. More...
 
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...
 
uint8 getStartingPackage () const
 Return the creature's starting package. More...
 
void setStartingPackage (uint8 package)
 Set the creature's starting package. More...
 
void getDomains (uint32 classID, uint8 &domain1, uint8 &domain2)
 Get clerical domains. More...
 
void setDomains (uint32 classID, uint8 domain1, uint8 domain2)
 Set clerical domains. More...
 
bool hasSpell (uint32 classID, size_t spellLevel, uint16 spell)
 Do the creature know the spell? More...
 
void setSchool (uint32 classID, uint8 school)
 Set the creature's school. More...
 
void setKnownSpell (uint32 classID, size_t spellLevel, uint16 spell)
 Set a creature's known spell. More...
 
void setMemorizedSpell (uint32 classID, size_t spellLevel, uint16 spell)
 Set a creature's memorized spell. More...
 
void setAppearance (uint32 appearanceID)
 Set the creature's appearance. More...
 
void setPhenotype (uint32 phenotype)
 Set the creature's phenotype. More...
 
void setColorSkin (uint32 colorSkin)
 Set the creature's color skin. More...
 
void setColorHair (uint32 colorHair)
 Set the creature's color hair. More...
 
void setColorTatto1 (uint32 colorTattoo1)
 Set the creature's color tattoo 1. More...
 
void setColorTatto2 (uint32 colorTattoo2)
 Set the creature's color tatto 2. More...
 
void setHead (uint32 headID)
 Set the creature's head. More...
 
void addEquippedItem (Item *item)
 Add an equippement to the creature. More...
 
void setArea (Area *area)
 Set the area this creature is currently in. More...
 
void addAssociate (Creature &associate, AssociateType type)
 Add an associate (henchman, familiar, ...). More...
 
void removeAssociate (Creature &ssociate)
 Remove an associate (henchman, familiar, ...). More...
 
CreaturegetAssociate (AssociateType type, size_t nth=1) const
 Get this creature's nth's associate of a specific type. More...
 
CreaturegetMaster () const
 Return the creature's master. More...
 
void setMaster (Creature *master=0)
 Set the creature's master. More...
 
bool isCommandable () const
 Is this creature commandable (has a modifiable action queue)? More...
 
void setCommandable (bool commandable)
 Set whether this creature commandable (has a modifiable action queue). 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...
 
virtual void highlight (bool enabled)
 (Un)Highlight the creature. More...
 
virtual bool click (Object *triggerer=0)
 The creature was clicked. More...
 
void playAnimation (const Common::UString &animation="", bool restart=true, float length=0.0f, float speed=1.0f)
 Play a creature animation. More...
 
void playAnimation (Animation animation, bool restart=true, float length=0.0f, float speed=1.0f)
 Play a default creature animation. More...
 
- Public Member Functions inherited from Engines::NWN::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::UStringgetPortrait () const
 Return the object's portrait. 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...
 
Aurora::NWScript::ObjectgetPCSpeaker () const
 Return the PC currently speaking with this object. More...
 
void setPCSpeaker (Aurora::NWScript::Object *pc)
 Set the PC currently speaking with this object. More...
 
AreagetArea () const
 Return 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...
 
virtual 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::NWN::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())
 

Static Public Member Functions

static void getPCListInfo (const Common::UString &bic, bool local, Common::UString &name, Common::UString &classes, Common::UString &portrait)
 Return the information needed for a character list. More...
 
- Static Public Member Functions inherited from Engines::NWN::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())
 

Private Types

enum  BodyPartType {
  kBodyPartHead = 0, kBodyPartNeck, kBodyPartTorso, kBodyPartPelvis,
  kBodyPartBelt, kBodyPartRightFoot, kBodyPartLeftFoot, kBodyPartRightShin,
  kBodyPartLeftShin, kBodyPartLeftThigh, kBodyPartRightThigh, kBodyPartRightFArm,
  kBodyPartLeftFArm, kBodyPartRightBicep, kBodyPartLeftBicep, kBodyPartRightShoul,
  kBodyPartLeftShoul, kBodyPartRightHand, kBodyPartLeftHand, kBodyPartMAX
}
 Parts of a creature's body. More...
 

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...
 
void loadEquippedItems (const Aurora::GFF3Struct &gff)
 
void constructPartName (const Common::UString &type, uint32 id, const Common::UString &gender, const Common::UString &race, const Common::UString &phenoType, Common::UString &part)
 Construct the resource name of a body part files. More...
 
void constructPartName (const Common::UString &type, uint32 id, const Common::UString &gender, const Common::UString &race, const Common::UString &phenoType, const Common::UString &phenoTypeAlt, Aurora::FileType fileType, Common::UString &part)
 Construct the resource name of a body part files. More...
 
void constructModelName (const Common::UString &type, uint32 id, const Common::UString &gender, const Common::UString &race, const Common::UString &phenoType, const Common::UString &phenoTypeAlt, Common::UString &model, Common::UString &texture)
 Construct the resource name of a body part files. More...
 
void getPartModels ()
 Construct all body part models' resource names. More...
 
void getArmorModels ()
 Populate the armor info for body parts. More...
 
ClassfindClass (uint32 classID)
 Find the creature's class if any. More...
 
void finishPLTs (const std::list< Graphics::Aurora::TextureHandle > &plts)
 Finished those paletted textures. More...
 
bool createTooltip (Tooltip::Type type)
 Create an empty tooltip. More...
 

Static Private Member Functions

static void loadPortrait (const Aurora::GFF3Struct &gff, Common::UString &portrait)
 Load the creature's portrait. More...
 
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)
 
static void getClassString (const std::vector< Class > &classes, Common::UString &str)
 

Private Attributes

uint32 _lastChangedGUIDisplay
 The time a GUI relevant property was changed last. More...
 
Common::UString _firstName
 The creature's first name. More...
 
Common::UString _lastName
 The creature's last name. More...
 
Gender _gender
 The creature's gender. More...
 
uint32 _race
 The creature's race. More...
 
Common::UString _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...
 
uint32 _phenotype
 The creature's phenotype. More...
 
uint8 _startingPackage
 The package chosen at creature's creation. More...
 
std::vector< BodyPart_bodyParts
 The creature's body parts. More...
 
Common::PtrVector< Item_equippedItems
 The creature's equipped items. More...
 
Common::UString _partsSuperModelName
 The supermodel used for parts-based creatures. More...
 
Common::UString _environmentMap
 The environment map override to use on the model. More...
 
uint32 _colorSkin
 The color of the creature's skin. More...
 
uint32 _colorHair
 The color of the creature's hair. More...
 
uint32 _colorTattoo1
 The 1. color of the creature's tattoo. More...
 
uint32 _colorTattoo2
 The 2. color of the creature's tattoo. More...
 
uint32 _colorMetal1
 The 1. color of the creature's metal armor. More...
 
uint32 _colorMetal2
 The 2. color of the creature's metal armor. More...
 
uint32 _colorLeather1
 The 1. color of the creature's leather armor. More...
 
uint32 _colorLeather2
 The 2. color of the creature's leather armor. More...
 
uint32 _colorCloth1
 The 1. color of the creature's cloth armor. More...
 
uint32 _colorCloth2
 The 2. color of the creature's cloth armor. More...
 
Creature_master
 The creature's master. More...
 
std::list< Associate_associates
 The creature's associates. More...
 
bool _isCommandable
 Is the creature commandable (has a modifiable action queue)? More...
 
Common::ScopedPtr< Graphics::Aurora::Model_model
 The creature's model. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Engines::NWN::Object
void loadSSF ()
 Load the object's sound set. More...
 
bool beginConversation (Object *triggerer)
 Begin a conversation between the triggerer and this object. More...
 
bool createFeedbackTooltip ()
 Create a tooltip with the name and/or portrait of the object. More...
 
bool createSpeechTooltip (const Common::UString &line)
 Create a tooltip with a line the object should speak. More...
 
void destroyTooltip ()
 Destroy all tooltips on this object. More...
 
bool showFeedbackTooltip ()
 Create and show a tooltip with the name and/or portrait of the object. More...
 
bool showSpeechTooltip (const Common::UString &line)
 Create and show a tooltip with a line the object speaks. More...
 
void hideTooltip ()
 Hide the tooltip again. More...
 
- Protected Member Functions inherited from Engines::NWN::ScriptContainer
void clearScripts ()
 
void readScripts (const Aurora::GFF3Struct &gff)
 
void readScripts (const ScriptContainer &container)
 
- Protected Attributes inherited from Engines::NWN::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 _portrait
 The object's portrait. 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...
 
Aurora::NWScript::Object_pcSpeaker
 The current PC speaking with the object. 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...
 
Common::ScopedPtr< Tooltip_tooltip
 The tooltip displayed over the object. More...
 
- Protected Attributes inherited from Aurora::NWScript::Object
uint32 _id
 
Common::UString _tag
 

Detailed Description

Definition at line 50 of file creature.h.

Member Enumeration Documentation

◆ BodyPartType

Parts of a creature's body.

Enumerator
kBodyPartHead 
kBodyPartNeck 
kBodyPartTorso 
kBodyPartPelvis 
kBodyPartBelt 
kBodyPartRightFoot 
kBodyPartLeftFoot 
kBodyPartRightShin 
kBodyPartLeftShin 
kBodyPartLeftThigh 
kBodyPartRightThigh 
kBodyPartRightFArm 
kBodyPartLeftFArm 
kBodyPartRightBicep 
kBodyPartLeftBicep 
kBodyPartRightShoul 
kBodyPartLeftShoul 
kBodyPartRightHand 
kBodyPartLeftHand 
kBodyPartMAX 

Definition at line 262 of file creature.h.

Constructor & Destructor Documentation

◆ Creature() [1/3]

Engines::NWN::Creature::Creature ( )

Create a dummy creature instance.

Not playable as it is.

Definition at line 70 of file creature.cpp.

References init().

Here is the call graph for this function:

◆ Creature() [2/3]

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

Load from a creature instance.

Definition at line 74 of file creature.cpp.

References init(), and load().

Here is the call graph for this function:

◆ Creature() [3/3]

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

Load from a character file.

Definition at line 80 of file creature.cpp.

References init(), and loadCharacter().

Here is the call graph for this function:

◆ ~Creature()

Engines::NWN::Creature::~Creature ( )

Definition at line 86 of file creature.cpp.

References _associates, _master, hide(), and removeAssociate().

Here is the call graph for this function:

Member Function Documentation

◆ addAssociate()

void Engines::NWN::Creature::addAssociate ( Creature associate,
AssociateType  type 
)

Add an associate (henchman, familiar, ...).

Definition at line 379 of file creature.cpp.

References _associates, getMaster(), removeAssociate(), and setMaster().

Referenced by Engines::NWN::Functions::addHenchman().

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

◆ addEquippedItem()

void Engines::NWN::Creature::addEquippedItem ( Item item)

Add an equippement to the creature.

Definition at line 368 of file creature.cpp.

References _equippedItems.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ changeClassLevel()

void Engines::NWN::Creature::changeClassLevel ( uint32  classID,
int16  levelChange 
)

Set the creature's level for this class.

Definition at line 957 of file creature.cpp.

References _classes, Engines::NWN::Creature::Class::classID, and Engines::NWN::Creature::Class::level.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ click()

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

The creature was clicked.

Reimplemented from Engines::NWN::Object.

Definition at line 1094 of file creature.cpp.

References Engines::NWN::Object::beginConversation(), Engines::NWN::ScriptContainer::hasScript(), Engines::NWN::kScriptClick, Engines::NWN::kScriptDialogue, and Engines::NWN::ScriptContainer::runScript().

Here is the call graph for this function:

◆ constructModelName()

void Engines::NWN::Creature::constructModelName ( const Common::UString type,
uint32  id,
const Common::UString gender,
const Common::UString race,
const Common::UString phenoType,
const Common::UString phenoTypeAlt,
Common::UString model,
Common::UString texture 
)
private

Construct the resource name of a body part files.

Definition at line 458 of file creature.cpp.

References constructPartName(), Common::UString::empty(), Aurora::kFileTypeMDL, Aurora::kFileTypeNone, and Aurora::kFileTypePLT.

Referenced by getPartModels().

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

◆ constructPartName() [1/2]

void Engines::NWN::Creature::constructPartName ( const Common::UString type,
uint32  id,
const Common::UString gender,
const Common::UString race,
const Common::UString phenoType,
Common::UString part 
)
private

Construct the resource name of a body part files.

Definition at line 436 of file creature.cpp.

References Common::UString::c_str(), and Common::UString::format().

Referenced by constructModelName(), and constructPartName().

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

◆ constructPartName() [2/2]

void Engines::NWN::Creature::constructPartName ( const Common::UString type,
uint32  id,
const Common::UString gender,
const Common::UString race,
const Common::UString phenoType,
const Common::UString phenoTypeAlt,
Aurora::FileType  fileType,
Common::UString part 
)
private

Construct the resource name of a body part files.

Definition at line 444 of file creature.cpp.

References Common::UString::clear(), constructPartName(), Aurora::kFileTypeNone, and ResMan.

Here is the call graph for this function:

◆ createTooltip()

bool Engines::NWN::Creature::createTooltip ( Tooltip::Type  type)
privatevirtual

Create an empty tooltip.

Reimplemented from Engines::NWN::Object.

Definition at line 1107 of file creature.cpp.

References _model, Engines::NWN::Object::_portrait, and Engines::NWN::Object::_tooltip.

◆ enter()

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

The cursor entered the creature.

Reimplemented from Engines::NWN::Object.

Definition at line 1076 of file creature.cpp.

References highlight().

Here is the call graph for this function:

◆ findClass()

Creature::Class * Engines::NWN::Creature::findClass ( uint32  classID)
private

Find the creature's class if any.

Definition at line 563 of file creature.cpp.

References _classes.

Referenced by getDomains(), hasSpell(), setDomains(), setKnownSpell(), setMemorizedSpell(), and setSchool().

Here is the caller graph for this function:

◆ finishPLTs()

void Engines::NWN::Creature::finishPLTs ( const std::list< Graphics::Aurora::TextureHandle > &  plts)
private

◆ getAbility()

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

Return a creature's ability score.

Definition at line 1035 of file creature.cpp.

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

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

Here is the caller graph for this function:

◆ getAge()

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

Return the creature's age.

Definition at line 234 of file creature.cpp.

References _age.

◆ getArmorModels()

void Engines::NWN::Creature::getArmorModels ( )
private

◆ getAssociate()

Creature * Engines::NWN::Creature::getAssociate ( AssociateType  type,
size_t  nth = 1 
) const

Get this creature's nth's associate of a specific type.

Definition at line 400 of file creature.cpp.

References _associates.

Referenced by Engines::NWN::Functions::getAssociate(), and Engines::NWN::Functions::getHenchman().

Here is the caller graph for this function:

◆ getClass()

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

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

Definition at line 938 of file creature.cpp.

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

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

Here is the caller graph for this function:

◆ getClassLevel()

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

Get the creature's level for this class.

Definition at line 949 of file creature.cpp.

References _classes.

Referenced by Engines::NWN::CharSpells::computeRemainingSpells(), Engines::NWN::Functions::getLevelByClass(), and Engines::NWN::CharGenChoices::hasPrereqFeat().

Here is the caller graph for this function:

◆ getClassString() [1/2]

Common::UString Engines::NWN::Creature::getClassString ( ) const

Return the creature's class description.

Definition at line 1023 of file creature.cpp.

References _classes.

Referenced by getPCListInfo().

Here is the caller graph for this function:

◆ getClassString() [2/2]

void Engines::NWN::Creature::getClassString ( const std::vector< Class > &  classes,
Common::UString str 
)
staticprivate

Definition at line 1193 of file creature.cpp.

References Common::UString::empty(), TalkMan, and TwoDAReg.

Here is the call graph for this function:

◆ getConvClass()

const Common::UString & Engines::NWN::Creature::getConvClass ( ) const

Return the creature's class as needed in conversations, e.g.

"Barbarian".

Definition at line 978 of file creature.cpp.

References _classes, TalkMan, and TwoDAReg.

◆ getConvclass()

const Common::UString & Engines::NWN::Creature::getConvclass ( ) const

Return the creature's class as needed in conversations, e.g.

"barbarian".

Definition at line 985 of file creature.cpp.

References _classes, TalkMan, and TwoDAReg.

◆ getConvClasses()

const Common::UString & Engines::NWN::Creature::getConvClasses ( ) const

Return the creature's class plural as needed in conversations, e.g.

"Barbarians".

Definition at line 992 of file creature.cpp.

References _classes, TalkMan, and TwoDAReg.

◆ getConvRace()

const Common::UString & Engines::NWN::Creature::getConvRace ( ) const

Return the creature's race as needed in conversations, e.g.

"Dwarven".

Definition at line 916 of file creature.cpp.

References _race, TalkMan, and TwoDAReg.

◆ getConvrace()

const Common::UString & Engines::NWN::Creature::getConvrace ( ) const

Return the creature's lowercase race as needed in conversations, e.g.

"dwarven".

Definition at line 922 of file creature.cpp.

References _race, TalkMan, and TwoDAReg.

◆ getConvRaces()

const Common::UString & Engines::NWN::Creature::getConvRaces ( ) const

Return the creature's race plural as needed in conversations, e.g.

"Dwarves".

Definition at line 928 of file creature.cpp.

References _race, TalkMan, and TwoDAReg.

◆ getCurrentHP()

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

Return the current HP this creature has.

Definition at line 242 of file creature.cpp.

References _bonusHP, and _currentHP.

Referenced by Engines::NWN::Functions::getIsDead(), and Engines::NWN::IngameGUI::updatePartyMember().

Here is the caller graph for this function:

◆ getDeity()

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

Get the creature's deity.

Definition at line 999 of file creature.cpp.

References _deity.

◆ getDomains()

void Engines::NWN::Creature::getDomains ( uint32  classID,
uint8 domain1,
uint8 domain2 
)

Get clerical domains.

Definition at line 258 of file creature.cpp.

References Engines::NWN::Creature::Class::domain1, Engines::NWN::Creature::Class::domain2, findClass(), and UINT8_MAX.

Here is the call graph for this function:

◆ getFirstName()

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

Return the creature's first name.

Definition at line 182 of file creature.cpp.

References _firstName.

◆ getGender()

Gender Engines::NWN::Creature::getGender ( ) const

Get the creature's gender.

Definition at line 190 of file creature.cpp.

References _gender.

Referenced by Engines::NWN::Functions::getGender(), Engines::NWN::CharSex::hide(), Engines::NWN::CharPortrait::initPortraitList(), and Engines::NWN::CharInfoVoice::initVoicesList().

Here is the caller graph for this function:

◆ getGoodEvil()

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

Get the creature's good-evil alignment.

Definition at line 1003 of file creature.cpp.

References _goodEvil.

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

Here is the caller graph for this function:

◆ getHitDice()

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

◆ getLastName()

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

Return the creature's last name.

Definition at line 186 of file creature.cpp.

References _lastName.

◆ getLawChaos()

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

Get the creature's law-chaos alignment.

Definition at line 1011 of file creature.cpp.

References _lawChaos.

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

Here is the caller graph for this function:

◆ getMaster()

Creature * Engines::NWN::Creature::getMaster ( ) const

Return the creature's master.

Definition at line 424 of file creature.cpp.

References _master.

Referenced by addAssociate(), and Engines::NWN::Functions::getMaster().

Here is the caller graph for this function:

◆ getMaxHP()

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

Return the max HP this creature can have.

Definition at line 246 of file creature.cpp.

References _baseHP, and _bonusHP.

Referenced by Engines::NWN::IngameGUI::updatePartyMember().

Here is the caller graph for this function:

◆ getPartModels()

void Engines::NWN::Creature::getPartModels ( )
private

Construct all body part models' resource names.

Definition at line 509 of file creature.cpp.

References _bodyParts, _gender, _partsSuperModelName, _phenotype, _race, Common::UString::c_str(), constructModelName(), Common::UString::format(), Aurora::TwoDARow::getInt(), Aurora::TwoDAFile::getRow(), Aurora::TwoDARow::getString(), kBodyPartMAX, Engines::NWN::kBodyPartModels, Aurora::kFileTypeMDL, ResMan, and TwoDAReg.

Referenced by loadModel().

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

◆ getPCListInfo()

void Engines::NWN::Creature::getPCListInfo ( const Common::UString bic,
bool  local,
Common::UString name,
Common::UString classes,
Common::UString portrait 
)
static

Return the information needed for a character list.

Definition at line 1151 of file creature.cpp.

References Common::UString::c_str(), Common::UString::clear(), Common::exceptionDispatcherWarning(), getClassString(), Aurora::GFF3Struct::getString(), loadClasses(), loadPortrait(), openPC(), and Common::UString::trim().

Referenced by Engines::NWN::CharPremadeMenu::initCharacterList().

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

◆ getPortrait()

const Common::UString & Engines::NWN::Creature::getPortrait ( ) const

Get the creature's portrait.

Definition at line 222 of file creature.cpp.

References Engines::NWN::Object::_portrait.

Referenced by Engines::NWN::CharPortrait::show(), and Engines::NWN::IngameGUI::updatePartyMember().

Here is the caller graph for this function:

◆ getRace()

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

Return the creature's race value.

Definition at line 205 of file creature.cpp.

References _race.

Referenced by Engines::NWN::CharGenChoices::applyChoices(), Engines::NWN::CharGenChoices::getRace(), Engines::NWN::Functions::getRacialType(), Engines::NWN::CharRace::hide(), and Engines::NWN::CharPortrait::initPortraitList().

Here is the caller graph for this function:

◆ getSkillRank()

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

Return the creature's rank in this skill.

Definition at line 1047 of file creature.cpp.

References _skills.

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

Here is the caller graph for this function:

◆ getStartingPackage()

uint8 Engines::NWN::Creature::getStartingPackage ( ) const

Return the creature's starting package.

Definition at line 250 of file creature.cpp.

References _startingPackage.

◆ getSubRace()

const Common::UString & Engines::NWN::Creature::getSubRace ( ) const

Get the creature's subrace.

Definition at line 934 of file creature.cpp.

References _subRace.

◆ getXP()

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

Return the creature's XP.

Definition at line 238 of file creature.cpp.

References _xp.

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

Here is the caller graph for this function:

◆ hasFeat()

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

Does the creature have this feat?

Definition at line 1068 of file creature.cpp.

References _feats.

Referenced by Engines::NWN::Functions::getHasFeat(), Engines::NWN::CharGenChoices::hasFeat(), and setFeat().

Here is the caller graph for this function:

◆ hasSpell()

bool Engines::NWN::Creature::hasSpell ( uint32  classID,
size_t  spellLevel,
uint16  spell 
)

Do the creature know the spell?

Definition at line 279 of file creature.cpp.

References findClass(), and Engines::NWN::Creature::Class::knownList.

Here is the call graph for this function:

◆ hide()

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

Hide the creature's model.

Reimplemented from Engines::NWN::Object.

Definition at line 153 of file creature.cpp.

References _model, Engines::NWN::Object::hideTooltip(), and leave().

Referenced by unloadModel(), and ~Creature().

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

◆ highlight()

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

(Un)Highlight the creature.

Reimplemented from Engines::NWN::Object.

Definition at line 1084 of file creature.cpp.

References _model, Engines::NWN::Object::hideTooltip(), and Engines::NWN::Object::showFeedbackTooltip().

Referenced by enter(), and leave().

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

◆ init()

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

◆ isCommandable()

bool Engines::NWN::Creature::isCommandable ( ) const

Is this creature commandable (has a modifiable action queue)?

Definition at line 428 of file creature.cpp.

References _isCommandable.

Referenced by Engines::NWN::Functions::getCommandable().

Here is the caller graph for this function:

◆ isDM()

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

Is the creature a dungeon master?

Definition at line 230 of file creature.cpp.

References _isDM.

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

Here is the caller graph for this function:

◆ isFemale()

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

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

Definition at line 198 of file creature.cpp.

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

◆ isPC()

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

Is the creature a player character?

Definition at line 226 of file creature.cpp.

References _isPC.

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

Here is the caller graph for this function:

◆ lastChangedGUIDisplay()

uint32 Engines::NWN::Creature::lastChangedGUIDisplay ( ) const

Last time info was changed that's displayed in the GUI.

Definition at line 178 of file creature.cpp.

References _lastChangedGUIDisplay.

Referenced by Engines::NWN::IngameGUI::updatePartyMember().

Here is the caller graph for this function:

◆ leave()

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

The cursor left the creature.

Reimplemented from Engines::NWN::Object.

Definition at line 1080 of file creature.cpp.

References highlight().

Referenced by hide().

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

◆ load() [1/2]

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

Load from a creature instance.

Definition at line 699 of file creature.cpp.

References _lastChangedGUIDisplay, Common::UString::empty(), EventMan, 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::NWN::Creature::load ( const Aurora::GFF3Struct instance,
const Aurora::GFF3Struct blueprint 
)
private

Load the creature from an instance and its blueprint.

Definition at line 711 of file creature.cpp.

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

Here is the call graph for this function:

◆ loadCharacter()

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

Load from a character file.

Definition at line 683 of file creature.cpp.

References _isPC, _lastChangedGUIDisplay, Engines::NWN::Object::_name, Aurora::NWScript::Object::_tag, Common::UString::c_str(), EventMan, 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::NWN::Creature::loadClasses ( const Aurora::GFF3Struct gff,
std::vector< Class > &  classes,
uint8 hitDice 
)
staticprivate

Load the creature's classes.

Definition at line 894 of file creature.cpp.

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

Referenced by getPCListInfo(), and loadProperties().

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

◆ loadEquippedItems()

void Engines::NWN::Creature::loadEquippedItems ( const Aurora::GFF3Struct gff)
private

Definition at line 885 of file creature.cpp.

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

Referenced by loadProperties().

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

◆ loadModel()

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

◆ loadPortrait()

void Engines::NWN::Creature::loadPortrait ( const Aurora::GFF3Struct gff,
Common::UString portrait 
)
staticprivate

Load the creature's portrait.

Definition at line 872 of file creature.cpp.

References Common::UString::empty(), Aurora::TwoDAFile::getRow(), Aurora::TwoDARow::getString(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getUint(), and TwoDAReg.

Referenced by getPCListInfo(), and loadProperties().

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

◆ loadProperties()

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

◆ openPC()

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

Definition at line 1186 of file creature.cpp.

References ConfigMan, and kBICID.

Referenced by getPCListInfo(), and loadCharacter().

Here is the caller graph for this function:

◆ playAnimation() [1/2]

void Engines::NWN::Creature::playAnimation ( const Common::UString animation = "",
bool  restart = true,
float  length = 0.0f,
float  speed = 1.0f 
)
virtual

Play a creature animation.

Reimplemented from Engines::NWN::Object.

Definition at line 1121 of file creature.cpp.

References _model, and Common::UString::empty().

Referenced by playAnimation().

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

◆ playAnimation() [2/2]

void Engines::NWN::Creature::playAnimation ( Animation  animation,
bool  restart = true,
float  length = 0.0f,
float  speed = 1.0f 
)
virtual

Play a default creature animation.

Reimplemented from Engines::NWN::Object.

Definition at line 1134 of file creature.cpp.

References _model, Common::UString::c_str(), Engines::NWN::getCreatureAnimationName(), Engines::NWN::isAnimationLooping(), playAnimation(), and warning().

Here is the call graph for this function:

◆ removeAssociate()

void Engines::NWN::Creature::removeAssociate ( Creature ssociate)

Remove an associate (henchman, familiar, ...).

Definition at line 388 of file creature.cpp.

References _associates.

Referenced by addAssociate(), Engines::NWN::Functions::removeHenchman(), and ~Creature().

Here is the caller graph for this function:

◆ setAbility()

void Engines::NWN::Creature::setAbility ( Ability  ability,
uint8  score 
)

Set the creature's ability score.

Definition at line 1041 of file creature.cpp.

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

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setAppearance()

void Engines::NWN::Creature::setAppearance ( uint32  appearanceID)

Set the creature's appearance.

Definition at line 340 of file creature.cpp.

References _appearanceID.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setArea()

void Engines::NWN::Creature::setArea ( Area area)
virtual

Set the area this creature is currently in.

Reimplemented from Engines::NWN::Object.

Definition at line 372 of file creature.cpp.

References _environmentMap, _model, Common::UString::equalsIgnoreCase(), Engines::NWN::Area::getEnvironmentMap(), and Engines::NWN::Object::setArea().

Here is the call graph for this function:

◆ setColorHair()

void Engines::NWN::Creature::setColorHair ( uint32  colorHair)

Set the creature's color hair.

Definition at line 352 of file creature.cpp.

References _colorHair.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setColorSkin()

void Engines::NWN::Creature::setColorSkin ( uint32  colorSkin)

Set the creature's color skin.

Definition at line 348 of file creature.cpp.

References _colorSkin.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setColorTatto1()

void Engines::NWN::Creature::setColorTatto1 ( uint32  colorTattoo1)

Set the creature's color tattoo 1.

Definition at line 356 of file creature.cpp.

References _colorTattoo1.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setColorTatto2()

void Engines::NWN::Creature::setColorTatto2 ( uint32  colorTattoo2)

Set the creature's color tatto 2.

Definition at line 360 of file creature.cpp.

References _colorTattoo2.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setCommandable()

void Engines::NWN::Creature::setCommandable ( bool  commandable)

Set whether this creature commandable (has a modifiable action queue).

Definition at line 432 of file creature.cpp.

References _isCommandable.

Referenced by Engines::NWN::Functions::setCommandable().

Here is the caller graph for this function:

◆ setDomains()

void Engines::NWN::Creature::setDomains ( uint32  classID,
uint8  domain1,
uint8  domain2 
)

Set clerical domains.

Definition at line 270 of file creature.cpp.

References Engines::NWN::Creature::Class::domain1, Engines::NWN::Creature::Class::domain2, and findClass().

Referenced by Engines::NWN::CharGenChoices::applyChoices().

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

◆ setFeat()

void Engines::NWN::Creature::setFeat ( uint32  feat)

Append a feat to the creature.

Definition at line 1061 of file creature.cpp.

References _feats, and hasFeat().

Referenced by Engines::NWN::CharGenChoices::applyChoices().

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

◆ setGender()

void Engines::NWN::Creature::setGender ( Gender  gender)

Set the creature's gender.

Definition at line 194 of file creature.cpp.

References _gender.

Referenced by Engines::NWN::CharGenChoices::setGender().

Here is the caller graph for this function:

◆ setGoodEvil()

void Engines::NWN::Creature::setGoodEvil ( uint8  goodness)

Set the creature's good-evil alignment.

Definition at line 1007 of file creature.cpp.

References _goodEvil.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setHead()

void Engines::NWN::Creature::setHead ( uint32  headID)

Set the creature's head.

Definition at line 364 of file creature.cpp.

References _bodyParts, and kBodyPartHead.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setKnownSpell()

void Engines::NWN::Creature::setKnownSpell ( uint32  classID,
size_t  spellLevel,
uint16  spell 
)

Set a creature's known spell.

Definition at line 304 of file creature.cpp.

References findClass(), and Engines::NWN::Creature::Class::knownList.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

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

◆ setLawChaos()

void Engines::NWN::Creature::setLawChaos ( uint8  lawfulness)

Set the creature's law-chaos alignment.

Definition at line 1015 of file creature.cpp.

References _lawChaos.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setMaster()

void Engines::NWN::Creature::setMaster ( Creature master = 0)

Set the creature's master.

Definition at line 420 of file creature.cpp.

References _master.

Referenced by addAssociate().

Here is the caller graph for this function:

◆ setMemorizedSpell()

void Engines::NWN::Creature::setMemorizedSpell ( uint32  classID,
size_t  spellLevel,
uint16  spell 
)

Set a creature's memorized spell.

Definition at line 322 of file creature.cpp.

References findClass(), and Engines::NWN::Creature::Class::memorizedList.

Here is the call graph for this function:

◆ setOrientation()

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

Set the creature's orientation.

Reimplemented from Engines::NWN::Object.

Definition at line 170 of file creature.cpp.

References _model, Engines::NWN::Object::getOrientation(), and Engines::NWN::Object::setOrientation().

Referenced by load(), and loadModel().

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

◆ setPhenotype()

void Engines::NWN::Creature::setPhenotype ( uint32  phenotype)

Set the creature's phenotype.

Definition at line 344 of file creature.cpp.

References _phenotype.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setPortrait()

void Engines::NWN::Creature::setPortrait ( const Common::UString portrait)

Set the creature's portrait.

Definition at line 216 of file creature.cpp.

References _lastChangedGUIDisplay, Engines::NWN::Object::_portrait, and EventMan.

Referenced by Engines::NWN::CharGenChoices::setPortrait().

Here is the caller graph for this function:

◆ setPosition()

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

Set the creature's position.

Reimplemented from Engines::NWN::Object.

Definition at line 162 of file creature.cpp.

References _model, Engines::NWN::Object::getPosition(), and Engines::NWN::Object::setPosition().

Referenced by load(), and loadModel().

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

◆ setRace()

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

Set the creature's race.

Definition at line 209 of file creature.cpp.

References _race, error(), and Engines::NWN::kRaceInvalid.

Referenced by Engines::NWN::CharGenChoices::setRace().

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

◆ setSchool()

void Engines::NWN::Creature::setSchool ( uint32  classID,
uint8  school 
)

Set the creature's school.

Definition at line 296 of file creature.cpp.

References findClass(), and Engines::NWN::Creature::Class::school.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

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

◆ setSkillRank()

void Engines::NWN::Creature::setSkillRank ( size_t  skill,
uint8  rank 
)

Set the creature's skill rank.

Definition at line 1054 of file creature.cpp.

References _skills.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setSoundSet()

void Engines::NWN::Creature::setSoundSet ( uint32  soundSet)

Set the creature's sound set.

Definition at line 1019 of file creature.cpp.

References Engines::NWN::Object::_soundSet.

Referenced by Engines::NWN::CharGenChoices::applyChoices().

Here is the caller graph for this function:

◆ setStartingPackage()

void Engines::NWN::Creature::setStartingPackage ( uint8  package)

Set the creature's starting package.

Definition at line 254 of file creature.cpp.

References _startingPackage.

Referenced by Engines::NWN::CharGenChoices::setPackage().

Here is the caller graph for this function:

◆ show()

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

Show the creature's model.

Reimplemented from Engines::NWN::Object.

Definition at line 148 of file creature.cpp.

References _model.

◆ unloadModel()

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

Unload the creature's model.

Reimplemented from Engines::NWN::Object.

Definition at line 675 of file creature.cpp.

References _model, Engines::NWN::Object::destroyTooltip(), hide(), and Common::ScopedPtrBase< T, Deallocator >::reset().

Here is the call graph for this function:

Member Data Documentation

◆ _abilities

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

The creature's abilities.

Definition at line 345 of file creature.h.

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

◆ _age

uint32 Engines::NWN::Creature::_age
private

The creature's age.

Definition at line 337 of file creature.h.

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

◆ _appearanceID

uint32 Engines::NWN::Creature::_appearanceID
private

The creature's general appearance.

Definition at line 358 of file creature.h.

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

◆ _associates

std::list<Associate> Engines::NWN::Creature::_associates
private

The creature's associates.

Definition at line 384 of file creature.h.

Referenced by addAssociate(), getAssociate(), removeAssociate(), and ~Creature().

◆ _baseHP

int32 Engines::NWN::Creature::_baseHP
private

The creature's base maximum health points.

Definition at line 341 of file creature.h.

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

◆ _bodyParts

std::vector<BodyPart> Engines::NWN::Creature::_bodyParts
private

The creature's body parts.

Definition at line 363 of file creature.h.

Referenced by getArmorModels(), getPartModels(), init(), loadModel(), loadProperties(), and setHead().

◆ _bonusHP

int32 Engines::NWN::Creature::_bonusHP
private

The creature's bonus health points.

Definition at line 342 of file creature.h.

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

◆ _classes

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

◆ _colorCloth1

uint32 Engines::NWN::Creature::_colorCloth1
private

The 1. color of the creature's cloth armor.

Definition at line 380 of file creature.h.

Referenced by finishPLTs(), getArmorModels(), and init().

◆ _colorCloth2

uint32 Engines::NWN::Creature::_colorCloth2
private

The 2. color of the creature's cloth armor.

Definition at line 381 of file creature.h.

Referenced by finishPLTs(), getArmorModels(), and init().

◆ _colorHair

uint32 Engines::NWN::Creature::_colorHair
private

The color of the creature's hair.

Definition at line 372 of file creature.h.

Referenced by finishPLTs(), init(), loadProperties(), and setColorHair().

◆ _colorLeather1

uint32 Engines::NWN::Creature::_colorLeather1
private

The 1. color of the creature's leather armor.

Definition at line 378 of file creature.h.

Referenced by finishPLTs(), getArmorModels(), and init().

◆ _colorLeather2

uint32 Engines::NWN::Creature::_colorLeather2
private

The 2. color of the creature's leather armor.

Definition at line 379 of file creature.h.

Referenced by finishPLTs(), getArmorModels(), and init().

◆ _colorMetal1

uint32 Engines::NWN::Creature::_colorMetal1
private

The 1. color of the creature's metal armor.

Definition at line 376 of file creature.h.

Referenced by finishPLTs(), getArmorModels(), and init().

◆ _colorMetal2

uint32 Engines::NWN::Creature::_colorMetal2
private

The 2. color of the creature's metal armor.

Definition at line 377 of file creature.h.

Referenced by finishPLTs(), getArmorModels(), and init().

◆ _colorSkin

uint32 Engines::NWN::Creature::_colorSkin
private

The color of the creature's skin.

Definition at line 371 of file creature.h.

Referenced by finishPLTs(), init(), loadProperties(), and setColorSkin().

◆ _colorTattoo1

uint32 Engines::NWN::Creature::_colorTattoo1
private

The 1. color of the creature's tattoo.

Definition at line 373 of file creature.h.

Referenced by finishPLTs(), init(), loadProperties(), and setColorTatto1().

◆ _colorTattoo2

uint32 Engines::NWN::Creature::_colorTattoo2
private

The 2. color of the creature's tattoo.

Definition at line 374 of file creature.h.

Referenced by finishPLTs(), init(), loadProperties(), and setColorTatto2().

◆ _currentHP

int32 Engines::NWN::Creature::_currentHP
private

The creature's current health points.

Definition at line 343 of file creature.h.

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

◆ _deity

Common::UString Engines::NWN::Creature::_deity
private

The creature's deity.

Definition at line 353 of file creature.h.

Referenced by getDeity(), and loadProperties().

◆ _environmentMap

Common::UString Engines::NWN::Creature::_environmentMap
private

The environment map override to use on the model.

Definition at line 369 of file creature.h.

Referenced by loadModel(), and setArea().

◆ _equippedItems

Common::PtrVector<Item> Engines::NWN::Creature::_equippedItems
private

The creature's equipped items.

Definition at line 365 of file creature.h.

Referenced by addEquippedItem(), getArmorModels(), and loadEquippedItems().

◆ _feats

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

The creature's feats.

Definition at line 349 of file creature.h.

Referenced by hasFeat(), loadProperties(), and setFeat().

◆ _firstName

Common::UString Engines::NWN::Creature::_firstName
private

The creature's first name.

Definition at line 326 of file creature.h.

Referenced by getFirstName(), and loadProperties().

◆ _gender

Gender Engines::NWN::Creature::_gender
private

The creature's gender.

Definition at line 329 of file creature.h.

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

◆ _goodEvil

uint8 Engines::NWN::Creature::_goodEvil
private

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

Definition at line 355 of file creature.h.

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

◆ _hitDice

uint8 Engines::NWN::Creature::_hitDice
private

The creature's hit dice.

Definition at line 351 of file creature.h.

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

◆ _isCommandable

bool Engines::NWN::Creature::_isCommandable
private

Is the creature commandable (has a modifiable action queue)?

Definition at line 387 of file creature.h.

Referenced by init(), isCommandable(), and setCommandable().

◆ _isDM

bool Engines::NWN::Creature::_isDM
private

Is the creature a DM?

Definition at line 335 of file creature.h.

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

◆ _isPC

bool Engines::NWN::Creature::_isPC
private

Is the creature a PC?

Definition at line 334 of file creature.h.

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

◆ _lastChangedGUIDisplay

uint32 Engines::NWN::Creature::_lastChangedGUIDisplay
private

The time a GUI relevant property was changed last.

Definition at line 324 of file creature.h.

Referenced by init(), lastChangedGUIDisplay(), load(), loadCharacter(), and setPortrait().

◆ _lastName

Common::UString Engines::NWN::Creature::_lastName
private

The creature's last name.

Definition at line 327 of file creature.h.

Referenced by getLastName(), and loadProperties().

◆ _lawChaos

uint8 Engines::NWN::Creature::_lawChaos
private

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

Definition at line 356 of file creature.h.

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

◆ _master

Creature* Engines::NWN::Creature::_master
private

The creature's master.

Definition at line 383 of file creature.h.

Referenced by getMaster(), init(), setMaster(), and ~Creature().

◆ _model

Common::ScopedPtr<Graphics::Aurora::Model> Engines::NWN::Creature::_model
private

The creature's model.

Definition at line 389 of file creature.h.

Referenced by createTooltip(), hide(), highlight(), loadModel(), playAnimation(), setArea(), setOrientation(), setPosition(), show(), and unloadModel().

◆ _partsSuperModelName

Common::UString Engines::NWN::Creature::_partsSuperModelName
private

The supermodel used for parts-based creatures.

Definition at line 367 of file creature.h.

Referenced by getPartModels(), and loadModel().

◆ _phenotype

uint32 Engines::NWN::Creature::_phenotype
private

The creature's phenotype.

Definition at line 359 of file creature.h.

Referenced by getPartModels(), init(), loadProperties(), and setPhenotype().

◆ _race

uint32 Engines::NWN::Creature::_race
private

The creature's race.

Definition at line 330 of file creature.h.

Referenced by getConvRace(), getConvrace(), getConvRaces(), getPartModels(), getRace(), init(), loadProperties(), and setRace().

◆ _skills

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

The creature's skills.

Definition at line 348 of file creature.h.

Referenced by getSkillRank(), init(), loadProperties(), and setSkillRank().

◆ _startingPackage

uint8 Engines::NWN::Creature::_startingPackage
private

The package chosen at creature's creation.

Definition at line 361 of file creature.h.

Referenced by getStartingPackage(), init(), loadProperties(), and setStartingPackage().

◆ _subRace

Common::UString Engines::NWN::Creature::_subRace
private

The creature's subrace.

Definition at line 332 of file creature.h.

Referenced by getSubRace(), and loadProperties().

◆ _xp

uint32 Engines::NWN::Creature::_xp
private

The creature's experience.

Definition at line 339 of file creature.h.

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


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