144 void setSprite(
const std::string &animationFile,
Gender gender,
int race);
153 std::map<EquipmentSoundEvent, std::vector<std::string>>
mSounds;
Item information database generic definition.
Defines a class for storing generic item infos.
int attackRange
Attack range, will be equal to ATTACK_RANGE_NOT_SET if no weapon.
std::string description
Short description.
std::map< EquipmentSoundEvent, std::vector< std::string > > mSounds
Stores the names of sounds to be played at certain event.
const std::string & getSprite(Gender gender, int race) const
std::string attackAction
Attack type, in case of weapon.
std::string missileParticleFile
Effects to be shown when weapon attacks - see also effects.xml.
ItemInfo & operator=(const ItemInfo &)=delete
std::vector< Replacement > replacements
SpriteDisplay display
Display info (like icon)
int mView
Item ID of how this item looks.
void setSprite(const std::string &animationFile, Gender gender, int race)
const std::string & getSound(EquipmentSoundEvent event) const
int weight
Weight in grams.
std::vector< std::string > effect
Description of effects.
std::map< int, std::string > mAnimationFiles
Maps gender to sprite filenames.
bool equippable
Whether this item can be equipped.
ItemInfo(const ItemInfo &)=delete
void addSound(EquipmentSoundEvent event, const std::string &filename)
bool activatable
Whether this item can be activated.
Item information database TmwAthena specific class.
Item information database TmwAthena specific class.
ItemType
Enumeration of available Item types.
@ ITEM_EQUIPMENT_NECKLACE
@ ITEM_EQUIPMENT_ONE_HAND_WEAPON
@ ITEM_EQUIPMENT_TWO_HANDS_WEAPON
Warning: buffers and other variables are shared, so there can be only one connection active at a time...
std::vector< Item > items