summaryrefslogtreecommitdiffstats
path: root/src/game-server/monster.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-19 12:30:19 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-20 15:09:09 +0100
commitfbcc334baf71ca8735adb66c837f6bb610cba758 (patch)
treeefc041388a48a7908e79677540df97c99a9b2eeb /src/game-server/monster.cpp
parent5b3c4a585b211b03fb2999cddd2558e030ed5c0e (diff)
downloadmanaserv-fbcc334baf71ca8735adb66c837f6bb610cba758.tar.gz
manaserv-fbcc334baf71ca8735adb66c837f6bb610cba758.tar.xz
manaserv-fbcc334baf71ca8735adb66c837f6bb610cba758.zip
Renaming stuff to make the code more readable
SCOPE_TYPES -> ScopeType (plural was confusing) ATTR_BEING -> BeingScope ATTR_CHAR -> CharacterScope ATTR_MOD -> MonsterScope ATTR_MAX -> MaxScope AttributeScopes -> AttributeScope (A single scope seems to include multiple lists of attributes. Seems wrong to me to name this type in plural form.) getAttributeInfoForType -> getAttributeScope (just naming it after what it is actually returning) Reviewed-by: Freeyorp
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r--src/game-server/monster.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp
index f77cca0..f2914da 100644
--- a/src/game-server/monster.cpp
+++ b/src/game-server/monster.cpp
@@ -74,10 +74,10 @@ Monster::Monster(MonsterClass *specy):
/*
* Initialise the attribute structures.
*/
- const AttributeScopes &mobAttr = attributeManager->getAttributeInfoForType(
- ATTR_MOB);
+ const AttributeScope &mobAttr = attributeManager->getAttributeScope(
+ MonsterScope);
- for (AttributeScopes::const_iterator it = mobAttr.begin(),
+ for (AttributeScope::const_iterator it = mobAttr.begin(),
it_end = mobAttr.end(); it != it_end; ++it)
{
mAttributes.insert(std::pair< unsigned int, Attribute >