![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtDIGuyControllerPSR: More...

Public Member Functions | |
| DtDIGuyControllerPSR (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| constructor | |
| DtDIGuyControllerPSR (const DtDIGuyControllerPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| copy constructor | |
| virtual | ~DtDIGuyControllerPSR () |
| destructor | |
| DtDIGuyControllerPSR & | operator= (const DtDIGuyControllerPSR &orig) |
| assignment operator | |
| virtual DtVrfProcessStateRepository * | clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const |
| returns a newly created copy of this object | |
| virtual DtString | type () const |
| Returns the string type of this process state repository. | |
| virtual void | setElapsedTime (double time) |
| Get / Set the elapsed time state variable. | |
| virtual double | elapsedTime () const |
| virtual void | setAnimationDuration (double time) |
| How long it this animation suppose to be? | |
| virtual double | animationDuration () const |
| virtual void | setDirectionOfMovement (double angle) |
| What direction is the animation going in relation to our heading? Ie if we're side stepping to the right we are moveing 90 degrees from our heading. | |
| virtual double | directionOfMovement () const |
| virtual void | setAmRotating (bool rot) |
| Is there any rotation involved? | |
| virtual bool | amRotating () const |
| virtual void | setDefaultAnimationName (const DtString &name) |
| This is the default animation an entity should show when it has nothing better to do. | |
| virtual const DtString & | defaultAnimationName () const |
Static Public Member Functions | |
| static DtVrfProcessStateRepository * | creator (const DtString &rwName, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry) |
| Returns a newly created instance of this class. | |
Protected Attributes | |
| DtRwReal | myElapsedTime |
| DtRwReal | myDuration |
| DtRwBoolean | myAmRotating |
| DtRwReal | myDirectionOfMovement |
| DtRwString | myDefaultAnimationName |
class DtDIGuyControllerPSR:
This Process State Repository keeps track of the current paramters of the animation this entity was doing when it was saved out and how far along it was. This data will be written to and read from the OOB file when a scenario checkpoint is saved and loaded.
| DtDIGuyControllerPSR::DtDIGuyControllerPSR | ( | DtVrfObject * | vrfObject, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor
| DtDIGuyControllerPSR::DtDIGuyControllerPSR | ( | const DtDIGuyControllerPSR & | orig, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
copy constructor
| virtual DtDIGuyControllerPSR::~DtDIGuyControllerPSR | ( | ) | [virtual] |
destructor
| DtDIGuyControllerPSR& DtDIGuyControllerPSR::operator= | ( | const DtDIGuyControllerPSR & | orig | ) |
assignment operator
| virtual DtVrfProcessStateRepository* DtDIGuyControllerPSR::clone | ( | const DtString & | rwName = DtString::nullString(), |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | const [virtual] |
returns a newly created copy of this object
Implements DtVrfProcessStateRepository.
| virtual DtString DtDIGuyControllerPSR::type | ( | ) | const [virtual] |
Returns the string type of this process state repository.
Implements DtVrfProcessStateRepository.
| virtual void DtDIGuyControllerPSR::setElapsedTime | ( | double | time | ) | [virtual] |
Get / Set the elapsed time state variable.
| virtual double DtDIGuyControllerPSR::elapsedTime | ( | ) | const [virtual] |
| virtual void DtDIGuyControllerPSR::setAnimationDuration | ( | double | time | ) | [virtual] |
How long it this animation suppose to be?
| virtual double DtDIGuyControllerPSR::animationDuration | ( | ) | const [virtual] |
| virtual void DtDIGuyControllerPSR::setDirectionOfMovement | ( | double | angle | ) | [virtual] |
What direction is the animation going in relation to our heading? Ie if we're side stepping to the right we are moveing 90 degrees from our heading.
| virtual double DtDIGuyControllerPSR::directionOfMovement | ( | ) | const [virtual] |
| virtual void DtDIGuyControllerPSR::setAmRotating | ( | bool | rot | ) | [virtual] |
Is there any rotation involved?
| virtual bool DtDIGuyControllerPSR::amRotating | ( | ) | const [virtual] |
| virtual void DtDIGuyControllerPSR::setDefaultAnimationName | ( | const DtString & | name | ) | [virtual] |
This is the default animation an entity should show when it has nothing better to do.
| virtual const DtString& DtDIGuyControllerPSR::defaultAnimationName | ( | ) | const [virtual] |
| static DtVrfProcessStateRepository* DtDIGuyControllerPSR::creator | ( | const DtString & | rwName, |
| DtVrfObject * | vrfObject, | ||
| DtReaderWriterRegistry * | parentRegistry | ||
| ) | [static] |
Returns a newly created instance of this class.
DtRwReal DtDIGuyControllerPSR::myElapsedTime [protected] |
DtRwReal DtDIGuyControllerPSR::myDuration [protected] |
DtRwBoolean DtDIGuyControllerPSR::myAmRotating [protected] |
DtRwReal DtDIGuyControllerPSR::myDirectionOfMovement [protected] |