TrinityCore
AuctionBotSeller Class Reference

#include <AuctionHouseBotSeller.h>

+ Inheritance diagram for AuctionBotSeller:

Public Types

typedef std::vector< uint32ItemPool
 

Public Member Functions

 AuctionBotSeller ()
 
 ~AuctionBotSeller ()
 
bool Initialize () override
 
bool Update (AuctionHouseType houseType) override
 
void AddNewAuctions (SellerConfiguration &config)
 
void SetItemsRatio (uint32 al, uint32 ho, uint32 ne)
 
void SetItemsRatioForHouse (AuctionHouseType house, uint32 val)
 
void SetItemsAmount (std::array< uint32, MAX_AUCTION_QUALITY > const &amounts)
 
void SetItemsAmountForQuality (AuctionQuality quality, uint32 val)
 
void LoadConfig ()
 
- Public Member Functions inherited from AuctionBotAgent
 AuctionBotAgent ()
 
virtual ~AuctionBotAgent ()
 
virtual bool Initialize ()=0
 
virtual bool Update (AuctionHouseType houseType)=0
 

Private Member Functions

void LoadSellerValues (SellerConfiguration &config)
 
uint32 SetStat (SellerConfiguration &config)
 
bool GetItemsToSell (SellerConfiguration &config, ItemsToSellArray &itemsToSellArray, AllItemsArray const &addedItem)
 
void SetPricesOfItem (ItemTemplate const *itemProto, SellerConfiguration &config, uint32 &buyout, uint32 &bid, uint32 stackcnt)
 
uint32 GetStackSizeForItem (ItemTemplate const *itemProto, SellerConfiguration &config) const
 
void LoadItemsQuantity (SellerConfiguration &config)
 

Static Private Member Functions

static uint32 GetBuyModifier (ItemTemplate const *prototype)
 
static uint32 GetSellModifier (ItemTemplate const *itemProto)
 

Private Attributes

SellerConfiguration _houseConfig [MAX_AUCTION_HOUSE_TYPE]
 
ItemPool _itemPool [MAX_AUCTION_QUALITY][MAX_ITEM_CLASS]
 

Detailed Description

Definition at line 119 of file AuctionHouseBotSeller.h.

Member Typedef Documentation

◆ ItemPool

typedef std::vector<uint32> AuctionBotSeller::ItemPool

Definition at line 122 of file AuctionHouseBotSeller.h.

Constructor & Destructor Documentation

◆ AuctionBotSeller()

AuctionBotSeller::AuctionBotSeller ( )

Definition at line 30 of file AuctionHouseBotSeller.cpp.

+ Here is the call graph for this function:

◆ ~AuctionBotSeller()

AuctionBotSeller::~AuctionBotSeller ( )

Definition at line 37 of file AuctionHouseBotSeller.cpp.

Member Function Documentation

◆ AddNewAuctions()

void AuctionBotSeller::AddNewAuctions ( SellerConfiguration config)

Definition at line 814 of file AuctionHouseBotSeller.cpp.

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

◆ GetBuyModifier()

uint32 AuctionBotSeller::GetBuyModifier ( ItemTemplate const *  prototype)
staticprivate

Definition at line 658 of file AuctionHouseBotSeller.cpp.

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

◆ GetItemsToSell()

bool AuctionBotSeller::GetItemsToSell ( SellerConfiguration config,
ItemsToSellArray itemsToSellArray,
AllItemsArray const &  addedItem 
)
private

Definition at line 564 of file AuctionHouseBotSeller.cpp.

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

◆ GetSellModifier()

uint32 AuctionBotSeller::GetSellModifier ( ItemTemplate const *  itemProto)
staticprivate

Definition at line 643 of file AuctionHouseBotSeller.cpp.

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

◆ GetStackSizeForItem()

uint32 AuctionBotSeller::GetStackSizeForItem ( ItemTemplate const *  itemProto,
SellerConfiguration config 
) const
private

Definition at line 634 of file AuctionHouseBotSeller.cpp.

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

◆ Initialize()

bool AuctionBotSeller::Initialize ( )
overridevirtual

Implements AuctionBotAgent.

Definition at line 41 of file AuctionHouseBotSeller.cpp.

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

◆ LoadConfig()

void AuctionBotSeller::LoadConfig ( )

Definition at line 370 of file AuctionHouseBotSeller.cpp.

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

◆ LoadItemsQuantity()

void AuctionBotSeller::LoadItemsQuantity ( SellerConfiguration config)
private

Definition at line 377 of file AuctionHouseBotSeller.cpp.

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

◆ LoadSellerValues()

void AuctionBotSeller::LoadSellerValues ( SellerConfiguration config)
private

Definition at line 488 of file AuctionHouseBotSeller.cpp.

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

◆ SetItemsAmount()

void AuctionBotSeller::SetItemsAmount ( std::array< uint32, MAX_AUCTION_QUALITY > const &  amounts)

Definition at line 774 of file AuctionHouseBotSeller.cpp.

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

◆ SetItemsAmountForQuality()

void AuctionBotSeller::SetItemsAmountForQuality ( AuctionQuality  quality,
uint32  val 
)

Definition at line 788 of file AuctionHouseBotSeller.cpp.

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

◆ SetItemsRatio()

void AuctionBotSeller::SetItemsRatio ( uint32  al,
uint32  ho,
uint32  ne 
)

Definition at line 750 of file AuctionHouseBotSeller.cpp.

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

◆ SetItemsRatioForHouse()

void AuctionBotSeller::SetItemsRatioForHouse ( AuctionHouseType  house,
uint32  val 
)

Definition at line 760 of file AuctionHouseBotSeller.cpp.

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

◆ SetPricesOfItem()

void AuctionBotSeller::SetPricesOfItem ( ItemTemplate const *  itemProto,
SellerConfiguration config,
uint32 buyout,
uint32 bid,
uint32  stackcnt 
)
private

Definition at line 589 of file AuctionHouseBotSeller.cpp.

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

◆ SetStat()

uint32 AuctionBotSeller::SetStat ( SellerConfiguration config)
private

Definition at line 524 of file AuctionHouseBotSeller.cpp.

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

◆ Update()

bool AuctionBotSeller::Update ( AuctionHouseType  houseType)
overridevirtual

Implements AuctionBotAgent.

Definition at line 914 of file AuctionHouseBotSeller.cpp.

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

Member Data Documentation

◆ _houseConfig

SellerConfiguration AuctionBotSeller::_houseConfig[MAX_AUCTION_HOUSE_TYPE]
private

Definition at line 138 of file AuctionHouseBotSeller.h.

◆ _itemPool

ItemPool AuctionBotSeller::_itemPool[MAX_AUCTION_QUALITY][MAX_ITEM_CLASS]
private

Definition at line 140 of file AuctionHouseBotSeller.h.


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