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

#include <creature.h>

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

Classes

struct  ClassLevel
 A class level. More...
 
struct  PartModels
 Parts of a creature's body. 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 &resRef)
 Load from a creature template. More...
 
 ~Creature ()
 
void createFakePC ()
 Create a fake player character creature for testing purposes. More...
 
void createPC (const CharacterGenerationInfo &info)
 Create a player character creature from a character info class. More...
 
void show ()
 Show the creature's model. More...
 
void hide ()
 Hide the creature's model. More...
 
bool isVisible () const
 Is the creature's model visible? More...
 
bool isPC () const
 Is the creature a player character? More...
 
bool isPartyMember () const
 
Gender getGender () const
 Get the gender of the creature. More...
 
int getLevel (const Class &c) const
 Get the level of the creature regarding a specific class. More...
 
Race getRace () const
 Get the race of the creature. More...
 
SubRace getSubRace () const
 Get the subrace of the creature. More...
 
int getLevelByPosition (int position) const
 Get the level by its position in the level vector. More...
 
Class getClassByPosition (int position) const
 Get the class by its position in the level vector. More...
 
float getWalkRate () const
 
float getRunRate () const
 
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...
 
const Common::UStringgetConversation () const
 
float getCameraHeight () const
 
void equipItem (Common::UString tag, EquipmentSlot slot)
 
InventorygetInventory ()
 
ItemgetEquipedItem (EquipmentSlot slot) const
 
void playDefaultAnimation ()
 
void playDefaultHeadAnimation ()
 
void playAnimation (const Common::UString &anim, bool restart=true, float length=0.0f, float speed=1.0f)
 
void playHeadAnimation (const Common::UString &anim, bool restart=true, float length=0.0f, float speed=1.0f)
 
void clearActionQueue ()
 
void enqueueAction (const Action &action)
 Append action to the character's action queue. More...
 
const ActionpeekAction () const
 
const ActiondequeueAction ()
 
- Public Member Functions inherited from Engines::KotOR::Object
 Object (ObjectType type=kObjectTypeInvalid)
 
virtual ~Object ()
 
ObjectType getType () const
 Return the exact type of the object. More...
 
virtual void hideSoft ()
 Hide the object's model(s) if applicable. 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...
 
void setMaxHitPoints (int maxHP)
 Set the maximum hit points for the objects. More...
 
int getMaxHitPoints ()
 Get the maximum hit points for the objects. More...
 
void setCurrentHitPoints (int hitpoints)
 Set the current hitpoints. More...
 
int getCurrentHitPoints ()
 Return the objects current hitpoints. More...
 
void setMinOneHitPoints (bool enabled)
 Set if the object has a minimum of one hp. More...
 
bool getMinOneHitPoints () const
 Get if the object has a minimum of one hp. 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...
 
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...
 
void makeLookAt (float x, float y)
 
void makeLookAt (Object *target)
 
RoomgetRoom ()
 Get a room the object is in. More...
 
void setRoom (Room *room)
 Set a room the object is in. 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::KotOR::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 Common::UString getBodyMeshString (Gender gender, Class charClass, char state='b')
 Generate a string for the body mesh. More...
 
static Common::UString getHeadMeshString (Gender gender, Skin skin, uint32 faceId)
 Generate a string for the head mesh. More...
 
- Static Public Member Functions inherited from Engines::KotOR::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 Member Functions

void init ()
 
void load (const Aurora::GFF3Struct &creature)
 
void load (const Aurora::GFF3Struct &instance, const Aurora::GFF3Struct *blueprint)
 
void loadProperties (const Aurora::GFF3Struct &gff)
 
void loadPortrait (const Aurora::GFF3Struct &gff)
 
void loadAppearance ()
 
void getPartModels (PartModels &parts, uint32 state='a')
 
void getPartModelsPC (PartModels &parts, uint32 state, uint8 textureVariation)
 
void loadBody (PartModels &parts)
 
void loadHead (PartModels &parts)
 
void loadMovementRate (const Common::UString &name)
 
void changeBody ()
 
void changeWeapon (EquipmentSlot slot)
 
void setDefaultAnimations ()
 

Private Attributes

bool _isPC
 Is the creature a PC? More...
 
uint32 _appearance
 The creature's general appearance. More...
 
Race _race
 The race of the creature. More...
 
SubRace _subRace
 The subrace of the creature. More...
 
Gender _gender
 
std::vector< ClassLevel_levels
 The levels of the creature. More...
 
