18 #ifndef AUCTION_HOUSE_BOT_H
19 #define AUCTION_HOUSE_BOT_H
38 #define MAX_AUCTION_QUALITY 7
47 #define MAX_AUCTION_HOUSE_TYPE 3
241 void SetAHBotIncludes(
const std::string& AHBotIncludes) { _AHBotIncludes = AHBotIncludes; }
242 void SetAHBotExcludes(
const std::string& AHBotExcludes) { _AHBotExcludes = AHBotExcludes; }
249 void GetConfigFromFile();
252 #define sAuctionBotConfig AuctionBotConfig::instance()
292 void ReloadAllConfig();
293 void Rebuild(
bool all);
297 void InitializeAgents();
305 #define sAuctionBot AuctionHouseBot::instance()
AuctionQuality
Definition: AuctionHouseBot.h:27
Definition: AuctionHouseBot.h:143
AuctionBotAgent()
Definition: AuctionHouseBot.h:257
void SetConfig(AuctionBotConfigBoolValues index, bool value)
Definition: AuctionHouseBot.h:217
Definition: AuctionHouseBot.h:129
Definition: AuctionHouseBot.h:107
Definition: AuctionHouseBot.h:125
Definition: AuctionHouseBot.h:74
Definition: AuctionHouseBot.h:95
Definition: AuctionHouseBot.h:42
AuctionBotConfigBoolValues
Definition: AuctionHouseBot.h:158
Definition: AuctionHouseBot.h:151
Definition: AuctionHouseBot.h:80
Definition: AuctionHouseBot.h:52
Definition: AuctionHouseBot.h:75
AuctionHouseBotStatusInfoPerType AuctionHouseBotStatusInfo[MAX_AUCTION_HOUSE_TYPE]
Definition: AuctionHouseBot.h:269
std::string _AHBotExcludes
Definition: AuctionHouseBot.h:233
Definition: AuctionHouseBot.h:78
Definition: AuctionHouseBot.h:144
AuctionBotSeller * _seller
Definition: AuctionHouseBot.h:300
Definition: AuctionHouseBot.h:89
AuctionHouseType
Definition: AuctionHouseBot.h:40
Definition: AuctionHouseBot.h:103
Definition: AuctionHouseBot.h:90
Definition: AuctionHouseBot.h:184
Definition: AuctionHouseBot.h:172
Definition: AuctionHouseBot.h:34
Definition: AuctionHouseBot.h:101
uint32 GetItemPerCycleNormal() const
Definition: AuctionHouseBot.h:226
Definition: AuctionHouseBot.h:113
Definition: AuctionHouseBot.h:32
Definition: AuctionHouseBot.h:121
Definition: AuctionHouseBot.h:67
Definition: AuctionHouseBot.h:139
Definition: AuctionHouseBot.h:97
#define MAX_AUCTION_QUALITY
Definition: AuctionHouseBot.h:38
Definition: AuctionHouseBot.h:86
Definition: AuctionHouseBot.h:110
Definition: AuctionHouseBot.h:98
Definition: AuctionHouseBot.h:189
AuctionBotConfigUInt32Values
Definition: AuctionHouseBot.h:49
uint32 _itemsPerCycleNormal
Definition: AuctionHouseBot.h:235
Definition: AuctionHouseBot.h:149
AuctionBotBuyer * _buyer
Definition: AuctionHouseBot.h:299
Definition: AuctionHouseBot.h:140
Definition: AuctionHouseBot.h:59
Definition: AuctionHouseBot.h:99
Definition: AuctionHouseBot.h:171
Definition: AuctionHouseBot.h:117
Definition: AuctionHouseBot.h:33
Definition: AuctionHouseBot.h:76
Definition: AuctionHouseBot.h:55
Definition: AuctionHouseBot.h:195
Definition: AuctionHouseBot.h:176
Definition: AuctionHouseBot.h:72
Definition: AuctionHouseBot.h:177
Definition: AuctionHouseBot.h:168
~AuctionBotConfig()
Definition: AuctionHouseBot.h:203
void SetAHBotExcludes(const std::string &AHBotExcludes)
Definition: AuctionHouseBot.h:242
Definition: AuctionHouseBot.h:131
bool all(float x)
Definition: g3dmath.h:431
float GetConfig(AuctionBotConfigFloatValues index) const
Definition: AuctionHouseBot.h:216
Definition: AuctionHouseBot.h:83
Definition: AuctionHouseBot.h:88
Definition: AuctionHouseBot.h:183
AuctionBotConfigFloatValues
Definition: AuctionHouseBot.h:192
Definition: AuctionHouseBot.h:145
Definition: AuctionHouseBot.h:69
Definition: AuctionHouseBot.h:77
Definition: AuctionHouseBot.h:71
Definition: AuctionHouseBot.h:44
Definition: AuctionHouseBot.h:263
Definition: AuctionHouseBotSeller.h:118
Definition: AuctionHouseBot.h:133
Definition: AuctionHouseBot.h:118
Definition: AuctionHouseBot.h:130
Definition: AuctionHouseBot.h:169
uint32 QualityInfo[MAX_AUCTION_QUALITY]
Definition: AuctionHouseBot.h:266
Definition: AuctionHouseBot.h:136
const std::string & GetAHBotExcludes() const
Definition: AuctionHouseBot.h:212
bool GetConfig(AuctionBotConfigBoolValues index) const
Definition: AuctionHouseBot.h:215
Definition: AuctionHouseBot.h:102
#define MAX_AUCTION_HOUSE_TYPE
Definition: AuctionHouseBot.h:47
Definition: AuctionHouseBot.h:138
Definition: AuctionHouseBot.h:54
Definition: AuctionHouseBot.h:82
Definition: AuctionHouseBot.h:73
Definition: AuctionHouseBot.h:186
Definition: AuctionHouseBot.h:187
Definition: AuctionHouseBot.h:123
Definition: AuctionHouseBot.h:146
Definition: AuctionHouseBot.h:179
Definition: AuctionHouseBot.h:128
Definition: AuctionHouseBotBuyer.h:70
Definition: AuctionHouseBot.h:152
Definition: AuctionHouseBot.h:63
Definition: AuctionHouseBot.h:79
Definition: AuctionHouseBot.h:170
uint32 ItemsCount
Definition: AuctionHouseBot.h:265
virtual ~AuctionBotAgent()
Definition: AuctionHouseBot.h:258
virtual bool Update(AuctionHouseType houseType)=0
Vector2int16 & operator=(const Any &a)
Definition: AuctionHouseBot.h:112
Definition: AuctionHouseBot.h:120
Definition: AuctionHouseBot.h:154
uint32_t uint32
Definition: Define.h:150
Definition: AuctionHouseBot.h:96
static void Initialize(PCASC_SALSA20 pState, LPBYTE pbKey, DWORD cbKeyLength, LPBYTE pbVector)
Definition: CascDecrypt.cpp:81
Definition: AuctionHouseBot.h:194
Definition: AuctionHouseBot.h:153
Definition: AuctionHouseBot.h:185
Definition: SharedDefines.h:322
Definition: AuctionHouseBot.h:56
Definition: AuctionHouseBot.h:29
Definition: AuctionHouseBot.h:51
Definition: AuctionHouseBot.h:64
Definition: AuctionHouseBot.h:68
Definition: AuctionHouseBot.h:94
Definition: SharedDefines.h:326
virtual bool Initialize()=0
Definition: AuctionHouseBot.h:254
Definition: AuctionHouseBot.h:61
Definition: AuctionHouseBot.h:91
Definition: AuctionHouseBot.h:273
Definition: AuctionHouseBot.h:30
Definition: AuctionHouseBot.h:163
Definition: AuctionHouseBot.h:66
uint32 GetConfig(AuctionBotConfigUInt32Values index) const
Definition: AuctionHouseBot.h:214
Definition: AuctionHouseBot.h:167
Definition: AuctionHouseBot.h:165
uint32 _itemsPerCycleBoost
Definition: AuctionHouseBot.h:234
Definition: AuctionHouseBot.h:135
Definition: AuctionHouseBot.h:188
Definition: AuctionHouseBot.h:62
Definition: AuctionHouseBot.h:104
Definition: AuctionHouseBot.h:31
Definition: AuctionHouseBot.h:105
Definition: AuctionHouseBot.h:114
Definition: AuctionHouseBot.h:147
Definition: AuctionHouseBot.h:178
Definition: AuctionHouseBot.h:93
Definition: AuctionHouseBot.h:175
void SetConfig(AuctionBotConfigUInt32Values index, uint32 value)
Definition: AuctionHouseBot.h:218
Definition: AuctionHouseBot.h:148
Definition: SharedDefines.h:321
#define TC_GAME_API
Definition: Define.h:134
Definition: AuctionHouseBot.h:174
Definition: AuctionHouseBot.h:115
Definition: AuctionHouseBot.h:35
Definition: AuctionHouseBot.h:160
Definition: AuctionHouseBot.h:126
Definition: AuctionHouseBot.h:122
Definition: AuctionHouseBot.h:150
Definition: AuctionHouseBot.h:173
Definition: AuctionHouseBot.h:87
Definition: AuctionHouseBot.h:84
Definition: AuctionHouseBot.h:58
Definition: AuctionHouseBot.h:70
const FieldDescriptor value
Definition: descriptor.h:1522
Definition: SharedDefines.h:323
Definition: SharedDefines.h:325
uint32 GetItemPerCycleBoost() const
Definition: AuctionHouseBot.h:225
std::string _AHBotIncludes
Definition: AuctionHouseBot.h:232
Definition: AuctionHouseBot.h:106
uint32 _operationSelector
Definition: AuctionHouseBot.h:302
const std::string & GetAHBotIncludes() const
Definition: AuctionHouseBot.h:211
uint32_t uint32
Definition: g3dmath.h:168
Definition: AuctionHouseBot.h:109
Definition: AuctionHouseBot.h:155
Definition: AuctionHouseBot.h:111
Definition: AuctionHouseBot.h:127
Definition: AuctionHouseBot.h:119
Definition: AuctionHouseBot.h:100
Definition: AuctionHouseBot.h:81
Definition: AuctionHouseBot.h:137
Definition: AuctionHouseBot.h:182
Definition: AuctionHouseBot.h:53
AuctionBotConfig()
Definition: AuctionHouseBot.h:202
void SetConfig(AuctionBotConfigFloatValues index, float value)
Definition: AuctionHouseBot.h:219
Definition: AuctionHouseBot.h:166
Definition: AuctionHouseBot.h:141
Definition: SharedDefines.h:324
Definition: SharedDefines.h:320
Definition: AuctionHouseBot.h:92
Definition: AuctionHouseBot.h:65
Definition: AuctionHouseBot.h:181
void SetAHBotIncludes(const std::string &AHBotIncludes)
Definition: AuctionHouseBot.h:241
Definition: AuctionHouseBot.h:164
Definition: AuctionHouseBot.h:124
Definition: AuctionHouseBot.h:134
Definition: AuctionHouseBot.h:161
Definition: AuctionHouseBot.h:199
Definition: AuctionHouseBot.h:180
Definition: AuctionHouseBot.h:43
Definition: AuctionHouseBot.h:57
Definition: AuctionHouseBot.h:162
Definition: AuctionHouseBot.h:142
Definition: AuctionHouseBot.h:85
Definition: AuctionHouseBot.h:116
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150
void Reload()
Definition: AuctionHouseBot.h:227
Definition: AuctionHouseBot.h:108
Definition: AuctionHouseBot.h:132
Definition: AuctionHouseBot.h:60