TrinityCore
AuctionBotConfig Class Reference

#include <AuctionHouseBot.h>

Public Member Functions

bool Initialize ()
 
std::string const & GetAHBotIncludes () const
 
std::string const & GetAHBotExcludes () const
 
uint32 GetConfig (AuctionBotConfigUInt32Values index) const
 
bool GetConfig (AuctionBotConfigBoolValues index) const
 
float GetConfig (AuctionBotConfigFloatValues index) const
 
void SetConfig (AuctionBotConfigBoolValues index, bool value)
 
void SetConfig (AuctionBotConfigUInt32Values index, uint32 value)
 
void SetConfig (AuctionBotConfigFloatValues index, float value)
 
uint32 GetConfigItemAmountRatio (AuctionHouseType houseType) const
 
uint32 GetConfigPriceRatio (AuctionHouseType houseType) const
 
bool GetConfigBuyerEnabled (AuctionHouseType houseType) const
 
uint32 GetConfigItemQualityAmount (AuctionQuality quality) const
 
uint32 GetItemPerCycleBoost () const
 
uint32 GetItemPerCycleNormal () const
 
ObjectGuid GetRandChar () const
 
ObjectGuid GetRandCharExclude (ObjectGuid exclude) const
 
bool IsBotChar (ObjectGuid characterID) const
 
void Reload ()
 
uint32 GetAuctionHouseId (AuctionHouseType houseType) const
 

Static Public Member Functions

static AuctionBotConfiginstance ()
 
static char const * GetHouseTypeName (AuctionHouseType houseType)
 

Private Member Functions

 AuctionBotConfig ()
 
 ~AuctionBotConfig ()
 
 AuctionBotConfig (AuctionBotConfig const &)=delete
 
AuctionBotConfigoperator= (AuctionBotConfig const &)=delete
 
void SetAHBotIncludes (const std::string &AHBotIncludes)
 
void SetAHBotExcludes (const std::string &AHBotExcludes)
 
void SetConfig (AuctionBotConfigUInt32Values index, char const *fieldname, uint32 defvalue)
 
void SetConfigMax (AuctionBotConfigUInt32Values index, char const *fieldname, uint32 defvalue, uint32 maxvalue)
 
void SetConfigMinMax (AuctionBotConfigUInt32Values index, char const *fieldname, uint32 defvalue, uint32 minvalue, uint32 maxvalue)
 
void SetConfig (AuctionBotConfigBoolValues index, char const *fieldname, bool defvalue)
 
void SetConfig (AuctionBotConfigFloatValues index, char const *fieldname, float defvalue)
 
void GetConfigFromFile ()
 

Private Attributes

std::string _AHBotIncludes
 
std::string _AHBotExcludes
 
std::vector< ObjectGuid_AHBotCharacters
 
uint32 _itemsPerCycleBoost
 
uint32 _itemsPerCycleNormal
 
uint32 _configUint32Values [CONFIG_UINT32_AHBOT_UINT32_COUNT]
 
bool _configBoolValues [CONFIG_UINT32_AHBOT_BOOL_COUNT]
 
float _configFloatValues [CONFIG_AHBOT_FLOAT_COUNT]
 

Detailed Description

Definition at line 209 of file AuctionHouseBot.h.

Constructor & Destructor Documentation

◆ AuctionBotConfig() [1/2]

AuctionBotConfig::AuctionBotConfig ( )
inlineprivate

Definition at line 212 of file AuctionHouseBot.h.

◆ ~AuctionBotConfig()

AuctionBotConfig::~AuctionBotConfig ( )
inlineprivate

Definition at line 213 of file AuctionHouseBot.h.

◆ AuctionBotConfig() [2/2]

AuctionBotConfig::AuctionBotConfig ( AuctionBotConfig const &  )
privatedelete

Member Function Documentation

◆ GetAHBotExcludes()

std::string const & AuctionBotConfig::GetAHBotExcludes ( ) const
inline

Definition at line 222 of file AuctionHouseBot.h.

◆ GetAHBotIncludes()

std::string const & AuctionBotConfig::GetAHBotIncludes ( ) const
inline

Definition at line 221 of file AuctionHouseBot.h.

◆ GetAuctionHouseId()

uint32 AuctionBotConfig::GetAuctionHouseId ( AuctionHouseType  houseType) const

Definition at line 305 of file AuctionHouseBot.cpp.

◆ GetConfig() [1/3]

bool AuctionBotConfig::GetConfig ( AuctionBotConfigBoolValues  index) const
inline

Definition at line 225 of file AuctionHouseBot.h.

◆ GetConfig() [2/3]

float AuctionBotConfig::GetConfig ( AuctionBotConfigFloatValues  index) const
inline

Definition at line 226 of file AuctionHouseBot.h.

◆ GetConfig() [3/3]

uint32 AuctionBotConfig::GetConfig ( AuctionBotConfigUInt32Values  index) const
inline

Definition at line 224 of file AuctionHouseBot.h.

+ Here is the caller graph for this function:

◆ GetConfigBuyerEnabled()

bool AuctionBotConfig::GetConfigBuyerEnabled ( AuctionHouseType  houseType) const

Definition at line 376 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ GetConfigFromFile()

void AuctionBotConfig::GetConfigFromFile ( )
private

Definition at line 143 of file AuctionHouseBot.cpp.

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

◆ GetConfigItemAmountRatio()

uint32 AuctionBotConfig::GetConfigItemAmountRatio ( AuctionHouseType  houseType) const

Definition at line 350 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ GetConfigItemQualityAmount()

uint32 AuctionBotConfig::GetConfigItemQualityAmount ( AuctionQuality  quality) const

