From 67d3b8c193b51bbf892fd965547746511e8ddf87 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Apr 2013 23:06:58 +0300 Subject: add delay to action sounds. delay now unused. --- src/resources/beinginfo.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/resources/beinginfo.h') diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index b5ca37bf7..9bf5417fa 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -26,6 +26,7 @@ #include "actorsprite.h" #include "resources/cursor.h" +#include "resources/soundinfo.h" #include #include @@ -68,7 +69,7 @@ enum SoundEvent SOUND_EVENT_SPAWN }; -typedef std::map SoundEvents; +typedef std::map SoundEvents; /** * Holds information about a certain type of monster. This includes the name @@ -118,10 +119,11 @@ class BeingInfo final ActorSprite::TargetCursorSize getTargetCursorSize() const A_WARN_UNUSED { return mTargetCursorSize; } - void addSound(const SoundEvent event, const std::string &filename); + void addSound(const SoundEvent event, const std::string &filename, + const int delay); - const std::string &getSound(const SoundEvent event) - const A_WARN_UNUSED; + const SoundInfo &getSound(const SoundEvent event) + const A_WARN_UNUSED; void addAttack(const int id, std::string action, const int effectId, const int hitEffectId, const int criticalHitEffectId, -- cgit v1.2.3-60-g2f50