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

Contains base race data shared between actors. More...

#include <actoradapter.hpp>

Collaboration diagram for CSMWorld::ActorAdapter::RaceData:

Public Member Functions

const std::string & getId () const
 Retrieves the id of the race represented. More...
 
bool isBeast () const
 Checks if it's a beast race. More...
 
bool handlesPart (ESM::PartReferenceType type) const
 Checks if a part could exist for the given type. More...
 
const std::string & getFemalePart (ESM::PartReferenceType index) const
 Retrieves the associated body part. More...
 
const std::string & getMalePart (ESM::PartReferenceType index) const
 Retrieves the associated body part. More...
 
bool hasDependency (const std::string &id) const
 Checks if the race has a data dependency. More...
 
void setFemalePart (ESM::BodyPart::MeshPart partIndex, const std::string &partId)
 Sets the associated part if it's empty and marks a dependency. More...
 
void setMalePart (ESM::BodyPart::MeshPart partIndex, const std::string &partId)
 Sets the associated part if it's empty and marks a dependency. More...
 
void addOtherDependency (const std::string &id)
 Marks an additional dependency. More...
 
void reset_data (const std::string &raceId, bool isBeast=false)
 Clears parts and dependencies. More...
 

Private Member Functions

bool handles (ESM::PartReferenceType type) const
 

Private Attributes

std::string mId
 
bool mIsBeast
 
RacePartList mFemaleParts
 
RacePartList mMaleParts
 
StringSet mDependencies
 

Detailed Description

Contains base race data shared between actors.

Member Function Documentation

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

Marks an additional dependency.

const std::string & CSMWorld::ActorAdapter::RaceData::getFemalePart ( ESM::PartReferenceType  index) const

Retrieves the associated body part.

Here is the call graph for this function:

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

Retrieves the id of the race represented.

const std::string & CSMWorld::ActorAdapter::RaceData::getMalePart ( ESM::PartReferenceType  index) const

Retrieves the associated body part.

Here is the call graph for this function:

bool CSMWorld::ActorAdapter::RaceData::handles ( ESM::PartReferenceType  type) const
private
bool CSMWorld::ActorAdapter::RaceData::handlesPart ( ESM::PartReferenceType  type) const

Checks if a part could exist for the given type.

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

Checks if the race has a data dependency.

bool CSMWorld::ActorAdapter::RaceData::isBeast ( ) const

Checks if it's a beast race.

void CSMWorld::ActorAdapter::RaceData::reset_data ( const std::string &  raceId,
bool  isBeast = false 
)

Clears parts and dependencies.

void CSMWorld::ActorAdapter::RaceData::setFemalePart ( ESM::BodyPart::MeshPart  partIndex,
const std::string &  partId 
)

Sets the associated part if it's empty and marks a dependency.

void CSMWorld::ActorAdapter::RaceData::setMalePart ( ESM::BodyPart::MeshPart  partIndex,
const std::string &  partId 
)

Sets the associated part if it's empty and marks a dependency.

Member Data Documentation

StringSet CSMWorld::ActorAdapter::RaceData::mDependencies
private
RacePartList CSMWorld::ActorAdapter::RaceData::mFemaleParts
private
std::string CSMWorld::ActorAdapter::RaceData::mId
private
bool CSMWorld::ActorAdapter::RaceData::mIsBeast
private
RacePartList CSMWorld::ActorAdapter::RaceData::mMaleParts
private

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