Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
PointMovementGenerator< T > Class Template Reference

#include <PointMovementGenerator.h>

Inheritance diagram for PointMovementGenerator< T >:
Collaboration diagram for PointMovementGenerator< T >:

Public Member Functions

void DoFinalize (T *)
void DoInitialize (T *)
void DoReset (T *)
bool DoUpdate (T *, uint32)
void GetDestination (float &x, float &y, float &z) const
MovementGeneratorType GetMovementGeneratorType ()
void MovementInform (Creature *unit)
void MovementInform (T *)
 PointMovementGenerator (uint32 _id, float _x, float _y, float _z, bool _generatePath, float _speed=0.0f)
void unitSpeedChanged ()
Public Member Functions inherited from MovementGeneratorMedium< T, PointMovementGenerator< T > >
void Finalize (Unit *u)
void Initialize (Unit *u)
void Reset (Unit *u)
bool Update (Unit *u, uint32 time_diff)
Public Member Functions inherited from MovementGenerator
virtual bool GetResetPosition (Unit *, float &, float &, float &)
virtual ~MovementGenerator ()

Private Attributes

bool i_recalculateSpeed
float i_x
float i_y
float i_z
uint32 id
bool m_generatePath
float speed

Detailed Description

template<class T>
class PointMovementGenerator< T >

Definition at line 13 of file PointMovementGenerator.h.

Constructor & Destructor Documentation

◆ PointMovementGenerator()

template<class T>
PointMovementGenerator< T >::PointMovementGenerator ( uint32 _id,
float _x,
float _y,
float _z,
bool _generatePath,
float _speed = 0.0f )
inline

Definition at line 16 of file PointMovementGenerator.h.

References i_recalculateSpeed, i_x, i_y, i_z, id, m_generatePath, and speed.

Member Function Documentation

◆ DoFinalize()

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

◆ DoInitialize()

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

Definition at line 18 of file PointMovementGenerator.cpp.

◆ DoReset()

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

Definition at line 83 of file PointMovementGenerator.cpp.

References UNIT_STATE_ROAMING, and UNIT_STATE_ROAMING_MOVE.

◆ DoUpdate()

◆ GetDestination()

template<class T>
void PointMovementGenerator< T >::GetDestination ( float & x,
float & y,
float & z ) const
inline

Definition at line 30 of file PointMovementGenerator.h.

References i_x, i_y, and i_z.

◆ GetMovementGeneratorType()

template<class T>
MovementGeneratorType PointMovementGenerator< T >::GetMovementGeneratorType ( )
inlinevirtual

Implements MovementGenerator.

Definition at line 28 of file PointMovementGenerator.h.

References POINT_MOTION_TYPE.

◆ MovementInform() [1/2]

void PointMovementGenerator< Creature >::MovementInform ( Creature * unit)

Definition at line 94 of file PointMovementGenerator.cpp.

◆ MovementInform() [2/2]

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

Definition at line 92 of file PointMovementGenerator.cpp.

Referenced by DoFinalize().

◆ unitSpeedChanged()

template<class T>
void PointMovementGenerator< T >::unitSpeedChanged ( )
inlinevirtual

Reimplemented from MovementGenerator.

Definition at line 26 of file PointMovementGenerator.h.

References i_recalculateSpeed.

Member Data Documentation

◆ i_recalculateSpeed

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

Definition at line 36 of file PointMovementGenerator.h.

Referenced by DoUpdate(), PointMovementGenerator(), and unitSpeedChanged().

◆ i_x

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

Definition at line 33 of file PointMovementGenerator.h.

Referenced by DoUpdate(), GetDestination(), and PointMovementGenerator().

◆ i_y

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

Definition at line 33 of file PointMovementGenerator.h.

Referenced by DoUpdate(), GetDestination(), and PointMovementGenerator().

◆ i_z

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

Definition at line 33 of file PointMovementGenerator.h.

Referenced by DoUpdate(), GetDestination(), and PointMovementGenerator().

◆ id

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

Definition at line 32 of file PointMovementGenerator.h.

Referenced by PointMovementGenerator().

◆ m_generatePath

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

Definition at line 35 of file PointMovementGenerator.h.

Referenced by DoUpdate(), and PointMovementGenerator().

◆ speed

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

Definition at line 34 of file PointMovementGenerator.h.

Referenced by DoUpdate(), and PointMovementGenerator().


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