72 name = std::string(
"shortcut").append(
74 color = std::string(
"shortcutColor").append(
76 data = std::string(
"shortcutData").append(
82 color =
"shortcutColor";
83 data =
"shortcutData";
107 name = std::string(
"shortcut").append(
109 color = std::string(
"shortcutColor").append(
111 data = std::string(
"shortcutData").append(
117 color =
"shortcutColor";
118 data =
"shortcutData";
127 const std::string itemData =
mItemData[i];
157 const int itemId =
mItems[index];
163 const Item *
const item = inv->
findItem(itemId, itemColor);
175 toInt(itemColor,
int),
187 const int itemId =
mItems[index];
191 if ((item !=
nullptr) && (item->
getQuantity() != 0))
207 const int itemId =
mItems[index];
211 if ((item !=
nullptr) && (item->
getQuantity() != 0))
269 const int tmpItem =
mItems[index1];
276 const std::string tmpData =
mItemData[index1];
#define fromBool(val, name)
std::string getValue(const std::string &key, const std::string &deflt) const
void deleteKey(const std::string &key)
bool getBoolValue(const std::string &key) const
void setValue(const std::string &key, const std::string &value)
Item * findItem(const int itemId, const ItemColor color) const
size_t getFreeIndex() const
void setItemFast(const size_t index, const int item, const ItemColor color)
void setItemSelected(const int itemId)
ItemShortcut(const size_t number)
int mItems[SHORTCUT_ITEMS]
void equipItem(const size_t index) const
ItemColor mItemColors[SHORTCUT_ITEMS]
ItemColor mItemColorSelected
void swap(const size_t index1, const size_t index2)
void setItem(const size_t index)
void useItem(const size_t index) const
std::string mItemData[SHORTCUT_ITEMS]
void unequipItem(const size_t index) const
Equipm isEquipment() const
Equipped isEquipped() const
ItemColor getColor() const
void log1(const char *const log_text)
void useItem(const int itemId, const AutoTarget autoTarget, const int level, const std::string &data) const
void useItem(const int itemId) const
Configuration serverConfig
const size_t SHORTCUT_AUTO_TAB
const unsigned int SHORTCUT_ITEMS
const unsigned int SHORTCUT_TABS
const bool Equipped_false
#define fromInt(val, name)
const ItemColor ItemColor_one
const ItemColor ItemColor_zero
ItemShortcut * itemShortcut[SHORTCUT_TABS]
std::string toString(T const &value)
converts any type to a string
void useEquipItem(const Item *const item, const int16_t useType, const Sfx sfx)
Inventory * getInventory()
void equipItem(const Item *const item, const Sfx sfx)
void unequipItem(const Item *const item, const Sfx sfx)
SkillDialog * skillDialog
SpellManager * spellManager