TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 

Constructor & Destructor Documentation

MailReceiver::MailReceiver ( ObjectGuid::LowType  receiver_lowguid)
inlineexplicit
107 : m_receiver(NULL), m_receiver_lowguid(receiver_lowguid) { }
arena_t NULL
Definition: jemalloc_internal.h:624
Player * m_receiver
Definition: Mail.h:114
ObjectGuid::LowType m_receiver_lowguid
Definition: Mail.h:115
MailReceiver::MailReceiver ( Player receiver)
72 : m_receiver(receiver), m_receiver_lowguid(receiver->GetGUID().GetCounter()) { }
Player * m_receiver
Definition: Mail.h:114
ObjectGuid::LowType m_receiver_lowguid
Definition: Mail.h:115
MailReceiver::MailReceiver ( Player receiver,
ObjectGuid::LowType  receiver_lowguid 
)
74  : m_receiver(receiver), m_receiver_lowguid(receiver_lowguid)
75 {
76  ASSERT(!receiver || receiver->GetGUID().GetCounter() == receiver_lowguid);
77 }
Player * m_receiver
Definition: Mail.h:114
ObjectGuid::LowType m_receiver_lowguid
Definition: Mail.h:115
#define ASSERT
Definition: Errors.h:55

Member Function Documentation

Player* MailReceiver::GetPlayer ( ) const
inline
111 { return m_receiver; }
Player * m_receiver
Definition: Mail.h:114

+ Here is the caller graph for this function:

ObjectGuid::LowType MailReceiver::GetPlayerGUIDLow ( ) const
inline
112 { return m_receiver_lowguid; }
ObjectGuid::LowType m_receiver_lowguid
Definition: Mail.h:115

+ Here is the caller graph for this function:

Member Data Documentation

Player* MailReceiver::m_receiver
private
ObjectGuid::LowType MailReceiver::m_receiver_lowguid
private

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