TrinityCore
AuctionBotBuyer Class Reference

#include <AuctionHouseBotBuyer.h>

+ Inheritance diagram for AuctionBotBuyer:

Public Member Functions

 AuctionBotBuyer ()
 
 ~AuctionBotBuyer ()
 
bool Initialize () override
 
bool Update (AuctionHouseType houseType) override
 
void LoadConfig ()
 
void BuyAndBidItems (BuyerConfiguration &config)
 
- Public Member Functions inherited from AuctionBotAgent
 AuctionBotAgent ()
 
virtual ~AuctionBotAgent ()
 
virtual bool Initialize ()=0
 
virtual bool Update (AuctionHouseType houseType)=0
 

Private Member Functions

void LoadBuyerValues (BuyerConfiguration &config)
 
bool RollBuyChance (BuyerItemInfo const *ahInfo, AuctionPosting const *auction)
 
bool RollBidChance (BuyerItemInfo const *ahInfo, AuctionPosting const *auction, uint32 bidPrice)
 
void PlaceBidToEntry (AuctionPosting *auction, AuctionHouseObject *auctionHouse, uint32 bidPrice)
 
void BuyEntry (AuctionPosting *auction, AuctionHouseObject *auctionHouse)
 
void PrepareListOfEntry (BuyerConfiguration &config)
 
uint32 GetItemInformation (BuyerConfiguration &config)
 
uint32 GetVendorPrice (uint32 quality)
 
uint32 GetChanceMultiplier (uint32 quality)
 

Private Attributes

uint32 _checkInterval
 
BuyerConfiguration _houseConfig [MAX_AUCTION_HOUSE_TYPE]
 

Detailed Description

Definition at line 70 of file AuctionHouseBotBuyer.h.

Constructor & Destructor Documentation

◆ AuctionBotBuyer()

AuctionBotBuyer::AuctionBotBuyer ( )

Definition at line 26 of file AuctionHouseBotBuyer.cpp.

+ Here is the call graph for this function:

◆ ~AuctionBotBuyer()

AuctionBotBuyer::~AuctionBotBuyer ( )

Definition at line 33 of file AuctionHouseBotBuyer.cpp.

Member Function Documentation

◆ BuyAndBidItems()

void AuctionBotBuyer::BuyAndBidItems ( BuyerConfiguration config)

Definition at line 272 of file AuctionHouseBotBuyer.cpp.

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

◆ BuyEntry()

void AuctionBotBuyer::BuyEntry ( AuctionPosting auction,
AuctionHouseObject auctionHouse 
)
private

Definition at line 399 of file AuctionHouseBotBuyer.cpp.

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

◆ GetChanceMultiplier()

uint32 AuctionBotBuyer::GetChanceMultiplier ( uint32  quality)
private

Definition at line 375 of file AuctionHouseBotBuyer.cpp.

+ Here is the caller graph for this function:

◆ GetItemInformation()

uint32 AuctionBotBuyer::GetItemInformation ( BuyerConfiguration config)
private

Definition at line 98 of file AuctionHouseBotBuyer.cpp.

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

◆ GetVendorPrice()

uint32 AuctionBotBuyer::GetVendorPrice ( uint32  quality)
private

Definition at line 352 of file AuctionHouseBotBuyer.cpp.

+ Here is the caller graph for this function:

◆ Initialize()

bool AuctionBotBuyer::Initialize ( )
overridevirtual

Implements AuctionBotAgent.

Definition at line 37 of file AuctionHouseBotBuyer.cpp.

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

◆ LoadBuyerValues()

void AuctionBotBuyer::LoadBuyerValues ( BuyerConfiguration config)
private

Definition at line 70 of file AuctionHouseBotBuyer.cpp.

+ Here is the caller graph for this function:

◆ LoadConfig()

void AuctionBotBuyer::LoadConfig ( )

Definition at line 60 of file AuctionHouseBotBuyer.cpp.

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

◆ PlaceBidToEntry()

void AuctionBotBuyer::PlaceBidToEntry ( AuctionPosting auction,
AuctionHouseObject auctionHouse,
uint32  bidPrice 
)
private

Definition at line 430 of file AuctionHouseBotBuyer.cpp.

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

◆ PrepareListOfEntry()

void AuctionBotBuyer::PrepareListOfEntry ( BuyerConfiguration config)
private

Definition at line 255 of file AuctionHouseBotBuyer.cpp.

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

◆ RollBidChance()

bool AuctionBotBuyer::RollBidChance ( BuyerItemInfo const *  ahInfo,
AuctionPosting const *  auction,
uint32  bidPrice 
)
private

Definition at line 209 of file AuctionHouseBotBuyer.cpp.

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

◆ RollBuyChance()

bool AuctionBotBuyer::RollBuyChance ( BuyerItemInfo const *  ahInfo,
AuctionPosting const *  auction 
)
private

Definition at line 164 of file AuctionHouseBotBuyer.cpp.

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

◆ Update()

bool AuctionBotBuyer::Update ( AuctionHouseType  houseType)
overridevirtual

Implements AuctionBotAgent.

Definition at line 76 of file AuctionHouseBotBuyer.cpp.

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

Member Data Documentation

◆ _checkInterval

uint32 AuctionBotBuyer::_checkInterval
private

Definition at line 83 of file AuctionHouseBotBuyer.h.

◆ _houseConfig

BuyerConfiguration AuctionBotBuyer::_houseConfig[MAX_AUCTION_HOUSE_TYPE]
private

Definition at line 84 of file AuctionHouseBotBuyer.h.


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