56 if (
mItems[index] !=
nullptr)
115 if (item2 !=
nullptr)
124 const uint8_t refine,
134 logger->
log(
"Warning: invalid inventory index: %d", index);
139 if ((item1 ==
nullptr) &&
id > 0)
bool addVirtualItem(const Item *const item, int index, const int amount)
ComplexInventory(const InventoryTypeT type, const int size)
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 addChild(const Item *const item, const int amount)
Item * getItem(const int index) const
void distributeSlotsChangedEvent()
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)
uint8_t getRefine() const
void setInvIndex(const int index)
Favorite getFavorite() const
void setTag(const int tag)
ItemColor getColor() const
Identified getIdentified() const
ItemTypeT getType() const
Damaged getDamaged() const
void log(const char *const log_text,...)
const bool Equipped_false
InventoryType ::T InventoryTypeT
bool isItemProtected(const int id)