TrinityCore
BlackMarketEntry Class Reference

#include <BlackMarketMgr.h>

Public Member Functions

void Update (time_t newTimeOfUpdate)
 
void Initialize (int32 marketId, uint32 duration)
 
BlackMarketTemplate const * GetTemplate () const
 
int32 GetMarketId () const
 
uint64 GetCurrentBid () const
 
void SetCurrentBid (uint64 bid)
 
int32 GetNumBids () const
 
void SetNumBids (int32 numBids)
 
ObjectGuid::LowType GetBidder () const
 
void SetBidder (ObjectGuid::LowType bidder)
 
uint32 GetSecondsRemaining () const
 
time_t GetExpirationTime () const
 
bool IsCompleted () const
 
void DeleteFromDB (CharacterDatabaseTransaction trans) const
 
void SaveToDB (CharacterDatabaseTransaction trans) const
 
bool LoadFromDB (Field *fields)
 
uint64 GetMinIncrement () const
 
bool ValidateBid (uint64 bid) const
 
void PlaceBid (uint64 bid, Player *player, CharacterDatabaseTransaction trans)
 
std::string BuildAuctionMailSubject (BMAHMailAuctionAnswers response) const
 
std::string BuildAuctionMailBody ()
 
void MailSent ()
 
bool GetMailSent () const
 

Private Attributes

int32 _marketId = 0
 
uint64 _currentBid = 0
 
int32 _numBids = 0
 
ObjectGuid::LowType _bidder = 0
 
uint32 _secondsRemaining = 0
 
bool _mailSent = false
 

Detailed Description

Definition at line 70 of file BlackMarketMgr.h.

Member Function Documentation

◆ BuildAuctionMailBody()

std::string BlackMarketEntry::BuildAuctionMailBody ( )

Definition at line 519 of file BlackMarketMgr.cpp.

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

◆ BuildAuctionMailSubject()

std::string BlackMarketEntry::BuildAuctionMailSubject ( BMAHMailAuctionAnswers  response) const

Definition at line 512 of file BlackMarketMgr.cpp.

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

◆ DeleteFromDB()

void BlackMarketEntry::DeleteFromDB ( CharacterDatabaseTransaction  trans) const

Definition at line 463 of file BlackMarketMgr.cpp.

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

◆ GetBidder()

ObjectGuid::LowType BlackMarketEntry::GetBidder ( ) const
inline

Definition at line 90 of file BlackMarketMgr.h.

+ Here is the caller graph for this function:

◆ GetCurrentBid()

uint64 BlackMarketEntry::GetCurrentBid ( ) const
inline

Definition at line 84 of file BlackMarketMgr.h.

+ Here is the caller graph for this function:

◆ GetExpirationTime()

time_t BlackMarketEntry::GetExpirationTime ( ) const

Definition at line 413 of file BlackMarketMgr.cpp.

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

◆ GetMailSent()

bool BlackMarketEntry::GetMailSent ( ) const
inline

Definition at line 109 of file BlackMarketMgr.h.

+ Here is the caller graph for this function:

◆ GetMarketId()

int32 BlackMarketEntry::GetMarketId ( ) const
inline

Definition at line 82 of file BlackMarketMgr.h.

+ Here is the caller graph for this function:

◆ GetMinIncrement()

uint64 BlackMarketEntry::GetMinIncrement ( ) const
inline

Definition at line 101 of file BlackMarketMgr.h.

+ Here is the caller graph for this function:

◆ GetNumBids()

int32 BlackMarketEntry::GetNumBids ( ) const
inline

Definition at line 87 of file BlackMarketMgr.h.

◆ GetSecondsRemaining()

uint32 BlackMarketEntry::GetSecondsRemaining ( ) const

Definition at line 408 of file BlackMarketMgr.cpp.

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

◆ GetTemplate()

BlackMarketTemplate const * BlackMarketEntry::GetTemplate ( ) const

Definition at line 403 of file BlackMarketMgr.cpp.

+ Here is the caller graph for this function:

◆ Initialize()

void BlackMarketEntry::Initialize ( int32  marketId,
uint32  duration 
)
inline

Definition at line 75 of file BlackMarketMgr.h.

+ Here is the caller graph for this function:

◆ IsCompleted()

bool BlackMarketEntry::IsCompleted ( ) const

Definition at line 418 of file BlackMarketMgr.cpp.

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

◆ LoadFromDB()

bool BlackMarketEntry::LoadFromDB ( Field fields)

Definition at line 423 of file BlackMarketMgr.cpp.

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

◆ MailSent()

void BlackMarketEntry::MailSent ( )
inline

Definition at line 108 of file BlackMarketMgr.h.

+ Here is the caller graph for this function:

◆ PlaceBid()

void BlackMarketEntry::PlaceBid ( uint64  bid,
Player player,
CharacterDatabaseTransaction  trans 
)

Definition at line 484 of file BlackMarketMgr.cpp.

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

◆ SaveToDB()

void BlackMarketEntry::SaveToDB ( CharacterDatabaseTransaction  trans) const

Definition at line 450 of file BlackMarketMgr.cpp.

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

◆ SetBidder()

void BlackMarketEntry::SetBidder ( ObjectGuid::LowType  bidder)
inline

Definition at line 91 of file BlackMarketMgr.h.

◆ SetCurrentBid()

void BlackMarketEntry::SetCurrentBid ( uint64  bid)
inline

Definition at line 85 of file BlackMarketMgr.h.

◆ SetNumBids()

void BlackMarketEntry::SetNumBids ( int32  numBids)
inline

Definition at line 88 of file BlackMarketMgr.h.

◆ Update()

void BlackMarketEntry::Update ( time_t  newTimeOfUpdate)

Definition at line 398 of file BlackMarketMgr.cpp.

+ Here is the caller graph for this function:

◆ ValidateBid()

bool BlackMarketEntry::ValidateBid ( uint64  bid) const

Definition at line 470 of file BlackMarketMgr.cpp.

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

Member Data Documentation

◆ _bidder

ObjectGuid::LowType BlackMarketEntry::_bidder = 0
private

Definition at line 115 of file BlackMarketMgr.h.

◆ _currentBid

uint64 BlackMarketEntry::_currentBid = 0
private

Definition at line 113 of file BlackMarketMgr.h.

◆ _mailSent

bool BlackMarketEntry::_mailSent = false
private

Definition at line 117 of file BlackMarketMgr.h.

◆ _marketId

int32 BlackMarketEntry::_marketId = 0
private

Definition at line 112 of file BlackMarketMgr.h.

◆ _numBids

int32 BlackMarketEntry::_numBids = 0
private

Definition at line 114 of file BlackMarketMgr.h.

◆ _secondsRemaining

uint32 BlackMarketEntry::_secondsRemaining = 0
private

Definition at line 116 of file BlackMarketMgr.h.


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