Skin _skin
 The skin type of the creature. More...
 
uint8 _face
 The face of the creature. More...
 
Common::UString _modelType
 
Common::ScopedPtr< Graphics::Aurora::Model_model
 The creature's model. More...
 
Graphics::Aurora::Model_headModel
 The creature's head model. More...
 
bool _visible
 
Common::UString _conversation
 
Inventory _inventory
 
Common::PtrMap< EquipmentSlot, Item_equipment
 
std::vector< Action_actionQueue
 
float _walkRate
 
float _runRate
 

Additional Inherited Members

- Protected Member Functions inherited from Engines::KotOR::ScriptContainer
void clearScripts ()
 
void readScripts (const Aurora::GFF3Struct &gff, bool clear=true)
 
void readScripts (const ScriptContainer &container)
 
- Protected Attributes inherited from Engines::KotOR::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...
 
bool _static
 Is the object static? More...
 
bool _usable
 Is the object usable? More...
 
int _currentHitPoints
 The current hitpoints of the object. More...
 
int _maxHitPoints
 The maximum hitpoints of the object. More...
 
bool _minOneHitPoint
 If the object should have at least one hitpoint. More...
 
std::list< uint32_ids
 The object's model IDs. 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...
 
Room_room
 Room the object is in. More...
 
- Protected Attributes inherited from Aurora::NWScript::Object
uint32 _id
 
Common::UString _tag
 

Detailed Description

Definition at line 48 of file creature.h.

Constructor & Destructor Documentation

◆ Creature() [1/3]

Engines::KotOR::Creature::Creature ( )

Create a dummy creature instance.

Not playable as it is.

Definition at line 75 of file creature.cpp.

References init().

Here is the call graph for this function:

◆ Creature() [2/3]

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

Load from a creature instance.

Definition at line 66 of file creature.cpp.

References init(), and load().

Here is the call graph for this function:

◆ Creature() [3/3]

Engines::KotOR::Creature::Creature ( const Common::UString resRef)

Load from a creature template.

Definition at line 52 of file creature.cpp.

References Common::UString::c_str(), init(), Aurora::kFileTypeUTC, load(), and Engines::loadOptionalGFF3().

Here is the call graph for this function:

◆ ~Creature()

Engines::KotOR::Creature::~Creature ( )

Definition at line 83 of file creature.cpp.

Member Function Documentation

◆ changeBody()

void Engines::KotOR::Creature::changeBody ( )
private

◆ changeWeapon()

void Engines::KotOR::Creature::changeWeapon ( EquipmentSlot  slot)
private

Definition at line 501 of file creature.cpp.

References _equipment, _model, Engines::KotOR::Item::getModelName(), Engines::KotOR::kEquipmentSlotWeaponL, Engines::KotOR::kEquipmentSlotWeaponR, and Engines::loadModelObject().

Referenced by changeBody(), and equipItem().

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

◆ clearActionQueue()

void Engines::KotOR::Creature::clearActionQueue ( )

Definition at line 768 of file creature.cpp.

References _actionQueue.

Referenced by Engines::KotOR::Functions::actionMoveToObject(), and Engines::KotOR::Functions::clearAllActions().

Here is the caller graph for this function:

◆ click()

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

The creature was clicked.

Reimplemented from Engines::KotOR::Object.

Definition at line 585 of file creature.cpp.

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

Here is the call graph for this function:

◆ createFakePC()

void Engines::KotOR::Creature::createFakePC ( )

Create a fake player character creature for testing purposes.

Definition at line 528 of file creature.cpp.

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

Here is the call graph for this function:

◆ createPC()

void Engines::KotOR::Creature::createPC ( const CharacterGenerationInfo info)

◆ dequeueAction()

const Action * Engines::KotOR::Creature::dequeueAction ( )

Definition at line 783 of file creature.cpp.

References _actionQueue.

Referenced by Engines::KotOR::ActionExecutor::executeMoveToPoint().

Here is the caller graph for this function:

◆ enqueueAction()

void Engines::KotOR::Creature::enqueueAction ( const Action action)

Append action to the character's action queue.

Definition at line 772 of file creature.cpp.

References _actionQueue.

Referenced by Engines::KotOR::Functions::actionMoveToObject().

Here is the caller graph for this function:

◆ enter()

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

The cursor entered the creature.

Reimplemented from Engines::KotOR::Object.

Definition at line 571 of file creature.cpp.

References CursorMan, and highlight().

Here is the call graph for this function:

