Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
BlackMarketMgr Class Reference

#include <BlackMarketMgr.h>

Public Member Functions

void BuildBlackMarketRequestItemsResult (WorldPacket &data, uint32 guidLow)
void CreateAuctions (uint32 number, SQLTransaction &trans)
BlackMarketAuctionGetAuction (uint32 auctionId) const
uint32 GetAuctionCount ()
BMAuctionStore::iterator GetAuctionsBegin ()
BMAuctionStore::iterator GetAuctionsEnd ()
uint32 GetFreeAuctionId ()
BlackMarketAuctionTemplateGetTemplate (uint32 templateId) const
BMAuctionTemplateStore::iterator GetTemplatesBegin ()
uint32 GetTemplatesCount ()
BMAuctionTemplateStore::iterator GetTemplatesEnd ()
bool isBlackMarketOpen ()
void LoadBlackMarketAuctions ()
void LoadBlackMarketTemplates ()
void SendAuctionOutbidded (BlackMarketAuction *auction, SQLTransaction &trans)
void SendAuctionWon (BlackMarketAuction *auction, SQLTransaction &trans)
void Update ()
void UpdateAuction (BlackMarketAuction *auction, uint64 newPrice, uint64 requiredIncrement, Player *newBidder)

Private Member Functions

 BlackMarketMgr ()
 ~BlackMarketMgr ()

Private Attributes

BMAuctionStore _auctions
BMAuctionTemplateStore _templates

Friends

class Skyfire::Singleton< BlackMarketMgr, Skyfire::NullMutex >

Detailed Description

Definition at line 101 of file BlackMarketMgr.h.

Constructor & Destructor Documentation

◆ BlackMarketMgr()

BlackMarketMgr::BlackMarketMgr ( )
private

Definition at line 31 of file BlackMarketMgr.cpp.

◆ ~BlackMarketMgr()

BlackMarketMgr::~BlackMarketMgr ( )
private

Member Function Documentation

◆ BuildBlackMarketRequestItemsResult()

◆ CreateAuctions()

◆ GetAuction()

BlackMarketAuction * BlackMarketMgr::GetAuction ( uint32 auctionId) const

Definition at line 319 of file BlackMarketMgr.cpp.

References _auctions, and SF_LOG_DEBUG.

Referenced by GetFreeAuctionId().

◆ GetAuctionCount()

uint32 BlackMarketMgr::GetAuctionCount ( )
inline

Definition at line 124 of file BlackMarketMgr.h.

References _auctions.

◆ GetAuctionsBegin()

BMAuctionStore::iterator BlackMarketMgr::GetAuctionsBegin ( )
inline

Definition at line 125 of file BlackMarketMgr.h.

References _auctions.

Referenced by BuildBlackMarketRequestItemsResult(), CreateAuctions(), Update(), and ~BlackMarketMgr().

◆ GetAuctionsEnd()

BMAuctionStore::iterator BlackMarketMgr::GetAuctionsEnd ( )
inline

Definition at line 126 of file BlackMarketMgr.h.

References _auctions.

Referenced by BuildBlackMarketRequestItemsResult(), CreateAuctions(), Update(), and ~BlackMarketMgr().

◆ GetFreeAuctionId()

uint32 BlackMarketMgr::GetFreeAuctionId ( )

Definition at line 193 of file BlackMarketMgr.cpp.

References GetAuction().

Referenced by CreateAuctions().

◆ GetTemplate()

BlackMarketAuctionTemplate * BlackMarketMgr::GetTemplate ( uint32 templateId) const

Definition at line 309 of file BlackMarketMgr.cpp.

References _templates, and SF_LOG_DEBUG.

Referenced by CreateAuctions().

◆ GetTemplatesBegin()

BMAuctionTemplateStore::iterator BlackMarketMgr::GetTemplatesBegin ( )
inline

Definition at line 120 of file BlackMarketMgr.h.

References _templates.

Referenced by CreateAuctions(), and ~BlackMarketMgr().

◆ GetTemplatesCount()

uint32 BlackMarketMgr::GetTemplatesCount ( )
inline

Definition at line 119 of file BlackMarketMgr.h.

References _templates, and GetTemplatesCount().

Referenced by GetTemplatesCount().

◆ GetTemplatesEnd()

BMAuctionTemplateStore::iterator BlackMarketMgr::GetTemplatesEnd ( )
inline

Definition at line 121 of file BlackMarketMgr.h.

References _templates.

Referenced by CreateAuctions(), and ~BlackMarketMgr().

◆ isBlackMarketOpen()

bool BlackMarketMgr::isBlackMarketOpen ( )
inline

Definition at line 138 of file BlackMarketMgr.h.

References CONFIG_BLACK_MARKET_OPEN, and sWorld.

◆ LoadBlackMarketAuctions()

◆ LoadBlackMarketTemplates()

◆ SendAuctionOutbidded()

◆ SendAuctionWon()

◆ Update()

◆ UpdateAuction()

◆ Skyfire::Singleton< BlackMarketMgr, Skyfire::NullMutex >

Definition at line 95 of file BlackMarketMgr.h.

Member Data Documentation

◆ _auctions

BMAuctionStore BlackMarketMgr::_auctions
private

◆ _templates


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