34 const std::string ¤cy) :
39 mMergeDuplicates(mergeDuplicates)
140 const STD_VECTOR<ShopItem*>::iterator it_end =
mAllShopItems.end();
155 STD_VECTOR<ShopItem*>::iterator it;
167 STD_VECTOR<ShopItem*>::iterator it;
184 STD_VECTOR<ShopItem*>::const_iterator it =
mShopItems.begin();
185 const STD_VECTOR<ShopItem*>::const_iterator e =
mShopItems.end();
204 if ((item !=
nullptr) && item->
isVisible())
ItemColor getColor() const
void addDuplicate(const int inventoryIndex, const int quantity)
ShopItems(const bool mergeDuplicates, const std::string ¤cy)
std::vector< ShopItem * > mAllShopItems
ShopItem * addItemNoDup(const int id, const ItemTypeT type, const ItemColor color, const int amount, const int price)
std::string getElementAt(int i)
void del(const unsigned int i)
ShopItem * addItem2(const int inventoryIndex, const int id, const ItemTypeT type, const ItemColor color, const int amount, const int price)
ShopItem * addItem(const int id, const ItemTypeT type, const ItemColor color, const int amount, const int price)
void erase(const unsigned int i)
std::vector< ShopItem * > mShopItems
bool findInAllItems(std::vector< ShopItem * >::iterator &it, const ShopItem *const item)
ShopItem * findItem(const int id, const ItemColor color) const
ShopItem * at(const size_t i) const
void delete_all(Container &c)
#define FOR_EACH(type, iter, array)