TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
FollowerReference Class Reference

#include <FollowerReference.h>

Protected Member Functions

void targetObjectBuildLink () override
 
void targetObjectDestroyLink () override
 
void sourceObjectDestroyLink () override
 

Additional Inherited Members

- Public Member Functions inherited from Reference< Unit, TargetedMovementGeneratorBase >
 Reference ()
 
virtual ~Reference ()
 
void link (Unit *toObj, TargetedMovementGeneratorBase *fromObj)
 
void unlink ()
 
void invalidate ()
 
bool isValid () const
 
Reference< Unit,
TargetedMovementGeneratorBase > * 
next ()
 
Reference< Unit,
TargetedMovementGeneratorBase >
const
next () const
 
Reference< Unit,
TargetedMovementGeneratorBase > * 
prev ()
 
Reference< Unit,
TargetedMovementGeneratorBase >
const
prev () const
 
Reference< Unit,
TargetedMovementGeneratorBase > * 
nocheck_next ()
 
Reference< Unit,
TargetedMovementGeneratorBase >
const
nocheck_next () const
 
Reference< Unit,
TargetedMovementGeneratorBase > * 
nocheck_prev ()
 
Reference< Unit,
TargetedMovementGeneratorBase >
const
nocheck_prev () const
 
Unitoperator-> () const
 
UnitgetTarget () const
 
TargetedMovementGeneratorBaseGetSource () const
 
- Public Member Functions inherited from LinkedListElement
 LinkedListElement ()
 
virtual ~LinkedListElement ()
 
bool hasNext () const
 
bool hasPrev () const
 
bool isInList () const
 
LinkedListElementnext ()
 
LinkedListElement constnext () const
 
LinkedListElementprev ()
 
LinkedListElement constprev () const
 
LinkedListElementnocheck_next ()
 
LinkedListElement constnocheck_next () const
 
LinkedListElementnocheck_prev ()
 
LinkedListElement constnocheck_prev () const
 
void delink ()
 
void insertBefore (LinkedListElement *pElem)
 
void insertAfter (LinkedListElement *pElem)
 

Member Function Documentation

void FollowerReference::sourceObjectDestroyLink ( )
overrideprotectedvirtual

Implements Reference< Unit, TargetedMovementGeneratorBase >.

34 {
36 }
void stopFollowing()
Definition: TargetedMovementGenerator.h:32
TargetedMovementGeneratorBase * GetSource() const
Definition: Reference.h:96

+ Here is the call graph for this function:

void FollowerReference::targetObjectBuildLink ( )
overrideprotectedvirtual

Implements Reference< Unit, TargetedMovementGeneratorBase >.

24 {
25  getTarget()->addFollower(this);
26 }
void addFollower(FollowerReference *pRef)
Definition: Unit.h:2098
Unit * getTarget() const
Definition: Reference.h:94

+ Here is the call graph for this function:

void FollowerReference::targetObjectDestroyLink ( )
overrideprotectedvirtual

Implements Reference< Unit, TargetedMovementGeneratorBase >.

29 {
30  getTarget()->removeFollower(this);
31 }
void removeFollower(FollowerReference *)
Definition: Unit.h:2099
Unit * getTarget() const
Definition: Reference.h:94

+ Here is the call graph for this function:


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