![]() |
TrinityCore
|
Classes | |
struct | CommonInitializer |
class | counter |
struct | FacingInfo |
struct | FallInitializer |
struct | Location |
class | MoveSpline |
class | MoveSplineFlag |
class | MoveSplineInit |
struct | MoveSplineInitArgs |
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 } |
enum | AnimType { ToGround = 0, FlyToFly = 1, ToFly = 2, FlyToGround = 3 } |
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_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 (const Vector3 *vertice, float t, const Matrix4 &matr, Vector3 &result) |
void | C_Evaluate_Derivative (const Vector3 *vertice, float t, const Matrix4 &matr, Vector3 &result) |
Variables | |
TC_GAME_API float | gravity = static_cast<float>(19.29110527038574) |
TC_GAME_API UInt32Counter | splineIdGen |
float | terminalVelocity = 60.148003f |
Velocity bounds that makes fall speed limited. More... | |
float | terminalSafefallVelocity = 7.0f |
const float | terminal_length = float(terminalVelocity * terminalVelocity) / (2.0f * gravity) |
const float | terminal_safeFall_length = (terminalSafefallVelocity * terminalSafefallVelocity) / (2.0f * gravity) |
const float | terminal_fallTime = float(terminalVelocity / gravity) |
const float | terminal_safeFall_fallTime = float(terminalSafefallVelocity / gravity) |
char const * | MovementFlagNames [] |
char const * | MovementFlagExtraNames [] |
char const * | SplineFlagNames [32] |
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) |
typedef std::vector<Vector3> Movement::PointsArray |
enum Movement::AnimType |
|
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 | ) |
std::string Movement::MovementFlagsExtra_ToString | ( | uint32 | flags | ) |
|
inline |
void Movement::PrintFlags | ( | Flags | t, |
char const *(&) | names[N], | ||
std::string & | str | ||
) |
|
static |
|
inline |
UnitMoveType Movement::SelectSpeedType | ( | uint32 | moveFlags | ) |
float Movement::gravity = static_cast<float>(19.29110527038574) |
char const* Movement::MovementFlagExtraNames[] |
char const* Movement::MovementFlagNames[] |
|
static |
char const* Movement::SplineFlagNames[32] |
UInt32Counter Movement::splineIdGen |
const float Movement::terminal_fallTime = float(terminalVelocity / gravity) |
const float Movement::terminal_length = float(terminalVelocity * terminalVelocity) / (2.0f * gravity) |
const float Movement::terminal_safeFall_fallTime = float(terminalSafefallVelocity / gravity) |
const float Movement::terminal_safeFall_length = (terminalSafefallVelocity * terminalSafefallVelocity) / (2.0f * gravity) |
float Movement::terminalSafefallVelocity = 7.0f |
float Movement::terminalVelocity = 60.148003f |
Velocity bounds that makes fall speed limited.