WWCOMMON::CPerformer Class Reference

#include <CPerformer.h>

Inherits WWCOMMON::ISimulationObj.

Inherited by CActor, and WWCLIENT::CActorProxy.

List of all members.

Public Types

typedef CYawMotionInterpKey CPerformerInterpKey
typedef CGeneralInterpolator
< CPerformerInterpKey
CPerformerInterp
typedef CDRMotionInterpKey CorrectInterpKey
typedef CGeneralInterpolator
< CorrectInterpKey
CorrectInterp

Public Member Functions

void update ()
float getMaxSpeed ()
float getAcceleration ()
float getBrakingFactor ()
float getMaxRotSpeed ()
float getRotAcceleration ()
void setRotAcceleration (float a)
float getRotBrakingFactor ()
double getMotionBlendDt ()
void setMotionBlendDt (double dt)
CPerformerInterpKeygetCurrentKey ()
NLPACS::UMovePrimitivegetMovePrimitive ()
NLMISC::CVector getPosition ()
 Returns the current position in the interpolator.
NLMISC::CMatrix getMatrix ()
void setPosition (NLMISC::CVector pos)
 Adds a new position key to the interpolator.
void setGlobalPosition (NLMISC::CVector pos)
 Sets the move primitive's global position. Expert use only!
CPerformerInterpgetInterpolator ()
virtual bool useCorrection ()
CorrectInterpgetCorrectionInterp ()

Static Public Member Functions

static ISimulationObjCreate ()

Protected Member Functions

 CPerformer ()
virtual ~CPerformer ()

Protected Attributes

CPerformerInterpKey m_CurrentKey
float m_MaxSpeed
float m_Acceleration
float m_BrakingFactor
float m_YawVelocity
float m_MaxRotSpeed
float m_RotAcceleration
float m_RotBrakingFactor
double m_MotionBlendDt
CPerformerInterpm_Interpolator
CorrectInterpm_CorrectionInterp
NLPACS::UMovePrimitivem_MovePrimitive

Private Member Functions

 OF_SETUP_REGISTRAR (CSobFactory, ISimulationObj, CPerformer, std::string)

Detailed Description

Definition at line 65 of file CPerformer.h.


Member Typedef Documentation

Definition at line 71 of file CPerformer.h.

Definition at line 70 of file CPerformer.h.

Definition at line 69 of file CPerformer.h.

Definition at line 68 of file CPerformer.h.


Constructor & Destructor Documentation

WWCOMMON::CPerformer::CPerformer (  )  [protected]
WWCOMMON::CPerformer::~CPerformer (  )  [protected, virtual]

Definition at line 108 of file CPerformer.cpp.

References getSimulation(), m_CorrectionInterp, m_Interpolator, and m_MovePrimitive.


Member Function Documentation

ISimulationObj * WWCOMMON::CPerformer::Create (  )  [static]

Reimplemented in WWCLIENT::CActorProxy, and CActor.

Definition at line 173 of file CPerformer.cpp.

References CPerformer().

float WWCOMMON::CPerformer::getAcceleration (  ) 

Definition at line 141 of file CPerformer.cpp.

References m_Acceleration.

Referenced by WWCOMMON::CStrafeState::handle(), and WWCOMMON::CMovementState::handle().

float WWCOMMON::CPerformer::getBrakingFactor (  ) 

Definition at line 145 of file CPerformer.cpp.

References m_BrakingFactor.

Referenced by WWCOMMON::CStrafeState::handle(), and WWCOMMON::CMovementState::handle().

CorrectInterp* WWCOMMON::CPerformer::getCorrectionInterp (  )  [inline]
CPerformerInterpKey* WWCOMMON::CPerformer::getCurrentKey (  )  [inline]
CPerformerInterp* WWCOMMON::CPerformer::getInterpolator (  )  [inline]
NLMISC::CMatrix WWCOMMON::CPerformer::getMatrix (  ) 

Definition at line 122 of file CPerformer.cpp.

References WWCOMMON::CYawMotionInterpKey::getMatrix(), and m_CurrentKey.

float WWCOMMON::CPerformer::getMaxRotSpeed (  ) 
float WWCOMMON::CPerformer::getMaxSpeed (  ) 
double WWCOMMON::CPerformer::getMotionBlendDt (  ) 

Definition at line 177 of file CPerformer.cpp.

References m_MotionBlendDt.

NLPACS::UMovePrimitive* WWCOMMON::CPerformer::getMovePrimitive (  )  [inline]
NLMISC::CVector WWCOMMON::CPerformer::getPosition (  ) 
float WWCOMMON::CPerformer::getRotAcceleration (  ) 
float WWCOMMON::CPerformer::getRotBrakingFactor (  ) 

Definition at line 161 of file CPerformer.cpp.

References m_RotBrakingFactor.

Referenced by WWCOMMON::COrientState::handle().

WWCOMMON::CPerformer::OF_SETUP_REGISTRAR ( CSobFactory  ,
ISimulationObj  ,
CPerformer  ,
std::string   
) [private]

Reimplemented in WWCLIENT::CActorProxy, and CActor.

void WWCOMMON::CPerformer::setGlobalPosition ( NLMISC::CVector  pos  ) 
void WWCOMMON::CPerformer::setMotionBlendDt ( double  dt  ) 

Definition at line 181 of file CPerformer.cpp.

References m_MotionBlendDt.

void WWCOMMON::CPerformer::setPosition ( NLMISC::CVector  pos  ) 
void WWCOMMON::CPerformer::setRotAcceleration ( float  a  ) 

Definition at line 157 of file CPerformer.cpp.

References m_RotAcceleration.

Referenced by WWCOMMON::COrientState::handle().

void WWCOMMON::CPerformer::update (  )  [virtual]
virtual bool WWCOMMON::CPerformer::useCorrection (  )  [inline, virtual]

Reimplemented in WWCLIENT::CActorProxy.

Definition at line 101 of file CPerformer.h.

Referenced by WWCOMMON::CMotionController::move().


Member Data Documentation

Definition at line 112 of file CPerformer.h.

Referenced by CPerformer(), and getAcceleration().

Definition at line 113 of file CPerformer.h.

Referenced by CPerformer(), and getBrakingFactor().

Definition at line 121 of file CPerformer.h.

Referenced by CPerformer(), getCorrectionInterp(), update(), and ~CPerformer().

Definition at line 105 of file CPerformer.h.

Referenced by getCurrentKey(), getMatrix(), getPosition(), and setPosition().

Definition at line 120 of file CPerformer.h.

Referenced by CPerformer(), getInterpolator(), setPosition(), update(), and ~CPerformer().

Definition at line 115 of file CPerformer.h.

Referenced by CPerformer(), and getMaxRotSpeed().

Definition at line 111 of file CPerformer.h.

Referenced by CPerformer(), and getMaxSpeed().

Definition at line 118 of file CPerformer.h.

Referenced by getMotionBlendDt(), and setMotionBlendDt().

Definition at line 124 of file CPerformer.h.

Referenced by CPerformer(), getMovePrimitive(), setGlobalPosition(), and ~CPerformer().

Definition at line 116 of file CPerformer.h.

Referenced by CPerformer(), getRotAcceleration(), and setRotAcceleration().

Definition at line 117 of file CPerformer.h.

Referenced by CPerformer(), and getRotBrakingFactor().

Definition at line 114 of file CPerformer.h.


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

Generated on Mon Jan 11 12:04:40 2010 for Werewolf by  doxygen 1.6.1