![]() |
VR-Forces 4.0.4 Class Documentation
|
A special human character model. More...

Public Types | |
| enum | Posture { Upright, Crouched, Prone, Sitting } |
Public Member Functions | |
| DtCharacterModel (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtCharacterModel () |
Distributed functions. | |
| virtual void | setCharacterModel (const std::string &appearanceName)=0 |
| Override the character model in the model definition. | |
| virtual void | setDefaultAppearance (const std::string &appearanceName)=0 |
| Override the character model in the model definition. | |
| virtual void | setAppearance (const std::string &appearanceName)=0 |
| Override the character model in the model definition. | |
| virtual void | setHeadAppearance (const std::string &appearanceName)=0 |
| Override the character model in the model definition. | |
| virtual void | setDesiredAction (const std::string &action, float speed)=0 |
| Set the action to attempt. | |
| virtual void | forceAction (const std::string &action, float speed)=0 |
| Force an action. | |
| virtual void | forceTemporaryAction (const std::string &action, double duration)=0 |
| Force an action for a specific amount of time. | |
| virtual void | setSpeed (float speed)=0 |
| Set the speed of the character. | |
| virtual void | setPosture (int posture)=0 |
| Set the posture of the model. | |
| virtual bool | weaponDeployed () const =0 |
| Get whether the weapon is deployed. | |
| virtual void | setWeaponDeployed (bool deployed)=0 |
| Set whether the weapon is deployed. | |
| virtual void | die (const std::string &deathAction)=0 |
| Tell the character to 'die. | |
| virtual void | revive (const std::string &aliveAction)=0 |
| Revive a previously dead character. | |
| virtual void | setPaused (bool paused)=0 |
| Set that the character is paused. | |
| virtual std::string | className () const |
| Get the class name of the model instance owner. | |
| virtual void | setModelScalingEnabled (bool b)=0 |
| Indicate whether or not this model may be model-scaled Default is false. | |
A special human character model.
| makVrv::DtCharacterModel::DtCharacterModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| virtual makVrv::DtCharacterModel::~DtCharacterModel | ( | ) | [virtual] |
| virtual void makVrv::DtCharacterModel::setCharacterModel | ( | const std::string & | appearanceName | ) | [pure virtual] |
Override the character model in the model definition.
This is necessary when explicitly setting the character via custom network messages.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::setDefaultAppearance | ( | const std::string & | appearanceName | ) | [pure virtual] |
Override the character model in the model definition.
This is necessary when explicitly setting the character via custom network messages.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::setAppearance | ( | const std::string & | appearanceName | ) | [pure virtual] |
Override the character model in the model definition.
This is necessary when explicitly setting the character via custom network messages.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::setHeadAppearance | ( | const std::string & | appearanceName | ) | [pure virtual] |
Override the character model in the model definition.
This is necessary when explicitly setting the character via custom network messages.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::setDesiredAction | ( | const std::string & | action, |
| float | speed | ||
| ) | [pure virtual] |
Set the action to attempt.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::forceAction | ( | const std::string & | action, |
| float | speed | ||
| ) | [pure virtual] |
Force an action.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::forceTemporaryAction | ( | const std::string & | action, |
| double | duration | ||
| ) | [pure virtual] |
Force an action for a specific amount of time.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::setSpeed | ( | float | speed | ) | [pure virtual] |
Set the speed of the character.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::setPosture | ( | int | posture | ) | [pure virtual] |
Set the posture of the model.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual bool makVrv::DtCharacterModel::weaponDeployed | ( | ) | const [pure virtual] |
Get whether the weapon is deployed.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::setWeaponDeployed | ( | bool | deployed | ) | [pure virtual] |
Set whether the weapon is deployed.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::die | ( | const std::string & | deathAction | ) | [pure virtual] |
Tell the character to 'die.
Dead characters perform their death action then disable most dynamic behavior (saving CPU cycles).
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::revive | ( | const std::string & | aliveAction | ) | [pure virtual] |
Revive a previously dead character.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual void makVrv::DtCharacterModel::setPaused | ( | bool | paused | ) | [pure virtual] |
Set that the character is paused.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.
| virtual std::string makVrv::DtCharacterModel::className | ( | ) | const [virtual] |
Get the class name of the model instance owner.
This is used to control how model instances are created.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDummyCharacterModel, and makVrv::DtDiGuyCharacterModel.
| virtual void makVrv::DtCharacterModel::setModelScalingEnabled | ( | bool | b | ) | [pure virtual] |
Indicate whether or not this model may be model-scaled Default is false.
Implemented in makVrv::DtDiGuyCharacterModel, and makVrv::DtDummyCharacterModel.