|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <PointMovementGenerator.h>
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 |
Definition at line 13 of file PointMovementGenerator.h.
|
inline |
Definition at line 16 of file PointMovementGenerator.h.
References i_recalculateSpeed, i_x, i_y, i_z, id, m_generatePath, and speed.
| template void PointMovementGenerator< T >::DoFinalize | ( | T * | ) |
Definition at line 73 of file PointMovementGenerator.cpp.
References MovementInform(), UNIT_STATE_CHARGING, UNIT_STATE_ROAMING, and UNIT_STATE_ROAMING_MOVE.
| template void PointMovementGenerator< T >::DoInitialize | ( | T * | ) |
Definition at line 18 of file PointMovementGenerator.cpp.
| template void PointMovementGenerator< T >::DoReset | ( | T * | ) |
Definition at line 83 of file PointMovementGenerator.cpp.
References UNIT_STATE_ROAMING, and UNIT_STATE_ROAMING_MOVE.
| template bool PointMovementGenerator< T >::DoUpdate | ( | T * | , |
| uint32 | ) |
Definition at line 41 of file PointMovementGenerator.cpp.
References EVENT_CHARGE_PREPATH, i_recalculateSpeed, i_x, i_y, i_z, Movement::MoveSplineInit::Launch(), m_generatePath, Movement::MoveSplineInit::MoveTo(), Movement::MoveSplineInit::SetVelocity(), speed, Object::ToCreature(), UNIT_STATE_ROAMING_MOVE, UNIT_STATE_ROOT, and UNIT_STATE_STUNNED.
|
inline |
Definition at line 30 of file PointMovementGenerator.h.
|
inlinevirtual |
Implements MovementGenerator.
Definition at line 28 of file PointMovementGenerator.h.
References POINT_MOTION_TYPE.
| void PointMovementGenerator< Creature >::MovementInform | ( | Creature * | unit | ) |
Definition at line 94 of file PointMovementGenerator.cpp.
| void PointMovementGenerator< T >::MovementInform | ( | T * | ) |
Definition at line 92 of file PointMovementGenerator.cpp.
Referenced by DoFinalize().
|
inlinevirtual |
Reimplemented from MovementGenerator.
Definition at line 26 of file PointMovementGenerator.h.
References i_recalculateSpeed.
|
private |
Definition at line 36 of file PointMovementGenerator.h.
Referenced by DoUpdate(), PointMovementGenerator(), and unitSpeedChanged().
|
private |
Definition at line 33 of file PointMovementGenerator.h.
Referenced by DoUpdate(), GetDestination(), and PointMovementGenerator().
|
private |
Definition at line 33 of file PointMovementGenerator.h.
Referenced by DoUpdate(), GetDestination(), and PointMovementGenerator().
|
private |
Definition at line 33 of file PointMovementGenerator.h.
Referenced by DoUpdate(), GetDestination(), and PointMovementGenerator().
|
private |
Definition at line 32 of file PointMovementGenerator.h.
Referenced by PointMovementGenerator().
|
private |
Definition at line 35 of file PointMovementGenerator.h.
Referenced by DoUpdate(), and PointMovementGenerator().
|
private |
Definition at line 34 of file PointMovementGenerator.h.
Referenced by DoUpdate(), and PointMovementGenerator().