19 #ifndef _AUCTION_HOUSE_MGR_H
20 #define _AUCTION_HOUSE_MGR_H
33 #define MIN_AUCTION_TIME (12*HOUR)
34 #define MAX_AUCTION_ITEMS 160
88 uint32 GetAuctionCut()
const;
89 uint32 GetAuctionOutBid()
const;
90 void BuildAuctionInfo(std::vector<WorldPackets::AuctionHouse::AuctionItem>& items,
bool listAuctionItems)
const;
105 for (AuctionEntryMap::iterator itr = AuctionsMap.begin(); itr != AuctionsMap.end(); ++itr)
118 AuctionEntryMap::const_iterator itr = AuctionsMap.find(
id);
119 return itr != AuctionsMap.end() ? itr->second :
NULL;
147 typedef std::unordered_map<ObjectGuid::LowType, Item*>
ItemMap;
156 ItemMap::const_iterator itr = mAitems.find(
id);
157 if (itr != mAitems.end())
177 void LoadAuctionItems();
180 void AddAItem(
Item* it);
184 void PendingAuctionProcess(
Player* player);
185 void UpdatePendingAuctions();
199 #define sAuctionMgr AuctionHouseMgr::instance()
Definition: AuctionHouseMgr.h:39
Definition: AuctionHouseMgr.h:58
AuctionEntryMap::iterator GetAuctionsEnd()
Definition: AuctionHouseMgr.h:114
uint32 itemEntry
Definition: AuctionHouseMgr.h:72
Definition: AuctionHouseMgr.h:61
uint32 itemCount
Definition: AuctionHouseMgr.h:73
std::pair< PlayerAuctions *, uint32 > AuctionPair
Definition: AuctionHouseMgr.h:149
ItemMap mAitems
Definition: AuctionHouseMgr.h:196
AuctionHouseObject mNeutralAuctions
Definition: AuctionHouseMgr.h:192
AuctionEntry * GetAuction(uint32 id) const
Definition: AuctionHouseMgr.h:116
ObjectGuid::LowType itemGUIDLow
Definition: AuctionHouseMgr.h:71
Class used to access individual fields of database query result.
Definition: Field.h:56
uint32 ID
Definition: DB2Structure.h:55
void LoadFromDB()
Definition: AddonMgr.cpp:40
Definition: AuctionHouseMgr.h:42
Definition: AuctionHouseMgr.h:67
arena_t NULL
Definition: jemalloc_internal.h:624
~AuctionHouseObject()
Definition: AuctionHouseMgr.h:103
AuctionEntryMap::iterator GetAuctionsBegin()
Definition: AuctionHouseMgr.h:113
AuctionAction
Definition: AuctionHouseMgr.h:49
uint64 LowType
Definition: ObjectGuid.h:199
Definition: AuctionHousePackets.h:204
AuctionHouseEntry const * auctionHouseEntry
Definition: AuctionHouseMgr.h:82
Definition: AuctionHouseMgr.h:51
uint32 Id
Definition: AuctionHouseMgr.h:69
uint32 GetHouseFaction() const
Definition: AuctionHouseMgr.h:87
Definition: AuctionHouseMgr.h:41
Definition: AuctionHousePackets.h:217
uint32 FactionID
Definition: DB2Structure.h:56
Definition: AuctionHouseMgr.h:46
Definition: AuctionHouseMgr.h:40
AuctionEntryMap AuctionsMap
Definition: AuctionHouseMgr.h:135
Definition: AuctionHousePackets.h:229
Definition: AuctionHouseMgr.h:53
ObjectGuid::LowType owner
Definition: AuctionHouseMgr.h:74
Definition: AuctionHouseMgr.h:59
Definition: AuctionHouseMgr.h:62
uint32 startbid
Definition: AuctionHouseMgr.h:75
uint32_t uint32
Definition: Define.h:150
std::unordered_map< ObjectGuid::LowType, Item * > ItemMap
Definition: AuctionHouseMgr.h:147
uint64_t uint64
Definition: Define.h:149
uint32 bid
Definition: AuctionHouseMgr.h:76
time_t expire_time
Definition: AuctionHouseMgr.h:78
AuctionHouseObject mAllianceAuctions
Definition: AuctionHouseMgr.h:191
uint32 Getcount() const
Definition: AuctionHouseMgr.h:111
Definition: AuctionHouseMgr.h:63
Definition: AuctionHouseMgr.h:138
std::map< uint32, AuctionEntry * > AuctionEntryMap
Definition: AuctionHouseMgr.h:109
ObjectGuid::LowType bidder
Definition: AuctionHouseMgr.h:79
Item * GetAItem(ObjectGuid::LowType id)
Definition: AuctionHouseMgr.h:154
uint32 buyout
Definition: AuctionHouseMgr.h:77
uint32 GetHouseId() const
Definition: AuctionHouseMgr.h:86
Definition: AuctionHouseMgr.h:44
MailAuctionAnswers
Definition: AuctionHouseMgr.h:56
ObjectGuid::LowType auctioneer
Definition: AuctionHouseMgr.h:70
std::map< ObjectGuid, AuctionPair > pendingAuctionMap
Definition: AuctionHouseMgr.h:194
uint32 factionTemplateId
Definition: AuctionHouseMgr.h:83
Definition: AuctionHouseMgr.h:43
Definition: AuctionHouseMgr.h:38
#define TC_GAME_API
Definition: Define.h:134
Definition: AuctionHouseMgr.h:52
uint8_t uint8
Definition: Define.h:152
uint32 etime
Definition: AuctionHouseMgr.h:81
Definition: AuctionHouseMgr.h:100
AuctionError
Definition: AuctionHouseMgr.h:36
uint32_t uint32
Definition: g3dmath.h:168
Definition: DB2Structure.h:53
std::vector< AuctionEntry * > PlayerAuctions
Definition: AuctionHouseMgr.h:148
Definition: AuctionHouseMgr.h:45
Definition: WorldPacket.h:26
AuctionHouseObject mHordeAuctions
Definition: AuctionHouseMgr.h:190
uint32 deposit
Definition: AuctionHouseMgr.h:80
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150
Definition: AuctionHouseMgr.h:60
std::shared_ptr< Transaction > SQLTransaction
Definition: Transaction.h:58
Definition: AuctionHouseMgr.h:64