![]() |
VR-Forces 4.0.4 Class Documentation
|
lifeform entity's state repository. More...

Public Member Functions | |
| DtIndividualLifeFormStateRepository () | |
| default constructor | |
| DtIndividualLifeFormStateRepository (DtVrfObject *vrfObject, const DtObjectType &objectType, DtVrfObjectParameters *parameters, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| constructor with parameters to set up read/writability correctly | |
| DtIndividualLifeFormStateRepository (const DtIndividualLifeFormStateRepository &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| copy constructor | |
| const DtIndividualLifeFormStateRepository & | operator= (const DtIndividualLifeFormStateRepository &orig) |
| assignment operator | |
| virtual | ~DtIndividualLifeFormStateRepository () |
| destructor | |
| virtual DtSimObjectStateRepository * | clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const |
| Clone. | |
| virtual bool | init () |
| Our 'virtual' constructor. Calls all the create<>() methods. | |
| virtual DtString | type () const |
| Returns the string type of the repository, as defined in vrfSRTypes.h. | |
| virtual bool | createParameters () |
| virtual void | initializeFromParameters () |
| virtual const DtIndividualLifeFormParameters * | individualLifeFormParameters () const |
| virtual void | setAssignedPosture (DtLifeformState newPosture) |
| Value sets by user/opd. | |
| virtual DtLifeformState | assignedPosture () const |
| virtual DtLifeformState | currentPosture () const |
| current value, according with the current task | |
| virtual void | setCurrentPosture (DtLifeformState newPosture) |
| virtual void | setAssignedWeaponState (DtWeaponState newWeaponState) |
| Value sets by user/opd. | |
| virtual DtWeaponState | assignedWeaponState () const |
| virtual DtWeaponState | currentWeaponState () const |
| current value, according with the current task | |
| virtual void | setCurrentWeaponState (DtWeaponState newWeaponState) |
| virtual void | clampToGround (const DtVector &location, const DtReal heading, bool *dataAvailable=0) |
| Place entity on ground at location and heading. | |
| virtual void | setDestroyed (bool isDestroyed) |
| Redefine setDestroyed to avoid smoke and flames. | |
| virtual void | calculateBodyEyepointOffset (DtLifeformState posture, DtVector &bodyEyepointOffset) const |
| Computes an offset in body coordinates to eye point, for a given posture. | |
| virtual bool | uprightPosture (DtLifeformState posture) const |
| Returns true if given posture is an upright one (i.e. | |
| virtual bool | staticPosture (DtLifeformState posture) const |
| Returns true if given posture is static (i.e. | |
| virtual bool | movingPosture (DtLifeformState posture) const |
| Returns true if given posture is a movement posture (i.e. | |
Static Public Member Functions | |
| static DtVrfObjectStateRepository * | creator (const DtString &name, DtVrfObject *vrfObject, const DtObjectType &objectType, DtVrfObjectParameters *parameters, DtReaderWriterRegistry *parentRegistry) |
| static DtIndividualLifeFormStateRepository * | isIndividualLifeFormStateRepository (DtSimObjectStateRepository *repository) |
| Returns a the pointer the repository, if the repository passed in is of type DtIndividualLifeFormStateRepository, 0 if not. | |
| static const DtIndividualLifeFormStateRepository * | isIndividualLifeFormStateRepository (const DtSimObjectStateRepository *repository) |
Protected Attributes | |
| DtRwIndividualLifeFormStateType | myAssignedPosture |
| DtRwIndividualLifeFormStateType | myCurrentPosture |
| DtRwIndividualLifeFormWeaponStateType | myAssignedWeaponState |
| DtRwIndividualLifeFormWeaponStateType | myCurrentWeaponState |
lifeform entity's state repository.
This repository holds all information that is common to all the forms of local lifeform entities within the simulation.
default constructor
| DtIndividualLifeFormStateRepository::DtIndividualLifeFormStateRepository | ( | DtVrfObject * | vrfObject, |
| const DtObjectType & | objectType, | ||
| DtVrfObjectParameters * | parameters, | ||
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor with parameters to set up read/writability correctly
| DtIndividualLifeFormStateRepository::DtIndividualLifeFormStateRepository | ( | const DtIndividualLifeFormStateRepository & | orig, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
copy constructor
| virtual DtIndividualLifeFormStateRepository::~DtIndividualLifeFormStateRepository | ( | ) | [virtual] |
destructor
| const DtIndividualLifeFormStateRepository& DtIndividualLifeFormStateRepository::operator= | ( | const DtIndividualLifeFormStateRepository & | orig | ) |
assignment operator
| virtual DtSimObjectStateRepository* DtIndividualLifeFormStateRepository::clone | ( | const DtString & | rwName = DtString::nullString(), |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | const [virtual] |
Clone.
Reimplemented from DtGroundVehicleStateRepository.
| virtual bool DtIndividualLifeFormStateRepository::init | ( | ) | [virtual] |
Our 'virtual' constructor. Calls all the create<>() methods.
Reimplemented from DtGroundVehicleStateRepository.
| virtual DtString DtIndividualLifeFormStateRepository::type | ( | ) | const [virtual] |
Returns the string type of the repository, as defined in vrfSRTypes.h.
Reimplemented from DtGroundVehicleStateRepository.
| virtual bool DtIndividualLifeFormStateRepository::createParameters | ( | ) | [virtual] |
Reimplemented from DtGroundVehicleStateRepository.
| virtual void DtIndividualLifeFormStateRepository::initializeFromParameters | ( | ) | [virtual] |
Reimplemented from DtGroundVehicleStateRepository.
| virtual const DtIndividualLifeFormParameters* DtIndividualLifeFormStateRepository::individualLifeFormParameters | ( | ) | const [virtual] |
| virtual void DtIndividualLifeFormStateRepository::setAssignedPosture | ( | DtLifeformState | newPosture | ) | [virtual] |
Value sets by user/opd.
| virtual DtLifeformState DtIndividualLifeFormStateRepository::assignedPosture | ( | ) | const [virtual] |
| virtual DtLifeformState DtIndividualLifeFormStateRepository::currentPosture | ( | ) | const [virtual] |
current value, according with the current task
| virtual void DtIndividualLifeFormStateRepository::setCurrentPosture | ( | DtLifeformState | newPosture | ) | [virtual] |
| virtual void DtIndividualLifeFormStateRepository::setAssignedWeaponState | ( | DtWeaponState | newWeaponState | ) | [virtual] |
Value sets by user/opd.
| virtual DtWeaponState DtIndividualLifeFormStateRepository::assignedWeaponState | ( | ) | const [virtual] |
| virtual DtWeaponState DtIndividualLifeFormStateRepository::currentWeaponState | ( | ) | const [virtual] |
current value, according with the current task
| virtual void DtIndividualLifeFormStateRepository::setCurrentWeaponState | ( | DtWeaponState | newWeaponState | ) | [virtual] |
| static DtVrfObjectStateRepository* DtIndividualLifeFormStateRepository::creator | ( | const DtString & | name, |
| DtVrfObject * | vrfObject, | ||
| const DtObjectType & | objectType, | ||
| DtVrfObjectParameters * | parameters, | ||
| DtReaderWriterRegistry * | parentRegistry | ||
| ) | [static] |
Reimplemented from DtGroundVehicleStateRepository.
| static DtIndividualLifeFormStateRepository* DtIndividualLifeFormStateRepository::isIndividualLifeFormStateRepository | ( | DtSimObjectStateRepository * | repository | ) | [static] |
Returns a the pointer the repository, if the repository passed in is of type DtIndividualLifeFormStateRepository, 0 if not.
| static const DtIndividualLifeFormStateRepository* DtIndividualLifeFormStateRepository::isIndividualLifeFormStateRepository | ( | const DtSimObjectStateRepository * | repository | ) | [static] |
| virtual void DtIndividualLifeFormStateRepository::clampToGround | ( | const DtVector & | location, |
| const DtReal | heading, | ||
| bool * | dataAvailable = 0 |
||
| ) | [virtual] |
Place entity on ground at location and heading.
Redefined to set orientation with gravity direction.
| Output | |
| dataAvailable | prevents the call from blocking due to terrain paging and will get a true value if the terrain intersections are successful. See DtVrfMovingObjectStateRepository::clampToGround for more information. |
| virtual void DtIndividualLifeFormStateRepository::setDestroyed | ( | bool | isDestroyed | ) | [virtual] |
Redefine setDestroyed to avoid smoke and flames.
Reimplemented from DtVrfObjectStateRepository.
| virtual void DtIndividualLifeFormStateRepository::calculateBodyEyepointOffset | ( | DtLifeformState | posture, |
| DtVector & | bodyEyepointOffset | ||
| ) | const [virtual] |
Computes an offset in body coordinates to eye point, for a given posture.
| virtual bool DtIndividualLifeFormStateRepository::uprightPosture | ( | DtLifeformState | posture | ) | const [virtual] |
Returns true if given posture is an upright one (i.e.
DtLifeformWalking, DtLifeformRunning, DtLifeformStanding), false otherwise.
| virtual bool DtIndividualLifeFormStateRepository::staticPosture | ( | DtLifeformState | posture | ) | const [virtual] |
Returns true if given posture is static (i.e.
DtLifeformStanding, DtLifeformProne, etc.), false if not (posture is associated with movement).
| virtual bool DtIndividualLifeFormStateRepository::movingPosture | ( | DtLifeformState | posture | ) | const [virtual] |
Returns true if given posture is a movement posture (i.e.
DtLifeformWalking, DtLifeformCrawling, etc.), false if not (posture is static).
DtRwIndividualLifeFormWeaponStateType DtIndividualLifeFormStateRepository::myAssignedWeaponState [protected] |
DtRwIndividualLifeFormWeaponStateType DtIndividualLifeFormStateRepository::myCurrentWeaponState [protected] |