TrinityCore
Loading...
Searching...
No Matches
PlayerSocial Class Reference

#include <SocialMgr.h>

Public Member Functions

 PlayerSocial ()
 
 PlayerSocial (PlayerSocial const &)
 
 PlayerSocial (PlayerSocial &&) noexcept
 
PlayerSocialoperator= (PlayerSocial const &)
 
PlayerSocialoperator= (PlayerSocial &&) noexcept
 
 ~PlayerSocial ()
 
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 135 of file SocialMgr.h.

Constructor & Destructor Documentation

◆ PlayerSocial() [1/3]

PlayerSocial::PlayerSocial ( )
default

◆ PlayerSocial() [2/3]

PlayerSocial::PlayerSocial ( PlayerSocial const &  )
default

◆ PlayerSocial() [3/3]

PlayerSocial::PlayerSocial ( PlayerSocial &&  )
defaultnoexcept

◆ ~PlayerSocial()

PlayerSocial::~PlayerSocial ( )
default

Member Function Documentation

◆ _HasContact()

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

Definition at line 192 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 44 of file SocialMgr.cpp.

+ Here is the call graph for this function:

◆ GetNumberOfSocialsWithFlag()

uint32 PlayerSocial::GetNumberOfSocialsWithFlag ( SocialFlag  flag)

Definition at line 34 of file SocialMgr.cpp.

+ Here is the caller graph for this function:

◆ GetPlayerGUID()

ObjectGuid const & PlayerSocial::GetPlayerGUID ( ) const
inline

Definition at line 127 of file SocialMgr.h.

+ Here is the caller graph for this function:

◆ HasFriend()

bool PlayerSocial::HasFriend ( ObjectGuid const &  friendGuid)

Definition at line 201 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 206 of file SocialMgr.cpp.

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

◆ operator=() [1/2]

PlayerSocial & PlayerSocial::operator= ( PlayerSocial &&  )
defaultnoexcept

◆ operator=() [2/2]

PlayerSocial & PlayerSocial::operator= ( PlayerSocial const &  )
default

◆ RemoveFromSocialList()

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

Definition at line 86 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 148 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 130 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 128 of file SocialMgr.h.

+ Here is the caller graph for this function:

Friends And Related Symbol 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 137 of file SocialMgr.h.

◆ _playerGUID

ObjectGuid PlayerSocial::_playerGUID
private

Definition at line 139 of file SocialMgr.h.

◆ _playerSocialMap

PlayerSocialMap PlayerSocial::_playerSocialMap
private

Definition at line 136 of file SocialMgr.h.


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