ScummVM API documentation
Titanic::CFlightManagerBase Class Reference

#include <flight_manager_base.h>

Inheritance diagram for Titanic::CFlightManagerBase:
Titanic::CFlightManagerUnmarked Titanic::CMarkedAutoMover

Public Member Functions

void clear ()
 
void setPath (const FVector &from, const FVector &to)
 
virtual MoverState move (CErrorCode &errorCode, FVector &pos, FMatrix &orientation)
 
virtual void buildMotionTable (int sustain, int decay, float distance)
 
bool isActive () const
 

Protected Attributes

bool _active
 
FVector _srcPos
 
FVector _destPos
 
double _distance
 
FVector _direction
 
bool _flight
 
double _step
 
double _step1
 
int _accCount
 
int _traCount
 
int _decCount
 
int _totCount
 
double _gammaTable [32]
 
double _currentSpin
 
double _spinStep
 
COrientationChanger _orientationChanger
 

Detailed Description

Base class for flight manager handling automated movement

Member Function Documentation

◆ clear()

void Titanic::CFlightManagerBase::clear ( )

Clear src and dest orientation and set some default values for other fields

◆ setPath()

void Titanic::CFlightManagerBase::setPath ( const FVector from,
const FVector to 
)

Setup a transition to from one position to another

◆ move()

virtual MoverState Titanic::CFlightManagerBase::move ( CErrorCode errorCode,
FVector pos,
FMatrix orientation 
)
inlinevirtual

Applys speeds to the mover. More than one application is usually done for several transitions

Reimplemented in Titanic::CMarkedAutoMover, and Titanic::CFlightManagerUnmarked.

◆ buildMotionTable()

virtual void Titanic::CFlightManagerBase::buildMotionTable ( int  sustain,
int  decay,
float  distance 
)
virtual

Given a distance to cover, builds an acceleration table for the journey


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