Core/Unit: rename several getters to follow codestyle

uint8 GetLevel()
        uint8 GetLevelForTarget(WorldObject const* /*target*/)
        void SetLevel(uint8 lvl)
        uint8 GetRace()
        uint32 GetRaceMask()
        uint8 GetClass()
        uint32 GetClassMask()
        uint8 GetGender()

(cherry picked from commit 5c09ff51f7)
This commit is contained in:
ccrs
2019-07-01 21:36:32 +02:00
committed by Shauren
parent b8d675eba7
commit 4e6c59dca7
99 changed files with 538 additions and 538 deletions
+5 -5
View File
@@ -868,7 +868,7 @@ public:
return false;
}
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(target->getRace(), target->getClass());
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(target->GetRace(), target->GetClass());
if (!info)
return false;
@@ -879,14 +879,14 @@ public:
if (!strncmp(gender_str, "male", gender_len)) // MALE
{
if (target->getGender() == GENDER_MALE)
if (target->GetGender() == GENDER_MALE)
return true;
gender = GENDER_MALE;
}
else if (!strncmp(gender_str, "female", gender_len)) // FEMALE
{
if (target->getGender() == GENDER_FEMALE)
if (target->GetGender() == GENDER_FEMALE)
return true;
gender = GENDER_FEMALE;
@@ -911,8 +911,8 @@ public:
// Generate random customizations
std::vector<UF::ChrCustomizationChoice> customizations;
Classes playerClass = Classes(target->getClass());
std::vector<ChrCustomizationOptionEntry const*> const* options = sDB2Manager.GetCustomiztionOptions(target->getRace(), gender);
Classes playerClass = Classes(target->GetClass());
std::vector<ChrCustomizationOptionEntry const*> const* options = sDB2Manager.GetCustomiztionOptions(target->GetRace(), gender);
WorldSession const* worldSession = target->GetSession();
for (ChrCustomizationOptionEntry const* option : *options)
{