|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BlackMarketMgr.h>
Private Attributes | |
| uint32 | _auctionId |
| uint64 | _currentBid |
| uint32 | _currentBidder |
| uint64 | _minIncrement |
| uint32 | _numBids |
| uint32 | _startTime |
| BlackMarketAuctionTemplate * | _template |
| uint32 | _templateId |
Definition at line 40 of file BlackMarketMgr.h.
|
inline |
Definition at line 43 of file BlackMarketMgr.h.
References _auctionId, _currentBid, _currentBidder, _minIncrement, _numBids, _startTime, _template, and _templateId.
|
inline |
Definition at line 48 of file BlackMarketMgr.h.
References _auctionId, _currentBid, _currentBidder, _minIncrement, _numBids, _startTime, _template, and _templateId.
| std::string BlackMarketAuction::BuildAuctionMailBody | ( | uint32 | lowGuid | ) |
Definition at line 336 of file BlackMarketMgr.cpp.
References GetCurrentBid(), HIGHGUID_PLAYER, and MAKE_NEW_GUID().
Referenced by BlackMarketMgr::SendAuctionOutbidded(), and BlackMarketMgr::SendAuctionWon().
| std::string BlackMarketAuction::BuildAuctionMailSubject | ( | BMMailAuctionAnswers | response | ) |
Definition at line 329 of file BlackMarketMgr.cpp.
References GetAuctionId(), GetTemplate(), BlackMarketAuctionTemplate::ItemEntry, and BlackMarketAuctionTemplate::Quantity.
Referenced by BlackMarketMgr::SendAuctionOutbidded(), and BlackMarketMgr::SendAuctionWon().
| void BlackMarketAuction::DeleteFromDB | ( | SQLTransaction & | trans | ) |
Definition at line 55 of file BlackMarketMgr.cpp.
References CHAR_DEL_BLACKMARKET_AUCTION, CharacterDatabase, GetAuctionId(), and PreparedStatement::setUInt32().
Referenced by BlackMarketMgr::LoadBlackMarketAuctions(), and BlackMarketMgr::Update().
|
inline |
Definition at line 52 of file BlackMarketMgr.h.
References _auctionId.
Referenced by BuildAuctionMailSubject(), BlackMarketMgr::BuildBlackMarketRequestItemsResult(), BlackMarketMgr::CreateAuctions(), DeleteFromDB(), BlackMarketMgr::LoadBlackMarketAuctions(), SaveToDB(), and UpdateToDB().
|
inline |
Definition at line 64 of file BlackMarketMgr.h.
References _currentBid.
Referenced by BuildAuctionMailBody(), BlackMarketMgr::BuildBlackMarketRequestItemsResult(), WorldSession::HandleBlackMarketBidOnItem(), SaveToDB(), BlackMarketMgr::SendAuctionOutbidded(), and UpdateToDB().
|
inline |
Definition at line 61 of file BlackMarketMgr.h.
References _currentBidder.
Referenced by BlackMarketMgr::BuildBlackMarketRequestItemsResult(), WorldSession::HandleBlackMarketBidOnItem(), SaveToDB(), BlackMarketMgr::SendAuctionOutbidded(), BlackMarketMgr::SendAuctionWon(), BlackMarketMgr::Update(), BlackMarketMgr::UpdateAuction(), and UpdateToDB().
|
inline |
Definition at line 79 of file BlackMarketMgr.h.
References BlackMarketAuctionTemplate::Duration, GetStartTime(), and GetTemplate().
Referenced by IsExpired().
|
inline |
Definition at line 67 of file BlackMarketMgr.h.
References _minIncrement.
Referenced by BlackMarketMgr::BuildBlackMarketRequestItemsResult(), WorldSession::HandleBlackMarketBidOnItem(), SaveToDB(), and UpdateToDB().
|
inline |
Definition at line 70 of file BlackMarketMgr.h.
References _numBids.
Referenced by BlackMarketMgr::BuildBlackMarketRequestItemsResult(), SaveToDB(), BlackMarketMgr::UpdateAuction(), and UpdateToDB().
|
inline |
Definition at line 58 of file BlackMarketMgr.h.
References _startTime.
Referenced by GetEndTime(), IsActive(), SaveToDB(), and TimeLeft().
| BlackMarketAuctionTemplate * BlackMarketAuction::GetTemplate | ( | ) | const |
Definition at line 33 of file BlackMarketMgr.cpp.
References GetTemplateId(), and sBlackMarketMgr.
Referenced by BuildAuctionMailSubject(), BlackMarketMgr::BuildBlackMarketRequestItemsResult(), GetEndTime(), WorldSession::HandleBlackMarketBidOnItem(), BlackMarketMgr::LoadBlackMarketAuctions(), BlackMarketMgr::SendAuctionOutbidded(), BlackMarketMgr::SendAuctionWon(), and TimeLeft().
|
inline |
Definition at line 55 of file BlackMarketMgr.h.
References _templateId.
Referenced by GetTemplate(), and SaveToDB().
|
inline |
Definition at line 81 of file BlackMarketMgr.h.
References GetStartTime().
Referenced by BlackMarketMgr::BuildBlackMarketRequestItemsResult().
|
inline |
Definition at line 82 of file BlackMarketMgr.h.
References GetEndTime().
Referenced by BlackMarketMgr::Update().
| bool BlackMarketAuction::LoadFromDB | ( | Field * | fields | ) |
| void BlackMarketAuction::SaveToDB | ( | SQLTransaction & | trans | ) |
Definition at line 42 of file BlackMarketMgr.cpp.
References CHAR_INS_BLACKMARKET_AUCTION, CharacterDatabase, GetAuctionId(), GetCurrentBid(), GetCurrentBidder(), GetMinIncrement(), GetNumBids(), GetStartTime(), GetTemplateId(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt64().
Referenced by BlackMarketMgr::CreateAuctions().
|
inline |
Definition at line 51 of file BlackMarketMgr.h.
References _auctionId.
Referenced by BlackMarketMgr::CreateAuctions().
|
inline |
Definition at line 63 of file BlackMarketMgr.h.
References _currentBid.
Referenced by BlackMarketMgr::CreateAuctions(), and BlackMarketMgr::UpdateAuction().
|
inline |
Definition at line 60 of file BlackMarketMgr.h.
References _currentBidder.
Referenced by BlackMarketMgr::CreateAuctions(), and BlackMarketMgr::UpdateAuction().
|
inline |
Definition at line 66 of file BlackMarketMgr.h.
References _minIncrement.
Referenced by BlackMarketMgr::CreateAuctions(), and BlackMarketMgr::UpdateAuction().
|
inline |
Definition at line 69 of file BlackMarketMgr.h.
References _numBids.
Referenced by BlackMarketMgr::CreateAuctions(), and BlackMarketMgr::UpdateAuction().
|
inline |
Definition at line 57 of file BlackMarketMgr.h.
References _startTime.
Referenced by BlackMarketMgr::CreateAuctions().
|
inline |
Definition at line 54 of file BlackMarketMgr.h.
References _templateId.
Referenced by BlackMarketMgr::CreateAuctions().
| uint32 BlackMarketAuction::TimeLeft | ( | ) |
Definition at line 73 of file BlackMarketMgr.cpp.
References BlackMarketAuctionTemplate::Duration, GetStartTime(), and GetTemplate().
Referenced by BlackMarketMgr::BuildBlackMarketRequestItemsResult().
| void BlackMarketAuction::UpdateToDB | ( | SQLTransaction & | trans | ) |
Definition at line 62 of file BlackMarketMgr.cpp.
References CHAR_UPD_BLACKMARKET_AUCTION, CharacterDatabase, GetAuctionId(), GetCurrentBid(), GetCurrentBidder(), GetMinIncrement(), GetNumBids(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt64().
Referenced by BlackMarketMgr::UpdateAuction().
|
private |
Definition at line 88 of file BlackMarketMgr.h.
Referenced by BlackMarketAuction(), BlackMarketAuction(), GetAuctionId(), and SetAuctionId().
|
private |
Definition at line 92 of file BlackMarketMgr.h.
Referenced by BlackMarketAuction(), BlackMarketAuction(), GetCurrentBid(), and SetCurrentBid().
|
private |
Definition at line 91 of file BlackMarketMgr.h.
Referenced by BlackMarketAuction(), BlackMarketAuction(), GetCurrentBidder(), and SetCurrentBidder().
|
private |
Definition at line 93 of file BlackMarketMgr.h.
Referenced by BlackMarketAuction(), BlackMarketAuction(), GetMinIncrement(), and SetMinIncrement().
|
private |
Definition at line 94 of file BlackMarketMgr.h.
Referenced by BlackMarketAuction(), BlackMarketAuction(), GetNumBids(), and SetNumBids().
|
private |
Definition at line 90 of file BlackMarketMgr.h.
Referenced by BlackMarketAuction(), BlackMarketAuction(), GetStartTime(), and SetStartTime().
|
private |
Definition at line 95 of file BlackMarketMgr.h.
Referenced by BlackMarketAuction(), and BlackMarketAuction().
|
private |
Definition at line 89 of file BlackMarketMgr.h.
Referenced by BlackMarketAuction(), BlackMarketAuction(), GetTemplateId(), and SetTemplateId().