TrinityCore
Loading...
Searching...
No Matches
Movement::MoveSplineInit Class Reference

#include <MoveSplineInit.h>

Public Member Functions

 MoveSplineInit (Unit *m)
 
 ~MoveSplineInit ()
 
 MoveSplineInit (MoveSplineInit const &)=delete
 
MoveSplineInitoperator= (MoveSplineInit const &)=delete
 
 MoveSplineInit (MoveSplineInit &&init)=delete
 
MoveSplineInitoperator= (MoveSplineInit &&)=delete
 
int32 Launch ()
 
void Stop ()
 
void SetParabolic (float amplitude, int32 start_point)
 
void SetAnimation (AnimTier anim, uint32 tierTransitionId=0, int32 transitionStartPoint=0)
 
void SetFadeObject (Milliseconds fadeDuration=1s)
 
void SetFacing (float angle)
 
void SetFacing (Vector3 const &spot)
 
void SetFacing (float x, float y, float z)
 
void SetFacing (Unit const *target)
 
void MovebyPath (std::span< Vector3 const > path, int32 pointId=0)
 
void MoveTo (Vector3 const &destination, bool generatePath=true, bool forceDestination=false)
 
void MoveTo (float x, float y, float z, bool generatePath=true, bool forceDestination=false)
 
void SetFirstPointId (int32 pointId)
 
void SetSmooth ()
 
void SetUncompressed ()
 
void SetFly ()
 
void SetWalk (bool enable)
 
void SetCyclic ()
 
void SetFall ()
 
void SetTransportEnter ()
 
void SetTransportExit ()
 
void SetBackward ()
 
void SetOrientationFixed (bool enable)
 
void SetJumpOrientationFixed (bool enable)
 
void SetSteering ()
 
void SetUnlimitedSpeed ()
 
void SetVelocity (float velocity)
 
void SetSpellEffectExtraData (SpellEffectExtraData const &spellEffectExtraData)
 
void SetTurning (float startFacing, float totalTurnRads, float radsPerSec)
 
PointsArrayPath ()
 
void DisableTransportPathTransformations ()
 

Protected Attributes

MoveSplineInitArgs args
 
Unitunit
 

Detailed Description

Definition at line 36 of file MoveSplineInit.h.

Constructor & Destructor Documentation

◆ MoveSplineInit() [1/3]

Movement::MoveSplineInit::MoveSplineInit ( Unit m)
explicit

Definition at line 231 of file MoveSplineInit.cpp.

+ Here is the call graph for this function:

◆ ~MoveSplineInit()

Movement::MoveSplineInit::~MoveSplineInit ( )
default

◆ MoveSplineInit() [2/3]

Movement::MoveSplineInit::MoveSplineInit ( MoveSplineInit const &  )
delete

◆ MoveSplineInit() [3/3]

Movement::MoveSplineInit::MoveSplineInit ( MoveSplineInit &&  init)
delete

Member Function Documentation

◆ DisableTransportPathTransformations()

void Movement::MoveSplineInit::DisableTransportPathTransformations ( )
inline

Definition at line 213 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ Launch()

int32 Movement::MoveSplineInit::Launch ( )

Definition at line 84 of file MoveSplineInit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MovebyPath()

void Movement::MoveSplineInit::MovebyPath ( std::span< Vector3 const >  path,
int32  pointId = 0 
)

Definition at line 275 of file MoveSplineInit.cpp.

+ Here is the caller graph for this function:

◆ MoveTo() [1/2]

void Movement::MoveSplineInit::MoveTo ( float  x,
float  y,
float  z,
bool  generatePath = true,
bool  forceDestination = false 
)

Definition at line 282 of file MoveSplineInit.cpp.

+ Here is the call graph for this function:

◆ MoveTo() [2/2]

void Movement::MoveSplineInit::MoveTo ( Vector3 const &  destination,
bool  generatePath = true,
bool  forceDestination = false 
)

Definition at line 287 of file MoveSplineInit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [1/2]

MoveSplineInit & Movement::MoveSplineInit::operator= ( MoveSplineInit &&  )
delete

◆ operator=() [2/2]

MoveSplineInit & Movement::MoveSplineInit::operator= ( MoveSplineInit const &  )
delete

◆ Path()

PointsArray & Movement::MoveSplineInit::Path ( )
inline

Definition at line 163 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetAnimation()

