Core: Cleaning up hungarian notation - Phase2: pPlayer -> player

This commit is contained in:
click
2011-07-02 22:52:42 +02:00
parent f91ee24184
commit 169f5da8c3
134 changed files with 4039 additions and 4039 deletions
@@ -83,9 +83,9 @@ public:
void EnterCombat(Unit* /*pWho*/)
{
Player* pPlayer = GetPlayerForEscort();
Player* player = GetPlayerForEscort();
if (HasEscortState(STATE_ESCORT_ESCORTING) && !m_bFriendSummoned && pPlayer)
if (HasEscortState(STATE_ESCORT_ESCORTING) && !m_bFriendSummoned && player)
{
for (uint8 i = 0; i < 3; ++i)
DoCast(me, SPELL_CALL_FRIENDS, true);
@@ -96,8 +96,8 @@ public:
void JustSummoned(Creature* pSummoned)
{
if (Player* pPlayer = GetPlayerForEscort())
pSummoned->AI()->AttackStart(pPlayer);
if (Player* player = GetPlayerForEscort())
pSummoned->AI()->AttackStart(player);
}
void AttackedBy(Unit* pAttacker)
@@ -115,10 +115,10 @@ public:
{
if (HealthBelowPct(20))
{
if (Player* pPlayer = GetPlayerForEscort())
if (Player* player = GetPlayerForEscort())
{
if (pPlayer->GetTypeId() == TYPEID_PLAYER)
CAST_PLR(pPlayer)->GroupEventHappens(QUEST_MISSING_DIPLO_PT11, me);
if (player->GetTypeId() == TYPEID_PLAYER)
CAST_PLR(player)->GroupEventHappens(QUEST_MISSING_DIPLO_PT11, me);
uiDamage = 0;
@@ -144,7 +144,7 @@ class npc_mikhail : public CreatureScript
public:
npc_mikhail() : CreatureScript("npc_mikhail") { }
bool OnQuestAccept(Player* pPlayer, Creature* creature, const Quest* pQuest)
bool OnQuestAccept(Player* player, Creature* creature, const Quest* pQuest)
{
if (pQuest->GetQuestId() == QUEST_MISSING_DIPLO_PT11)
{
@@ -157,7 +157,7 @@ public:
pSlim->CastSpell(pSlim, SPELL_STEALTH, true);
if (npc_tapoke_slim_jahn::npc_tapoke_slim_jahnAI* pEscortAI = CAST_AI(npc_tapoke_slim_jahn::npc_tapoke_slim_jahnAI, pSlim->AI()))
pEscortAI->Start(false, false, pPlayer->GetGUID(), pQuest);
pEscortAI->Start(false, false, player->GetGUID(), pQuest);
}
return false;
}