30 #include "gui/theme.h"
71 mIdentified(identified),
109 info.getDyeIconColorsString(color));
115 "unknown-item.png"));
121 const std::map <int, int>::const_iterator it =
mTags.find(tagId);
122 if (it ==
mTags.end())
124 return (*it).second > 0;
132 "itemIcons"),
info.getDisplay().image),
133 info.getDyeIconColorsString(color)));
135 if (image ==
nullptr)
146 return info.getName();
168 if (
size < 0 || (cards ==
nullptr))
173 for (
int f = 0; f < sz; f ++)
#define fromBool(val, name)
std::string getValue(const std::string &key, const std::string &deflt) const
std::string getStringValue(const std::string &key) const
void clearItem(const Item *const item)
static ItemColor getColorFromCards(const int *const cards)
void setCard(const int index, const int id)
const ItemOptionsList * mOptions
int getCard(const int index) const
void addCard(const int card)
std::string getName() const
bool isHaveTag(const int tagId) const
void setId(const int id, const ItemColor color)
ItemTypeT getType() const
void setOptions(const ItemOptionsList *const options)
void setCards(const int *const cards, const int size)
Item(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)
std::map< int, int > mTags
const ItemInfo & getInfo() const
static Image * getImageFromTheme(const std::string &path)
DragDrop dragDrop(0, DragDropSource::Empty)
const ItemColor ItemColor_zero
bool info(InputEvent &event)
const ItemInfo & get(const int id)
Image * getImage(const std::string &idPath)
ServerTypeT getNetworkType()
ItemOptionDb::OptionInfos mOptions
std::string combineDye2(std::string file, const std::string &dye)
std::string pathJoin(std::string str1, const std::string &str2)
static ItemOptionsList * copy(const ItemOptionsList *const options0)