◆ equipItem()

void Engines::KotOR::Creature::equipItem ( Common::UString  tag,
EquipmentSlot  slot 
)

◆ getBodyMeshString()

Common::UString Engines::KotOR::Creature::getBodyMeshString ( Gender  gender,
Class  charClass,
char  state = 'b' 
)
static

Generate a string for the body mesh.

Definition at line 696 of file creature.cpp.

References Engines::KotOR::kClassScoundrel, Engines::KotOR::kClassScout, Engines::KotOR::kClassSoldier, Engines::KotOR::kGenderFemale, and Engines::KotOR::kGenderMale.

Referenced by Engines::KotOR::CharacterGenerationInfo::getModel(), and getPartModelsPC().

Here is the caller graph for this function:

◆ getCameraHeight()

float Engines::KotOR::Creature::getCameraHeight ( ) const

Definition at line 601 of file creature.cpp.

References _model, and Graphics::Aurora::ModelNode::getPosition().

Here is the call graph for this function:

◆ getClassByPosition()

Class Engines::KotOR::Creature::getClassByPosition ( int  position) const

Get the class by its position in the level vector.

Definition at line 153 of file creature.cpp.

References _levels, and Engines::KotOR::kClassInvalid.

Referenced by Engines::KotOR::Functions::getClassByPosition(), and getPartModelsPC().

Here is the caller graph for this function:

◆ getConversation()

const Common::UString & Engines::KotOR::Creature::getConversation ( ) const

Definition at line 597 of file creature.cpp.

References _conversation.

Referenced by Engines::KotOR::Module::clickObject(), and Engines::KotOR::Module::startConversation().

Here is the caller graph for this function:

◆ getEquipedItem()

Item * Engines::KotOR::Creature::getEquipedItem ( EquipmentSlot  slot) const

Definition at line 647 of file creature.cpp.

References _equipment.

Referenced by Engines::KotOR::MenuEquipment::getEquipedItemIcon(), and Engines::KotOR::Functions::getItemInSlot().

Here is the caller graph for this function:

◆ getGender()

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

Get the gender of the creature.

Definition at line 133 of file creature.cpp.

References _gender.

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

Here is the caller graph for this function:

◆ getHeadMeshString()

Common::UString Engines::KotOR::Creature::getHeadMeshString ( Gender  gender,
Skin  skin,
uint32  faceId 
)
static

Generate a string for the head mesh.

Definition at line 731 of file creature.cpp.

References Common::composeString(), Engines::KotOR::kGenderFemale, Engines::KotOR::kGenderMale, Engines::KotOR::kSkinA, Engines::KotOR::kSkinB, and Engines::KotOR::kSkinC.

Referenced by Engines::KotOR::CharacterGenerationInfo::getModel(), getPartModelsPC(), and Engines::KotOR::CharacterGenerationInfo::recreateHead().

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

◆ getInventory()

Inventory & Engines::KotOR::Creature::getInventory ( )

◆ getLevel()

int Engines::KotOR::Creature::getLevel ( const Class c) const

Get the level of the creature regarding a specific class.

Definition at line 137 of file creature.cpp.

References _levels.

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

Here is the caller graph for this function:

◆ getLevelByPosition()

int Engines::KotOR::Creature::getLevelByPosition ( int  position) const

Get the level by its position in the level vector.

Definition at line 146 of file creature.cpp.

References _levels.

Referenced by Engines::KotOR::Functions::getLevelByPosition().

Here is the caller graph for this function:

◆ getPartModels()

void Engines::KotOR::Creature::getPartModels ( PartModels parts,
uint32  state = 'a' 
)
private

◆ getPartModelsPC()

void Engines::KotOR::Creature::getPartModelsPC ( PartModels parts,
uint32  state,
uint8  textureVariation 
)
private

◆ getRace()

Race Engines::KotOR::Creature::getRace ( ) const

Get the race of the creature.

Definition at line 160 of file creature.cpp.

References _race.

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

Here is the caller graph for this function:

◆ getRunRate()

float Engines::KotOR::Creature::getRunRate ( ) const

Definition at line 172 of file creature.cpp.

References _runRate.

Referenced by Engines::KotOR::ActionExecutor::moveTo().

Here is the caller graph for this function:

◆ getSubRace()

SubRace Engines::KotOR::Creature::getSubRace ( ) const

Get the subrace of the creature.

Definition at line 164 of file creature.cpp.

References _subRace.

