|
xoreos
0.0.5
|
#include <creature.h>


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::UString & | getConversation () const |
| float | getCameraHeight () const |
| void | equipItem (Common::UString tag, EquipmentSlot slot) |
| Inventory & | getInventory () |
| Item * | getEquipedItem (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 Action * | peekAction () const |
| const Action * | dequeueAction () |
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::UString & | getName () const |
| Return the object's name. More... | |
| const Common::UString & | getDescription () const |
| Return the object's description. More... | |
| const Common::UString & | getPortrait () 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) |
| Room * | getRoom () |
| 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::UString & | getTag () const |
Public Member Functions inherited from Aurora::NWScript::VariableContainer | |
| VariableContainer () | |
| virtual | ~VariableContainer () |
| bool | hasVariable (const Common::UString &var) const |
| Variable & | getVariable (const Common::UString &var, Type type=kTypeVoid) |
| const Variable & | getVariable (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::UString & | getScript (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 |
Definition at line 48 of file creature.h.
| Engines::KotOR::Creature::Creature | ( | ) |
Create a dummy creature instance.
Not playable as it is.
Definition at line 75 of file creature.cpp.
References init().

| 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().

| 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().

| Engines::KotOR::Creature::~Creature | ( | ) |
Definition at line 83 of file creature.cpp.
|
private |
Definition at line 463 of file creature.cpp.
References _equipment, _model, _visible, changeWeapon(), Engines::KotOR::Item::getBodyVariation(), Engines::KotOR::Object::getOrientation(), getPartModelsPC(), Engines::KotOR::Object::getPosition(), Engines::KotOR::Item::getTextureVariation(), Engines::KotOR::kEquipmentSlotBody, Engines::KotOR::kEquipmentSlotWeaponL, Engines::KotOR::kEquipmentSlotWeaponR, loadBody(), loadHead(), and setDefaultAnimations().
Referenced by equipItem().


|
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().


| 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().

|
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().

| 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().

| void Engines::KotOR::Creature::createPC | ( | const CharacterGenerationInfo & | info | ) |
Create a player character creature from a character info class.
Definition at line 535 of file creature.cpp.
References _face, _gender, _isPC, _levels, Engines::KotOR::Object::_name, Engines::KotOR::Object::_portrait, _race, _skin, _subRace, getPartModelsPC(), info(), Engines::KotOR::kGenderFemale, Engines::KotOR::kGenderMale, Engines::KotOR::kRaceHuman, Engines::KotOR::kSubRaceNone, loadBody(), loadHead(), Engines::KotOR::Creature::PartModels::portrait, and setDefaultAnimations().

| const Action * Engines::KotOR::Creature::dequeueAction | ( | ) |
Definition at line 783 of file creature.cpp.
References _actionQueue.
Referenced by Engines::KotOR::ActionExecutor::executeMoveToPoint().

| 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().

|
virtual |
The cursor entered the creature.
Reimplemented from Engines::KotOR::Object.
Definition at line 571 of file creature.cpp.
References CursorMan, and highlight().

| void Engines::KotOR::Creature::equipItem | ( | Common::UString | tag, |
| EquipmentSlot | slot | ||
| ) |
Definition at line 614 of file creature.cpp.
References _equipment, _inventory, Common::StackException::add(), Engines::KotOR::Inventory::addItem(), Common::UString::c_str(), changeBody(), changeWeapon(), Common::UString::empty(), Engines::KotOR::kEquipmentSlotBody, Engines::KotOR::kEquipmentSlotWeaponL, Engines::KotOR::kEquipmentSlotWeaponR, Common::printException(), and Engines::KotOR::Inventory::removeItem().
Referenced by Engines::KotOR::MenuEquipment::callbackActive().


|
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().

| float Engines::KotOR::Creature::getCameraHeight | ( | ) | const |
Definition at line 601 of file creature.cpp.
References _model, and Graphics::Aurora::ModelNode::getPosition().

| 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().

| 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().

| 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().

| 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().

|
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().


| Inventory & Engines::KotOR::Creature::getInventory | ( | ) |
Definition at line 643 of file creature.cpp.
References _inventory.
Referenced by Engines::KotOR::Module::addItemToActiveObject(), Engines::KotOR::Functions::createItemOnObject(), and Engines::KotOR::MenuEquipment::fillEquipableItemsList().

| 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().

| 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().

|
private |
Definition at line 326 of file creature.cpp.
References _appearance, _modelType, Common::UString::beginsWith(), Engines::KotOR::Creature::PartModels::body, Engines::KotOR::Creature::PartModels::bodyTexture, Aurora::TwoDARow::getInt(), Aurora::TwoDAFile::getRow(), Aurora::TwoDARow::getString(), Engines::KotOR::Creature::PartModels::head, loadMovementRate(), and TwoDAReg.
Referenced by loadAppearance().


|
private |
Definition at line 358 of file creature.cpp.
References _face, _gender, _levels, _skin, Engines::KotOR::Creature::PartModels::body, Engines::KotOR::Creature::PartModels::bodyTexture, Common::UString::format(), getBodyMeshString(), getClassByPosition(), getHeadMeshString(), Engines::KotOR::Creature::PartModels::head, Engines::KotOR::kClassScoundrel, Engines::KotOR::kClassScout, Engines::KotOR::kClassSoldier, Engines::KotOR::kGenderFemale, Engines::KotOR::kGenderMale, Engines::KotOR::kSkinA, Engines::KotOR::kSkinB, loadMovementRate(), Engines::KotOR::Creature::PartModels::portrait, and Common::UString::replaceAll().
Referenced by changeBody(), and createPC().


| 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().

| float Engines::KotOR::Creature::getRunRate | ( | ) | const |
Definition at line 172 of file creature.cpp.
References _runRate.
Referenced by Engines::KotOR::ActionExecutor::moveTo().

| 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().

| float Engines::KotOR::Creature::getWalkRate | ( | ) | const |
Definition at line 168 of file creature.cpp.
References _walkRate.
Referenced by Engines::KotOR::ActionExecutor::moveTo().

|
virtual |
Hide the creature's model.
Reimplemented from Engines::KotOR::Object.
Definition at line 111 of file creature.cpp.
|
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().

|
private |
Definition at line 86 of file creature.cpp.
References _appearance, _face, _gender, _headModel, _isPC, _race, _skin, _subRace, _visible, Aurora::kFieldIDInvalid, Engines::KotOR::kGenderNone, Engines::KotOR::kRaceUnknown, Engines::KotOR::kSkinMAX, and Engines::KotOR::kSubRaceNone.
Referenced by Creature().

| bool Engines::KotOR::Creature::isPartyMember | ( | ) | const |
Definition at line 129 of file creature.cpp.
References _isPC.
Referenced by Engines::KotOR::ObjectContainer::toPartyMember().

| 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().

|
virtual |
Is the creature's model visible?
Reimplemented from Engines::KotOR::Object.
Definition at line 121 of file creature.cpp.
References _visible.
|
virtual |
The cursor left the creature.
Reimplemented from Engines::KotOR::Object.
Definition at line 576 of file creature.cpp.
References CursorMan, and highlight().

|
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().


|
private |
Definition at line 205 of file creature.cpp.
References _appearance, Aurora::GFF3Struct::getDouble(), Aurora::kFieldIDInvalid, loadAppearance(), loadProperties(), Common::rad2deg(), setOrientation(), and setPosition().

|
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().


|
private |
Definition at line 425 of file creature.cpp.
References Engines::KotOR::Object::_ids, _model, _modelType, Aurora::NWScript::Object::_tag, Engines::KotOR::Creature::PartModels::body, Engines::KotOR::Creature::PartModels::bodyTexture, Engines::KotOR::Object::isClickable(), Graphics::Aurora::kAnimationChannelHead, Engines::loadModelObject(), Common::ScopedPtrBase< T, Deallocator >::reset(), and Common::UString::stricmp().
Referenced by changeBody(), createPC(), and loadAppearance().


|
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().


|
private |
Definition at line 456 of file creature.cpp.
References _runRate, _walkRate, Aurora::TwoDARow::getFloat(), and TwoDAReg.
Referenced by getPartModels(), and getPartModelsPC().


|
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().


|
private |
Definition at line 234 of file creature.cpp.
References _appearance, _conversation, Engines::KotOR::Object::_currentHitPoints, Engines::KotOR::Object::_description, _gender, _isPC, _levels, Engines::KotOR::Object::_maxHitPoints, Engines::KotOR::Object::_minOneHitPoint, Engines::KotOR::Object::_name, _race, Engines::KotOR::Object::_static, _subRace, Aurora::NWScript::Object::_tag, Engines::KotOR::Object::_usable, Engines::KotOR::Creature::ClassLevel::characterClass, Aurora::GFF3Struct::getBool(), Aurora::GFF3Struct::getList(), Aurora::GFF3Struct::getSint(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getUint(), Aurora::GFF3Struct::hasField(), Engines::KotOR::Creature::ClassLevel::level, loadPortrait(), and Engines::KotOR::ScriptContainer::readScripts().
Referenced by load().


| const Action * Engines::KotOR::Creature::peekAction | ( | ) | const |
Definition at line 776 of file creature.cpp.
References _actionQueue.
Referenced by Engines::KotOR::ActionExecutor::executeActions().

|
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().

| 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().

| void Engines::KotOR::Creature::playDefaultHeadAnimation | ( | ) |
Definition at line 657 of file creature.cpp.
References _model, _modelType, Graphics::Aurora::Model::getAnimationChannel(), Graphics::Aurora::kAnimationChannelAll, Graphics::Aurora::kAnimationChannelHead, and Graphics::Aurora::AnimationChannel::playDefaultAnimation().
Referenced by Engines::KotOR::Module::playAnimationOnActiveObject(), and Engines::KotOR::DialogGUI::playDefaultAnimations().


| void Engines::KotOR::Creature::playHeadAnimation | ( | const Common::UString & | anim, |
| bool | restart = true, |
||
| float | length = 0.0f, |
||
| float | speed = 1.0f |
||
| ) |
Definition at line 679 of file creature.cpp.
References _model, _modelType, Graphics::Aurora::Model::getAnimationChannel(), Graphics::Aurora::kAnimationChannelAll, Graphics::Aurora::kAnimationChannelHead, and Graphics::Aurora::AnimationChannel::playAnimation().
Referenced by Engines::KotOR::Module::playAnimationOnActiveObject(), and Engines::KotOR::DialogGUI::playTalkAnimations().


|
private |
Definition at line 790 of file creature.cpp.
References _model, and _modelType.
Referenced by changeBody(), createPC(), and loadAppearance().

|
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().


|
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().


|
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().

|
private |
Definition at line 187 of file creature.h.
Referenced by clearActionQueue(), dequeueAction(), enqueueAction(), and peekAction().
|
private |
The creature's general appearance.
Definition at line 167 of file creature.h.
Referenced by getPartModels(), init(), load(), and loadProperties().
|
private |
Definition at line 182 of file creature.h.
Referenced by getConversation(), and loadProperties().
|
private |
Definition at line 185 of file creature.h.
Referenced by changeBody(), changeWeapon(), equipItem(), and getEquipedItem().
|
private |
The face of the creature.
Definition at line 175 of file creature.h.
Referenced by createPC(), getPartModelsPC(), and init().
|
private |
Definition at line 172 of file creature.h.
Referenced by createPC(), getGender(), getPartModelsPC(), init(), and loadProperties().
|
private |
The creature's head model.
Definition at line 179 of file creature.h.
Referenced by init(), and loadHead().
|
private |
Definition at line 184 of file creature.h.
Referenced by equipItem(), and getInventory().
|
private |
Is the creature a PC?
Definition at line 165 of file creature.h.
Referenced by createFakePC(), createPC(), init(), isPartyMember(), isPC(), and loadProperties().
|
private |
The levels of the creature.
Definition at line 173 of file creature.h.
Referenced by createPC(), getClassByPosition(), getLevel(), getLevelByPosition(), getPartModelsPC(), and loadProperties().
|
private |
The creature's model.
Definition at line 178 of file creature.h.
Referenced by changeBody(), changeWeapon(), getCameraHeight(), hide(), highlight(), loadBody(), loadHead(), playAnimation(), playDefaultAnimation(), playDefaultHeadAnimation(), playHeadAnimation(), setDefaultAnimations(), setOrientation(), setPosition(), and show().
|
private |
Definition at line 177 of file creature.h.
Referenced by getPartModels(), loadAppearance(), loadBody(), playDefaultHeadAnimation(), playHeadAnimation(), and setDefaultAnimations().
|
private |
The race of the creature.
Definition at line 169 of file creature.h.
Referenced by createPC(), getRace(), init(), and loadProperties().
|
private |
Definition at line 190 of file creature.h.
Referenced by getRunRate(), and loadMovementRate().
|
private |
The skin type of the creature.
Definition at line 174 of file creature.h.
Referenced by createPC(), getPartModelsPC(), and init().
|
private |
The subrace of the creature.
Definition at line 170 of file creature.h.
Referenced by createPC(), getSubRace(), init(), and loadProperties().
|
private |
Definition at line 180 of file creature.h.
Referenced by changeBody(), hide(), init(), isVisible(), and show().
|
private |
Definition at line 189 of file creature.h.
Referenced by getWalkRate(), and loadMovementRate().
1.8.14