#include <TransformationHistory.h>
Public Types | |
| enum | ReadResult { READ_OLDEST, VALUES_UNCHANGED, INTERPOLATED } |
Public Member Functions | |
| void | Init (RakNetTime maxWriteInterval, RakNetTime maxHistoryTime) |
| void | Write (const Ogre::Vector3 &position, const Ogre::Vector3 &velocity, const Ogre::Quaternion &orientation, RakNetTime curTimeMS) |
| void | Overwrite (const Ogre::Vector3 &position, const Ogre::Vector3 &velocity, const Ogre::Quaternion &orientation, RakNetTime when) |
| ReadResult | Read (Ogre::Vector3 *position, Ogre::Vector3 *velocity, Ogre::Quaternion *orientation, RakNetTime when, RakNetTime curTime) |
| void | Clear (void) |
Protected Attributes | |
| DataStructures::Queue < TransformationHistoryCell > | history |
| unsigned | maxHistoryLength |
| RakNetTime | writeInterval |
Definition at line 21 of file TransformationHistory.h.
Definition at line 27 of file TransformationHistory.h.
| void TransformationHistory::Clear | ( | void | ) |
Definition at line 132 of file TransformationHistory.cpp.
| void TransformationHistory::Init | ( | RakNetTime | maxWriteInterval, | |
| RakNetTime | maxHistoryTime | |||
| ) |
Definition at line 17 of file TransformationHistory.cpp.
| void TransformationHistory::Overwrite | ( | const Ogre::Vector3 & | position, | |
| const Ogre::Vector3 & | velocity, | |||
| const Ogre::Quaternion & | orientation, | |||
| RakNetTime | when | |||
| ) |
Definition at line 41 of file TransformationHistory.cpp.
| TransformationHistory::ReadResult TransformationHistory::Read | ( | Ogre::Vector3 * | position, | |
| Ogre::Vector3 * | velocity, | |||
| Ogre::Quaternion * | orientation, | |||
| RakNetTime | when, | |||
| RakNetTime | curTime | |||
| ) |
Definition at line 75 of file TransformationHistory.cpp.
| void TransformationHistory::Write | ( | const Ogre::Vector3 & | position, | |
| const Ogre::Vector3 & | velocity, | |||
| const Ogre::Quaternion & | orientation, | |||
| RakNetTime | curTimeMS | |||
| ) |
Definition at line 24 of file TransformationHistory.cpp.
DataStructures::Queue<TransformationHistoryCell> TransformationHistory::history [protected] |
Definition at line 41 of file TransformationHistory.h.
unsigned TransformationHistory::maxHistoryLength [protected] |
Definition at line 42 of file TransformationHistory.h.
RakNetTime TransformationHistory::writeInterval [protected] |
Definition at line 43 of file TransformationHistory.h.
1.7.1