[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
This commit is contained in:
@@ -142,7 +142,7 @@ void HostileRefManager::deleteReferencesForFaction(uint32 faction)
|
||||
//=================================================
|
||||
// delete one reference, defined by Unit
|
||||
|
||||
void HostileRefManager::deleteReference(Unit *creature)
|
||||
void HostileRefManager::deleteReference(Unit* creature)
|
||||
{
|
||||
HostileReference* ref = getFirst();
|
||||
while (ref)
|
||||
@@ -161,7 +161,7 @@ void HostileRefManager::deleteReference(Unit *creature)
|
||||
//=================================================
|
||||
// set state for one reference, defined by Unit
|
||||
|
||||
void HostileRefManager::setOnlineOfflineState(Unit *creature, bool isOnline)
|
||||
void HostileRefManager::setOnlineOfflineState(Unit* creature, bool isOnline)
|
||||
{
|
||||
HostileReference* ref = getFirst();
|
||||
while (ref)
|
||||
|
||||
@@ -283,7 +283,7 @@ HostileReference* ThreatContainer::addThreat(Unit* victim, float threat)
|
||||
|
||||
//============================================================
|
||||
|
||||
void ThreatContainer::modifyThreatPercent(Unit *victim, int32 percent)
|
||||
void ThreatContainer::modifyThreatPercent(Unit* victim, int32 percent)
|
||||
{
|
||||
if (HostileReference* ref = getReferenceByTarget(victim))
|
||||
ref->addThreatPercent(percent);
|
||||
@@ -394,7 +394,7 @@ void ThreatManager::clearReferences()
|
||||
|
||||
//============================================================
|
||||
|
||||
void ThreatManager::addThreat(Unit* victim, float threat, SpellSchoolMask schoolMask, SpellInfo const *threatSpell)
|
||||
void ThreatManager::addThreat(Unit* victim, float threat, SpellSchoolMask schoolMask, SpellInfo const* threatSpell)
|
||||
{
|
||||
if (!ThreatCalcHelper::isValidProcess(victim, getOwner(), threatSpell))
|
||||
return;
|
||||
@@ -460,7 +460,7 @@ Unit* ThreatManager::getHostilTarget()
|
||||
|
||||
//============================================================
|
||||
|
||||
float ThreatManager::getThreat(Unit *victim, bool alsoSearchOfflineList)
|
||||
float ThreatManager::getThreat(Unit* victim, bool alsoSearchOfflineList)
|
||||
{
|
||||
float threat = 0.0f;
|
||||
HostileReference* ref = iThreatContainer.getReferenceByTarget(victim);
|
||||
@@ -485,7 +485,7 @@ void ThreatManager::tauntApply(Unit* taunter)
|
||||
|
||||
//============================================================
|
||||
|
||||
void ThreatManager::tauntFadeOut(Unit *taunter)
|
||||
void ThreatManager::tauntFadeOut(Unit* taunter)
|
||||
{
|
||||
HostileReference* ref = iThreatContainer.getReferenceByTarget(taunter);
|
||||
if (ref)
|
||||
|
||||
@@ -160,7 +160,7 @@ class ThreatContainer
|
||||
|
||||
HostileReference* addThreat(Unit* victim, float threat);
|
||||
|
||||
void modifyThreatPercent(Unit *victim, int32 percent);
|
||||
void modifyThreatPercent(Unit* victim, int32 percent);
|
||||
|
||||
HostileReference* selectNextVictim(Creature* attacker, HostileReference* currentVictim);
|
||||
|
||||
@@ -184,7 +184,7 @@ class ThreatManager
|
||||
public:
|
||||
friend class HostileReference;
|
||||
|
||||
explicit ThreatManager(Unit *owner);
|
||||
explicit ThreatManager(Unit* owner);
|
||||
|
||||
~ThreatManager() { clearReferences(); }
|
||||
|
||||
@@ -194,9 +194,9 @@ class ThreatManager
|
||||
|
||||
void doAddThreat(Unit* victim, float threat);
|
||||
|
||||
void modifyThreatPercent(Unit *victim, int32 percent);
|
||||
void modifyThreatPercent(Unit* victim, int32 percent);
|
||||
|
||||
float getThreat(Unit *victim, bool alsoSearchOfflineList = false);
|
||||
float getThreat(Unit* victim, bool alsoSearchOfflineList = false);
|
||||
|
||||
bool isThreatListEmpty() { return iThreatContainer.empty(); }
|
||||
|
||||
@@ -211,7 +211,7 @@ class ThreatManager
|
||||
Unit* getHostilTarget();
|
||||
|
||||
void tauntApply(Unit* taunter);
|
||||
void tauntFadeOut(Unit *taunter);
|
||||
void tauntFadeOut(Unit* taunter);
|
||||
|
||||
void setCurrentVictim(HostileReference* hostileRef);
|
||||
|
||||
@@ -246,7 +246,7 @@ class ThreatManager
|
||||
ThreatContainer& getOnlineContainer() { return iThreatContainer; }
|
||||
ThreatContainer& getOfflineContainer() { return iThreatOfflineContainer; }
|
||||
private:
|
||||
void _addThreat(Unit *victim, float threat);
|
||||
void _addThreat(Unit* victim, float threat);
|
||||
|
||||
HostileReference* iCurrentVictim;
|
||||
Unit* iOwner;
|
||||
|
||||
Reference in New Issue
Block a user