TrinityCore
Loading...
Searching...
No Matches
PointMovementGenerator< T > Class Template Reference

#include <PointMovementGenerator.h>

+ Inheritance diagram for PointMovementGenerator< T >:

Public Member Functions

 PointMovementGenerator (uint32 id, float x, float y, float z, bool generatePath, float speed=0.0f, Optional< float > finalOrient={})
 
MovementGeneratorType GetMovementGeneratorType () const override
 
bool DoInitialize (T *)
 
bool DoReset (T *)
 
bool DoUpdate (T *, uint32)
 
void DoDeactivate (T *)
 
void DoFinalize (T *, bool, bool)
 
void UnitSpeedChanged () override
 
uint32 GetId () const
 
- Public Member Functions inherited from MovementGeneratorMedium< T, PointMovementGenerator< T > >
bool Initialize (Unit *owner) override
 
bool Reset (Unit *owner) override
 
bool Update (Unit *owner, uint32 diff) override
 
void Deactivate (Unit *owner) override
 
void Finalize (Unit *owner, bool active, bool movementInform) override
 
- Public Member Functions inherited from MovementGenerator
 MovementGenerator ()
 
virtual ~MovementGenerator ()
 
virtual void Pause (uint32)
 
virtual void Resume (uint32)
 
virtual bool GetResetPosition (Unit *, float &, float &, float &)
 
void AddFlag (uint16 const flag)
 
bool HasFlag (uint16 const flag) const
 
void RemoveFlag (uint16 const flag)
 
virtual std::string GetDebugInfo () const
 

Private Member Functions

void MovementInform (T *)
 

Private Attributes

uint32 _movementId
 
float _x
 
float _y
 
float _z
 
float _speed
 
bool _generatePath
 
Optional< float > _finalOrient
 if set then unit will turn to specified _orient in provided _pos
 

Additional Inherited Members

- Public Attributes inherited from MovementGenerator
uint8 Priority
 
uint16 Flags
 
uint32 BaseUnitState
 

Detailed Description

template<class T>
class PointMovementGenerator< T >

Definition at line 27 of file PointMovementGenerator.h.

Constructor & Destructor Documentation

◆ PointMovementGenerator()

template<class T >
template PointMovementGenerator< T >::PointMovementGenerator ( uint32  id,
float  x,
float  y,
float  z,
bool  generatePath,
float  speed = 0.0f,
Optional< float >  finalOrient = {} 
)
explicit

Definition at line 31 of file PointMovementGenerator.cpp.

Member Function Documentation

◆ DoDeactivate()

template<class T >
template void PointMovementGenerator< T >::DoDeactivate ( T *  )

Definition at line 139 of file PointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoFinalize()

template<class T >
template void PointMovementGenerator< T >::DoFinalize ( T *  ,
bool  ,
bool   
)

Definition at line 146 of file PointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoInitialize()

template<class T >
template bool PointMovementGenerator< T >::DoInitialize ( T *  )

Definition at line 45 of file PointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoReset()

template<class T >
template bool PointMovementGenerator< T >::DoReset ( T *  )

Definition at line 82 of file PointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoUpdate()

template<class T >
template bool PointMovementGenerator< T >::DoUpdate ( T *  ,
uint32   
)

Definition at line 90 of file PointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ GetId()

template<class T >
uint32 PointMovementGenerator< T >::GetId ( ) const
inline

Definition at line 42 of file PointMovementGenerator.h.

◆ GetMovementGeneratorType()

template<class T >
template MovementGeneratorType PointMovementGenerator< T >::GetMovementGeneratorType ( ) const
overridevirtual

Implements MovementGenerator.

Definition at line 39 of file PointMovementGenerator.cpp.

◆ MovementInform()

template<class T >
void PointMovementGenerator< T >::MovementInform ( T *  )
private

Definition at line 157 of file PointMovementGenerator.cpp.

◆ UnitSpeedChanged()

template<class T >
void PointMovementGenerator< T >::UnitSpeedChanged ( )
inlineoverridevirtual

Reimplemented from MovementGenerator.

Definition at line 40 of file PointMovementGenerator.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ _finalOrient

template<class T >
Optional<float> PointMovementGenerator< T >::_finalOrient
private

if set then unit will turn to specified _orient in provided _pos

Definition at line 52 of file PointMovementGenerator.h.

◆ _generatePath

template<class T >
bool PointMovementGenerator< T >::_generatePath
private

Definition at line 50 of file PointMovementGenerator.h.

◆ _movementId

template<class T >
uint32 PointMovementGenerator< T >::_movementId
private

Definition at line 47 of file PointMovementGenerator.h.

◆ _speed

template<class T >
float PointMovementGenerator< T >::_speed
private

Definition at line 49 of file PointMovementGenerator.h.

◆ _x

template<class T >
float PointMovementGenerator< T >::_x
private

Definition at line 48 of file PointMovementGenerator.h.

◆ _y

template<class T >
float PointMovementGenerator< T >::_y
private

Definition at line 48 of file PointMovementGenerator.h.

◆ _z

template<class T >
float PointMovementGenerator< T >::_z
private

Definition at line 48 of file PointMovementGenerator.h.


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