VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Attributes
DtDIGuyControllerPSR Class Reference

class DtDIGuyControllerPSR: More...

Inheritance diagram for DtDIGuyControllerPSR:
Inheritance graph
[legend]

List of all members.

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
DtDIGuyControllerPSRoperator= (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 DtStringdefaultAnimationName () 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

Detailed Description

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.


Constructor & Destructor Documentation

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

destructor


Member Function Documentation

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.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)