Cafu Engine
cf::GameSys::VarSlerpT Class Reference

This class is like VarInterpolatorT, but for Vector3fTs that represent quaternions. More...

#include "Interpolator.hpp"

Inheritance diagram for cf::GameSys::VarSlerpT:

Public Member Functions

 VarSlerpT (cf::TypeSys::VarT< Vector3fT > &v)
 
cf::TypeSys::VarBaseTGetVar () const override
 Returns the variable that this is an interpolator for. More...
 
void ReInit () override
 Re-initializes this interpolator to the variable's current value. More...
 
void UpdateTargetValue () override
 Updates the interpolator to interpolate from the current interpolated value to the current value of the variable (the new target value). More...
 
void UpdateAfterReprediction () override
 Updates the interpolator to account for the new target value after the local human player's reprediction has been performed. More...
 
void UpdateAfterPrediction () override
 Updates the interpolator to account for the new target value after the local human player's prediction has been performed. More...
 
void AdvanceTime (float Time) override
 Advances the interpolation over the given time. More...
 
void SetCurrentValue () override
 Assigns the interpolation's current value to the variable. More...
 
void SetTargetValue () override
 Assigns the interpolation's target value to the variable. More...
 

Detailed Description

This class is like VarInterpolatorT, but for Vector3fTs that represent quaternions.

Member Function Documentation

void cf::GameSys::VarSlerpT::AdvanceTime ( float  Time)
inlineoverridevirtual

Advances the interpolation over the given time.

Implements cf::GameSys::ApproxBaseT.

cf::TypeSys::VarBaseT* cf::GameSys::VarSlerpT::GetVar ( ) const
inlineoverridevirtual

Returns the variable that this is an interpolator for.

Implements cf::GameSys::ApproxBaseT.

void cf::GameSys::VarSlerpT::ReInit ( )
inlineoverridevirtual

Re-initializes this interpolator to the variable's current value.

Implements cf::GameSys::ApproxBaseT.

void cf::GameSys::VarSlerpT::SetCurrentValue ( )
inlineoverridevirtual

Assigns the interpolation's current value to the variable.

Implements cf::GameSys::ApproxBaseT.

void cf::GameSys::VarSlerpT::SetTargetValue ( )
inlineoverridevirtual

Assigns the interpolation's target value to the variable.

Implements cf::GameSys::ApproxBaseT.

void cf::GameSys::VarSlerpT::UpdateAfterPrediction ( )
inlineoverridevirtual

Updates the interpolator to account for the new target value after the local human player's prediction has been performed.

Implements cf::GameSys::ApproxBaseT.

void cf::GameSys::VarSlerpT::UpdateAfterReprediction ( )
inlineoverridevirtual

Updates the interpolator to account for the new target value after the local human player's reprediction has been performed.

Implements cf::GameSys::ApproxBaseT.

void cf::GameSys::VarSlerpT::UpdateTargetValue ( )
inlineoverridevirtual

Updates the interpolator to interpolate from the current interpolated value to the current value of the variable (the new target value).

Implements cf::GameSys::ApproxBaseT.


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