ScummVM API documentation
Titanic::CMotionControl Class Reference
Inheritance diagram for Titanic::CMotionControl:
Titanic::CMotionControlMarked Titanic::CMotionControlUnmarked

Public Member Functions

 CMotionControl (const CNavigationInfo *src)
 
virtual void setMotion (const CNavigationInfo *src)
 
virtual void getMotion (CNavigationInfo *dest)
 
virtual void clear ()
 
virtual void reset ()
 
virtual void setCallback (CCallbackHandler *callback)
 
virtual void accelerate ()
 
virtual void deccelerate ()
 
virtual void fullSpeed ()
 
virtual void stop ()
 
virtual void transitionBetweenPosOrients (const FVector &oldPos, const FVector &newPos, const FMatrix &oldOrientation, const FMatrix &newOrientation)
 
virtual void moveTo (const FVector &srcV, const FVector &destV, const FMatrix &orientation)
 
virtual void transitionBetweenOrientations (const FVector &v1, const FVector &v2, const FVector &v3, const FMatrix &m)
 
virtual void updatePosition (CErrorCode &errorCode, FVector &pos, FMatrix &orientation)
 
virtual void load (SimpleFile *file, int version=0)
 
virtual void save (SimpleFile *file, int indent)
 
void incLockCount ()
 
void decLockCount ()
 
bool isLocked () const
 

Public Attributes

int _lockCounter
 
CCallbackHandler_callback
 

Protected Attributes

double _currVelocity
 
double _incVelocity
 
double _incAcceleration
 
double _minVelocity
 
double _maxVelocity
 
double _rotationX
 
double _rotationY
 
double _rotationZ
 

Member Function Documentation

◆ clear()

virtual void Titanic::CMotionControl::clear ( )
virtual

delete _starVector

◆ reset()

virtual void Titanic::CMotionControl::reset ( )
virtual

Set default values for CNavigationInfo

◆ setCallback()

virtual void Titanic::CMotionControl::setCallback ( CCallbackHandler callback)
virtual

Sets this CCallbackHandler

◆ accelerate()

virtual void Titanic::CMotionControl::accelerate ( )
virtual

Increases movement speed in forward direction

◆ deccelerate()

virtual void Titanic::CMotionControl::deccelerate ( )
virtual

Decreases movement speed in backward direction

◆ fullSpeed()

virtual void Titanic::CMotionControl::fullSpeed ( )
virtual

Increase to full speed

◆ stop()

virtual void Titanic::CMotionControl::stop ( )
virtual

Completely stop

◆ transitionBetweenPosOrients()

virtual void Titanic::CMotionControl::transitionBetweenPosOrients ( const FVector oldPos,
const FVector newPos,
const FMatrix oldOrientation,
const FMatrix newOrientation 
)
inlinevirtual

Move the mover from an old position and orientation to a new position and orientation

Reimplemented in Titanic::CMotionControlMarked.

◆ moveTo()

virtual void Titanic::CMotionControl::moveTo ( const FVector srcV,
const FVector destV,
const FMatrix orientation 
)
inlinevirtual

Start a movement to a given specified destination

Reimplemented in Titanic::CMotionControlUnmarked.

◆ transitionBetweenOrientations()

virtual void Titanic::CMotionControl::transitionBetweenOrientations ( const FVector v1,
const FVector v2,
const FVector v3,
const FMatrix m 
)
inlinevirtual

First two vectors are used to form a new orientation that gets transitioned to from the old orientation m.

Reimplemented in Titanic::CMotionControlUnmarked.

◆ updatePosition()

virtual void Titanic::CMotionControl::updatePosition ( CErrorCode errorCode,
FVector pos,
FMatrix orientation 
)
inlinevirtual

Update the passed position and orientation matrix

Reimplemented in Titanic::CMotionControlMarked, and Titanic::CMotionControlUnmarked.

◆ load()

virtual void Titanic::CMotionControl::load ( SimpleFile file,
int  version = 0 
)
virtual

Load the class

◆ save()

virtual void Titanic::CMotionControl::save ( SimpleFile file,
int  indent 
)
virtual

Save the class

◆ incLockCount()

void Titanic::CMotionControl::incLockCount ( )

Increment tthe lock counter

◆ decLockCount()

void Titanic::CMotionControl::decLockCount ( )

Decrement the lock counter

◆ isLocked()

bool Titanic::CMotionControl::isLocked ( ) const
inline

Returns true if the lock counter is non-zero


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