![]() |
TrinityCore
|
#include <AbstractFollower.h>
Inheritance diagram for AbstractFollower:Public Member Functions | |
| AbstractFollower (Unit *target=nullptr) | |
| ~AbstractFollower () | |
| void | SetTarget (Unit *unit) |
| Unit * | GetTarget () const |
Private Attributes | |
| Unit * | _target = nullptr |
Definition at line 23 of file AbstractFollower.h.
|
inline |
Definition at line 26 of file AbstractFollower.h.
References SetTarget().
|
inline |
Definition at line 27 of file AbstractFollower.h.
References SetTarget().
|
inline |
Definition at line 30 of file AbstractFollower.h.
References _target.
Referenced by FormationMovementGenerator::DoUpdate(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), and FollowMovementGenerator::UpdatePetSpeed().
| void AbstractFollower::SetTarget | ( | Unit * | unit | ) |
Definition at line 21 of file AbstractFollower.cpp.
References _target, Unit::FollowerAdded(), and Unit::FollowerRemoved().
Referenced by AbstractFollower(), and ~AbstractFollower().
|
private |
Definition at line 33 of file AbstractFollower.h.
Referenced by GetTarget(), and SetTarget().