VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
makVrv::DtRotorState Class Reference

represents an abstract rotor state. Specialized classes inherited from this are part of the fsm that the rotor states can go through/be in.

Inheritance diagram for makVrv::DtRotorState:
Inheritance graph
[legend]

Public Member Functions

 DtRotorState (DtEntityRotorData *rotorData)
 
virtual ~DtRotorState ()
 
virtual DtRotorStatehandleEvent (int state)
 
virtual DtRotorStateupdate (DtTime timeNow)
 
virtual void enter (void)
 
virtual void exit (void)
 

Protected Attributes

DtEntityRotorDatamyRotorData
 

Static Protected Attributes

static const float theMaxSpeed
 
static const float theTimeToFullSpin
 
static const float theTimeToFullCoolDown
 
static const float theTimeToSwitchToMotionBlur
 

Private Member Functions

 DtRotorState ()=delete
 
 DtRotorState (const DtRotorState &rhs)=delete
 
DtRotorStateoperator= (const DtRotorState &rhs)=delete
 

Constructor & Destructor Documentation

makVrv::DtRotorState::DtRotorState ( DtEntityRotorData rotorData)

constructor

virtual makVrv::DtRotorState::~DtRotorState ( )
virtual

destructor

makVrv::DtRotorState::DtRotorState ( )
privatedelete

not allowed

makVrv::DtRotorState::DtRotorState ( const DtRotorState rhs)
privatedelete

Member Function Documentation

DtRotorState& makVrv::DtRotorState::operator= ( const DtRotorState rhs)
privatedelete
virtual DtRotorState* makVrv::DtRotorState::handleEvent ( int  state)
virtual

handle an event (state change). can cause transition to another state.

Reimplemented in makVrv::SpinningDown, makVrv::SpinningUp, makVrv::FullyOn, makVrv::FullyOff, and makVrv::DtNullRotorState.

virtual DtRotorState* makVrv::DtRotorState::update ( DtTime  timeNow)
virtual

update given the current time. can cause transition to another state.

Reimplemented in makVrv::SpinningDown, and makVrv::SpinningUp.

virtual void makVrv::DtRotorState::enter ( void  )
virtual

things to be done on enter.

Reimplemented in makVrv::FullyOn, and makVrv::FullyOff.

virtual void makVrv::DtRotorState::exit ( void  )
virtual

things to be done on exit

Member Data Documentation

DtEntityRotorData* makVrv::DtRotorState::myRotorData
protected
const float makVrv::DtRotorState::theMaxSpeed
staticprotected

the max speed of a rotor (in rpm)

const float makVrv::DtRotorState::theTimeToFullSpin
staticprotected

in seconds

const float makVrv::DtRotorState::theTimeToFullCoolDown
staticprotected

in seconds

const float makVrv::DtRotorState::theTimeToSwitchToMotionBlur
staticprotected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)