diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 20:59:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 20:59:14 +0300 |
commit | 390e5da0f9ecc4407aa7d4bcba1af5730db56271 (patch) | |
tree | ee0879cba3fec38740f1e51f2d1d35719ec3d8ae /src/being/being.cpp | |
parent | 9f1994182d4225f630a93ae06b01927c4f7a9a37 (diff) | |
download | manaverse-390e5da0f9ecc4407aa7d4bcba1af5730db56271.tar.gz manaverse-390e5da0f9ecc4407aa7d4bcba1af5730db56271.tar.bz2 manaverse-390e5da0f9ecc4407aa7d4bcba1af5730db56271.tar.xz manaverse-390e5da0f9ecc4407aa7d4bcba1af5730db56271.zip |
Convert AttackType enum into strong typed enum.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 1362c904a..947e98fb6 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -587,7 +587,7 @@ void Being::setSpeech(const std::string &text, const std::string &channel, void Being::takeDamage(Being *const attacker, const int amount, - const AttackType::Type type, + const AttackTypeT type, const int attackId, const int level) { @@ -770,7 +770,7 @@ void Being::takeDamage(Being *const attacker, } int Being::getHitEffect(const Being *const attacker, - const AttackType::Type type, + const AttackTypeT type, const int attackId, const int level) const { @@ -850,7 +850,7 @@ int Being::getHitEffect(const Being *const attacker, return hitEffectId; } -int Being::getDefaultEffectId(const AttackType::Type &type) +int Being::getDefaultEffectId(const AttackTypeT &type) { if (type == AttackType::MISS) return paths.getIntValue("missEffectId"); |