diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-04 02:03:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-04 13:13:21 +0300 |
commit | 343809fe458a08bf96fe4f537db2d81d7523632e (patch) | |
tree | 0230a135f3ecaf574a3d67f090e6dcb21f1934f5 /src/resources/beinginfo.h | |
parent | b0238edbc3f125e5d7d9d1506f7c9b78a440a200 (diff) | |
download | mv-343809fe458a08bf96fe4f537db2d81d7523632e.tar.gz mv-343809fe458a08bf96fe4f537db2d81d7523632e.tar.bz2 mv-343809fe458a08bf96fe4f537db2d81d7523632e.tar.xz mv-343809fe458a08bf96fe4f537db2d81d7523632e.zip |
Add new item sound events constants.
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r-- | src/resources/beinginfo.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index 3d00471da..008af8590 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -63,20 +63,6 @@ struct Attack final typedef std::map<int, Attack*> Attacks; -enum SoundEvent -{ - SOUND_EVENT_HIT = 0, - SOUND_EVENT_MISS, - SOUND_EVENT_HURT, - SOUND_EVENT_DIE, - SOUND_EVENT_MOVE, - SOUND_EVENT_SIT, - SOUND_EVENT_SITTOP, - SOUND_EVENT_SPAWN -}; - -typedef std::map<SoundEvent, SoundInfoVect*> SoundEvents; - /** * Holds information about a certain type of monster. This includes the name * of the monster, the sprite to display and the sounds the monster makes. @@ -125,10 +111,10 @@ class BeingInfo final ActorSprite::TargetCursorSize getTargetCursorSize() const A_WARN_UNUSED { return mTargetCursorSize; } - void addSound(const SoundEvent event, const std::string &filename, + void addSound(const ItemSoundEvent event, const std::string &filename, const int delay); - const SoundInfo &getSound(const SoundEvent event) + const SoundInfo &getSound(const ItemSoundEvent event) const A_WARN_UNUSED; void addAttack(const int id, std::string action, std::string skyAttack, @@ -251,7 +237,7 @@ class BeingInfo final std::string mName; ActorSprite::TargetCursorSize mTargetCursorSize; Cursor::Cursor mHoverCursor; - SoundEvents mSounds; + ItemSoundEvents mSounds; Attacks mAttacks; unsigned char mWalkMask; Map::BlockType mBlockType; |