AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
FollowerReference Class Reference

#include "FollowerReference.h"

Inheritance diagram for FollowerReference:
Reference< Unit, TargetedMovementGeneratorBase > LinkedListElement

Protected Member Functions

void targetObjectBuildLink () override
 
void targetObjectDestroyLink () override
 
void sourceObjectDestroyLink () override
 
virtual void targetObjectBuildLink ()=0
 
virtual void targetObjectDestroyLink ()=0
 
virtual void sourceObjectDestroyLink ()=0
 

Additional Inherited Members

- Public Member Functions inherited from Reference< Unit, TargetedMovementGeneratorBase >
 Reference ()
 
virtual ~Reference ()=default
 
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 ()=default
 
 ~LinkedListElement ()
 
bool hasNext () const
 
bool hasPrev () const
 
bool isInList () const
 
LinkedListElementnext ()
 
LinkedListElement const * next () const
 
LinkedListElementprev ()
 
LinkedListElement const * prev () const
 
LinkedListElementnocheck_next ()
 
LinkedListElement const * nocheck_next () const
 
LinkedListElementnocheck_prev ()
 
LinkedListElement const * nocheck_prev () const
 
void delink ()
 
void insertBefore (LinkedListElement *pElem)
 
void insertAfter (LinkedListElement *pElem)
 

Detailed Description

Member Function Documentation

◆ sourceObjectDestroyLink()

void FollowerReference::sourceObjectDestroyLink ( )
overrideprotectedvirtual

Implements Reference< Unit, TargetedMovementGeneratorBase >.

33{
35}
TargetedMovementGeneratorBase * GetSource() const
Definition: Reference.h:97
void stopFollowing()
Definition: TargetedMovementGenerator.h:32

References Reference< Unit, TargetedMovementGeneratorBase >::GetSource(), and TargetedMovementGeneratorBase::stopFollowing().

◆ targetObjectBuildLink()

void FollowerReference::targetObjectBuildLink ( )
overrideprotectedvirtual

Implements Reference< Unit, TargetedMovementGeneratorBase >.

23{
24 getTarget()->addFollower(this);
25}
Unit * getTarget() const
Definition: Reference.h:95
void addFollower(FollowerReference *pRef)
Definition: Unit.h:1598

References Unit::addFollower(), and Reference< Unit, TargetedMovementGeneratorBase >::getTarget().

◆ targetObjectDestroyLink()

void FollowerReference::targetObjectDestroyLink ( )
overrideprotectedvirtual

Implements Reference< Unit, TargetedMovementGeneratorBase >.

28{
30}
void removeFollower(FollowerReference *)
Definition: Unit.h:1599

References Reference< Unit, TargetedMovementGeneratorBase >::getTarget(), and Unit::removeFollower().