122 const IntMap::const_iterator it =
mData.
mSkills.find(
id);
137 const StatMap::const_iterator it =
mData.
mStats.find(
id);
139 return it->second.base;
153 const StatMap::const_iterator it =
mData.
mStats.find(
id);
155 return it->second.mod;
169 const StatMap::const_iterator it =
mData.
mStats.find(
id);
171 return it->second.base + it->second.mod;
177 const StatMap::const_iterator it =
mData.
mStats.find(
id);
183 b = it->second.expNeed;
190 return std::pair<int, int>(a, b);
263 const int16_t useType,
314 const int16_t useType,
356 if (item !=
nullptr &&
401 #define updateAttackStat(atk, delay, speed) \
402 attackDelay = getStatBase(delay); \
403 if (attackDelay != 0) \
406 getStatBase(atk) * 1000 / attackDelay, \
409 getStatMod(atk) * 1000 / attackDelay, \
414 setStatBase(speed, 0, \
416 setStatMod(speed, 0, \
496 str.append(
",").append(
toString(*it));
528 if (being ==
nullptr ||
562 if (being !=
nullptr)
566 if (being ==
nullptr ||
594 if (being ==
nullptr ||
Attributes ::T AttributesT
const BeingId BeingId_zero
static void distributeEvent(const AttributesT id, const int64_t oldVal, const int64_t newVal)
void setOwner(Being *const owner)
void setLevel(const int n)
void setName(const std::string &name)
void setAttackRange(const int range)
std::string getStringValue(const std::string &key) const
void setValue(const std::string &key, const std::string &value)
void setBackend(Backend *const backend)
const Item * getEquipment(const int index) const
static bool isStorageActive()
static void playSfx(const int item, const ItemSoundEvent::Type sound)
Equipm isEquipment() const
Equipped isEquipped() const
ItemTypeT getType() const
virtual void attack(const BeingId targetId, const Keep keep) const =0
virtual void useCard(const Item *const item)=0
virtual void dropItem(const Item *const item, const int amount) const =0
virtual void equipItem(const Item *const item) const =0
virtual void unequipItem(const Item *const item) const =0
virtual Inventory * getStorage() const =0
virtual void useItem(const Item *const item) const =0
virtual void attack(const BeingId targetId, const Keep keep) const =0
virtual void pickUp(const FloorItem *const floorItem) const =0
unsigned int fixedInventorySize
static void distributeEvent(const AttributesT id, const int oldVal1, const int oldVal2)
static void loadDictionaryLang()
Configuration serverConfig
Net::HomunculusHandler * homunculusHandler
Net::InventoryHandler * inventoryHandler
LocalPlayer * localPlayer
Net::MercenaryHandler * mercenaryHandler
bool info(InputEvent &event)
std::string toString(T const &value)
converts any type to a string
void notify(const unsigned int message)
void setServerLanguage(const int lang)
void useEquipItem(const Item *const item, const int16_t useType, const Sfx sfx)
int64_t getAttribute64(const AttributesT id)
void dropItem(const Item *const item, const int amount, const Sfx sfx)
Inventory * getInventory()
void setStatMod(const AttributesT id, const int value, const Notify notify)
MercenaryInfo * mMercenary
int getStatBase(const AttributesT id)
void setPetBeing(Being *const being)
void stateChange(const StateT state)
BeingId getHomunculusId()
void setMercenaryBeing(Being *const being)
Inventory * getStorageInventory()
void useEquipItem2(const Item *const item, const int16_t useType, const Sfx sfx)
void setBackend(const PlayerInfoBackend &backend)
void equipItem(const Item *const item, const Sfx sfx)
void enableVending(const bool b)
Equipment * getEquipment()
void pickUpItem(const FloorItem *const item, const Sfx sfx)
void useItem(const Item *const item, const Sfx sfx)
void setPet(PetInfo *const info)
int32_t getAttribute(const AttributesT id)
static void saveProtectedItems()
void setTrading(const Trading trading)
Inventory * getCartInventory()
std::string getRoomName()
void setElemental(const BeingId id)
void unprotectItem(const int id)
bool isItemProtected(const int id)
HomunculusInfo * getHomunculus()
void setAttribute(const AttributesT id, const int64_t value, const Notify notify)
void setHomunculusBeing(Being *const being)
int getStatEffective(const AttributesT id)
int getSkillLevel(const int id)
Inventory * mCartInventory
void unequipItem(const Item *const item, const Sfx sfx)
void setSkillLevel(const int id, const int value)
void setEquipmentBackend(Equipment::Backend *const backend)
const std::pair< int, int > getStatExperience(const AttributesT id)
void triggerStat(const AttributesT id, const int old1, const int old2)
void setGuildPositionFlags(const GuildPositionFlags::Type pos)
int getStatMod(const AttributesT id)
std::set< int > mProtectedItems
void updateAttackAi(const BeingId targetId, const Keep keep)
void setStatBase(const AttributesT id, const int value, const Notify notify)
void setRoomName(const std::string &name)
MercenaryInfo * getMercenary()
HomunculusInfo * mHomunculus
void setCharId(const int charId)
void setMercenary(MercenaryInfo *const info)
GuildPositionFlags::Type getGuildPositionFlags()
void setHomunculus(HomunculusInfo *const info)
void protectItem(const int id)
GuildPositionFlags::Type mGuildPositionFlags
void triggerAttr(const AttributesT id, const int64_t old)
Net::PlayerHandler * playerHandler
#define updateAttackStat(atk, delay, speed)
void splitToIntSet(std::set< int > &tokens, const std::string &text, const char separator)