41 static const std::string empty;
52 static const std::string empty;
54 return i ==
mSounds.end() ? empty : i->second[rand() % i->second.size()];
std::string getStringValue(const std::string &key) const
const ItemInfo & get(int id) const
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
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
std::map< int, std::string > mAnimationFiles
Maps gender to sprite filenames.
void addSound(EquipmentSoundEvent event, const std::string &filename)
Configuration paths
XML default paths information reader.
ItemDB * itemDb
Items info database.