Referenced by Engines::KotOR::Functions::getSubRace().

Here is the caller graph for this function:

◆ getWalkRate()

float Engines::KotOR::Creature::getWalkRate ( ) const

Definition at line 168 of file creature.cpp.

References _walkRate.

Referenced by Engines::KotOR::ActionExecutor::moveTo().

Here is the caller graph for this function:

◆ hide()

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

Hide the creature's model.

Reimplemented from Engines::KotOR::Object.

Definition at line 111 of file creature.cpp.

References _model, and _visible.

◆ highlight()

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

(Un)Highlight the creature.

Reimplemented from Engines::KotOR::Object.

Definition at line 581 of file creature.cpp.

References _model.

Referenced by enter(), and leave().

Here is the caller graph for this function:

◆ init()

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

◆ isPartyMember()

bool Engines::KotOR::Creature::isPartyMember ( ) const

Definition at line 129 of file creature.cpp.

References _isPC.

Referenced by Engines::KotOR::ObjectContainer::toPartyMember().

Here is the caller graph for this function:

◆ isPC()

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

Is the creature a player character?

Definition at line 125 of file creature.cpp.

References _isPC.

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

Here is the caller graph for this function:

◆ isVisible()

bool Engines::KotOR::Creature::isVisible ( ) const
virtual

Is the creature's model visible?

Reimplemented from Engines::KotOR::Object.

Definition at line 121 of file creature.cpp.

References _visible.

◆ leave()

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

The cursor left the creature.

Reimplemented from Engines::KotOR::Object.

Definition at line 576 of file creature.cpp.

References CursorMan, and highlight().

Here is the call graph for this function:

◆ load() [1/2]

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

Definition at line 192 of file creature.cpp.

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

Referenced by Creature().

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

◆ load() [2/2]

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

◆ loadAppearance()

void Engines::KotOR::Creature::loadAppearance ( )
private

Definition at line 309 of file creature.cpp.

References _modelType, Aurora::NWScript::Object::_tag, Engines::KotOR::Creature::PartModels::body, Common::UString::c_str(), Common::UString::empty(), getPartModels(), loadBody(), loadHead(), setDefaultAnimations(), and warning().

Referenced by load().

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

◆ loadBody()

void Engines::KotOR::Creature::loadBody ( PartModels parts)
private

◆ loadHead()

void Engines::KotOR::Creature::loadHead ( PartModels parts)
private

Definition at line 445 of file creature.cpp.

References _headModel, _model, Common::UString::empty(), Engines::KotOR::Creature::PartModels::head, and Engines::loadModelObject().

Referenced by changeBody(), createPC(), and loadAppearance().

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

◆ loadMovementRate()

void Engines::KotOR::Creature::loadMovementRate ( const Common::UString name)
private

Definition at line 456 of file creature.cpp.

References _runRate, _walkRate, Aurora::TwoDARow::getFloat(), and TwoDAReg.

Referenced by getPartModels(), and getPartModelsPC().

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

◆ loadPortrait()

void Engines::KotOR::Creature::loadPortrait ( const Aurora::GFF3Struct gff)
private

Definition at line 292 of file creature.cpp.

