Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature
This commit is contained in:
@@ -48,9 +48,9 @@ class boss_broggok : public CreatureScript
|
||||
|
||||
struct boss_broggokAI : public ScriptedAI
|
||||
{
|
||||
boss_broggokAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_broggokAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
pInstance = pCreature->GetInstanceScript();
|
||||
pInstance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* pInstance;
|
||||
|
||||
+3
-3
@@ -78,9 +78,9 @@ class boss_kelidan_the_breaker : public CreatureScript
|
||||
|
||||
struct boss_kelidan_the_breakerAI : public ScriptedAI
|
||||
{
|
||||
boss_kelidan_the_breakerAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_kelidan_the_breakerAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
pInstance = pCreature->GetInstanceScript();
|
||||
pInstance = creature->GetInstanceScript();
|
||||
for (uint8 i=0; i<5; ++i)
|
||||
Channelers[i] = 0;
|
||||
}
|
||||
@@ -298,7 +298,7 @@ class mob_shadowmoon_channeler : public CreatureScript
|
||||
|
||||
struct mob_shadowmoon_channelerAI : public ScriptedAI
|
||||
{
|
||||
mob_shadowmoon_channelerAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
mob_shadowmoon_channelerAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -52,9 +52,9 @@ class boss_the_maker : public CreatureScript
|
||||
|
||||
struct boss_the_makerAI : public ScriptedAI
|
||||
{
|
||||
boss_the_makerAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_the_makerAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
pInstance = pCreature->GetInstanceScript();
|
||||
pInstance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* pInstance;
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ class boss_omor_the_unscarred : public CreatureScript
|
||||
|
||||
struct boss_omor_the_unscarredAI : public ScriptedAI
|
||||
{
|
||||
boss_omor_the_unscarredAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_omor_the_unscarredAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
SetCombatMovement(false);
|
||||
}
|
||||
|
||||
+4
-4
@@ -82,7 +82,7 @@ class boss_nazan : public CreatureScript
|
||||
|
||||
struct boss_nazanAI : public ScriptedAI
|
||||
{
|
||||
boss_nazanAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_nazanAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
VazrudenGUID = 0;
|
||||
flight = true;
|
||||
@@ -210,7 +210,7 @@ class boss_vazruden : public CreatureScript
|
||||
}
|
||||
struct boss_vazrudenAI : public ScriptedAI
|
||||
{
|
||||
boss_vazrudenAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_vazrudenAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -289,7 +289,7 @@ class boss_vazruden_the_herald : public CreatureScript
|
||||
|
||||
struct boss_vazruden_the_heraldAI : public ScriptedAI
|
||||
{
|
||||
boss_vazruden_the_heraldAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_vazruden_the_heraldAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
summoned = false;
|
||||
sentryDown = false;
|
||||
@@ -469,7 +469,7 @@ class mob_hellfire_sentry : public CreatureScript
|
||||
}
|
||||
struct mob_hellfire_sentryAI : public ScriptedAI
|
||||
{
|
||||
mob_hellfire_sentryAI(Creature* pCreature) : ScriptedAI(pCreature) {}
|
||||
mob_hellfire_sentryAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 KidneyShot_Timer;
|
||||
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ class boss_watchkeeper_gargolmar : public CreatureScript
|
||||
|
||||
struct boss_watchkeeper_gargolmarAI : public ScriptedAI
|
||||
{
|
||||
boss_watchkeeper_gargolmarAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_watchkeeper_gargolmarAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ class mob_abyssal : public CreatureScript
|
||||
|
||||
struct mob_abyssalAI : public ScriptedAI
|
||||
{
|
||||
mob_abyssalAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
mob_abyssalAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
trigger = 0;
|
||||
Despawn_Timer = 60000;
|
||||
@@ -215,9 +215,9 @@ class boss_magtheridon : public CreatureScript
|
||||
|
||||
struct boss_magtheridonAI : public ScriptedAI
|
||||
{
|
||||
boss_magtheridonAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_magtheridonAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
pInstance = pCreature->GetInstanceScript();
|
||||
pInstance = creature->GetInstanceScript();
|
||||
me->SetFloatValue(UNIT_FIELD_BOUNDINGRADIUS, 10);
|
||||
me->SetFloatValue(UNIT_FIELD_COMBATREACH, 10);
|
||||
|
||||
@@ -495,9 +495,9 @@ class mob_hellfire_channeler : public CreatureScript
|
||||
|
||||
struct mob_hellfire_channelerAI : public ScriptedAI
|
||||
{
|
||||
mob_hellfire_channelerAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
mob_hellfire_channelerAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
pInstance = pCreature->GetInstanceScript();
|
||||
pInstance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* pInstance;
|
||||
|
||||
@@ -89,9 +89,9 @@ class boss_grand_warlock_nethekurse : public CreatureScript
|
||||
|
||||
struct boss_grand_warlock_nethekurseAI : public ScriptedAI
|
||||
{
|
||||
boss_grand_warlock_nethekurseAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_grand_warlock_nethekurseAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
pInstance = pCreature->GetInstanceScript();
|
||||
pInstance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* pInstance;
|
||||
@@ -318,9 +318,9 @@ class mob_fel_orc_convert : public CreatureScript
|
||||
|
||||
struct mob_fel_orc_convertAI : public ScriptedAI
|
||||
{
|
||||
mob_fel_orc_convertAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
mob_fel_orc_convertAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
pInstance = pCreature->GetInstanceScript();
|
||||
pInstance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* pInstance;
|
||||
@@ -401,7 +401,7 @@ class mob_lesser_shadow_fissure : public CreatureScript
|
||||
|
||||
struct mob_lesser_shadow_fissureAI : public ScriptedAI
|
||||
{
|
||||
mob_lesser_shadow_fissureAI(Creature* pCreature) : ScriptedAI(pCreature) {}
|
||||
mob_lesser_shadow_fissureAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
void Reset() { }
|
||||
void MoveInLineOfSight(Unit* /*who*/) {}
|
||||
@@ -409,9 +409,9 @@ class mob_lesser_shadow_fissure : public CreatureScript
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new mob_lesser_shadow_fissureAI (pCreature);
|
||||
return new mob_lesser_shadow_fissureAI (creature);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+5
-5
@@ -112,7 +112,7 @@ class mob_omrogg_heads : public CreatureScript
|
||||
|
||||
struct mob_omrogg_headsAI : public ScriptedAI
|
||||
{
|
||||
mob_omrogg_headsAI(Creature* pCreature) : ScriptedAI(pCreature) {}
|
||||
mob_omrogg_headsAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
bool DeathYell;
|
||||
uint32 Death_Timer;
|
||||
@@ -160,11 +160,11 @@ class boss_warbringer_omrogg : public CreatureScript
|
||||
|
||||
struct boss_warbringer_omroggAI : public ScriptedAI
|
||||
{
|
||||
boss_warbringer_omroggAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_warbringer_omroggAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
LeftHeadGUID = 0;
|
||||
RightHeadGUID = 0;
|
||||
pInstance = pCreature->GetInstanceScript();
|
||||
pInstance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* pInstance;
|
||||
@@ -414,9 +414,9 @@ class boss_warbringer_omrogg : public CreatureScript
|
||||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_warbringer_omroggAI (pCreature);
|
||||
return new boss_warbringer_omroggAI (creature);
|
||||
}
|
||||
};
|
||||
void AddSC_boss_warbringer_omrogg()
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ class boss_warchief_kargath_bladefist : public CreatureScript
|
||||
|
||||
struct boss_warchief_kargath_bladefistAI : public ScriptedAI
|
||||
{
|
||||
boss_warchief_kargath_bladefistAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
boss_warchief_kargath_bladefistAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user