AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MailReceiver Class Reference

#include "Mail.h"

Public Member Functions

 MailReceiver (ObjectGuid::LowType receiver_lowguid)
 
 MailReceiver (Player *receiver)
 
 MailReceiver (Player *receiver, ObjectGuid::LowType receiver_lowguid)
 
PlayerGetPlayer () const
 
ObjectGuid::LowType GetPlayerGUIDLow () const
 

Private Attributes

Playerm_receiver
 
ObjectGuid::LowType m_receiver_lowguid
 

Detailed Description

Constructor & Destructor Documentation

◆ MailReceiver() [1/3]

MailReceiver::MailReceiver ( ObjectGuid::LowType  receiver_lowguid)
inlineexplicit
107: m_receiver(nullptr), m_receiver_lowguid(receiver_lowguid) {}
Player * m_receiver
Definition: Mail.h:114
ObjectGuid::LowType m_receiver_lowguid
Definition: Mail.h:115

◆ MailReceiver() [2/3]

MailReceiver::MailReceiver ( Player receiver)
84 : m_receiver(receiver), m_receiver_lowguid(receiver->GetGUID().GetCounter())
85{
86}
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
LowType GetCounter() const
Definition: ObjectGuid.h:145

◆ MailReceiver() [3/3]

MailReceiver::MailReceiver ( Player receiver,
ObjectGuid::LowType  receiver_lowguid 
)
88 : m_receiver(receiver), m_receiver_lowguid(receiver_lowguid)
89{
90 ASSERT(!receiver || receiver->GetGUID().GetCounter() == receiver_lowguid);
91}
#define ASSERT
Definition: Errors.h:68

References ASSERT, ObjectGuid::GetCounter(), and Object::GetGUID().

Member Function Documentation

◆ GetPlayer()

Player * MailReceiver::GetPlayer ( ) const
inline
111{ return m_receiver; }

References m_receiver.

Referenced by MailDraft::SendMailTo().

◆ GetPlayerGUIDLow()

ObjectGuid::LowType MailReceiver::GetPlayerGUIDLow ( ) const
inline
112{ return m_receiver_lowguid; }

References m_receiver_lowguid.

Referenced by MailDraft::SendMailTo().

Member Data Documentation

◆ m_receiver

Player* MailReceiver::m_receiver
private

Referenced by GetPlayer().

◆ m_receiver_lowguid

ObjectGuid::LowType MailReceiver::m_receiver_lowguid
private

Referenced by GetPlayerGUIDLow().