OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
CSMWorld::ActorAdapter::ActorData Class Reference

#include <actoradapter.hpp>

Collaboration diagram for CSMWorld::ActorAdapter::ActorData:

Public Member Functions

const std::string & getId () const
 Retrieves the id of the actor represented. More...
 
bool isCreature () const
 Checks if the actor is a creature. More...
 
bool isFemale () const
 Checks if the actor is female. More...
 
std::string getSkeleton () const
 Returns the skeleton the actor should use for attaching parts to. More...
 
const std::string getPart (ESM::PartReferenceType index) const
 Retrieves the associated actor part. More...
 
bool hasDependency (const std::string &id) const
 Checks if the actor has a data dependency. More...
 
void setPart (ESM::PartReferenceType partIndex, const std::string &partId, int priority)
 Sets the actor part used and marks a dependency. More...
 
void addOtherDependency (const std::string &id)
 Marks an additional dependency for the actor. More...
 
void reset_data (const std::string &actorId, const std::string &skeleton="", bool isCreature=false, bool female=true, RaceDataPtr raceData=nullptr)
 Clears race, parts, and dependencies. More...
 

Private Attributes

std::string mId
 
bool mCreature
 
bool mFemale
 
std::string mSkeletonOverride
 
RaceDataPtr mRaceData
 
ActorPartList mParts
 
StringSet mDependencies
 

Detailed Description

Contains all the data needed to render an actor. Tracks dependencies so that pertinent data changes can be checked.

Member Function Documentation

void CSMWorld::ActorAdapter::ActorData::addOtherDependency ( const std::string &  id)

Marks an additional dependency for the actor.

const std::string & CSMWorld::ActorAdapter::ActorData::getId ( ) const

Retrieves the id of the actor represented.

const std::string CSMWorld::ActorAdapter::ActorData::getPart ( ESM::PartReferenceType  index) const

Retrieves the associated actor part.

std::string CSMWorld::ActorAdapter::ActorData::getSkeleton ( ) const

Returns the skeleton the actor should use for attaching parts to.

Here is the call graph for this function:

bool CSMWorld::ActorAdapter::ActorData::hasDependency ( const std::string &  id) const

Checks if the actor has a data dependency.

bool CSMWorld::ActorAdapter::ActorData::isCreature ( ) const

Checks if the actor is a creature.

bool CSMWorld::ActorAdapter::ActorData::isFemale ( ) const

Checks if the actor is female.

void CSMWorld::ActorAdapter::ActorData::reset_data ( const std::string &  actorId,
const std::string &  skeleton = "",
bool  isCreature = false,
bool  female = true,
RaceDataPtr  raceData = nullptr 
)

Clears race, parts, and dependencies.

void CSMWorld::ActorAdapter::ActorData::setPart ( ESM::PartReferenceType  partIndex,
const std::string &  partId,
int  priority 
)

Sets the actor part used and marks a dependency.

Member Data Documentation

bool CSMWorld::ActorAdapter::ActorData::mCreature
private
StringSet CSMWorld::ActorAdapter::ActorData::mDependencies
private
bool CSMWorld::ActorAdapter::ActorData::mFemale
private
std::string CSMWorld::ActorAdapter::ActorData::mId
private
ActorPartList CSMWorld::ActorAdapter::ActorData::mParts
private
RaceDataPtr CSMWorld::ActorAdapter::ActorData::mRaceData
private
std::string CSMWorld::ActorAdapter::ActorData::mSkeletonOverride
private

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