39 if (owner->GetTypeId() ==
TYPEID_UNIT && !
i_target->isInAccessiblePlaceFor(owner->ToCreature()))
42 if (owner->GetTypeId() ==
TYPEID_UNIT && owner->ToCreature()->IsFocusing(
nullptr,
true))
47 if (updateDestination || !
i_path)
52 i_target->GetContactPoint(owner, x, y, z);
73 size = owner->GetObjectSize();
76 if (
i_target->IsWithinDistInMap(owner, dist))
96 bool forceDest = (owner->GetTypeId() ==
TYPEID_UNIT && owner->ToCreature()->IsPet()
107 D::_addUnitStateMove(owner);
114 init.SetWalk(((D*)
this)->EnableWalking());
float x
Definition: Vector3.h:62
Definition: PathGenerator.h:47
G3D::Vector3 const & GetEndPosition() const
Definition: PathGenerator.h:68
FollowerReference i_target
Definition: TargetedMovementGenerator.h:34
Definition: ObjectGuid.h:32
float i_offset
Definition: TargetedMovementGenerator.h:60
float y
Definition: Vector3.h:62
bool CalculatePath(float destX, float destY, float destZ, bool forceDest=false, bool straightLine=false)
Definition: PathGenerator.cpp:57
bool i_targetReached
Definition: TargetedMovementGenerator.h:63
float i_angle
Definition: TargetedMovementGenerator.h:61
G3D::int16 z
Definition: Vector3int16.h:46
Movement::PointsArray const & GetPath() const
Definition: PathGenerator.h:71
G3D::int16 y
Definition: Vector2int16.h:38
Definition: PathGenerator.h:52
PathGenerator * i_path
Definition: TargetedMovementGenerator.h:58
float z
Definition: Vector3.h:62
Definition: ObjectGuid.h:33
bool isValid() const
Definition: Reference.h:78
G3D::int16 x
Definition: Vector2int16.h:37
Definition: MoveSplineInit.h:52
PathType GetPathType() const
Definition: PathGenerator.h:73
TO * getTarget() const
Definition: Reference.h:94
bool i_recalculateTravel
Definition: TargetedMovementGenerator.h:62