24 #ifndef RESOURCES_INVENTORY_INVENTORY_H
25 #define RESOURCES_INVENTORY_INVENTORY_H
100 const uint8_t refine,
111 virtual void setItem(
const int index,
115 const uint8_t refine,
124 const int *
const cards,
125 const int size)
const;
130 void setTag(
const int index,
189 void resize(const
unsigned int newSize);
void virtualRemove(Item *const item, const int amount)
void setCards(const int index, const int *const cards, const int size) const
int findIndexByTag(const int tag) const
void removeItemAt(const int index)
Item * getItem(const int index) const
bool isMainInventory() const
void setTag(const int index, const int tag)
virtual bool addVirtualItem(const Item *const item, int index, const int amount)
void distributeSlotsChangedEvent()
const Item * findItemBySprite(std::string spritePath, const GenderT gender, const BeingTypeId race) const
Item * findItemByTag(const int tag) const
bool contains(const Item *const item) const
void setOptions(const int index, const ItemOptionsList *const options)
void moveItem(const int index1, const int index2)
Item * findItem(const int itemId, const ItemColor color) const
int getLastUsedSlot() const
std::string getName() const
static const int NO_SLOT_INDEX
int addItem(const int id, const ItemTypeT type, const int quantity, const uint8_t refine, const ItemColor color, const Identified identified, const Damaged damaged, const Favorite favorite, const Equipm equipment, const Equipped equipped)
InventoryTypeT getType() const
InventoryListenerList mInventoryListeners
virtual void setItem(const int index, const int id, const ItemTypeT type, const int quantity, const uint8_t refine, const ItemColor color, const Identified identified, const Damaged damaged, const Favorite favorite, const Equipm equipment, const Equipped equipped)
void removeInventoyListener(InventoryListener *const listener)
void resize(const unsigned int newSize)
void virtualRestore(const Item *const item, const int amount)
std::list< InventoryListener * > InventoryListenerList
void removeItem(const int id)
void addInventoyListener(InventoryListener *const listener)
int getNumberOfSlotsUsed() const
std::map< int, int > IntMap
InventoryType ::T InventoryTypeT
#define A_DELETE_COPY(func)