References Engines::KotOR::Object::_portrait, Common::UString::beginsWith(), Common::UString::empty(), Aurora::TwoDAFile::getRow(), Aurora::TwoDARow::getString(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getUint(), and TwoDAReg.

Referenced by loadProperties().

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

◆ loadProperties()

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

◆ peekAction()

const Action * Engines::KotOR::Creature::peekAction ( ) const

Definition at line 776 of file creature.cpp.

References _actionQueue.

Referenced by Engines::KotOR::ActionExecutor::executeActions().

Here is the caller graph for this function:

◆ playAnimation()

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

Reimplemented from Engines::KotOR::Object.

Definition at line 674 of file creature.cpp.

References _model.

Referenced by Engines::KotOR::ActionExecutor::moveTo(), and Engines::KotOR::DialogGUI::playTalkAnimations().

Here is the caller graph for this function:

◆ playDefaultAnimation()

void Engines::KotOR::Creature::playDefaultAnimation ( )

Definition at line 652 of file creature.cpp.

References _model.

Referenced by Engines::KotOR::ActionExecutor::moveTo(), and Engines::KotOR::DialogGUI::playDefaultAnimations().

Here is the caller graph for this function:

◆ playDefaultHeadAnimation()

void Engines::KotOR::Creature::playDefaultHeadAnimation ( )

◆ playHeadAnimation()

void Engines::KotOR::Creature::playHeadAnimation ( const Common::UString anim,
bool  restart = true,
float  length = 0.0f,
float  speed = 1.0f 
)

◆ setDefaultAnimations()

void Engines::KotOR::Creature::setDefaultAnimations ( )
private

Definition at line 790 of file creature.cpp.

References _model, and _modelType.

Referenced by changeBody(), createPC(), and loadAppearance().

Here is the caller graph for this function:

◆ setOrientation()

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

Set the creature's orientation.

Reimplemented from Engines::KotOR::Object.

Definition at line 184 of file creature.cpp.

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

Referenced by load().

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

◆ setPosition()

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

Set the creature's position.

Reimplemented from Engines::KotOR::Object.

Definition at line 176 of file creature.cpp.

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

Referenced by Engines::KotOR::Module::addToParty(), Engines::KotOR::SavedGame::getPC(), load(), and Engines::KotOR::ActionExecutor::moveTo().

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

◆ show()

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

Show the creature's model.

Reimplemented from Engines::KotOR::Object.

Definition at line 101 of file creature.cpp.

References _model, and _visible.

Referenced by Engines::KotOR::Module::addToParty().

Here is the caller graph for this function:

Member Data Documentation

◆ _actionQueue

std::vector<Action> Engines::KotOR::Creature::_actionQueue
private

Definition at line 187 of file creature.h.

Referenced by clearActionQueue(), dequeueAction(), enqueueAction(), and peekAction().

◆ _appearance

uint32 Engines::KotOR::Creature::_appearance
private

The creature's general appearance.

Definition at line 167 of file creature.h.

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

◆ _conversation

Common::UString Engines::KotOR::Creature::_conversation
private

Definition at line 182 of file creature.h.

Referenced by getConversation(), and loadProperties().

◆ _equipment

Common::PtrMap<EquipmentSlot, Item> Engines::KotOR::Creature::_equipment
private

Definition at line 185 of file creature.h.

Referenced by changeBody(), changeWeapon(), equipItem(), and getEquipedItem().

◆ _face

uint8 Engines::KotOR::Creature::_face
private

The face of the creature.

Definition at line 175 of file creature.h.

Referenced by createPC(), getPartModelsPC(), and init().

◆ _gender

Gender Engines::KotOR::Creature::_gender
private

Definition at line 172 of file creature.h.

Referenced by createPC(), getGender(), getPartModelsPC(), init(), and loadProperties().

◆ _headModel

Graphics::Aurora::Model* Engines::KotOR::Creature::_headModel
private

The creature's head model.

Definition at line 179 of file creature.h.

Referenced by init(), and loadHead().

◆ _inventory

Inventory Engines::KotOR::Creature::_inventory
private

Definition at line 184 of file creature.h.

Referenced by equipItem(), and getInventory().

◆ _isPC

bool Engines::KotOR::Creature::_isPC
private

Is the creature a PC?

Definition at line 165 of file creature.h.

Referenced by createFakePC(), createPC(), init(), isPartyMember(), isPC(), and loadProperties().

◆ _levels

std::vector<ClassLevel> Engines::KotOR::Creature::_levels
private

The levels of the creature.

Definition at line 173 of file creature.h.

Referenced by createPC(), getClassByPosition(), getLevel(), getLevelByPosition(), getPartModelsPC(), and loadProperties().

◆ _model

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

◆ _modelType

Common::UString Engines::KotOR::Creature::_modelType
private

◆ _race

Race Engines::KotOR::Creature::_race
private

The race of the creature.

Definition at line 169 of file creature.h.

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

◆ _runRate

float Engines::KotOR::Creature::_runRate
private

Definition at line 190 of file creature.h.

Referenced by getRunRate(), and loadMovementRate().

◆ _skin

Skin Engines::KotOR::Creature::_skin
private

The skin type of the creature.

Definition at line 174 of file creature.h.

Referenced by createPC(), getPartModelsPC(), and init().

◆ _subRace

SubRace Engines::KotOR::Creature::_subRace
private

The subrace of the creature.

Definition at line 170 of file creature.h.

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

◆ _visible

bool Engines::KotOR::Creature::_visible
private

Definition at line 180 of file creature.h.

Referenced by changeBody(), hide(), init(), isVisible(), and show().

◆ _walkRate

float Engines::KotOR::Creature::_walkRate
private

Definition at line 189 of file creature.h.

Referenced by getWalkRate(), and loadMovementRate().


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