Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <prediction.h>
Public Member Functions | |
Prediction () | |
virtual | ~Prediction () |
virtual void | InitInterpolation (Unit *un, const ClientState &last_packet_state, double elapsed_since_last_packet, double deltatime) |
virtual QVector | InterpolatePosition (Unit *un, double deltatime) const =0 |
virtual Quaternion | InterpolateOrientation (Unit *un, double deltatime) const =0 |
virtual Transformation | Interpolate (Unit *un, double deltatime) const |
Protected Attributes | |
QVector | A0 |
QVector | B |
QVector | A1 |
QVector | A2 |
QVector | A3 |
Vector | VA |
Vector | VB |
Vector | AA |
Vector | AB |
Quaternion | OA |
Quaternion | OB |
double | deltatime |
Definition at line 10 of file prediction.h.
Prediction::Prediction | ( | ) |
|
virtual |
Definition at line 27 of file prediction.cpp.
|
virtual |
Reimplemented in CubicSplinePrediction, and NullPrediction.
Definition at line 30 of file prediction.cpp.
References A0, A1, A2, A3, AA, AB, B, Unit::curr_physical_state, deltatime, Unit::GetAcceleration(), ClientState::getOrientation(), ClientState::getPosition(), ClientState::getSpecMult(), ClientState::getVelocity(), Unit::graphicOptions, OA, OB, Unit::old_state, Transformation::orientation, Transformation::position, VA, VB, Unit::Velocity, and Unit::graphic_options::WarpFieldStrength.
Referenced by CubicSplinePrediction::InitInterpolation().
|
virtual |
Reimplemented in MixedPrediction, and LinearPrediction.
Definition at line 78 of file prediction.cpp.
References InterpolateOrientation(), and InterpolatePosition().
|
pure virtual |
Implemented in MixedPrediction, CubicSplinePrediction, LinearPrediction, and NullPrediction.
Referenced by Interpolate().
Implemented in MixedPrediction, CubicSplinePrediction, LinearPrediction, and NullPrediction.
Referenced by Interpolate().
|
protected |
Definition at line 14 of file prediction.h.
Referenced by InitInterpolation(), CubicSplinePrediction::InitInterpolation(), and LinearPrediction::Interpolate().
|
protected |
Definition at line 14 of file prediction.h.
Referenced by InitInterpolation(), and CubicSplinePrediction::InitInterpolation().
|
protected |
Definition at line 14 of file prediction.h.
Referenced by InitInterpolation(), CubicSplinePrediction::InitInterpolation(), LinearPrediction::Interpolate(), NullPrediction::InterpolatePosition(), and CubicSplinePrediction::InterpolatePosition().
|
protected |
Definition at line 14 of file prediction.h.
Referenced by InitInterpolation(), and CubicSplinePrediction::InitInterpolation().
|
protected |
Definition at line 15 of file prediction.h.
Referenced by InitInterpolation().
|
protected |
Definition at line 15 of file prediction.h.
Referenced by InitInterpolation().
|
protected |
Definition at line 14 of file prediction.h.
Referenced by InitInterpolation(), and LinearPrediction::Interpolate().
|
protected |
Definition at line 18 of file prediction.h.
Referenced by InitInterpolation(), LinearPrediction::Interpolate(), NullPrediction::InterpolatePosition(), CubicSplinePrediction::InterpolatePosition(), and Prediction().
|
protected |
Definition at line 16 of file prediction.h.
Referenced by InitInterpolation(), and LinearPrediction::Interpolate().
|
protected |
Definition at line 16 of file prediction.h.
Referenced by InitInterpolation(), LinearPrediction::Interpolate(), NullPrediction::InterpolateOrientation(), and CubicSplinePrediction::InterpolateOrientation().
|
protected |
Definition at line 15 of file prediction.h.
Referenced by InitInterpolation().
|
protected |
Definition at line 15 of file prediction.h.
Referenced by InitInterpolation(), LinearPrediction::Interpolate(), NullPrediction::InterpolatePosition(), and CubicSplinePrediction::InterpolatePosition().