|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Classes | |
| struct | CommonInitializer |
| class | counter |
| class | ExtraMovementStatusElement |
| union | FacingInfo |
| struct | FallInitializer |
| struct | Location |
| class | MoveSpline |
| class | MoveSplineFlag |
| class | MoveSplineInit |
| struct | MoveSplineInitArgs |
| class | PacketBuilder |
| class | PacketSender |
| class | Spline |
| class | SplineBase |
| class | TransportPathTransform |
Typedefs | |
| typedef std::vector< Vector3 > | PointsArray |
| typedef counter< uint32, 0xFFFFFFFF > | UInt32Counter |
Enumerations | |
| enum | { minimal_duration = 1 } |
| enum | AnimType { ToGround = 0 , FlyToFly = 1 , ToFly = 2 , FlyToGround = 3 } |
| enum | MonsterMoveType { MonsterMoveNormal = 0 , MonsterMoveStop = 1 , MonsterMoveFacingPoint = 2 , MonsterMoveFacingTarget = 3 , MonsterMoveFacingAngle = 4 } |
Functions | |
| 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) |
| uint32 | computeDuration (float length, float velocity) |
| float | computeFallElevation (float t_passed, bool isSafeFall, float start_velocity=0.0f) |
| float | computeFallTime (float path_length, bool isSafeFall) |
| std::string | MovementFlags_ToString (uint32 flags) |
| std::string | MovementFlagsExtra_ToString (uint32 flags) |
| float | MSToSec (uint32 ms) |
| void | operator<< (ByteBuffer &b, const Vector3 &v) |
| void | operator>> (ByteBuffer &b, Vector3 &v) |
| template<class Flags, int N> | |
| void | print_flags (Flags t, char const *(&names)[N], std::string &str) |
| bool | PrintInvalidSequenceElement (MovementStatusElements element, char const *function) |
| 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) |
| 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) |
| uint32 | SecToMS (float sec) |
| UnitMoveType | SelectSpeedType (uint32 moveFlags) |
| void | WriteLinearPath (Spline< int32 > const &spline, ByteBuffer &data) |
| void | WriteUncompressedCyclicPath (Spline< int32 > const &spline, ByteBuffer &data) |
| void | WriteUncompressedPath (Spline< int32 > const &spline, ByteBuffer &data) |
Variables | |
| char const * | g_MovementFlag_names [] |
| char const * | g_MovementFlagExtra_names [] |
| char const * | g_SplineFlag_names [32] |
| double | gravity = 19.29110527038574 |
| UInt32Counter | splineIdGen |
| const float | terminal_fallTime = float(terminalVelocity / gravity) |
| const float | terminal_length = float(terminalVelocity * terminalVelocity) / (2.0f * gravity) |
| const float | terminal_safeFall_fallTime = float(terminalSafefallVelocity / gravity) |
| const float | terminal_safeFall_length = (terminalSafefallVelocity * terminalSafefallVelocity) / (2.0f * gravity) |
| float | terminalSafefallVelocity = 7.0f |
| float | terminalVelocity = 60.148003f |
| Velocity bounds that makes fall speed limited. | |
| typedef std::vector<Vector3> Movement::PointsArray |
Definition at line 16 of file MoveSplineInitArgs.h.
| typedef counter<uint32, 0xFFFFFFFF> Movement::UInt32Counter |
Definition at line 60 of file MovementTypedefs.h.
| anonymous enum |
| Enumerator | |
|---|---|
| minimal_duration | |
Definition at line 89 of file MoveSpline.cpp.
| enum Movement::AnimType |
| Enumerator | |
|---|---|
| ToGround | |
| FlyToFly | |
| ToFly | |
| FlyToGround | |
Definition at line 16 of file MoveSplineInit.h.
| Enumerator | |
|---|---|
| MonsterMoveNormal | |
| MonsterMoveStop | |
| MonsterMoveFacingPoint | |
| MonsterMoveFacingTarget | |
| MonsterMoveFacingAngle | |
Definition at line 19 of file MovementPacketBuilder.h.
|
inline |
Definition at line 84 of file Spline.cpp.
Referenced by Movement::SplineBase::EvaluateBezier3(), Movement::SplineBase::EvaluateCatmullRom(), Movement::SplineBase::SegLengthBezier3(), and Movement::SplineBase::SegLengthCatmullRom().
|
inline |
Definition at line 93 of file Spline.cpp.
Referenced by Movement::SplineBase::EvaluateDerivativeBezier3(), and Movement::SplineBase::EvaluateDerivativeCatmullRom().
|
inline |
Definition at line 74 of file MoveSpline.cpp.
References SecToMS().
| float Movement::computeFallElevation | ( | float | t_passed, |
| bool | isSafeFall, | ||
| float | start_velocity = 0.0f ) |
Definition at line 48 of file MovementUtil.cpp.
References gravity, terminal_fallTime, terminal_safeFall_fallTime, terminalSafefallVelocity, and terminalVelocity.
Referenced by Movement::MoveSpline::computeFallElevation(), MotionMaster::MoveJump(), and MotionMaster::MoveKnockbackFrom().
| float Movement::computeFallTime | ( | float | path_length, |
| bool | isSafeFall ) |
Definition at line 24 of file MovementUtil.cpp.
References gravity, terminal_fallTime, terminal_length, terminal_safeFall_fallTime, terminal_safeFall_length, terminalSafefallVelocity, and terminalVelocity.
Referenced by Movement::FallInitializer::operator()().
|
extern |
Definition at line 187 of file MovementUtil.cpp.
References g_MovementFlag_names, and print_flags().
Referenced by MovementInfo::OutDebug().
|
extern |
Definition at line 194 of file MovementUtil.cpp.
References g_MovementFlagExtra_names, and print_flags().
Referenced by MovementInfo::OutDebug().
|
inline |
Definition at line 29 of file MovementTypedefs.h.
Referenced by Movement::MoveSpline::computeFallElevation(), Movement::MoveSpline::computeParabolicElevation(), and Movement::MoveSpline::Initialize().
|
inline |
Definition at line 14 of file MovementPacketBuilder.cpp.
|
inline |
Definition at line 19 of file MovementPacketBuilder.cpp.
| void Movement::print_flags | ( | Flags | t, |
| char const *(&) | names[N], | ||
| std::string & | str ) |
Definition at line 171 of file MovementUtil.cpp.
Referenced by MovementFlags_ToString(), MovementFlagsExtra_ToString(), and Movement::MoveSplineFlag::ToString().
| bool Movement::PrintInvalidSequenceElement | ( | MovementStatusElements | element, |
| char const * | function ) |
Definition at line 6595 of file MovementStructures.cpp.
References SF_LOG_ERROR.
Referenced by Player::ReadMovementInfo(), Movement::ExtraMovementStatusElement::ReadNextElement(), Unit::WriteMovementInfo(), and Movement::ExtraMovementStatusElement::WriteNextElement().
|
static |
|
static |
|
inline |
Definition at line 24 of file MovementTypedefs.h.
Referenced by computeDuration().
| UnitMoveType Movement::SelectSpeedType | ( | uint32 | moveFlags | ) |
Definition at line 17 of file MoveSplineInit.cpp.
References MOVE_FLIGHT, MOVE_FLIGHT_BACK, MOVE_RUN, MOVE_RUN_BACK, MOVE_SWIM, MOVE_SWIM_BACK, MOVE_WALK, MOVEMENTFLAG_BACKWARD, MOVEMENTFLAG_FLYING, MOVEMENTFLAG_SWIMMING, and MOVEMENTFLAG_WALKING.
Referenced by Movement::MoveSplineInit::Launch().
| void Movement::WriteLinearPath | ( | Spline< int32 > const & | spline, |
| ByteBuffer & | data ) |
Definition at line 108 of file MovementPacketBuilder.cpp.
References ByteBuffer::appendPackXYZ(), Movement::SplineBase::getPoint(), and Movement::SplineBase::getPointCount().
Referenced by Movement::PacketBuilder::WriteMonsterMove().
| void Movement::WriteUncompressedCyclicPath | ( | Spline< int32 > const & | spline, |
| ByteBuffer & | data ) |
Definition at line 132 of file MovementPacketBuilder.cpp.
References Movement::SplineBase::getPoint(), and Movement::SplineBase::getPointCount().
Referenced by Movement::PacketBuilder::WriteMonsterMove().
| void Movement::WriteUncompressedPath | ( | Spline< int32 > const & | spline, |
| ByteBuffer & | data ) |
Definition at line 126 of file MovementPacketBuilder.cpp.
References Movement::SplineBase::getPoint(), and Movement::SplineBase::getPointCount().
Referenced by Movement::PacketBuilder::WriteMonsterMove().
| char const* Movement::g_MovementFlag_names[] |
Definition at line 77 of file MovementUtil.cpp.
Referenced by MovementFlags_ToString().
| char const* Movement::g_MovementFlagExtra_names[] |
Definition at line 114 of file MovementUtil.cpp.
Referenced by MovementFlagsExtra_ToString().
| char const* Movement::g_SplineFlag_names[32] |
Definition at line 134 of file MovementUtil.cpp.
Referenced by Movement::MoveSplineFlag::ToString().
| double Movement::gravity = 19.29110527038574 |
Definition at line 12 of file MovementUtil.cpp.
Referenced by computeFallElevation(), computeFallTime(), MotionMaster::MoveJump(), MotionMaster::MoveJumpTo(), and MotionMaster::MoveKnockbackFrom().
| UInt32Counter Movement::splineIdGen |
Definition at line 13 of file MovementUtil.cpp.
Referenced by Movement::MoveSplineInit::MoveSplineInit().
| const float Movement::terminal_fallTime = float(terminalVelocity / gravity) |
Definition at line 21 of file MovementUtil.cpp.
Referenced by computeFallElevation(), and computeFallTime().
| const float Movement::terminal_length = float(terminalVelocity * terminalVelocity) / (2.0f * gravity) |
Definition at line 19 of file MovementUtil.cpp.
Referenced by computeFallTime().
| const float Movement::terminal_safeFall_fallTime = float(terminalSafefallVelocity / gravity) |
Definition at line 22 of file MovementUtil.cpp.
Referenced by computeFallElevation(), and computeFallTime().
| const float Movement::terminal_safeFall_length = (terminalSafefallVelocity * terminalSafefallVelocity) / (2.0f * gravity) |
Definition at line 20 of file MovementUtil.cpp.
Referenced by computeFallTime().
| float Movement::terminalSafefallVelocity = 7.0f |
Definition at line 17 of file MovementUtil.cpp.
Referenced by computeFallElevation(), and computeFallTime().
| float Movement::terminalVelocity = 60.148003f |
Velocity bounds that makes fall speed limited.
Definition at line 16 of file MovementUtil.cpp.
Referenced by computeFallElevation(), and computeFallTime().