TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Movement::FallInitializer Struct Reference

Public Member Functions

 FallInitializer (float _start_elevation)
 
int32 operator() (Spline< int32 > &s, int32 i)
 

Public Attributes

float start_elevation
 

Constructor & Destructor Documentation

Movement::FallInitializer::FallInitializer ( float  _start_elevation)
inline
96 : start_elevation(_start_elevation) { }
float start_elevation
Definition: MoveSpline.cpp:97

Member Function Documentation

int32 Movement::FallInitializer::operator() ( Spline< int32 > &  s,
int32  i 
)
inline
99  {
100  return Movement::computeFallTime(start_elevation - s.getPoint(i+1).z, false) * 1000.f;
101  }
float start_elevation
Definition: MoveSpline.cpp:97
float computeFallTime(float path_length, bool isSafeFall)
Definition: MovementUtil.cpp:35

+ Here is the call graph for this function:

Member Data Documentation

float Movement::FallInitializer::start_elevation

The documentation for this struct was generated from the following file: