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

#include <SocialMgr.h>

Public Member Functions

 SocialMgr (SocialMgr const &)=delete
 
 SocialMgr (SocialMgr &&)=delete
 
SocialMgroperator= (SocialMgr const &)=delete
 
SocialMgroperator= (SocialMgr &&)=delete
 
void RemovePlayerSocial (ObjectGuid const &guid)
 
void SendFriendStatus (Player *player, FriendsResult result, ObjectGuid const &friendGuid, bool broadcast=false)
 
void BroadcastToFriendListers (Player *player, WorldPacket const *packet)
 
PlayerSocialLoadFromDB (PreparedQueryResult result, ObjectGuid const &guid)
 

Static Public Member Functions

static SocialMgrinstance ()
 
static void GetFriendInfo (Player *player, ObjectGuid const &friendGUID, FriendInfo &friendInfo)
 

Private Types

typedef std::map< ObjectGuid, PlayerSocialSocialMap
 

Private Member Functions

 SocialMgr ()
 
 ~SocialMgr ()
 

Private Attributes

SocialMap _socialMap
 

Detailed Description

Definition at line 142 of file SocialMgr.h.

Member Typedef Documentation

◆ SocialMap

typedef std::map<ObjectGuid, PlayerSocial> SocialMgr::SocialMap
private

Definition at line 169 of file SocialMgr.h.

Constructor & Destructor Documentation

◆ SocialMgr() [1/3]

SocialMgr::SocialMgr ( )
privatedefault

◆ ~SocialMgr()

SocialMgr::~SocialMgr ( )
privatedefault

◆ SocialMgr() [2/3]

SocialMgr::SocialMgr ( SocialMgr const &  )
delete

◆ SocialMgr() [3/3]

SocialMgr::SocialMgr ( SocialMgr &&  )
delete

Member Function Documentation

◆ BroadcastToFriendListers()

void SocialMgr::BroadcastToFriendListers ( Player player,
WorldPacket const *  packet 
)

Definition at line 291 of file SocialMgr.cpp.

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

◆ GetFriendInfo()

void SocialMgr::GetFriendInfo ( Player player,
ObjectGuid const &  friendGUID,
FriendInfo friendInfo 
)
static

Definition at line 220 of file SocialMgr.cpp.

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

◆ instance()

SocialMgr * SocialMgr::instance ( )
static

Definition at line 214 of file SocialMgr.cpp.

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

◆ LoadFromDB()

PlayerSocial * SocialMgr::LoadFromDB ( PreparedQueryResult  result,
ObjectGuid const &  guid 
)

Definition at line 318 of file SocialMgr.cpp.

+ Here is the call graph for this function:

◆ operator=() [1/2]

SocialMgr & SocialMgr::operator= ( SocialMgr &&  )
delete

◆ operator=() [2/2]

SocialMgr & SocialMgr::operator= ( SocialMgr const &  )
delete

◆ RemovePlayerSocial()

void SocialMgr::RemovePlayerSocial ( ObjectGuid const &  guid)
inline

Definition at line 157 of file SocialMgr.h.

◆ SendFriendStatus()

void SocialMgr::SendFriendStatus ( Player player,
FriendsResult  result,
ObjectGuid const &  friendGuid,
bool  broadcast = false 
)

Definition at line 269 of file SocialMgr.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _socialMap

SocialMap SocialMgr::_socialMap
private

Definition at line 170 of file SocialMgr.h.


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