![]() |
TrinityCore
|
#include "ChaseMovementGenerator.h"#include "Creature.h"#include "CreatureAI.h"#include "G3DPosition.hpp"#include "MotionMaster.h"#include "MoveSpline.h"#include "MoveSplineInit.h"#include "PathGenerator.h"#include "Unit.h"
Include dependency graph for ChaseMovementGenerator.cpp:Go to the source code of this file.
Functions | |
| static bool | HasLostTarget (Unit *owner, Unit *target) |
| static bool | IsMutualChase (Unit *owner, Unit *target) |
| static bool | PositionOkay (Unit *owner, Unit *target, Optional< float > minDistance, Optional< float > maxDistance, Optional< ChaseAngle > angle) |
| static void | DoMovementInform (Unit *owner, Unit *target) |
Definition at line 57 of file ChaseMovementGenerator.cpp.
References Creature::AI(), CHASE_MOTION_TYPE, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), Object::ToCreature(), and TYPEID_UNIT.
Referenced by ChaseMovementGenerator::Update(), and FollowMovementGenerator::Update().
Definition at line 28 of file ChaseMovementGenerator.cpp.
References Unit::GetVictim().
Referenced by ChaseMovementGenerator::Update().
Definition at line 33 of file ChaseMovementGenerator.cpp.
References CHASE_MOTION_TYPE, MotionMaster::GetCurrentMovementGenerator(), MotionMaster::GetCurrentMovementGeneratorType(), Unit::GetMotionMaster(), and Unit::GetTarget().
Referenced by ChaseMovementGenerator::Update().
|
static |
Definition at line 44 of file ChaseMovementGenerator.cpp.
References Position::GetRelativeAngle(), Position::IsInDist(), and WorldObject::IsWithinLOSInMap().
Referenced by ChaseMovementGenerator::Update(), and FollowMovementGenerator::Update().