31PointMovementGenerator<T>::PointMovementGenerator(
uint32 id,
float x,
float y,
float z,
bool generatePath,
float speed,
Optional<float> finalOrient) : _movementId(id), _x(x), _y(y), _z(z), _speed(speed), _generatePath(generatePath), _finalOrient(finalOrient)
66 init.
MoveTo(_x, _y, _z , _generatePath);
77 creature->SignalFormationMovement();
86 return DoInitialize(owner);
97 if (owner->movespline->Finalized())
119 init.
MoveTo(_x, _y, _z, _generatePath);
126 creature->SignalFormationMovement();
129 if (owner->movespline->Finalized())
153 MovementInform(owner);
@ MOVEMENTGENERATOR_FLAG_INITIALIZATION_PENDING
@ MOVEMENTGENERATOR_FLAG_DEACTIVATED
@ MOVEMENTGENERATOR_FLAG_FINALIZED
@ MOVEMENTGENERATOR_FLAG_TRANSITORY
@ MOVEMENTGENERATOR_FLAG_INTERRUPTED
@ MOVEMENTGENERATOR_FLAG_INFORM_ENABLED
@ MOVEMENTGENERATOR_FLAG_INITIALIZED
@ MOVEMENTGENERATOR_FLAG_SPEED_UPDATE_PENDING
std::optional< T > Optional
Optional helper class to wrap optional values within.
@ UNIT_STATE_ROAMING_MOVE
void Finalize(Unit *, bool, bool) override
MovementGeneratorType GetMovementGeneratorType() const override
virtual void MovementInform(uint32, uint32)
void SetNoCallAssistance(bool val)
void MoveSeekAssistanceDistract(uint32 timer)
void AddFlag(uint16 const flag)
bool HasFlag(uint16 const flag) const
void RemoveFlag(uint16 const flag)
void MoveTo(Vector3 const &destination, bool generatePath=true, bool forceDestination=false)
void SetVelocity(float velocity)
void SetFacing(float angle)
static Creature * ToCreature(Object *o)
void DoFinalize(T *, bool, bool)
bool DoUpdate(T *, uint32)
MovementGeneratorType GetMovementGeneratorType() const override
PointMovementGenerator(uint32 id, float x, float y, float z, bool generatePath, float speed=0.0f, Optional< float > finalOrient={})
void ClearUnitState(uint32 f)
MotionMaster * GetMotionMaster()
@ CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY