TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SellerConfiguration Class Reference

#include <AuctionHouseBotSeller.h>

Public Member Functions

 SellerConfiguration ()
 
 ~SellerConfiguration ()
 
void Initialize (AuctionHouseType houseType)
 
AuctionHouseType GetHouseType () const
 
void SetMinTime (uint32 value)
 
uint32 GetMinTime () const
 
void SetMaxTime (uint32 value)
 
uint32 GetMaxTime () const
 
void SetItemsAmountPerClass (AuctionQuality quality, ItemClass itemclass, uint32 amount)
 
uint32 GetItemsAmountPerClass (AuctionQuality quality, ItemClass itemclass) const
 
void SetItemsQuantityPerClass (AuctionQuality quality, ItemClass itemclass, uint32 qty)
 
uint32 GetItemsQuantityPerClass (AuctionQuality quality, ItemClass itemclass) const
 
void SetMissedItemsPerClass (AuctionQuality quality, ItemClass itemclass, uint32 found)
 
uint32 GetMissedItemsPerClass (AuctionQuality quality, ItemClass itemclass) const
 
void SetItemsAmountPerQuality (AuctionQuality quality, uint32 cnt)
 
uint32 GetItemsAmountPerQuality (AuctionQuality quality) const
 
void SetPriceRatioPerQuality (AuctionQuality quality, uint32 value)
 
uint32 GetPriceRatioPerQuality (AuctionQuality quality) const
 
void SetPriceRatioPerClass (ItemClass item, uint32 value)
 
uint32 GetPriceRatioPerClass (ItemClass item) const
 
void SetRandomStackRatioPerClass (ItemClass item, uint32 value)
 
uint32 GetRandomStackRatioPerClass (ItemClass item) const
 

Public Attributes

uint32 LastMissedItem
 

Private Attributes

AuctionHouseType _houseType
 
uint32 _minTime
 
uint32 _maxTime
 
SellerItemInfo _ItemInfo [MAX_AUCTION_QUALITY]
 

Constructor & Destructor Documentation

SellerConfiguration::SellerConfiguration ( )
inline
60  {
61  }
uint32 LastMissedItem
Definition: AuctionHouseBotSeller.h:72
Definition: AuctionHouseBot.h:42
AuctionHouseType _houseType
Definition: AuctionHouseBotSeller.h:110
uint32 _maxTime
Definition: AuctionHouseBotSeller.h:112
uint32 _minTime
Definition: AuctionHouseBotSeller.h:111
SellerConfiguration::~SellerConfiguration ( )
inline
63 {}

Member Function Documentation

AuctionHouseType SellerConfiguration::GetHouseType ( ) const
inline
70 { return _houseType; }
AuctionHouseType _houseType
Definition: AuctionHouseBotSeller.h:110

+ Here is the caller graph for this function:

uint32 SellerConfiguration::GetItemsAmountPerClass ( AuctionQuality  quality,
ItemClass  itemclass 
) const
inline
87 { return _ItemInfo[quality].ItemClassInfos[itemclass].AmountOfItems; }
uint32 AmountOfItems
Definition: AuctionHouseBotSeller.h:38
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53
uint32 SellerConfiguration::GetItemsAmountPerQuality ( AuctionQuality  quality) const
inline
101 { return _ItemInfo[quality].AmountOfItems; }
uint32 AmountOfItems
Definition: AuctionHouseBotSeller.h:49
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113

+ Here is the caller graph for this function:

uint32 SellerConfiguration::GetItemsQuantityPerClass ( AuctionQuality  quality,
ItemClass  itemclass 
) const
inline
89 { return _ItemInfo[quality].ItemClassInfos[itemclass].Quantity; }
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
uint32 Quantity
Definition: AuctionHouseBotSeller.h:40
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53
uint32 SellerConfiguration::GetMaxTime ( ) const
inline
84 { return _maxTime; }
uint32 _maxTime
Definition: AuctionHouseBotSeller.h:112

+ Here is the caller graph for this function:

uint32 SellerConfiguration::GetMinTime ( ) const
inline
79  {
80  return std::min(1u, std::min(_minTime, _maxTime));
81  }
uint32 _maxTime
Definition: AuctionHouseBotSeller.h:112
T min(const T &x, const T &y)
Definition: g3dmath.h:305
uint32 _minTime
Definition: AuctionHouseBotSeller.h:111

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32 SellerConfiguration::GetMissedItemsPerClass ( AuctionQuality  quality,
ItemClass  itemclass 
) const
inline
97 { return _ItemInfo[quality].ItemClassInfos[itemclass].MissItems; }
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
uint32 MissItems
Definition: AuctionHouseBotSeller.h:39
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53

+ Here is the caller graph for this function:

uint32 SellerConfiguration::GetPriceRatioPerClass ( ItemClass  item) const
inline
105 { return _ItemInfo[0].ItemClassInfos[item].PriceRatio; }
uint32 PriceRatio
Definition: AuctionHouseBotSeller.h:41
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53

