From fbcc334baf71ca8735adb66c837f6bb610cba758 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 19 Mar 2011 12:30:19 +0100 Subject: 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 --- src/game-server/monstermanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game-server/monstermanager.cpp') diff --git a/src/game-server/monstermanager.cpp b/src/game-server/monstermanager.cpp index a719e1a8..a98126e0 100644 --- a/src/game-server/monstermanager.cpp +++ b/src/game-server/monstermanager.cpp @@ -164,10 +164,10 @@ void MonsterManager::reload() } bool attributesComplete = true; - 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) { if (!monster->mAttributes.count(it->first)) -- cgit v1.2.3-60-g2f50