forked from james-huston/mod-auctionator
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathAuctionatorBidder.h
30 lines (24 loc) · 949 Bytes
/
AuctionatorBidder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef AUCTIONATORBIDDER_H
#define AUCTIONATORBIDDER_H
#include "Auctionator.h"
#include "AuctionatorBase.h"
#include "ObjectMgr.h"
class AuctionatorBidder : AuctionatorBase
{
private:
uint32 auctionHouseId;
AuctionHouseObject* ahMgr;
ObjectGuid buyerGuid;
AuctionatorConfig* config;
uint32 bidOnOwn = 0;
uint32 GetAuctionsPerCycle();
public:
AuctionatorBidder(uint32 auctionHouseIdParam, ObjectGuid buyer, AuctionatorConfig* auctionatorConfig);
~AuctionatorBidder();
void SpendSomeCash();
AuctionEntry* GetAuctionForPurchase(std::vector<uint32>& biddableAuctionIds);
bool BidOnAuction(AuctionEntry* auction, ItemTemplate const* itemTemplate);
bool BuyoutAuction(AuctionEntry* auction, ItemTemplate const* itemTemplate);
uint32 CalculateBuyPrice(AuctionEntry* auction, ItemTemplate const* item);
};
#endif //AUCTIONATORBIDDER_H