TrinityCore
PlayerSocial Class Reference

#include <SocialMgr.h>

Public Member Functions

bool AddToSocialList (ObjectGuid const &guid, ObjectGuid const &accountGuid, SocialFlag flag)
 
void RemoveFromSocialList (ObjectGuid const &guid, SocialFlag flag)
 
void SetFriendNote (ObjectGuid const &guid, std::string const &note)
 
void SendSocialList (Player *player, uint32 flags)
 
bool HasFriend (ObjectGuid const &friendGuid)
 
bool HasIgnore (ObjectGuid const &ignoreGuid, ObjectGuid const &ignoreAccountGuid)
 
ObjectGuid const & GetPlayerGUID () const
 
void SetPlayerGUID (ObjectGuid const &guid)
 
uint32 GetNumberOfSocialsWithFlag (SocialFlag flag)
 

Private Types

typedef std::map< ObjectGuid, FriendInfoPlayerSocialMap
 

Private Member Functions

bool _HasContact (ObjectGuid const &guid, SocialFlag flags)
 

Private Attributes

PlayerSocialMap _playerSocialMap
 
GuidUnorderedSet _ignoredAccounts
 
ObjectGuid _playerGUID
 

Friends

class SocialMgr
 

Detailed Description

Definition at line 103 of file SocialMgr.h.

Member Typedef Documentation

◆ PlayerSocialMap

Definition at line 128 of file SocialMgr.h.

Member Function Documentation

◆ _HasContact()

bool PlayerSocial::_HasContact ( ObjectGuid const &  guid,
SocialFlag  flags 
)
private

Definition at line 175 of file SocialMgr.cpp.

+ Here is the caller graph for this function:

◆ AddToSocialList()

bool PlayerSocial::AddToSocialList ( ObjectGuid const &  guid,
ObjectGuid const &  accountGuid,
SocialFlag  flag 
)

Definition at line 37 of file SocialMgr.cpp.

+ Here is the call graph for this function:

◆ GetNumberOfSocialsWithFlag()

uint32 PlayerSocial::GetNumberOfSocialsWithFlag ( SocialFlag  flag)

Definition at line 27 of file SocialMgr.cpp.

+ Here is the caller graph for this function:

◆ GetPlayerGUID()

ObjectGuid const & PlayerSocial::GetPlayerGUID ( ) const
inline

Definition at line 120 of file SocialMgr.h.

+ Here is the caller graph for this function:

◆ HasFriend()

bool PlayerSocial::HasFriend ( ObjectGuid const &  friendGuid)

Definition at line 184 of file SocialMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasIgnore()

bool PlayerSocial::HasIgnore ( ObjectGuid const &  ignoreGuid,
ObjectGuid const &  ignoreAccountGuid 
)

Definition at line 189 of file SocialMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveFromSocialList()

void PlayerSocial::RemoveFromSocialList ( ObjectGuid const &  guid,
SocialFlag  flag 
)

Definition at line 79 of file SocialMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendSocialList()

void PlayerSocial::SendSocialList ( Player player,
uint32  flags 
)

Definition at line 141 of file SocialMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFriendNote()

void PlayerSocial::SetFriendNote ( ObjectGuid const &  guid,
std::string const &  note 
)

Definition at line 123 of file SocialMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPlayerGUID()

void PlayerSocial::SetPlayerGUID ( ObjectGuid const &  guid)
inline

Definition at line 121 of file SocialMgr.h.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ SocialMgr

friend class SocialMgr
friend

Definition at line 105 of file SocialMgr.h.

Member Data Documentation

◆ _ignoredAccounts

GuidUnorderedSet PlayerSocial::_ignoredAccounts
private

Definition at line 130 of file SocialMgr.h.

◆ _playerGUID

ObjectGuid PlayerSocial::_playerGUID
private

Definition at line 132 of file SocialMgr.h.

◆ _playerSocialMap

PlayerSocialMap PlayerSocial::_playerSocialMap
private

Definition at line 129 of file SocialMgr.h.


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