TrinityCore
Loading...
Searching...
No Matches
AbstractFollower Struct Reference

#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
 

Detailed Description

Definition at line 23 of file AbstractFollower.h.

Constructor & Destructor Documentation

◆ AbstractFollower()

AbstractFollower::AbstractFollower ( Unit *  target = nullptr)
inline

Definition at line 26 of file AbstractFollower.h.

References SetTarget().

◆ ~AbstractFollower()

AbstractFollower::~AbstractFollower ( )
inline

Definition at line 27 of file AbstractFollower.h.

References SetTarget().

Member Function Documentation

◆ GetTarget()

Unit * AbstractFollower::GetTarget ( ) const
inline

◆ SetTarget()

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().

Member Data Documentation

◆ _target

Unit* AbstractFollower::_target = nullptr
private

Definition at line 33 of file AbstractFollower.h.

Referenced by GetTarget(), and SetTarget().


The documentation for this struct was generated from the following files: