Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature

This commit is contained in:
click
2011-07-02 22:18:03 +02:00
parent 3ddc1cc4c4
commit f91ee24184
345 changed files with 3642 additions and 3642 deletions
@@ -100,9 +100,9 @@ class boss_fathomlord_karathress : public CreatureScript
public:
boss_fathomlord_karathress() : CreatureScript("boss_fathomlord_karathress") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_fathomlord_karathressAI (pCreature);
return new boss_fathomlord_karathressAI (creature);
}
struct boss_fathomlord_karathressAI : public ScriptedAI
@@ -310,9 +310,9 @@ class boss_fathomguard_sharkkis : public CreatureScript
public:
boss_fathomguard_sharkkis() : CreatureScript("boss_fathomguard_sharkkis") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_fathomguard_sharkkisAI (pCreature);
return new boss_fathomguard_sharkkisAI (creature);
}
struct boss_fathomguard_sharkkisAI : public ScriptedAI
@@ -464,9 +464,9 @@ class boss_fathomguard_tidalvess : public CreatureScript
public:
boss_fathomguard_tidalvess() : CreatureScript("boss_fathomguard_tidalvess") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_fathomguard_tidalvessAI (pCreature);
return new boss_fathomguard_tidalvessAI (creature);
}
struct boss_fathomguard_tidalvessAI : public ScriptedAI
@@ -591,9 +591,9 @@ class boss_fathomguard_caribdis : public CreatureScript
public:
boss_fathomguard_caribdis() : CreatureScript("boss_fathomguard_caribdis") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_fathomguard_caribdisAI (pCreature);
return new boss_fathomguard_caribdisAI (creature);
}
struct boss_fathomguard_caribdisAI : public ScriptedAI
@@ -81,9 +81,9 @@ class boss_hydross_the_unstable : public CreatureScript
public:
boss_hydross_the_unstable() : CreatureScript("boss_hydross_the_unstable") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_hydross_the_unstableAI (pCreature);
return new boss_hydross_the_unstableAI (creature);
}
struct boss_hydross_the_unstableAI : public ScriptedAI
@@ -138,9 +138,9 @@ class boss_lady_vashj : public CreatureScript
public:
boss_lady_vashj() : CreatureScript("boss_lady_vashj") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_lady_vashjAI (pCreature);
return new boss_lady_vashjAI (creature);
}
struct boss_lady_vashjAI : public ScriptedAI
@@ -404,12 +404,12 @@ public:
me->GetMotionMaster()->Clear();
DoTeleportTo(MIDDLE_X, MIDDLE_Y, MIDDLE_Z);
Creature* pCreature;
Creature* creature;
for (uint8 i = 0; i < 4; ++i)
{
pCreature = me->SummonCreature(SHIED_GENERATOR_CHANNEL, ShieldGeneratorChannelPos[i][0], ShieldGeneratorChannelPos[i][1], ShieldGeneratorChannelPos[i][2], ShieldGeneratorChannelPos[i][3], TEMPSUMMON_CORPSE_DESPAWN, 0);
if (pCreature)
ShieldGeneratorChannel[i] = pCreature->GetGUID();
creature = me->SummonCreature(SHIED_GENERATOR_CHANNEL, ShieldGeneratorChannelPos[i][0], ShieldGeneratorChannelPos[i][1], ShieldGeneratorChannelPos[i][2], ShieldGeneratorChannelPos[i][3], TEMPSUMMON_CORPSE_DESPAWN, 0);
if (creature)
ShieldGeneratorChannel[i] = creature->GetGUID();
}
DoScriptText(SAY_PHASE2, me);
}
@@ -580,9 +580,9 @@ class mob_enchanted_elemental : public CreatureScript
public:
mob_enchanted_elemental() : CreatureScript("mob_enchanted_elemental") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_enchanted_elementalAI (pCreature);
return new mob_enchanted_elementalAI (creature);
}
struct mob_enchanted_elementalAI : public ScriptedAI
@@ -682,9 +682,9 @@ class mob_tainted_elemental : public CreatureScript
public:
mob_tainted_elemental() : CreatureScript("mob_tainted_elemental") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_tainted_elementalAI (pCreature);
return new mob_tainted_elementalAI (creature);
}
struct mob_tainted_elementalAI : public ScriptedAI
@@ -757,9 +757,9 @@ class mob_toxic_sporebat : public CreatureScript
public:
mob_toxic_sporebat() : CreatureScript("mob_toxic_sporebat") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_toxic_sporebatAI (pCreature);
return new mob_toxic_sporebatAI (creature);
}
struct mob_toxic_sporebatAI : public ScriptedAI
@@ -865,9 +865,9 @@ class mob_coilfang_elite : public CreatureScript
public:
mob_coilfang_elite() : CreatureScript("mob_coilfang_elite") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
SimpleAI* ai = new SimpleAI (pCreature);
SimpleAI* ai = new SimpleAI (creature);
ai->Spell[0].Enabled = true;
ai->Spell[0].Spell_Id = 31345; //Cleave
@@ -890,9 +890,9 @@ class mob_coilfang_strider : public CreatureScript
public:
mob_coilfang_strider() : CreatureScript("mob_coilfang_strider") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
SimpleAI* ai = new SimpleAI (pCreature);
SimpleAI* ai = new SimpleAI (creature);
ai->Spell[0].Enabled = true;
ai->Spell[0].Spell_Id = 41374; //Mind Blast
@@ -915,9 +915,9 @@ class mob_shield_generator_channel : public CreatureScript
public:
mob_shield_generator_channel() : CreatureScript("mob_shield_generator_channel") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_shield_generator_channelAI (pCreature);
return new mob_shield_generator_channelAI (creature);
}
struct mob_shield_generator_channelAI : public ScriptedAI
@@ -72,9 +72,9 @@ class mob_inner_demon : public CreatureScript
public:
mob_inner_demon() : CreatureScript("mob_inner_demon") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_inner_demonAI (pCreature);
return new mob_inner_demonAI (creature);
}
struct mob_inner_demonAI : public ScriptedAI
@@ -163,9 +163,9 @@ class boss_leotheras_the_blind : public CreatureScript
public:
boss_leotheras_the_blind() : CreatureScript("boss_leotheras_the_blind") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_leotheras_the_blindAI (pCreature);
return new boss_leotheras_the_blindAI (creature);
}
struct boss_leotheras_the_blindAI : public ScriptedAI
@@ -335,10 +335,10 @@ public:
if (InnderDemon[i])
{
//delete creature
Creature* pCreature = Unit::GetCreature((*me), InnderDemon[i]);
if (pCreature && pCreature->isAlive())
Creature* creature = Unit::GetCreature((*me), InnderDemon[i]);
if (creature && creature->isAlive())
{
pCreature->DespawnOrUnsummon();
creature->DespawnOrUnsummon();
}
InnderDemon[i] = 0;
}
@@ -593,9 +593,9 @@ class boss_leotheras_the_blind_demonform : public CreatureScript
public:
boss_leotheras_the_blind_demonform() : CreatureScript("boss_leotheras_the_blind_demonform") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_leotheras_the_blind_demonformAI (pCreature);
return new boss_leotheras_the_blind_demonformAI (creature);
}
struct boss_leotheras_the_blind_demonformAI : public ScriptedAI
@@ -666,9 +666,9 @@ class mob_greyheart_spellbinder : public CreatureScript
public:
mob_greyheart_spellbinder() : CreatureScript("mob_greyheart_spellbinder") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_greyheart_spellbinderAI (pCreature);
return new mob_greyheart_spellbinderAI (creature);
}
struct mob_greyheart_spellbinderAI : public ScriptedAI
@@ -71,9 +71,9 @@ class boss_the_lurker_below : public CreatureScript
public:
boss_the_lurker_below() : CreatureScript("boss_the_lurker_below") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_the_lurker_belowAI (pCreature);
return new boss_the_lurker_belowAI (creature);
}
struct boss_the_lurker_belowAI : public Scripted_NoMovementAI
@@ -375,9 +375,9 @@ class mob_coilfang_guardian : public CreatureScript
public:
mob_coilfang_guardian() : CreatureScript("mob_coilfang_guardian") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
SimpleAI* ai = new SimpleAI (pCreature);
SimpleAI* ai = new SimpleAI (creature);
ai->Spell[0].Enabled = true;
ai->Spell[0].Spell_Id = SPELL_ARCINGSMASH;
@@ -401,9 +401,9 @@ class mob_coilfang_ambusher : public CreatureScript
public:
mob_coilfang_ambusher() : CreatureScript("mob_coilfang_ambusher") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_coilfang_ambusherAI (pCreature);
return new mob_coilfang_ambusherAI (creature);
}
struct mob_coilfang_ambusherAI : public Scripted_NoMovementAI
@@ -82,9 +82,9 @@ class boss_morogrim_tidewalker : public CreatureScript
public:
boss_morogrim_tidewalker() : CreatureScript("boss_morogrim_tidewalker") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_morogrim_tidewalkerAI (pCreature);
return new boss_morogrim_tidewalkerAI (creature);
}
struct boss_morogrim_tidewalkerAI : public ScriptedAI
@@ -289,9 +289,9 @@ class mob_water_globule : public CreatureScript
public:
mob_water_globule() : CreatureScript("mob_water_globule") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_water_globuleAI (pCreature);
return new mob_water_globuleAI (creature);
}
struct mob_water_globuleAI : public ScriptedAI
@@ -51,9 +51,9 @@ class boss_hydromancer_thespia : public CreatureScript
public:
boss_hydromancer_thespia() : CreatureScript("boss_hydromancer_thespia") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_thespiaAI (pCreature);
return new boss_thespiaAI (creature);
}
struct boss_thespiaAI : public ScriptedAI
@@ -151,9 +151,9 @@ class mob_coilfang_waterelemental : public CreatureScript
public:
mob_coilfang_waterelemental() : CreatureScript("mob_coilfang_waterelemental") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_coilfang_waterelementalAI (pCreature);
return new mob_coilfang_waterelementalAI (creature);
}
struct mob_coilfang_waterelementalAI : public ScriptedAI
@@ -53,9 +53,9 @@ class boss_mekgineer_steamrigger : public CreatureScript
public:
boss_mekgineer_steamrigger() : CreatureScript("boss_mekgineer_steamrigger") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_mekgineer_steamriggerAI (pCreature);
return new boss_mekgineer_steamriggerAI (creature);
}
struct boss_mekgineer_steamriggerAI : public ScriptedAI
@@ -197,9 +197,9 @@ class mob_steamrigger_mechanic : public CreatureScript
public:
mob_steamrigger_mechanic() : CreatureScript("mob_steamrigger_mechanic") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_steamrigger_mechanicAI (pCreature);
return new mob_steamrigger_mechanicAI (creature);
}
struct mob_steamrigger_mechanicAI : public ScriptedAI
@@ -47,9 +47,9 @@ class mob_naga_distiller : public CreatureScript
public:
mob_naga_distiller() : CreatureScript("mob_naga_distiller") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_naga_distillerAI (pCreature);
return new mob_naga_distillerAI (creature);
}
struct mob_naga_distillerAI : public ScriptedAI
@@ -105,9 +105,9 @@ class boss_warlord_kalithresh : public CreatureScript
public:
boss_warlord_kalithresh() : CreatureScript("boss_warlord_kalithresh") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_warlord_kalithreshAI (pCreature);
return new boss_warlord_kalithreshAI (creature);
}
struct boss_warlord_kalithreshAI : public ScriptedAI
@@ -33,9 +33,9 @@ class boss_hungarfen : public CreatureScript
public:
boss_hungarfen() : CreatureScript("boss_hungarfen") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_hungarfenAI (pCreature);
return new boss_hungarfenAI (creature);
}
struct boss_hungarfenAI : public ScriptedAI
@@ -105,9 +105,9 @@ class mob_underbog_mushroom : public CreatureScript
public:
mob_underbog_mushroom() : CreatureScript("mob_underbog_mushroom") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new mob_underbog_mushroomAI (pCreature);
return new mob_underbog_mushroomAI (creature);
}
struct mob_underbog_mushroomAI : public ScriptedAI
@@ -40,9 +40,9 @@ class boss_the_black_stalker : public CreatureScript
public:
boss_the_black_stalker() : CreatureScript("boss_the_black_stalker") { }
CreatureAI* GetAI(Creature* pCreature) const
CreatureAI* GetAI(Creature* creature) const
{
return new boss_the_black_stalkerAI (pCreature);
return new boss_the_black_stalkerAI (creature);
}
struct boss_the_black_stalkerAI : public ScriptedAI