OpenMW
|
Contains base race data shared between actors. More...
#include <actoradapter.hpp>
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 |
Contains base race data shared between actors.
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.
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.
|
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.
|
private |
|
private |
|
private |
|
private |
|
private |