+ Here is the caller graph for this function:

uint32 SellerConfiguration::GetPriceRatioPerQuality ( AuctionQuality  quality) const
inline
103 { return _ItemInfo[quality].PriceRatio; }
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
uint32 PriceRatio
Definition: AuctionHouseBotSeller.h:51

+ Here is the caller graph for this function:

uint32 SellerConfiguration::GetRandomStackRatioPerClass ( ItemClass  item) const
inline
107 { return _ItemInfo[0].ItemClassInfos[item].RandomStackRatio; }
uint32 RandomStackRatio
Definition: AuctionHouseBotSeller.h:42
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53

+ Here is the caller graph for this function:

void SellerConfiguration::Initialize ( AuctionHouseType  houseType)
inline
66  {
67  _houseType = houseType;
68  }
AuctionHouseType _houseType
Definition: AuctionHouseBotSeller.h:110
void SellerConfiguration::SetItemsAmountPerClass ( AuctionQuality  quality,
ItemClass  itemclass,
uint32  amount 
)
inline
86 { _ItemInfo[quality].ItemClassInfos[itemclass].AmountOfItems = amount * _ItemInfo[quality].ItemClassInfos[itemclass].Quantity; }
uint32 AmountOfItems
Definition: AuctionHouseBotSeller.h:38
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
uint32 Quantity
Definition: AuctionHouseBotSeller.h:40
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53

+ Here is the caller graph for this function:

void SellerConfiguration::SetItemsAmountPerQuality ( AuctionQuality  quality,
uint32  cnt 
)
inline
100 { _ItemInfo[quality].AmountOfItems = cnt; }
uint32 AmountOfItems
Definition: AuctionHouseBotSeller.h:49
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113

+ Here is the caller graph for this function:

void SellerConfiguration::SetItemsQuantityPerClass ( AuctionQuality  quality,
ItemClass  itemclass,
uint32  qty 
)
inline
88 { _ItemInfo[quality].ItemClassInfos[itemclass].Quantity = qty; }
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
uint32 Quantity
Definition: AuctionHouseBotSeller.h:40
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53

+ Here is the caller graph for this function:

void SellerConfiguration::SetMaxTime ( uint32  value)
inline
83 { _maxTime = value; }
uint32 _maxTime
Definition: AuctionHouseBotSeller.h:112
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the caller graph for this function:

void SellerConfiguration::SetMinTime ( uint32  value)
inline
75  {
76  _minTime = value;
77  }
uint32 _minTime
Definition: AuctionHouseBotSeller.h:111
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the caller graph for this function:

void SellerConfiguration::SetMissedItemsPerClass ( AuctionQuality  quality,
ItemClass  itemclass,
uint32  found 
)
inline
91  {
92  if (_ItemInfo[quality].ItemClassInfos[itemclass].AmountOfItems > found)
93  _ItemInfo[quality].ItemClassInfos[itemclass].MissItems = _ItemInfo[quality].ItemClassInfos[itemclass].AmountOfItems - found;
94  else
95  _ItemInfo[quality].ItemClassInfos[itemclass].MissItems = 0;
96  }
uint32 AmountOfItems
Definition: AuctionHouseBotSeller.h:38
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
uint32 MissItems
Definition: AuctionHouseBotSeller.h:39
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53

+ Here is the caller graph for this function:

void SellerConfiguration::SetPriceRatioPerClass ( ItemClass  item,
uint32  value 
)
inline
uint32 PriceRatio
Definition: AuctionHouseBotSeller.h:41
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
const FieldDescriptor value
Definition: descriptor.h:1522
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53

+ Here is the caller graph for this function:

void SellerConfiguration::SetPriceRatioPerQuality ( AuctionQuality  quality,
uint32  value 
)
inline
102 { _ItemInfo[quality].PriceRatio = value; }
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
uint32 PriceRatio
Definition: AuctionHouseBotSeller.h:51
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the caller graph for this function:

void SellerConfiguration::SetRandomStackRatioPerClass ( ItemClass  item,
uint32  value 
)
inline
uint32 RandomStackRatio
Definition: AuctionHouseBotSeller.h:42
SellerItemInfo _ItemInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBotSeller.h:113
const FieldDescriptor value
Definition: descriptor.h:1522
SellerItemClassInfo ItemClassInfos[MAX_ITEM_CLASS]
Definition: AuctionHouseBotSeller.h:53

+ Here is the caller graph for this function:

Member Data Documentation

AuctionHouseType SellerConfiguration::_houseType
private
SellerItemInfo SellerConfiguration::_ItemInfo[MAX_AUCTION_QUALITY]
private
uint32 SellerConfiguration::_maxTime
private
uint32 SellerConfiguration::_minTime
private
uint32 SellerConfiguration::LastMissedItem

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