mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-03-07 17:40:28 +00:00
[HOT FIX] MS build issues regarding folder / command lenght usage or rc.exe (#2038)
This commit is contained in:
37
src/Ai/Base/Actions/InventoryAction.h
Normal file
37
src/Ai/Base/Actions/InventoryAction.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
|
||||
* and/or modify it under version 3 of the License, or (at your option), any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_INVENTORYACTION_H
|
||||
#define _PLAYERBOT_INVENTORYACTION_H
|
||||
|
||||
#include "Action.h"
|
||||
#include "ItemVisitors.h"
|
||||
|
||||
class PlayerbotAI;
|
||||
|
||||
struct ItemTemplate;
|
||||
|
||||
class InventoryAction : public Action
|
||||
{
|
||||
public:
|
||||
InventoryAction(PlayerbotAI* botAI, std::string const name) : Action(botAI, name) {}
|
||||
|
||||
protected:
|
||||
void IterateItems(IterateItemsVisitor* visitor, IterateItemsMask mask = ITERATE_ITEMS_IN_BAGS);
|
||||
void TellItems(std::map<uint32, uint32> items, std::map<uint32, bool> soulbound);
|
||||
void TellItem(ItemTemplate const* proto, uint32 count, bool soulbound);
|
||||
std::vector<Item*> parseItems(std::string const text, IterateItemsMask mask = ITERATE_ALL_ITEMS);
|
||||
uint32 GetItemCount(FindItemVisitor* visitor, IterateItemsMask mask = ITERATE_ITEMS_IN_BAGS);
|
||||
std::string const parseOutfitName(std::string const outfit);
|
||||
ItemIds parseOutfitItems(std::string const outfit);
|
||||
ItemIds FindOutfitItems(std::string const name);
|
||||
|
||||
private:
|
||||
void IterateItemsInBags(IterateItemsVisitor* visitor);
|
||||
void IterateItemsInEquip(IterateItemsVisitor* visitor);
|
||||
void IterateItemsInBank(IterateItemsVisitor* visitor);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user