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

#include <SocialMgr.h>

Public Member Functions

 PlayerSocial ()
 
bool AddToSocialList (ObjectGuid const &guid, 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 & GetPlayerGUID () const
 
void SetPlayerGUID (ObjectGuid const &guid)
 
uint32 GetNumberOfSocialsWithFlag (SocialFlag flag)
 

Private Types

typedef std::map< ObjectGuid, FriendInfo > PlayerSocialMap
 

Private Member Functions

bool _HasContact (ObjectGuid const &guid, SocialFlag flags)
 

Private Attributes

PlayerSocialMap _playerSocialMap
 
ObjectGuid _playerGUID
 

Friends

class SocialMgr
 

Detailed Description

Definition at line 101 of file SocialMgr.h.

Member Typedef Documentation

◆ PlayerSocialMap

Definition at line 127 of file SocialMgr.h.

Constructor & Destructor Documentation

◆ PlayerSocial()

PlayerSocial::PlayerSocial ( )

Definition at line 27 of file SocialMgr.cpp.

Member Function Documentation

◆ _HasContact()

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

Definition at line 165 of file SocialMgr.cpp.

References _playerSocialMap, and flags.

Referenced by HasFriend(), and HasIgnore().

◆ AddToSocialList()

◆ GetNumberOfSocialsWithFlag()

uint32 PlayerSocial::GetNumberOfSocialsWithFlag ( SocialFlag  flag)

Definition at line 30 of file SocialMgr.cpp.

References _playerSocialMap.

Referenced by AddToSocialList().

◆ GetPlayerGUID()

ObjectGuid const & PlayerSocial::GetPlayerGUID ( ) const
inline

Definition at line 119 of file SocialMgr.h.

Referenced by AddToSocialList(), RemoveFromSocialList(), and SetFriendNote().

◆ HasFriend()

bool PlayerSocial::HasFriend ( ObjectGuid const &  friendGuid)

◆ HasIgnore()

◆ RemoveFromSocialList()

◆ SendSocialList()

◆ SetFriendNote()

◆ SetPlayerGUID()

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

Definition at line 120 of file SocialMgr.h.

Referenced by SocialMgr::LoadFromDB().

Friends And Related Symbol Documentation

◆ SocialMgr

friend class SocialMgr
friend

Definition at line 103 of file SocialMgr.h.

Member Data Documentation

◆ _playerGUID

ObjectGuid PlayerSocial::_playerGUID
private

Definition at line 130 of file SocialMgr.h.

◆ _playerSocialMap


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