mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-21 12:37:05 +00:00
better initself
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "InventoryAction.h"
|
||||
#include "Player.h"
|
||||
#include "PlayerbotAI.h"
|
||||
|
||||
class Item;
|
||||
|
||||
@@ -100,7 +101,7 @@ enum PriorizedConsumables
|
||||
|
||||
#define MAX_CONSUM_ID 28
|
||||
|
||||
class PlayerbotFactory : public InventoryAction
|
||||
class PlayerbotFactory
|
||||
{
|
||||
public:
|
||||
PlayerbotFactory(Player* bot, uint32 level, uint32 itemQuality = 0, uint32 gearScoreLimit = 0);
|
||||
@@ -172,6 +173,10 @@ class PlayerbotFactory : public InventoryAction
|
||||
std::vector<InventoryType> GetPossibleInventoryTypeListBySlot(EquipmentSlots slot);
|
||||
static bool IsShieldTank(Player* bot);
|
||||
static bool NotSameArmorType(uint32 item_subclass_armor, Player* bot);
|
||||
void IterateItems(IterateItemsVisitor* visitor, IterateItemsMask mask = ITERATE_ITEMS_IN_BAGS);
|
||||
void IterateItemsInBags(IterateItemsVisitor* visitor);
|
||||
void IterateItemsInEquip(IterateItemsVisitor* visitor);
|
||||
void IterateItemsInBank(IterateItemsVisitor* visitor);
|
||||
EnchantContainer::const_iterator GetEnchantContainerBegin() { return m_EnchantContainer.begin(); }
|
||||
EnchantContainer::const_iterator GetEnchantContainerEnd() { return m_EnchantContainer.end(); }
|
||||
uint32 level;
|
||||
@@ -181,6 +186,8 @@ class PlayerbotFactory : public InventoryAction
|
||||
std::vector<uint32> trainerIdCache;
|
||||
protected:
|
||||
EnchantContainer m_EnchantContainer;
|
||||
Player* bot;
|
||||
PlayerbotAI* botAI;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user