summaryrefslogtreecommitdiff
path: root/src/being/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-19 01:11:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-19 01:11:52 +0300
commit0d6ca48b79a596bec11fc7351fadbf3b1fc1f67b (patch)
tree4d03ab1e6b655bccafbad06e5cc3386a4f6480d7 /src/being/playerinfo.cpp
parent29a93440367af32463f285ae5f0bd2aa23aadc92 (diff)
downloadmanaverse-0d6ca48b79a596bec11fc7351fadbf3b1fc1f67b.tar.gz
manaverse-0d6ca48b79a596bec11fc7351fadbf3b1fc1f67b.tar.bz2
manaverse-0d6ca48b79a596bec11fc7351fadbf3b1fc1f67b.tar.xz
manaverse-0d6ca48b79a596bec11fc7351fadbf3b1fc1f67b.zip
Move itemsoundevent into separate file.
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r--src/being/playerinfo.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index 4978bd494..5632c8d38 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -232,21 +232,21 @@ void setEquipmentBackend(Equipment::Backend *const backend)
void equipItem(const Item *const item, const bool sfx)
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_EQUIP);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::EQUIP);
Net::getInventoryHandler()->equipItem(item);
}
void unequipItem(const Item *const item, const bool sfx)
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_UNEQUIP);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::UNEQUIP);
Net::getInventoryHandler()->unequipItem(item);
}
void useItem(const Item *const item, const bool sfx)
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_USE);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::USE);
Net::getInventoryHandler()->useItem(item);
}
@@ -259,13 +259,13 @@ void useEquipItem(const Item *const item, const bool sfx)
if (item->isEquipped())
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_UNEQUIP);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::UNEQUIP);
Net::getInventoryHandler()->unequipItem(item);
}
else
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_EQUIP);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::EQUIP);
Net::getInventoryHandler()->equipItem(item);
}
}
@@ -275,7 +275,7 @@ void useEquipItem(const Item *const item, const bool sfx)
{
Net::getInventoryHandler()->useItem(item);
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_USE);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::USE);
}
}
}
@@ -290,13 +290,13 @@ void useEquipItem2(const Item *const item, const bool sfx)
if (item->isEquipped())
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_UNEQUIP);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::UNEQUIP);
Net::getInventoryHandler()->unequipItem(item);
}
else
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_EQUIP);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::EQUIP);
Net::getInventoryHandler()->equipItem(item);
}
}
@@ -305,7 +305,7 @@ void useEquipItem2(const Item *const item, const bool sfx)
if (mProtectedItems.find(item->getId()) == mProtectedItems.end())
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_USE);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::USE);
Net::getInventoryHandler()->useItem(item);
}
}
@@ -317,7 +317,7 @@ void dropItem(const Item *const item, const int amount, const bool sfx)
if (item && mProtectedItems.find(item->getId()) == mProtectedItems.end())
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_DROP);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::DROP);
Net::getInventoryHandler()->dropItem(item, amount);
}
}
@@ -325,7 +325,7 @@ void dropItem(const Item *const item, const int amount, const bool sfx)
void pickUpItem(const FloorItem *const item, const bool sfx)
{
if (sfx)
- ItemSoundManager::playSfx(item, SOUND_EVENT_PICKUP);
+ ItemSoundManager::playSfx(item, ItemSoundEvent::PICKUP);
Net::getPlayerHandler()->pickUp(item);
}