19 #ifndef TRINITYSERVER_MOVEPLINE_H
20 #define TRINITYSERVER_MOVEPLINE_H
60 Result_Arrived = 0x02,
61 Result_NextCycle = 0x04,
62 Result_NextSegment = 0x08
88 void computeParabolicElevation(
float& el)
const;
99 MySpline
const&
_Spline()
const {
return spline; }
110 template<
class UpdateHandler>
115 handler(_updateState(difftime));
116 while (difftime > 0);
122 do _updateState(difftime);
123 while (difftime > 0);
134 int32 currentPathIdx()
const;
140 #endif // TRINITYSERVER_MOVEPLINE_H
Definition: MoveSpline.h:49
Location(const Vector3 &v)
Definition: MoveSpline.h:40
Location()
Definition: MoveSpline.h:38
Vector3 const & CurrentDestination() const
Definition: MoveSpline.h:133
bool isFalling() const
Definition: MoveSpline.h:131
float x
Definition: Vector3.h:62
Location(const Vector3 &v, float o)
Definition: MoveSpline.h:41
bool cyclic
Definition: MoveSplineFlag.h:121
Definition: MovementPackets.h:101
int32 time_passed
Definition: MoveSpline.h:74
int32 segment_time_elapsed() const
Definition: MoveSpline.h:93
bool done
Definition: MoveSplineFlag.h:114
Definition: MoveSpline.h:36
uint32 m_Id
Definition: MoveSpline.h:70
bool falling
Definition: MoveSplineFlag.h:115
MoveSplineFlag splineflags
Definition: MoveSpline.h:72
int32 point_Idx
Definition: MoveSpline.h:81
bool Initialized() const
Definition: MoveSpline.h:106
float y
Definition: Vector3.h:62
Spline< int32 > MySpline
Definition: MoveSpline.h:55
std::vector< Vector3 > ControlArray
Definition: Spline.h:32
Definition: MoveSplineInitArgs.h:32
bool onTransport
Definition: MoveSpline.h:136
void _Interrupt()
Definition: MoveSpline.h:102
static const Vector3 & zero()
Definition: Vector3.cpp:119
string ToString(int i)
Definition: strutil.h:491
Definition: DBUpdater.h:44
length_type length() const
Definition: Spline.h:199
int32 timeElapsed() const
Definition: MoveSpline.h:94
float initialOrientation
Definition: MoveSpline.h:79
float orientation
Definition: MoveSpline.h:43
int32_t int32
Definition: Define.h:146
bool Finalized() const
Definition: MoveSpline.h:129
uint32_t uint32
Definition: Define.h:150
static void Initialize(PCASC_SALSA20 pState, LPBYTE pbKey, DWORD cbKeyLength, LPBYTE pbVector)
Definition: CascDecrypt.cpp:81
float vertical_acceleration
Definition: MoveSpline.h:78
void updateState(int32 difftime, UpdateHandler &handler)
Definition: MoveSpline.h:111
Definition: MoveSplineFlag.h:28
Definition: BattlegroundMgr.h:57
int32 Duration() const
Definition: MoveSpline.h:98
Vector3 const & FinalDestination() const
Definition: MoveSpline.h:132
MySpline const & _Spline() const
Definition: MoveSpline.h:99
float z
Definition: Vector3.h:62
int32 _currentSplineIdx() const
Definition: MoveSpline.h:100
void updateState(int32 difftime)
Definition: MoveSpline.h:119
int32 effect_start_time
Definition: MoveSpline.h:80
uint32 GetId() const
Definition: MoveSpline.h:128
#define TC_GAME_API
Definition: Define.h:134
#define ASSERT
Definition: Errors.h:55
MySpline::ControlArray const & getPath() const
Definition: MoveSpline.h:87
FacingInfo facing
Definition: MoveSpline.h:68
int32 next_timestamp() const
Definition: MoveSpline.h:92
int32 timePassed() const
Definition: MoveSpline.h:95
int32 point_Idx_offset
Definition: MoveSpline.h:82
float computeFallElevation(float t_passed, bool isSafeFall, float start_velocity=0.0f)
Definition: MovementUtil.cpp:59
MySpline spline
Definition: MoveSpline.h:66
bool isCyclic() const
Definition: MoveSpline.h:130
Location(float x, float y, float z, float o)
Definition: MoveSpline.h:39
Definition: MovementPackets.h:107
Definition: MoveSplineInitArgs.h:41