Core: Cleaning up hungarian notation - Phase5: pWho -> who

This commit is contained in:
click
2011-07-02 23:53:38 +02:00
parent f997363c08
commit f676585cac
62 changed files with 326 additions and 326 deletions
@@ -94,12 +94,12 @@ public:
m_pInstance->SetData(TYPE_HELLMAW, FAIL);
}
void MoveInLineOfSight(Unit* pWho)
void MoveInLineOfSight(Unit* who)
{
if (me->HasAura(SPELL_BANISH))
return;
npc_escortAI::MoveInLineOfSight(pWho);
npc_escortAI::MoveInLineOfSight(who);
}
void WaypointReached(uint32 /*i*/)
@@ -265,11 +265,11 @@ public:
void EnterCombat(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* pWho)
void MoveInLineOfSight(Unit* who)
{
if (!Intro && pWho->GetTypeId() == TYPEID_PLAYER && pWho->isTargetableForAttack() && me->IsHostileTo(pWho) && pWho->isInAccessiblePlaceFor(me))
if (!Intro && who->GetTypeId() == TYPEID_PLAYER && who->isTargetableForAttack() && me->IsHostileTo(who) && who->isInAccessiblePlaceFor(me))
{
if (me->IsWithinDistInMap(pWho, VISIBLE_RANGE) && me->IsWithinLOSInMap(pWho))
if (me->IsWithinDistInMap(who, VISIBLE_RANGE) && me->IsWithinLOSInMap(who))
{
if (pInstance)
pInstance->SetData(DATA_TERONGOREFIENDEVENT, IN_PROGRESS);
@@ -278,12 +278,12 @@ public:
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
DoScriptText(SAY_INTRO, me);
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_TALK);
AggroTargetGUID = pWho->GetGUID();
AggroTargetGUID = who->GetGUID();
Intro = true;
}
}
if (Done)
ScriptedAI::MoveInLineOfSight(pWho);
ScriptedAI::MoveInLineOfSight(who);
}
void KilledUnit(Unit* /*victim*/)
@@ -339,18 +339,18 @@ public:
pInstance->SetData(DATA_MAULGAREVENT, NOT_STARTED);
}
void AttackStart(Unit* pWho)
void AttackStart(Unit* who)
{
if (!pWho)
if (!who)
return;
if (me->Attack(pWho, true))
if (me->Attack(who, true))
{
me->AddThreat(pWho, 0.0f);
me->SetInCombatWith(pWho);
pWho->SetInCombatWith(me);
me->AddThreat(who, 0.0f);
me->SetInCombatWith(who);
who->SetInCombatWith(me);
me->GetMotionMaster()->MoveChase(pWho, 30.0f);
me->GetMotionMaster()->MoveChase(who, 30.0f);
}
}
@@ -111,14 +111,14 @@ class npc_millhouse_manastorm : public CreatureScript
}
}
void AttackStart(Unit* pWho)
void AttackStart(Unit* who)
{
if (me->Attack(pWho, true))
if (me->Attack(who, true))
{
me->AddThreat(pWho, 0.0f);
me->SetInCombatWith(pWho);
pWho->SetInCombatWith(me);
me->GetMotionMaster()->MoveChase(pWho, 25.0f);
me->AddThreat(who, 0.0f);
me->SetInCombatWith(who);
who->SetInCombatWith(me);
me->GetMotionMaster()->MoveChase(who, 25.0f);
}
}
@@ -173,12 +173,12 @@ public:
DoCast(me, SPELL_ANCESTRAL_WOLF_BUFF, true);
}
void MoveInLineOfSight(Unit* pWho)
void MoveInLineOfSight(Unit* who)
{
if (!pRyga && pWho->GetTypeId() == TYPEID_UNIT && pWho->GetEntry() == NPC_RYGA && me->IsWithinDistInMap(pWho, 15.0f))
pRyga = pWho;
if (!pRyga && who->GetTypeId() == TYPEID_UNIT && who->GetEntry() == NPC_RYGA && me->IsWithinDistInMap(who, 15.0f))
pRyga = who;
npc_escortAI::MoveInLineOfSight(pWho);
npc_escortAI::MoveInLineOfSight(who);
}
void WaypointReached(uint32 uiPointId)
+1 -1
View File
@@ -645,7 +645,7 @@ public:
m_uiFrostShockTimer = 6000;
}
void EnterCombat(Unit* /*pWho*/)
void EnterCombat(Unit* /*who*/)
{
DoCast(me, SPELL_EARTHBIND_TOTEM, false);
}
@@ -1022,18 +1022,18 @@ public:
DoSummon(NPC_COILSKAR_ASSASSIN, me, 15.0f, 5000, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT);
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* who)
{
//don't always use
if (rand()%5)
return;
//only aggro text if not player
if (pWho->GetTypeId() != TYPEID_PLAYER)
if (who->GetTypeId() != TYPEID_PLAYER)
{
//appears to be random
if (urand(0, 1))
DoScriptText(RAND(SAY_WIL_AGGRO1, SAY_WIL_AGGRO2), pWho);
DoScriptText(RAND(SAY_WIL_AGGRO1, SAY_WIL_AGGRO2), who);
}
}
@@ -360,19 +360,19 @@ public:
}
}
void MoveInLineOfSight(Unit* pWho)
void MoveInLineOfSight(Unit* who)
{
if (HasEscortState(STATE_ESCORT_ESCORTING))
return;
if (pWho->GetTypeId() == TYPEID_PLAYER)
if (who->GetTypeId() == TYPEID_PLAYER)
{
if (CAST_PLR(pWho)->GetQuestStatus(10211) == QUEST_STATUS_INCOMPLETE)
if (CAST_PLR(who)->GetQuestStatus(10211) == QUEST_STATUS_INCOMPLETE)
{
float Radius = 10.0;
if (me->IsWithinDistInMap(pWho, Radius))
if (me->IsWithinDistInMap(who, Radius))
{
Start(false, false, pWho->GetGUID());
Start(false, false, who->GetGUID());
}
}
}