19 #ifndef TRINITYSERVER_MOVESPLINEINIT_H
20 #define TRINITYSERVER_MOVESPLINEINIT_H
42 : _owner(owner), _transformForTransport(transformForTransport) { }
71 void SetParabolic(
float amplitude,
float start_time);
81 void SetFacing(
float angle);
82 void SetFacing(
Vector3 const& point);
83 void SetFacing(
const Unit* target);
93 void MoveTo(
const Vector3& destination,
bool generatePath =
true,
bool forceDestination =
false);
94 void MoveTo(
float x,
float y,
float z,
bool generatePath =
true,
bool forceDestination =
false);
108 void SetUncompressed();
116 void SetWalk(
bool enable);
128 void SetTransportEnter();
132 void SetTransportExit();
136 void SetOrientationInversed();
140 void SetOrientationFixed(
bool enable);
147 void SetVelocity(
float velocity);
153 void DisableTransportPathTransformations();
199 Vector3 finalSpot = transform(spot);
208 #endif // TRINITYSERVER_MOVESPLINEINIT_H
bool HasVelocity
Definition: MoveSplineInitArgs.h:59
void SetVelocity(float velocity)
Definition: MoveSplineInit.h:165
float x
Definition: Vector3.h:62
bool cyclic
Definition: MoveSplineFlag.h:121
void SetCyclic()
Definition: MoveSplineInit.h:164
int32 path_Idx_offset
Definition: MoveSplineInitArgs.h:53
MoveSplineFlag flags
Definition: MoveSplineInitArgs.h:52
bool orientationInversed
Definition: MoveSplineFlag.h:128
float parabolic_amplitude
Definition: MoveSplineInitArgs.h:55
Definition: MoveSplineInit.h:34
void SetOrientationInversed()
Definition: MoveSplineInit.h:166
Definition: MoveSplineInit.h:33
void SetFly()
Definition: MoveSplineInit.h:160
PointsArray & Path()
Definition: MoveSplineInit.h:149
void SetAnimation(AnimType anim)
Definition: MoveSplineInit.h:190
MoveSplineInitArgs args
Definition: MoveSplineInit.h:156
float y
Definition: Vector3.h:62
float time_perc
Definition: MoveSplineInitArgs.h:56
void MovebyPath(const PointsArray &path, int32 pointId=0)
Definition: MoveSplineInit.h:171
void MoveTo(const Vector3 &destination, bool generatePath=true, bool forceDestination=false)
Definition: MoveSplineInit.cpp:206
void EnableAnimation(uint8 anim)
Definition: MoveSplineFlag.h:100
bool TransformForTransport
Definition: MoveSplineInitArgs.h:60
Definition: MoveSplineInit.h:31
G3D::Vector3 f
Definition: MoveSplineInitArgs.h:34
PointsArray path
Definition: MoveSplineInitArgs.h:50
Unit * unit
Definition: MoveSplineInit.h:157
void DisableTransportPathTransformations()
Definition: MoveSplineInit.h:206
FacingInfo facing
Definition: MoveSplineInitArgs.h:51
G3D::int16 z
Definition: Vector3int16.h:46
std::vector< Vector3 > PointsArray
Definition: MoveSplineInitArgs.h:30
int32_t int32
Definition: Define.h:146
G3D::int16 y
Definition: Vector2int16.h:38
void SetTransportEnter()
Definition: MoveSplineInit.h:167
void EnableParabolic()
Definition: MoveSplineFlag.h:101
bool walkmode
Definition: MoveSplineFlag.h:130
float velocity
Definition: MoveSplineInitArgs.h:54
void SetTransportExit()
Definition: MoveSplineInit.h:168
void SetWalk(bool enable)
Definition: MoveSplineInit.h:161
void SetOrientationFixed(bool enable)
Definition: MoveSplineInit.h:169
void EnableTransportExit()
Definition: MoveSplineFlag.h:109
float z
Definition: Vector3.h:62
void EnableFacingPoint()
Definition: MoveSplineFlag.h:105
AnimType
Definition: MoveSplineInit.h:29
bool uncompressedPath
Definition: MoveSplineFlag.h:131
#define TC_GAME_API
Definition: Define.h:134
void SetFirstPointId(int32 pointId)
Definition: MoveSplineInit.h:99
uint8_t uint8
Definition: Define.h:152
void EnableTransportEnter()
Definition: MoveSplineFlag.h:108
G3D::int16 x
Definition: Vector2int16.h:37
Definition: MoveSplineInit.h:32
void SetParabolic(float amplitude, float start_time)
Definition: MoveSplineInit.h:183
Definition: MoveSplineInit.h:52
void EnableCatmullRom()
Definition: MoveSplineFlag.h:104
void SetUncompressed()
Definition: MoveSplineInit.h:163
void SetSmooth()
Definition: MoveSplineInit.h:162
void SetFacing(float angle)
Definition: MoveSplineInit.cpp:192
Definition: MoveSplineInitArgs.h:41
bool orientationFixed
Definition: MoveSplineFlag.h:119
void EnableFlying()
Definition: MoveSplineFlag.h:102