Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
BlackMarketAuction Struct Reference

#include <BlackMarketMgr.h>

Collaboration diagram for BlackMarketAuction:

Public Member Functions

 BlackMarketAuction ()
 BlackMarketAuction (uint32 auctionId, uint32 templateId, uint32 startTime, uint32 currentBidder, uint64 currentBid, uint64 minIncrement, uint32 numBids)
std::string BuildAuctionMailBody (uint32 lowGuid)
std::string BuildAuctionMailSubject (BMMailAuctionAnswers response)
void DeleteFromDB (SQLTransaction &trans)
uint32 GetAuctionId () const
uint64 GetCurrentBid () const
uint32 GetCurrentBidder () const
uint32 GetEndTime () const
uint64 GetMinIncrement () const
uint32 GetNumBids () const
uint32 GetStartTime () const
BlackMarketAuctionTemplateGetTemplate () const
uint32 GetTemplateId () const
bool IsActive () const
bool IsExpired () const
bool LoadFromDB (Field *fields)
void SaveToDB (SQLTransaction &trans)
void SetAuctionId (uint32 auctionId)
void SetCurrentBid (uint64 currentBid)
void SetCurrentBidder (uint32 currentBidder)
void SetMinIncrement (uint64 minIncrement)
void SetNumBids (uint32 numBids)
void SetStartTime (uint32 startTime)
void SetTemplateId (uint32 templateId)
uint32 TimeLeft ()
void UpdateToDB (SQLTransaction &trans)

Private Attributes

uint32 _auctionId
uint64 _currentBid
uint32 _currentBidder
uint64 _minIncrement
uint32 _numBids
uint32 _startTime
BlackMarketAuctionTemplate_template
uint32 _templateId

Detailed Description

Definition at line 40 of file BlackMarketMgr.h.

Constructor & Destructor Documentation

◆ BlackMarketAuction() [1/2]

BlackMarketAuction::BlackMarketAuction ( uint32 auctionId,
uint32 templateId,
uint32 startTime,
uint32 currentBidder,
uint64 currentBid,
uint64 minIncrement,
uint32 numBids )
inline

◆ BlackMarketAuction() [2/2]

BlackMarketAuction::BlackMarketAuction ( )
inline

Member Function Documentation

◆ BuildAuctionMailBody()

std::string BlackMarketAuction::BuildAuctionMailBody ( uint32 lowGuid)

◆ BuildAuctionMailSubject()

std::string BlackMarketAuction::BuildAuctionMailSubject ( BMMailAuctionAnswers response)

◆ DeleteFromDB()

void BlackMarketAuction::DeleteFromDB ( SQLTransaction & trans)

◆ GetAuctionId()

◆ GetCurrentBid()

◆ GetCurrentBidder()

◆ GetEndTime()

uint32 BlackMarketAuction::GetEndTime ( ) const
inline

Definition at line 79 of file BlackMarketMgr.h.

References BlackMarketAuctionTemplate::Duration, GetStartTime(), and GetTemplate().

Referenced by IsExpired().

◆ GetMinIncrement()

uint64 BlackMarketAuction::GetMinIncrement ( ) const
inline

◆ GetNumBids()

uint32 BlackMarketAuction::GetNumBids ( ) const
inline

◆ GetStartTime()

uint32 BlackMarketAuction::GetStartTime ( ) const
inline

Definition at line 58 of file BlackMarketMgr.h.

References _startTime.

Referenced by GetEndTime(), IsActive(), SaveToDB(), and TimeLeft().

◆ GetTemplate()

◆ GetTemplateId()

uint32 BlackMarketAuction::GetTemplateId ( ) const
inline

Definition at line 55 of file BlackMarketMgr.h.

References _templateId.

Referenced by GetTemplate(), and SaveToDB().

◆ IsActive()

bool BlackMarketAuction::IsActive ( ) const
inline

Definition at line 81 of file BlackMarketMgr.h.

References GetStartTime().

Referenced by BlackMarketMgr::BuildBlackMarketRequestItemsResult().

◆ IsExpired()

bool BlackMarketAuction::IsExpired ( ) const
inline

Definition at line 82 of file BlackMarketMgr.h.

References GetEndTime().

Referenced by BlackMarketMgr::Update().

◆ LoadFromDB()

bool BlackMarketAuction::LoadFromDB ( Field * fields)

◆ SaveToDB()

◆ SetAuctionId()

void BlackMarketAuction::SetAuctionId ( uint32 auctionId)
inline

Definition at line 51 of file BlackMarketMgr.h.

References _auctionId.

Referenced by BlackMarketMgr::CreateAuctions().

◆ SetCurrentBid()

void BlackMarketAuction::SetCurrentBid ( uint64 currentBid)
inline

Definition at line 63 of file BlackMarketMgr.h.

References _currentBid.

Referenced by BlackMarketMgr::CreateAuctions(), and BlackMarketMgr::UpdateAuction().

◆ SetCurrentBidder()

void BlackMarketAuction::SetCurrentBidder ( uint32 currentBidder)
inline

Definition at line 60 of file BlackMarketMgr.h.

References _currentBidder.

Referenced by BlackMarketMgr::CreateAuctions(), and BlackMarketMgr::UpdateAuction().

◆ SetMinIncrement()

void BlackMarketAuction::SetMinIncrement ( uint64 minIncrement)
inline

Definition at line 66 of file BlackMarketMgr.h.

References _minIncrement.

Referenced by BlackMarketMgr::CreateAuctions(), and BlackMarketMgr::UpdateAuction().

◆ SetNumBids()

void BlackMarketAuction::SetNumBids ( uint32 numBids)
inline

Definition at line 69 of file BlackMarketMgr.h.

References _numBids.

Referenced by BlackMarketMgr::CreateAuctions(), and BlackMarketMgr::UpdateAuction().

◆ SetStartTime()

void BlackMarketAuction::SetStartTime ( uint32 startTime)
inline

Definition at line 57 of file BlackMarketMgr.h.

References _startTime.

Referenced by BlackMarketMgr::CreateAuctions().

◆ SetTemplateId()

void BlackMarketAuction::SetTemplateId ( uint32 templateId)
inline

Definition at line 54 of file BlackMarketMgr.h.

References _templateId.

Referenced by BlackMarketMgr::CreateAuctions().

◆ TimeLeft()

uint32 BlackMarketAuction::TimeLeft ( )

◆ UpdateToDB()

Member Data Documentation

◆ _auctionId

uint32 BlackMarketAuction::_auctionId
private

◆ _currentBid

uint64 BlackMarketAuction::_currentBid
private

◆ _currentBidder

uint32 BlackMarketAuction::_currentBidder
private

◆ _minIncrement

uint64 BlackMarketAuction::_minIncrement
private

◆ _numBids

uint32 BlackMarketAuction::_numBids
private

Definition at line 94 of file BlackMarketMgr.h.

Referenced by BlackMarketAuction(), BlackMarketAuction(), GetNumBids(), and SetNumBids().

◆ _startTime

uint32 BlackMarketAuction::_startTime
private

◆ _template

BlackMarketAuctionTemplate* BlackMarketAuction::_template
private

Definition at line 95 of file BlackMarketMgr.h.

Referenced by BlackMarketAuction(), and BlackMarketAuction().

◆ _templateId

uint32 BlackMarketAuction::_templateId
private

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