aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms
diff options
context:
space:
mode:
authorclick <click@gonnamakeyou.com>2011-07-03 00:28:03 +0200
committerclick <click@gonnamakeyou.com>2011-07-03 00:28:03 +0200
commit1aff85f541240714b80177bc8c2ee68c1814ad39 (patch)
tree9d8ddc159b1ce803089309da0b427303b724aa7a /src/server/scripts/EasternKingdoms
parent354e5e2bbcd6719a63686601f79a78001d90cb35 (diff)
Core: Cleaning up hungarian notation - Phase8: pSummon -> summon (also did related hits)
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
-rw-r--r--src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp18
-rw-r--r--src/server/scripts/EasternKingdoms/Karazhan/boss_terestian_illhoof.cpp8
-rw-r--r--src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp4
-rw-r--r--src/server/scripts/EasternKingdoms/MoltenCore/boss_ragnaros.cpp8
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp12
-rw-r--r--src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp12
-rw-r--r--src/server/scripts/EasternKingdoms/ZulGurub/boss_arlokk.cpp4
-rw-r--r--src/server/scripts/EasternKingdoms/arathi_highlands.cpp4
-rw-r--r--src/server/scripts/EasternKingdoms/eversong_woods.cpp8
-rw-r--r--src/server/scripts/EasternKingdoms/hinterlands.cpp10
-rw-r--r--src/server/scripts/EasternKingdoms/silverpine_forest.cpp16
-rw-r--r--src/server/scripts/EasternKingdoms/stormwind_city.cpp20
-rw-r--r--src/server/scripts/EasternKingdoms/western_plaguelands.cpp6
-rw-r--r--src/server/scripts/EasternKingdoms/westfall.cpp4
-rw-r--r--src/server/scripts/EasternKingdoms/wetlands.cpp4
15 files changed, 69 insertions, 69 deletions
diff --git a/src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp b/src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp
index 397a25267e0..ffea5fc8dc5 100644
--- a/src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp
+++ b/src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp
@@ -232,12 +232,12 @@ public:
if (!SummonList.empty())
for (std::list<uint64>::const_iterator itr = SummonList.begin(); itr != SummonList.end(); ++itr)
{
- if (Creature* pSummon = Unit::GetCreature(*me, *itr))
+ if (Creature* summon = Unit::GetCreature(*me, *itr))
{
- if (pSummon->isAlive())
- pSummon->DisappearAndDie();
+ if (summon->isAlive())
+ summon->DisappearAndDie();
else
- pSummon->RemoveCorpse();
+ summon->RemoveCorpse();
}
}
}
@@ -534,10 +534,10 @@ public:
DoMeleeAttackIfReady();
}
- void JustSummoned(Creature* pSummon)
+ void JustSummoned(Creature* summon)
{
- SummonList.push_back(pSummon->GetGUID());
- AggroAllPlayers(pSummon);
+ SummonList.push_back(summon->GetGUID());
+ AggroAllPlayers(summon);
}
};
@@ -565,8 +565,8 @@ public:
if (!me->isSummon())
return;
- if (Unit* pSummon = me->ToTempSummon()->GetSummoner())
- CAST_CRE(pSummon)->AI()->SetData(2, 1);
+ if (Unit* summon = me->ToTempSummon()->GetSummoner())
+ CAST_CRE(summon)->AI()->SetData(2, 1);
}
void UpdateAI(const uint32 /*diff*/)
diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_terestian_illhoof.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_terestian_illhoof.cpp
index 97548d4d7a3..a80ee5575ae 100644
--- a/src/server/scripts/EasternKingdoms/Karazhan/boss_terestian_illhoof.cpp
+++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_terestian_illhoof.cpp
@@ -324,14 +324,14 @@ public:
DoScriptText(SAY_AGGRO, me);
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
- if (pSummoned->GetEntry() == CREATURE_PORTAL)
+ if (summoned->GetEntry() == CREATURE_PORTAL)
{
- PortalGUID[PortalsCount] = pSummoned->GetGUID();
+ PortalGUID[PortalsCount] = summoned->GetGUID();
++PortalsCount;
- if (pSummoned->GetUInt32Value(UNIT_CREATED_BY_SPELL) == SPELL_FIENDISH_PORTAL_1)
+ if (summoned->GetUInt32Value(UNIT_CREATED_BY_SPELL) == SPELL_FIENDISH_PORTAL_1)
{
DoScriptText(RAND(SAY_SUMMON1, SAY_SUMMON2), me);
SummonedPortals = true;
diff --git a/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp b/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp
index fe516d3d1fa..f54883daf56 100644
--- a/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp
+++ b/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp
@@ -1032,9 +1032,9 @@ public:
boss_priestess_lackey_commonAI::Reset();
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
- m_uiPetGUID = pSummoned->GetGUID();
+ m_uiPetGUID = summoned->GetGUID();
}
void UpdateAI(const uint32 diff)
diff --git a/src/server/scripts/EasternKingdoms/MoltenCore/boss_ragnaros.cpp b/src/server/scripts/EasternKingdoms/MoltenCore/boss_ragnaros.cpp
index 80b35eb77ae..592e0054fa4 100644
--- a/src/server/scripts/EasternKingdoms/MoltenCore/boss_ragnaros.cpp
+++ b/src/server/scripts/EasternKingdoms/MoltenCore/boss_ragnaros.cpp
@@ -260,8 +260,8 @@ class boss_ragnaros : public CreatureScript
// summon 8 elementals
for (uint8 i = 0; i < 8; ++i)
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
- if (Creature* pSummoned = me->SummonCreature(12143, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 900000))
- pSummoned->AI()->AttackStart(target);
+ if (Creature* summoned = me->SummonCreature(12143, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 900000))
+ summoned->AI()->AttackStart(target);
_hasSubmergedOnce = true;
_isBanished = true;
@@ -275,8 +275,8 @@ class boss_ragnaros : public CreatureScript
for (uint8 i = 0; i < 8; ++i)
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
- if (Creature* pSummoned = me->SummonCreature(12143, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 900000))
- pSummoned->AI()->AttackStart(target);
+ if (Creature* summoned = me->SummonCreature(12143, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 900000))
+ summoned->AI()->AttackStart(target);
_isBanished = true;
//DoCast(me, SPELL_RAGSUBMERGE);
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp
index c8b3224a0a8..774b301ef58 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp
@@ -253,18 +253,18 @@ public:
}
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
if (Player* player = GetPlayerForEscort())
{
- pSummoned->AI()->AttackStart(player);
+ summoned->AI()->AttackStart(player);
}
- if (pSummoned->GetEntry() == NPC_HIGH_INQUISITOR_VALROTH)
- m_uiValrothGUID = pSummoned->GetGUID();
+ if (summoned->GetEntry() == NPC_HIGH_INQUISITOR_VALROTH)
+ m_uiValrothGUID = summoned->GetGUID();
- pSummoned->AddThreat(me, 0.0f);
- pSummoned->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
+ summoned->AddThreat(me, 0.0f);
+ summoned->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
}
void SummonAcolyte(uint32 uiAmount)
diff --git a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
index deef5178d02..583cd5fc791 100644
--- a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
+++ b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
@@ -239,7 +239,7 @@ public:
return;
Creature* pArchmage = instance->GetCreature(uiArchmageArugalGUID);
- Creature* pSummon = NULL;
+ Creature* summon = NULL;
if (!pArchmage || !pArchmage->isAlive())
return;
@@ -251,11 +251,11 @@ public:
switch(uiPhase)
{
case 1:
- pSummon = pArchmage->SummonCreature(pArchmage->GetEntry(), SpawnLocation[4], TEMPSUMMON_TIMED_DESPAWN, 10000);
- pSummon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
- pSummon->SetReactState(REACT_DEFENSIVE);
- pSummon->CastSpell(pSummon, SPELL_ASHCROMBE_TELEPORT, true);
- DoScriptText(SAY_ARCHMAGE, pSummon);
+ summon = pArchmage->SummonCreature(pArchmage->GetEntry(), SpawnLocation[4], TEMPSUMMON_TIMED_DESPAWN, 10000);
+ summon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
+ summon->SetReactState(REACT_DEFENSIVE);
+ summon->CastSpell(summon, SPELL_ASHCROMBE_TELEPORT, true);
+ DoScriptText(SAY_ARCHMAGE, summon);
uiTimer = 2000;
uiPhase = 2;
break;
diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_arlokk.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_arlokk.cpp
index 41aa22ef010..5345801f801 100644
--- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_arlokk.cpp
+++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_arlokk.cpp
@@ -137,10 +137,10 @@ class boss_arlokk : public CreatureScript
me->SummonCreature(NPC_ZULIAN_PROWLER, -11532.9970f, -1606.4840f, 41.2979f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
if (Unit* pMarkedTarget = Unit::GetUnit(*me, MarkedTargetGUID))
- pSummoned->AI()->AttackStart(pMarkedTarget);
+ summoned->AI()->AttackStart(pMarkedTarget);
++m_uiSummonCount;
}
diff --git a/src/server/scripts/EasternKingdoms/arathi_highlands.cpp b/src/server/scripts/EasternKingdoms/arathi_highlands.cpp
index 4f1f9f82cbe..c5d47b60dfd 100644
--- a/src/server/scripts/EasternKingdoms/arathi_highlands.cpp
+++ b/src/server/scripts/EasternKingdoms/arathi_highlands.cpp
@@ -97,9 +97,9 @@ class npc_professor_phizzlethorpe : public CreatureScript
}
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
- pSummoned->AI()->AttackStart(me);
+ summoned->AI()->AttackStart(me);
}
void EnterCombat(Unit* /*who*/)
diff --git a/src/server/scripts/EasternKingdoms/eversong_woods.cpp b/src/server/scripts/EasternKingdoms/eversong_woods.cpp
index b9d791b9af8..b9c54806c51 100644
--- a/src/server/scripts/EasternKingdoms/eversong_woods.cpp
+++ b/src/server/scripts/EasternKingdoms/eversong_woods.cpp
@@ -456,8 +456,8 @@ public:
{ // no player check, quest can be finished as group, so no complex PlayerGUID/group search code
for (uint8 i = 0; i < 4; ++i)
- if (Creature* pSummoned = DoSpawnCreature(PaladinEntry[i], SpawnPosition[i].x, SpawnPosition[i].y, SpawnPosition[i].z, SpawnPosition[i].o, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 180000))
- paladinGuid[i] = pSummoned->GetGUID();
+ if (Creature* summoned = DoSpawnCreature(PaladinEntry[i], SpawnPosition[i].x, SpawnPosition[i].y, SpawnPosition[i].z, SpawnPosition[i].o, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 180000))
+ paladinGuid[i] = summoned->GetGUID();
timer = OFFSET_NEXT_ATTACK;
questPhase = 2;
@@ -485,8 +485,8 @@ void npc_second_trial_paladin::npc_secondTrialAI::JustDied(Unit* Killer)
{
if (Killer->GetTypeId() == TYPEID_PLAYER)
{
- if (Creature* pSummoner = Unit::GetCreature((*me), summonerGuid))
- CAST_AI(npc_second_trial_controller::master_kelerun_bloodmournAI, pSummoner->AI())->SecondTrialKill();
+ if (Creature* summoner = Unit::GetCreature((*me), summonerGuid))
+ CAST_AI(npc_second_trial_controller::master_kelerun_bloodmournAI, summoner->AI())->SecondTrialKill();
// last kill quest complete for group
if (me->GetEntry() == CHAMPION_SUNSTRIKER)
diff --git a/src/server/scripts/EasternKingdoms/hinterlands.cpp b/src/server/scripts/EasternKingdoms/hinterlands.cpp
index 1296a7a6159..df8b909976d 100644
--- a/src/server/scripts/EasternKingdoms/hinterlands.cpp
+++ b/src/server/scripts/EasternKingdoms/hinterlands.cpp
@@ -141,9 +141,9 @@ public:
DoScriptText(SAY_OOX_AGGRO2, me);
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
- pSummoned->GetMotionMaster()->MovePoint(0, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ());
+ summoned->GetMotionMaster()->MovePoint(0, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ());
}
};
@@ -271,10 +271,10 @@ public:
}
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
- pSummoned->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
- pSummoned->GetMotionMaster()->MovePoint(0, m_afAmbushMoveTo[m_iSpawnId].m_fX, m_afAmbushMoveTo[m_iSpawnId].m_fY, m_afAmbushMoveTo[m_iSpawnId].m_fZ);
+ summoned->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
+ summoned->GetMotionMaster()->MovePoint(0, m_afAmbushMoveTo[m_iSpawnId].m_fX, m_afAmbushMoveTo[m_iSpawnId].m_fY, m_afAmbushMoveTo[m_iSpawnId].m_fZ);
}
void WaypointReached(uint32 uiPointId)
diff --git a/src/server/scripts/EasternKingdoms/silverpine_forest.cpp b/src/server/scripts/EasternKingdoms/silverpine_forest.cpp
index 5a458f3cffc..cfcef442c93 100644
--- a/src/server/scripts/EasternKingdoms/silverpine_forest.cpp
+++ b/src/server/scripts/EasternKingdoms/silverpine_forest.cpp
@@ -273,21 +273,21 @@ public:
void EnterCombat(Unit* /*who*/){}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
- Summons.Summon(pSummoned);
+ Summons.Summon(summoned);
++KillCount;
}
- void SummonedCreatureDespawn(Creature* pSummoned)
+ void SummonedCreatureDespawn(Creature* summoned)
{
- Summons.Despawn(pSummoned);
+ Summons.Despawn(summoned);
--KillCount;
}
void SummonCreatureWithRandomTarget(uint32 creatureId, int position)
{
- if (Creature* pSummoned = me->SummonCreature(creatureId, PyrewoodSpawnPoints[position][0], PyrewoodSpawnPoints[position][1], PyrewoodSpawnPoints[position][2], PyrewoodSpawnPoints[position][3], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 15000))
+ if (Creature* summoned = me->SummonCreature(creatureId, PyrewoodSpawnPoints[position][0], PyrewoodSpawnPoints[position][1], PyrewoodSpawnPoints[position][2], PyrewoodSpawnPoints[position][3], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 15000))
{
Player* player = NULL;
Unit* target = NULL;
@@ -301,9 +301,9 @@ public:
if (target)
{
- pSummoned->setFaction(168);
- pSummoned->AddThreat(target, 32.0f);
- pSummoned->AI()->AttackStart(target);
+ summoned->setFaction(168);
+ summoned->AddThreat(target, 32.0f);
+ summoned->AI()->AttackStart(target);
}
}
}
diff --git a/src/server/scripts/EasternKingdoms/stormwind_city.cpp b/src/server/scripts/EasternKingdoms/stormwind_city.cpp
index d0e93d0be27..5095d702f2e 100644
--- a/src/server/scripts/EasternKingdoms/stormwind_city.cpp
+++ b/src/server/scripts/EasternKingdoms/stormwind_city.cpp
@@ -478,10 +478,10 @@ public:
if (me->isSummon())
{
- if (Unit* pSummoner = me->ToTempSummon()->GetSummoner())
+ if (Unit* summoner = me->ToTempSummon()->GetSummoner())
{
- if (pSummoner && pSummoner->GetTypeId() == TYPEID_UNIT && pSummoner->isAlive() && !pSummoner->isInCombat())
- pSummoner->ToCreature()->AI()->AttackStart(who);
+ if (summoner && summoner->GetTypeId() == TYPEID_UNIT && summoner->isAlive() && !summoner->isInCombat())
+ summoner->ToCreature()->AI()->AttackStart(who);
}
}
}
@@ -492,10 +492,10 @@ public:
if (me->isSummon())
{
- if (Unit* pSummoner = me->ToTempSummon()->GetSummoner())
+ if (Unit* summoner = me->ToTempSummon()->GetSummoner())
{
- if (pSummoner && pSummoner->GetTypeId() == TYPEID_UNIT && pSummoner->isAlive())
- pSummoner->ToCreature()->DisappearAndDie();
+ if (summoner && summoner->GetTypeId() == TYPEID_UNIT && summoner->isAlive())
+ summoner->ToCreature()->DisappearAndDie();
}
}
}
@@ -507,17 +507,17 @@ public:
if (me->isSummon())
{
- Unit* pSummoner = me->ToTempSummon()->GetSummoner();
- if (pSummoner && pSummoner->GetTypeId() == TYPEID_UNIT && pSummoner->IsAIEnabled)
+ Unit* summoner = me->ToTempSummon()->GetSummoner();
+ if (summoner && summoner->GetTypeId() == TYPEID_UNIT && summoner->IsAIEnabled)
{
npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI *ai =
- CAST_AI(npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI, pSummoner->GetAI());
+ CAST_AI(npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI, summoner->GetAI());
if (ai)
{
ai->uiTimer = 2000;
ai->uiPhase = 5;
}
- //me->ChangeOrient(0.0f, pSummoner);
+ //me->ChangeOrient(0.0f, summoner);
}
}
}
diff --git a/src/server/scripts/EasternKingdoms/western_plaguelands.cpp b/src/server/scripts/EasternKingdoms/western_plaguelands.cpp
index 49d4fb8f82d..72c5d8ace5b 100644
--- a/src/server/scripts/EasternKingdoms/western_plaguelands.cpp
+++ b/src/server/scripts/EasternKingdoms/western_plaguelands.cpp
@@ -324,10 +324,10 @@ public:
m_uiChatTimer = 7000;
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
- if (pSummoned->GetEntry() == NPC_GHOUL)
- pSummoned->AI()->AttackStart(me);
+ if (summoned->GetEntry() == NPC_GHOUL)
+ summoned->AI()->AttackStart(me);
}
void WaypointReached(uint32 i)
diff --git a/src/server/scripts/EasternKingdoms/westfall.cpp b/src/server/scripts/EasternKingdoms/westfall.cpp
index a8c98e4d632..da1f666fbab 100644
--- a/src/server/scripts/EasternKingdoms/westfall.cpp
+++ b/src/server/scripts/EasternKingdoms/westfall.cpp
@@ -164,9 +164,9 @@ public:
}
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
- pSummoned->AI()->AttackStart(me);
+ summoned->AI()->AttackStart(me);
}
void Update(const uint32 diff)
diff --git a/src/server/scripts/EasternKingdoms/wetlands.cpp b/src/server/scripts/EasternKingdoms/wetlands.cpp
index e4ba171f813..89effa01b98 100644
--- a/src/server/scripts/EasternKingdoms/wetlands.cpp
+++ b/src/server/scripts/EasternKingdoms/wetlands.cpp
@@ -94,10 +94,10 @@ public:
}
}
- void JustSummoned(Creature* pSummoned)
+ void JustSummoned(Creature* summoned)
{
if (Player* player = GetPlayerForEscort())
- pSummoned->AI()->AttackStart(player);
+ summoned->AI()->AttackStart(player);
}
void AttackedBy(Unit* pAttacker)