Definition at line 389 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ GetConfigPriceRatio()

uint32 AuctionBotConfig::GetConfigPriceRatio ( AuctionHouseType  houseType) const

Definition at line 363 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ GetHouseTypeName()

char const * AuctionBotConfig::GetHouseTypeName ( AuctionHouseType  houseType)
static

Definition at line 310 of file AuctionHouseBot.cpp.

+ Here is the caller graph for this function:

◆ GetItemPerCycleBoost()

uint32 AuctionBotConfig::GetItemPerCycleBoost ( ) const
inline

Definition at line 236 of file AuctionHouseBot.h.

◆ GetItemPerCycleNormal()

uint32 AuctionBotConfig::GetItemPerCycleNormal ( ) const
inline

Definition at line 237 of file AuctionHouseBot.h.

◆ GetRandChar()

ObjectGuid AuctionBotConfig::GetRandChar ( ) const

Definition at line 317 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ GetRandCharExclude()

ObjectGuid AuctionBotConfig::GetRandCharExclude ( ObjectGuid  exclude) const

Definition at line 327 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ Initialize()

bool AuctionBotConfig::Initialize ( )

Definition at line 38 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ instance()

AuctionBotConfig * AuctionBotConfig::instance ( )
static

Definition at line 32 of file AuctionHouseBot.cpp.

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

◆ IsBotChar()

bool AuctionBotConfig::IsBotChar ( ObjectGuid  characterID) const

Definition at line 345 of file AuctionHouseBot.cpp.

◆ operator=()

AuctionBotConfig & AuctionBotConfig::operator= ( AuctionBotConfig const &  )
privatedelete

◆ Reload()

void AuctionBotConfig::Reload ( )
inline

Definition at line 241 of file AuctionHouseBot.h.

◆ SetAHBotExcludes()

void AuctionBotConfig::SetAHBotExcludes ( const std::string &  AHBotExcludes)
inlineprivate

Definition at line 258 of file AuctionHouseBot.h.

+ Here is the caller graph for this function:

◆ SetAHBotIncludes()

void AuctionBotConfig::SetAHBotIncludes ( const std::string &  AHBotIncludes)
inlineprivate

Definition at line 257 of file AuctionHouseBot.h.

+ Here is the caller graph for this function:

◆ SetConfig() [1/6]

void AuctionBotConfig::SetConfig ( AuctionBotConfigBoolValues  index,
bool  value 
)
inline

Definition at line 227 of file AuctionHouseBot.h.

+ Here is the caller graph for this function:

◆ SetConfig() [2/6]

void AuctionBotConfig::SetConfig ( AuctionBotConfigBoolValues  index,
char const *  fieldname,
bool  defvalue 
)
private

Definition at line 132 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ SetConfig() [3/6]

void AuctionBotConfig::SetConfig ( AuctionBotConfigFloatValues  index,
char const *  fieldname,
float  defvalue 
)
private

Definition at line 137 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ SetConfig() [4/6]

void AuctionBotConfig::SetConfig ( AuctionBotConfigFloatValues  index,
float  value 
)
inline

Definition at line 229 of file AuctionHouseBot.h.

◆ SetConfig() [5/6]

void AuctionBotConfig::SetConfig ( AuctionBotConfigUInt32Values  index,
char const *  fieldname,
uint32  defvalue 
)
private

Definition at line 93 of file AuctionHouseBot.cpp.

+ Here is the call graph for this function:

◆ SetConfig() [6/6]

void AuctionBotConfig::SetConfig ( AuctionBotConfigUInt32Values  index,
uint32  value 
)
inline

Definition at line 228 of file AuctionHouseBot.h.

◆ SetConfigMax()

void AuctionBotConfig::SetConfigMax ( AuctionBotConfigUInt32Values  index,
char const *  fieldname,
uint32  defvalue,
uint32  maxvalue 
)
private

Definition at line 104 of file AuctionHouseBot.cpp.

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

◆ SetConfigMinMax()

void AuctionBotConfig::SetConfigMinMax ( AuctionBotConfigUInt32Values  index,
char const *  fieldname,
uint32  defvalue,
uint32  minvalue,
uint32  maxvalue 
)
private

Definition at line 115 of file AuctionHouseBot.cpp.

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

Member Data Documentation

◆ _AHBotCharacters

std::vector<ObjectGuid> AuctionBotConfig::_AHBotCharacters
private

Definition at line 249 of file AuctionHouseBot.h.

◆ _AHBotExcludes

std::string AuctionBotConfig::_AHBotExcludes
private

Definition at line 248 of file AuctionHouseBot.h.

◆ _AHBotIncludes

std::string AuctionBotConfig::_AHBotIncludes
private

Definition at line 247 of file AuctionHouseBot.h.

◆ _configBoolValues

bool AuctionBotConfig::_configBoolValues[CONFIG_UINT32_AHBOT_BOOL_COUNT]
private

Definition at line 254 of file AuctionHouseBot.h.

◆ _configFloatValues

float AuctionBotConfig::_configFloatValues[CONFIG_AHBOT_FLOAT_COUNT]
private

Definition at line 255 of file AuctionHouseBot.h.

◆ _configUint32Values

uint32 AuctionBotConfig::_configUint32Values[CONFIG_UINT32_AHBOT_UINT32_COUNT]
private

Definition at line 253 of file AuctionHouseBot.h.

◆ _itemsPerCycleBoost

uint32 AuctionBotConfig::_itemsPerCycleBoost
private

Definition at line 250 of file AuctionHouseBot.h.

◆ _itemsPerCycleNormal

uint32 AuctionBotConfig::_itemsPerCycleNormal
private

Definition at line 251 of file AuctionHouseBot.h.


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