TrinityCore
|
Classes | |
struct | AnimTierTransition |
struct | CommonInitializer |
class | counter |
struct | FacingInfo |
struct | FallInitializer |
struct | Location |
class | MoveSpline |
class | MoveSplineFlag |
class | MoveSplineInit |
struct | MoveSplineInitArgs |
struct | SpellEffectExtraData |
class | Spline |
class | SplineBase |
class | TransportPathTransform |
Typedefs | |
typedef counter< uint32, 0xFFFFFFFF > | UInt32Counter |
typedef std::vector< Vector3 > | PointsArray |
Enumerations | |
enum | MonsterMoveType { MONSTER_MOVE_NORMAL = 0 , MONSTER_MOVE_FACING_SPOT = 1 , MONSTER_MOVE_FACING_TARGET = 2 , MONSTER_MOVE_FACING_ANGLE = 3 } |
enum | { minimal_duration = 1 } |
Functions | |
uint32 | SecToMS (float sec) |
float | MSToSec (uint32 ms) |
float | computeFallTime (float path_length, bool isSafeFall) |
float | computeFallElevation (float t_passed, bool isSafeFall, float start_velocity=0.0f) |
TC_GAME_API std::string | MovementFlags_ToString (uint32 flags) |
TC_GAME_API std::string | MovementFlagsExtra_ToString (uint32 flags) |
template<class Flags , int N> | |
void | PrintFlags (Flags t, char const *(&names)[N], std::string &str) |
uint32 | computeDuration (float length, float velocity) |
UnitMoveType | SelectSpeedType (uint32 moveFlags) |
static const Matrix4 | s_catmullRomCoeffs (-0.5f, 1.5f, -1.5f, 0.5f, 1.f, -2.5f, 2.f, -0.5f, -0.5f, 0.f, 0.5f, 0.f, 0.f, 1.f, 0.f, 0.f) |
static const Matrix4 | s_Bezier3Coeffs (-1.f, 3.f, -3.f, 1.f, 3.f, -6.f, 3.f, 0.f, -3.f, 3.f, 0.f, 0.f, 1.f, 0.f, 0.f, 0.f) |
void | C_Evaluate (Vector3 const *vertice, float t, Matrix4 const &matr, Vector3 &result) |
void | C_Evaluate_Derivative (Vector3 const *vertice, float t, Matrix4 const &matr, Vector3 &result) |
Variables | |
float constexpr | gravity = static_cast<float>(19.29110527038574) |
TC_GAME_API UInt32Counter | splineIdGen |
float constexpr | terminalVelocity = 60.148003f |
Velocity bounds that makes fall speed limited. More... | |
float constexpr | terminalSafefallVelocity = 7.0f |
float constexpr | terminal_length = float(terminalVelocity * terminalVelocity) / (2.0f * gravity) |
float constexpr | terminal_safeFall_length = (terminalSafefallVelocity * terminalSafefallVelocity) / (2.0f * gravity) |
float constexpr | terminal_fallTime = float(terminalVelocity / gravity) |
float constexpr | terminal_safeFall_fallTime = float(terminalSafefallVelocity / gravity) |
char const * | MovementFlagNames [] |
char const * | MovementFlagExtraNames [] |
char const * | SplineFlagNames [32] |
typedef std::vector<Vector3> Movement::PointsArray |
Definition at line 33 of file MoveSplineInitArgs.h.
typedef counter<uint32, 0xFFFFFFFF> Movement::UInt32Counter |
Definition at line 77 of file MovementTypedefs.h.
anonymous enum |
Enumerator | |
---|---|
minimal_duration |
Definition at line 132 of file MoveSpline.cpp.
Enumerator | |
---|---|
MONSTER_MOVE_NORMAL | |
MONSTER_MOVE_FACING_SPOT | |
MONSTER_MOVE_FACING_TARGET | |
MONSTER_MOVE_FACING_ANGLE |
Definition at line 34 of file MovementTypedefs.h.
|
inline |
|
inline |
|
inline |
float Movement::computeFallElevation | ( | float | t_passed, |
bool | isSafeFall, | ||
float | start_velocity = 0.0f |
||
) |
float Movement::computeFallTime | ( | float | path_length, |
bool | isSafeFall | ||
) |
std::string Movement::MovementFlags_ToString | ( | uint32 | flags | ) |
Definition at line 199 of file MovementUtil.cpp.
std::string Movement::MovementFlagsExtra_ToString | ( | uint32 | flags | ) |
Definition at line 206 of file MovementUtil.cpp.
|
inline |
void Movement::PrintFlags | ( | Flags | t, |
char const *(&) | names[N], | ||
std::string & | str | ||
) |
|
static |
|
static |
|
inline |
UnitMoveType Movement::SelectSpeedType | ( | uint32 | moveFlags | ) |
|
constexpr |
Definition at line 79 of file MovementTypedefs.h.
char const* Movement::MovementFlagExtraNames[] |
Definition at line 122 of file MovementUtil.cpp.
char const* Movement::MovementFlagNames[] |
Definition at line 86 of file MovementUtil.cpp.
char const* Movement::SplineFlagNames[32] |
Definition at line 146 of file MovementUtil.cpp.
UInt32Counter Movement::splineIdGen |
Definition at line 24 of file MovementUtil.cpp.
|
constexpr |
Definition at line 32 of file MovementUtil.cpp.
|
constexpr |
Definition at line 30 of file MovementUtil.cpp.
|
constexpr |
Definition at line 33 of file MovementUtil.cpp.
|
constexpr |
Definition at line 31 of file MovementUtil.cpp.
|
constexpr |
Definition at line 28 of file MovementUtil.cpp.
|
constexpr |
Velocity bounds that makes fall speed limited.
Definition at line 27 of file MovementUtil.cpp.