TrinityCore
Loading...
Searching...
No Matches
AuctionHouseObject Class Reference

#include <AuctionHouseMgr.h>

Public Types

typedef std::map< uint32, AuctionEntry * > AuctionEntryMap
 
typedef std::unordered_map< ObjectGuid, time_t > PlayerGetAllThrottleMap
 

Public Member Functions

 ~AuctionHouseObject ()
 
uint32 Getcount () const
 
AuctionEntryMap::iterator GetAuctionsBegin ()
 
AuctionEntryMap::iterator GetAuctionsEnd ()
 
AuctionEntryGetAuction (uint32 id) const
 
void AddAuction (AuctionEntry *auction)
 
bool RemoveAuction (AuctionEntry *auction)
 
void Update ()
 
void BuildListBidderItems (WorldPacket &data, Player *player, uint32 &count, uint32 &totalcount)
 
void BuildListOwnerItems (WorldPacket &data, Player *player, uint32 &count, uint32 &totalcount)
 
void BuildListAuctionItems (WorldPacket &data, Player *player, std::wstring const &searchedname, uint32 listfrom, uint8 levelmin, uint8 levelmax, uint8 usable, uint32 inventoryType, uint32 itemClass, uint32 itemSubClass, uint32 quality, uint32 &count, uint32 &totalcount, bool getall=false)
 

Private Attributes

AuctionEntryMap AuctionsMap
 
PlayerGetAllThrottleMap GetAllThrottleMap
 

Detailed Description

Definition at line 115 of file AuctionHouseMgr.h.

Member Typedef Documentation

◆ AuctionEntryMap

Definition at line 124 of file AuctionHouseMgr.h.

◆ PlayerGetAllThrottleMap

typedef std::unordered_map<ObjectGuid, time_t> AuctionHouseObject::PlayerGetAllThrottleMap

Definition at line 125 of file AuctionHouseMgr.h.

Constructor & Destructor Documentation

◆ ~AuctionHouseObject()

AuctionHouseObject::~AuctionHouseObject ( )
inline

Definition at line 118 of file AuctionHouseMgr.h.

Member Function Documentation

◆ AddAuction()

void AuctionHouseObject::AddAuction ( AuctionEntry auction)

Definition at line 596 of file AuctionHouseMgr.cpp.

+ Here is the caller graph for this function:

◆ BuildListAuctionItems()

void AuctionHouseObject::BuildListAuctionItems ( WorldPacket data,
Player player,
std::wstring const &  searchedname,
uint32  listfrom,
uint8  levelmin,
uint8  levelmax,
uint8  usable,
uint32  inventoryType,
uint32  itemClass,
uint32  itemSubClass,
uint32  quality,
uint32 count,
uint32 totalcount,
bool  getall = false 
)

Definition at line 704 of file AuctionHouseMgr.cpp.

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

◆ BuildListBidderItems()

void AuctionHouseObject::BuildListBidderItems ( WorldPacket data,
Player player,
uint32 count,
uint32 totalcount 
)

Definition at line 674 of file AuctionHouseMgr.cpp.

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

◆ BuildListOwnerItems()

void AuctionHouseObject::BuildListOwnerItems ( WorldPacket data,
Player player,
uint32 count,
uint32 totalcount 
)

Definition at line 689 of file AuctionHouseMgr.cpp.

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

◆ GetAuction()

AuctionEntry * AuctionHouseObject::GetAuction ( uint32  id) const
inline

Definition at line 132 of file AuctionHouseMgr.h.

+ Here is the caller graph for this function:

◆ GetAuctionsBegin()

AuctionEntryMap::iterator AuctionHouseObject::GetAuctionsBegin ( )
inline

Definition at line 129 of file AuctionHouseMgr.h.

+ Here is the caller graph for this function:

◆ GetAuctionsEnd()

AuctionEntryMap::iterator AuctionHouseObject::GetAuctionsEnd ( )
inline

Definition at line 130 of file AuctionHouseMgr.h.

+ Here is the caller graph for this function:

◆ Getcount()

uint32 AuctionHouseObject::Getcount ( ) const
inline

Definition at line 127 of file AuctionHouseMgr.h.

◆ RemoveAuction()

bool AuctionHouseObject::RemoveAuction ( AuctionEntry auction)

Definition at line 604 of file AuctionHouseMgr.cpp.

+ Here is the caller graph for this function:

◆ Update()

void AuctionHouseObject::Update ( )
  • Handle expired auctions
  • filter auctions expired on next update
  • Either cancel the auction if there was no bidder
  • Or perform the transaction
  • In any case clear the auction

Definition at line 615 of file AuctionHouseMgr.cpp.

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

Member Data Documentation

◆ AuctionsMap

AuctionEntryMap AuctionHouseObject::AuctionsMap
private

Definition at line 152 of file AuctionHouseMgr.h.

◆ GetAllThrottleMap

PlayerGetAllThrottleMap AuctionHouseObject::GetAllThrottleMap
private

Definition at line 156 of file AuctionHouseMgr.h.


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