void Movement::MoveSplineInit::SetAnimation ( AnimTier  anim,
uint32  tierTransitionId = 0,
int32  transitionStartPoint = 0 
)
inline

Definition at line 196 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetBackward()

void Movement::MoveSplineInit::SetBackward ( )
inline

Definition at line 180 of file MoveSplineInit.h.

◆ SetCyclic()

void Movement::MoveSplineInit::SetCyclic ( )
inline

Definition at line 178 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetFacing() [1/4]

void Movement::MoveSplineInit::SetFacing ( float  angle)

Definition at line 268 of file MoveSplineInit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFacing() [2/4]

void Movement::MoveSplineInit::SetFacing ( float  x,
float  y,
float  z 
)

Definition at line 256 of file MoveSplineInit.cpp.

+ Here is the call graph for this function:

◆ SetFacing() [3/4]

void Movement::MoveSplineInit::SetFacing ( Unit const *  target)

Definition at line 261 of file MoveSplineInit.cpp.

+ Here is the call graph for this function:

◆ SetFacing() [4/4]

void Movement::MoveSplineInit::SetFacing ( Vector3 const &  spot)

Definition at line 246 of file MoveSplineInit.cpp.

◆ SetFadeObject()

void Movement::MoveSplineInit::SetFadeObject ( Milliseconds  fadeDuration = 1s)
inline

Definition at line 206 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetFall()

void Movement::MoveSplineInit::SetFall ( )

Definition at line 306 of file MoveSplineInit.cpp.

+ Here is the call graph for this function:

◆ SetFirstPointId()

void Movement::MoveSplineInit::SetFirstPointId ( int32  pointId)
inline

Definition at line 96 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetFly()

void Movement::MoveSplineInit::SetFly ( )
inline

Definition at line 174 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetJumpOrientationFixed()

void Movement::MoveSplineInit::SetJumpOrientationFixed ( bool  enable)
inline

Definition at line 184 of file MoveSplineInit.h.

◆ SetOrientationFixed()

void Movement::MoveSplineInit::SetOrientationFixed ( bool  enable)
inline

Definition at line 183 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetParabolic()

void Movement::MoveSplineInit::SetParabolic ( float  amplitude,
int32  start_point 
)
inline

Adds movement by parabolic trajectory

Parameters
amplitudethe maximum height of parabola, value could be negative and positive
start_pointpoint index on the path where parabolic movement starts can't be combined with final animation or fade object

Definition at line 188 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetSmooth()

void Movement::MoveSplineInit::SetSmooth ( )
inline

Definition at line 176 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetSpellEffectExtraData()

void Movement::MoveSplineInit::SetSpellEffectExtraData ( SpellEffectExtraData const &  spellEffectExtraData)
inline

Definition at line 215 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetSteering()

void Movement::MoveSplineInit::SetSteering ( )
inline

Definition at line 185 of file MoveSplineInit.h.

◆ SetTransportEnter()

void Movement::MoveSplineInit::SetTransportEnter ( )
inline

Definition at line 181 of file MoveSplineInit.h.

◆ SetTransportExit()

void Movement::MoveSplineInit::SetTransportExit ( )
inline

Definition at line 182 of file MoveSplineInit.h.

◆ SetTurning()

void Movement::MoveSplineInit::SetTurning ( float  startFacing,
float  totalTurnRads,
float  radsPerSec 
)
inline

Definition at line 220 of file MoveSplineInit.h.

◆ SetUncompressed()

void Movement::MoveSplineInit::SetUncompressed ( )
inline

Definition at line 177 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetUnlimitedSpeed()

void Movement::MoveSplineInit::SetUnlimitedSpeed ( )
inline

Definition at line 186 of file MoveSplineInit.h.

◆ SetVelocity()

void Movement::MoveSplineInit::SetVelocity ( float  velocity)
inline

Definition at line 179 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ SetWalk()

void Movement::MoveSplineInit::SetWalk ( bool  enable)
inline

Definition at line 175 of file MoveSplineInit.h.

+ Here is the caller graph for this function:

◆ Stop()

void Movement::MoveSplineInit::Stop ( )

Definition at line 179 of file MoveSplineInit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ args

MoveSplineInitArgs Movement::MoveSplineInit::args
protected

Definition at line 170 of file MoveSplineInit.h.

◆ unit

Unit* Movement::MoveSplineInit::unit
protected

Definition at line 171 of file MoveSplineInit.h.


The documentation for this class was generated from the following files: