diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-08-06 23:35:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-08-06 23:35:58 +0300 |
commit | 5a6b02b6aba646816a7d27a85dd6724de554a157 (patch) | |
tree | 77f5d1c6b94f8a549b7be20c1188091a4b3cd0f2 /src/itemsoundmanager.h | |
parent | 3b5390eee9c3e031867d3acfce574f1993d46b76 (diff) | |
download | manaplus-5a6b02b6aba646816a7d27a85dd6724de554a157.tar.gz manaplus-5a6b02b6aba646816a7d27a85dd6724de554a157.tar.bz2 manaplus-5a6b02b6aba646816a7d27a85dd6724de554a157.tar.xz manaplus-5a6b02b6aba646816a7d27a85dd6724de554a157.zip |
Play item usage sound to every player around.
Diffstat (limited to 'src/itemsoundmanager.h')
-rw-r--r-- | src/itemsoundmanager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/itemsoundmanager.h b/src/itemsoundmanager.h index bdd77513f..daf66c732 100644 --- a/src/itemsoundmanager.h +++ b/src/itemsoundmanager.h @@ -23,8 +23,11 @@ #include "enums/resources/item/itemsoundevent.h" +#include <string> + #include "localconsts.h" +class Being; class FloorItem; class Item; class ItemInfo; @@ -45,6 +48,14 @@ class ItemSoundManager final static void playSfx(const ItemInfo &info, const ItemSoundEvent::Type sound); + + static void playSfx(const Being *const being, + const int itemId, + const ItemSoundEvent::Type sound); + + static std::string getSoundEffect(const Being *const being, + const ItemInfo &info, + const ItemSoundEvent::Type sound); }; #endif // ITEMSOUNDMANAGER_H |