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

#include <GroupReference.h>

Public Member Functions

 GroupReference ()
 
 ~GroupReference ()
 
GroupReferencenext ()
 
GroupReference constnext () const
 
uint8 getSubGroup () const
 
void setSubGroup (uint8 pSubGroup)
 
- Public Member Functions inherited from Reference< Group, Player >
 Reference ()
 
virtual ~Reference ()
 
void link (Group *toObj, Player *fromObj)
 
void unlink ()
 
void invalidate ()
 
bool isValid () const
 
Reference< Group, Player > * next ()
 
Reference< Group, Player > constnext () const
 
Reference< Group, Player > * prev ()
 
Reference< Group, Player > constprev () const
 
Reference< Group, Player > * nocheck_next ()
 
Reference< Group, Player > constnocheck_next () const
 
Reference< Group, Player > * nocheck_prev ()
 
Reference< Group, Player > constnocheck_prev () const
 
Groupoperator-> () const
 
GroupgetTarget () const
 
PlayerGetSource () 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)
 

Protected Member Functions

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

Protected Attributes

uint8 iSubGroup
 

Constructor & Destructor Documentation

GroupReference::GroupReference ( )
inline
uint8 iSubGroup
Definition: GroupReference.h:30
GroupReference::~GroupReference ( )
inline
36 { unlink(); }
void unlink()
Definition: Reference.h:61

+ Here is the call graph for this function:

Member Function Documentation

uint8 GroupReference::getSubGroup ( ) const
inline
39 { return iSubGroup; }
uint8 iSubGroup
Definition: GroupReference.h:30
GroupReference* GroupReference::next ( )
inline
Reference< TO, FROM > * next()
Definition: Reference.h:83
Definition: GroupReference.h:27

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GroupReference const* GroupReference::next ( ) const
inline
Reference< TO, FROM > * next()
Definition: Reference.h:83
Definition: GroupReference.h:27

+ Here is the call graph for this function:

void GroupReference::setSubGroup ( uint8  pSubGroup)
inline
40 { iSubGroup = pSubGroup; }
uint8 iSubGroup
Definition: GroupReference.h:30
void GroupReference::sourceObjectDestroyLink ( )
overrideprotectedvirtual

Implements Reference< Group, Player >.

35 {
36  // called from invalidate()
37  //getTarget()->DelinkMember(this);
38 }
void GroupReference::targetObjectBuildLink ( )
overrideprotectedvirtual

Implements Reference< Group, Player >.

23 {
24  // called from link()
25  getTarget()->LinkMember(this);
26 }
void LinkMember(GroupReference *pRef)
Definition: Group.cpp:2680
Group * getTarget() const
Definition: Reference.h:94

+ Here is the call graph for this function:

void GroupReference::targetObjectDestroyLink ( )
overrideprotectedvirtual

Implements Reference< Group, Player >.

29 {
30  // called from unlink()
31  //getTarget()->DelinkMember(this);
32 }

Member Data Documentation

uint8 GroupReference::iSubGroup
protected

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