![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "PointMovementGenerator.h"
Public Member Functions | |
| PointMovementGenerator (uint32 _id, float _x, float _y, float _z, ForcedMovement forcedMovement, float _speed=0.0f, float orientation=0.0f, const Movement::PointsArray *_path=nullptr, bool generatePath=false, bool forceDestination=false, ObjectGuid chargeTargetGUID=ObjectGuid::Empty, bool reverseOrientation=false, ObjectGuid facingTargetGuid=ObjectGuid()) | |
| void | DoInitialize (T *) |
| void | DoFinalize (T *) |
| void | DoReset (T *) |
| bool | DoUpdate (T *, uint32) |
| void | MovementInform (T *) |
| void | unitSpeedChanged () |
| MovementGeneratorType | GetMovementGeneratorType () |
| bool | GetDestination (float &x, float &y, float &z) const |
Public Member Functions inherited from MovementGeneratorMedium< T, PointMovementGenerator< T > > | |
| void | Initialize (Unit *u) override |
| void | Finalize (Unit *u) override |
| void | Reset (Unit *u) override |
| bool | Update (Unit *u, uint32 time_diff) override |
Public Member Functions inherited from MovementGenerator | |
| virtual | ~MovementGenerator () |
| virtual uint32 | GetSplineId () const |
| virtual void | Pause (uint32) |
| virtual void | Resume (uint32) |
| virtual bool | GetResetPosition (float &, float &, float &) |
Private Attributes | |
| uint32 | id |
| float | i_x |
| float | i_y |
| float | i_z |
| float | speed |
| float | i_orientation |
| bool | i_recalculateSpeed |
| Movement::PointsArray | m_precomputedPath |
| bool | _generatePath |
| bool | _forceDestination |
| bool | _reverseOrientation |
| ObjectGuid | _chargeTargetGUID |
| ForcedMovement | _forcedMovement |
| ObjectGuid | _facingTargetGuid |
|
inline |
References PointMovementGenerator< T >::m_precomputedPath.
| template void PointMovementGenerator< T >::DoFinalize | ( | T * | ) |
References EVENT_CHARGE, EVENT_CHARGE_PREPATH, ObjectAccessor::GetUnit(), UNIT_STATE_CHARGING, UNIT_STATE_ROAMING, and UNIT_STATE_ROAMING_MOVE.
| template void PointMovementGenerator< T >::DoInitialize | ( | T * | ) |
References UNIT_STATE_NOT_MOVE.
| template void PointMovementGenerator< T >::DoReset | ( | T * | ) |
References EVENT_CHARGE, EVENT_CHARGE_PREPATH, UNIT_STATE_CHARGING, UNIT_STATE_ROAMING, and UNIT_STATE_ROAMING_MOVE.
| template bool PointMovementGenerator< T >::DoUpdate | ( | T * | , |
| uint32 | |||
| ) |
References EVENT_CHARGE_PREPATH, FORCED_MOVEMENT_RUN, FORCED_MOVEMENT_WALK, Movement::MoveSplineInit::Launch(), Movement::MoveSplineInit::MovebyPath(), Movement::MoveSplineInit::MoveTo(), Movement::MoveSplineInit::SetFacing(), Movement::MoveSplineInit::SetVelocity(), Movement::MoveSplineInit::SetWalk(), UNIT_STATE_CHARGING, UNIT_STATE_NOT_MOVE, and UNIT_STATE_ROAMING_MOVE.
|
inline |
|
inlinevirtual |
| void PointMovementGenerator< T >::MovementInform | ( | T * | ) |
|
inlinevirtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by PointMovementGenerator< T >::unitSpeedChanged().
|
private |
Referenced by PointMovementGenerator< T >::GetDestination().
|
private |
Referenced by PointMovementGenerator< T >::GetDestination().
|
private |
Referenced by PointMovementGenerator< T >::GetDestination().
|
private |
|
private |
Referenced by PointMovementGenerator< T >::PointMovementGenerator().
|
private |