#include <SocialMgr.h>
SocialMgr::~SocialMgr |
( |
| ) |
|
|
inlineprivate |
235 PlayerSocial::PlayerSocialMap::const_iterator itr2 = itr->second._playerSocialMap.find(player->GetGUID());
236 if (itr2 != itr->second._playerSocialMap.end() && (itr2->second.Flags &
SOCIAL_FLAG_FRIEND) != 0)
249 if (player->IsVisibleGloballyFor(target))
SocialMap _socialMap
Definition: SocialMgr.h:157
#define sWorld
Definition: World.h:887
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
AccountTypes
Definition: Common.h:106
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
Definition: WorldSession.cpp:211
#define ASSERT
Definition: Errors.h:55
Player session in the World.
Definition: WorldSession.h:882
bool HasPermission(uint32 permissionId)
Definition: WorldSession.cpp:1259
Definition: SocialMgr.h:40
177 friendInfo.
Level = 0;
178 friendInfo.
Class = 0;
184 PlayerSocial::PlayerSocialMap::iterator itr = player->GetSocial()->_playerSocialMap.find(friendGUID);
185 if (itr != player->GetSocial()->_playerSocialMap.end())
186 friendInfo.
Note = itr->second.Note;
199 if (target->IsVisibleGloballyFor(player))
203 else if (target->isAFK())
208 friendInfo.
Area = target->GetZoneId();
209 friendInfo.
Level = target->getLevel();
210 friendInfo.
Class = target->getClass();
std::string Note
Definition: SocialMgr.h:56
Definition: SocialMgr.h:34
FriendStatus Status
Definition: SocialMgr.h:51
#define sWorld
Definition: World.h:887
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
uint8 Level
Definition: SocialMgr.h:54
Definition: SocialMgr.h:31
AccountTypes
Definition: Common.h:106
uint8 Class
Definition: SocialMgr.h:55
uint32 Area
Definition: SocialMgr.h:53
Definition: SocialMgr.h:33
Definition: SocialMgr.h:32
Definition: SocialMgr.h:134
static SocialMgr * instance()
Definition: SocialMgr.cpp:164
264 Field* fields = result->Fetch();
267 ObjectGuid friendAccountGuid = ObjectGuid::Create<HighGuid::WowAccount>(
uint64(fields[1].GetUInt32()));
272 while (result->NextRow());
uint64 GetUInt64() const
Definition: Field.h:184
Definition: SocialMgr.h:48
SocialMap _socialMap
Definition: SocialMgr.h:157
Class used to access individual fields of database query result.
Definition: Field.h:56
uint64_t uint64
Definition: g3dmath.h:170
uint8 GetUInt8() const
Definition: Field.h:70
Definition: SocialMgr.h:103
void SetPlayerGUID(ObjectGuid const &guid)
Definition: SocialMgr.h:121
PlayerSocialMap _playerSocialMap
Definition: SocialMgr.h:129
uint8_t uint8
Definition: Define.h:152
Definition: ObjectGuid.h:189
SocialMap _socialMap
Definition: SocialMgr.h:157
220 friendStatus.
Initialize(friendGuid, result, fi);
225 player->SendDirectMessage(friendStatus.
Write());
Definition: SocialMgr.h:48
void BroadcastToFriendListers(Player *player, WorldPacket const *packet)
Definition: SocialMgr.cpp:228
Definition: SocialPackets.h:69
void Initialize(ObjectGuid const &guid, FriendsResult result, FriendInfo const &friendInfo)
Definition: SocialPackets.cpp:72
void GetFriendInfo(Player *player, ObjectGuid const &friendGUID, FriendInfo &friendInfo)
Definition: SocialMgr.cpp:170
WorldPacket const * Write() override
Definition: SocialPackets.cpp:85
The documentation for this class was generated from the following files: