![]() |
TrinityCore
|
#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 () |
| AuctionEntry * | GetAuction (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 |
Definition at line 115 of file AuctionHouseMgr.h.
| typedef std::map<uint32, AuctionEntry*> AuctionHouseObject::AuctionEntryMap |
Definition at line 124 of file AuctionHouseMgr.h.
| typedef std::unordered_map<ObjectGuid, time_t> AuctionHouseObject::PlayerGetAllThrottleMap |
Definition at line 125 of file AuctionHouseMgr.h.
|
inline |
Definition at line 118 of file AuctionHouseMgr.h.
| void AuctionHouseObject::AddAuction | ( | AuctionEntry * | auction | ) |
Definition at line 597 of file AuctionHouseMgr.cpp.
References ASSERT, AuctionsMap, AuctionEntry::Id, and sScriptMgr.
Referenced by AuctionBotSeller::AddNewAuctions(), WorldSession::HandleAuctionSellItem(), and AuctionHouseMgr::LoadAuctions().
| 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 705 of file AuctionHouseMgr.cpp.
References AuctionsMap, AuctionEntry::BuildAuctionInfo(), Player::CanUseItem(), CONFIG_AUCTION_GETALL_DELAY, EQUIP_ERR_OK, AuctionEntry::expire_time, GetAllThrottleMap, ItemTemplate::GetClass(), ItemTemplate::GetDefaultLocaleName(), GameTime::GetGameTime(), Object::GetGUID(), ItemTemplate::GetId(), ItemTemplate::GetInventoryType(), Item::GetItemRandomPropertyId(), ObjectMgr::GetLocaleString(), ItemTemplate::GetQuality(), ItemTemplate::GetRequiredLevel(), Player::GetSession(), WorldSession::GetSessionDbcLocale(), WorldSession::GetSessionDbLocaleIndex(), ItemTemplate::GetSubClass(), Item::GetTemplate(), INVTYPE_CHEST, INVTYPE_ROBE, AuctionEntry::itemGUIDLow, LOCALE_enUS, MAX_GETALL_RETURN, ItemRandomPropertiesEntry::Name, ItemRandomSuffixEntry::Name, sAuctionMgr, sItemRandomPropertiesStore, sItemRandomSuffixStore, sObjectMgr, sWorld, and Utf8FitTo().
Referenced by WorldSession::HandleAuctionListItems().
| void AuctionHouseObject::BuildListBidderItems | ( | WorldPacket & | data, |
| Player * | player, | ||
| uint32 & | count, | ||
| uint32 & | totalcount | ||
| ) |
Definition at line 675 of file AuctionHouseMgr.cpp.
References AuctionsMap, AuctionEntry::bidders, and Object::GetGUID().
Referenced by WorldSession::HandleAuctionListBidderItems().
| void AuctionHouseObject::BuildListOwnerItems | ( | WorldPacket & | data, |
| Player * | player, | ||
| uint32 & | count, | ||
| uint32 & | totalcount | ||
| ) |
Definition at line 690 of file AuctionHouseMgr.cpp.
References AuctionsMap, AuctionEntry::BuildAuctionInfo(), ObjectGuid::GetCounter(), Object::GetGUID(), and AuctionEntry::owner.
Referenced by WorldSession::HandleAuctionListOwnerItems().
|
inline |
Definition at line 132 of file AuctionHouseMgr.h.
Referenced by AuctionBotBuyer::BuyAndBidItems(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionPlaceBid(), and WorldSession::HandleAuctionRemoveItem().
|
inline |
Definition at line 129 of file AuctionHouseMgr.h.
Referenced by AuctionBotBuyer::GetItemInformation(), AuctionHouseBot::PrepareStatusInfos(), AuctionHouseBot::Rebuild(), and AuctionBotSeller::SetStat().
|
inline |
Definition at line 130 of file AuctionHouseMgr.h.
Referenced by AuctionBotBuyer::GetItemInformation(), AuctionHouseBot::PrepareStatusInfos(), AuctionHouseBot::Rebuild(), and AuctionBotSeller::SetStat().
|
inline |
Definition at line 127 of file AuctionHouseMgr.h.
| bool AuctionHouseObject::RemoveAuction | ( | AuctionEntry * | auction | ) |
Definition at line 605 of file AuctionHouseMgr.cpp.
References AuctionsMap, AuctionEntry::Id, and sScriptMgr.
Referenced by AuctionBotBuyer::BuyEntry(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), and Update().
| void AuctionHouseObject::Update | ( | ) |
Definition at line 616 of file AuctionHouseMgr.cpp.
References AuctionsMap, AuctionEntry::bid, AuctionEntry::bidder, CharacterDatabase, AuctionEntry::DeleteFromDB(), AuctionEntry::expire_time, GetAllThrottleMap, GameTime::GetGameTime(), AuctionEntry::itemGUIDLow, RemoveAuction(), sAuctionMgr, and sScriptMgr.
Referenced by AuctionHouseMgr::Update().
|
private |
Definition at line 152 of file AuctionHouseMgr.h.
Referenced by AddAuction(), BuildListAuctionItems(), BuildListBidderItems(), BuildListOwnerItems(), RemoveAuction(), and Update().
|
private |
Definition at line 156 of file AuctionHouseMgr.h.
Referenced by BuildListAuctionItems(), and Update().