VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DtDiGuyAnimation Class Reference

The DtDiGuyAnimation class is a class that stores the DI-Guy animation information that is used to ensure the animation being displayed is in synch with the simulated entity.

Further notes: Contains information about about a particular DI-Guy animation (e.g. run, walk). Most of this data is received directly from the DI-Guy instance (as wrapped by VR-Vantage). Further information can be found in rwDIGuyAnimationEntry, which receives data from character_animations_table.mtl

Public Member Functions

 DtDiGuyAnimation ()
 
 DtDiGuyAnimation (const DtString &name)
 
 DtDiGuyAnimation (const DtDiGuyAnimation &orig)
 
virtual ~DtDiGuyAnimation ()
 
DtDiGuyAnimationoperator= (const DtDiGuyAnimation &orig)
 
virtual void setPosture (const DtString &post)
 
virtual const DtStringposture () const
 
virtual DtDiGuyAnimationclone () const
 
virtual void print ()
 
virtual void setAnimationName (const DtString &name)
 
virtual const DtStringanimationName () const
 
virtual void setDisplayName (const DtString &name)
 
virtual const DtStringdisplayName () const
 
virtual void setDuration (const double time)
 
virtual const double duration () const
 
virtual void setSpeed (const double speed)
 
virtual const double speed () const
 
virtual void setDirectionChange (const DtString &direction)
 
virtual const DtStringdirectionChange () const
 
virtual void addVariant (const DtString &var)
 
virtual bool haveVariant (const DtString &var) const
 
virtual const std::set
< DtString > & 
variants () const
 
virtual void setTaskableOrIntrinsic (DtDIGuyTaskableOrIntrinisic value)
 
virtual DtDIGuyTaskableOrIntrinisic taskableOrInstrinsic () const
 

Protected Attributes

Basic animation info.
DtString myAnimationName
 
DtString myDisplayName
 
std::set< DtStringmyAnimationVariants
 
DtDIGuyTaskableOrIntrinisic myTaskableOrIntrinsic
 
Detailed animation info.
DtReal myAnimationDuration
 
DtReal myAnimationSpeed
 
DtString myAnimationPosture
 
DtString myAnimationDirectionChange
 

Constructor & Destructor Documentation

DtDiGuyAnimation::DtDiGuyAnimation ( )
DtDiGuyAnimation::DtDiGuyAnimation ( const DtString name)
DtDiGuyAnimation::DtDiGuyAnimation ( const DtDiGuyAnimation orig)
virtual DtDiGuyAnimation::~DtDiGuyAnimation ( )
virtual

Member Function Documentation

DtDiGuyAnimation& DtDiGuyAnimation::operator= ( const DtDiGuyAnimation orig)
virtual void DtDiGuyAnimation::setAnimationName ( const DtString name)
virtual

The name of the Di-guy Animation.

virtual const DtString& DtDiGuyAnimation::animationName ( ) const
virtual

The name of the Di-guy Animation.

virtual void DtDiGuyAnimation::setDisplayName ( const DtString name)
virtual

The name of the animation used for display–more user friendly and editable.

virtual const DtString& DtDiGuyAnimation::displayName ( ) const
virtual

The name of the animation used for display–more user friendly and editable.

virtual void DtDiGuyAnimation::setDuration ( const double  time)
virtual

The duration of the animation.

virtual const double DtDiGuyAnimation::duration ( ) const
virtual

The duration of the animation.

virtual void DtDiGuyAnimation::setSpeed ( const double  speed)
virtual

The speed of the animation if any.

virtual const double DtDiGuyAnimation::speed ( ) const
virtual

The speed of the animation if any.

virtual void DtDiGuyAnimation::setPosture ( const DtString post)
virtual

The ending posture of the animation.

virtual const DtString& DtDiGuyAnimation::posture ( ) const
virtual
virtual void DtDiGuyAnimation::setDirectionChange ( const DtString direction)
virtual

The change in direction due to the animation if any.

virtual const DtString& DtDiGuyAnimation::directionChange ( ) const
virtual

The change in direction due to the animation if any.

virtual void DtDiGuyAnimation::addVariant ( const DtString var)
virtual

The demeanor of the animation–refered to as variant in the character digest–sick, angry, confused, normal...

virtual bool DtDiGuyAnimation::haveVariant ( const DtString var) const
virtual

The demeanor of the animation–refered to as variant in the character digest–sick, angry, confused, normal...

virtual const std::set<DtString>& DtDiGuyAnimation::variants ( ) const
virtual

The demeanor of the animation–refered to as variant in the character digest–sick, angry, confused, normal...

virtual void DtDiGuyAnimation::setTaskableOrIntrinsic ( DtDIGuyTaskableOrIntrinisic  value)
virtual

Instrinsic animations are chosen automatically, e.g. when character is walking. Taskable animations must be assigned by user.

virtual DtDIGuyTaskableOrIntrinisic DtDiGuyAnimation::taskableOrInstrinsic ( ) const
virtual

Instrinsic animations are chosen automatically, e.g. when character is walking. Taskable animations must be assigned by user.

virtual DtDiGuyAnimation* DtDiGuyAnimation::clone ( ) const
virtual

Returns a newly created clone of this class.

virtual void DtDiGuyAnimation::print ( )
virtual

Just prints out the contents to the console.

Member Data Documentation

DtString DtDiGuyAnimation::myAnimationName
protected
DtString DtDiGuyAnimation::myDisplayName
protected
std::set<DtString> DtDiGuyAnimation::myAnimationVariants
protected
DtDIGuyTaskableOrIntrinisic DtDiGuyAnimation::myTaskableOrIntrinsic
protected
DtReal DtDiGuyAnimation::myAnimationDuration
protected
DtReal DtDiGuyAnimation::myAnimationSpeed
protected
DtString DtDiGuyAnimation::myAnimationPosture
protected
DtString DtDiGuyAnimation::myAnimationDirectionChange
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)