Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature
This commit is contained in:
@@ -72,22 +72,22 @@ class npc_blackfathom_deeps_event : public CreatureScript
|
||||
public:
|
||||
npc_blackfathom_deeps_event() : CreatureScript("npc_blackfathom_deeps_event") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new npc_blackfathom_deeps_eventAI (pCreature);
|
||||
return new npc_blackfathom_deeps_eventAI (creature);
|
||||
}
|
||||
|
||||
struct npc_blackfathom_deeps_eventAI : public ScriptedAI
|
||||
{
|
||||
npc_blackfathom_deeps_eventAI(Creature* pCreature) : ScriptedAI(pCreature)
|
||||
npc_blackfathom_deeps_eventAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
if (pCreature->isSummon())
|
||||
if (creature->isSummon())
|
||||
{
|
||||
pCreature->SetHomePosition(HomePosition);
|
||||
creature->SetHomePosition(HomePosition);
|
||||
AttackPlayer();
|
||||
}
|
||||
|
||||
pInstance = pCreature->GetInstanceScript();
|
||||
pInstance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* pInstance;
|
||||
@@ -201,7 +201,7 @@ class npc_morridune : public CreatureScript
|
||||
public:
|
||||
npc_morridune() : CreatureScript("npc_morridune") { }
|
||||
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* /*creature*/, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
switch(uiAction)
|
||||
@@ -214,24 +214,24 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* pPlayer, Creature* pCreature)
|
||||
bool OnGossipHello(Player* pPlayer, Creature* creature)
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_MORRIDUNE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
|
||||
pPlayer->SEND_GOSSIP_MENU(pPlayer->GetGossipTextId(pCreature), pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(pPlayer->GetGossipTextId(creature), creature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new npc_morriduneAI (pCreature);
|
||||
return new npc_morriduneAI (creature);
|
||||
}
|
||||
|
||||
struct npc_morriduneAI : public npc_escortAI
|
||||
{
|
||||
npc_morriduneAI(Creature* pCreature) : npc_escortAI(pCreature)
|
||||
npc_morriduneAI(Creature* creature) : npc_escortAI(creature)
|
||||
{
|
||||
DoScriptText(SAY_MORRIDUNE_1, pCreature);
|
||||
DoScriptText(SAY_MORRIDUNE_1, creature);
|
||||
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
Start(false, false, 0);
|
||||
}
|
||||
|
||||
@@ -29,9 +29,9 @@ class boss_aku_mai : public CreatureScript
|
||||
public:
|
||||
boss_aku_mai() : CreatureScript("boss_aku_mai") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_aku_maiAI (pCreature);
|
||||
return new boss_aku_maiAI (creature);
|
||||
}
|
||||
|
||||
struct boss_aku_maiAI : public ScriptedAI
|
||||
|
||||
@@ -28,9 +28,9 @@ class boss_gelihast : public CreatureScript
|
||||
public:
|
||||
boss_gelihast() : CreatureScript("boss_gelihast") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_gelihastAI (pCreature);
|
||||
return new boss_gelihastAI (creature);
|
||||
}
|
||||
|
||||
struct boss_gelihastAI : public ScriptedAI
|
||||
|
||||
@@ -37,9 +37,9 @@ class boss_kelris : public CreatureScript
|
||||
public:
|
||||
boss_kelris() : CreatureScript("boss_kelris") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_kelrisAI (pCreature);
|
||||
return new boss_kelrisAI (creature);
|
||||
}
|
||||
|
||||
struct boss_kelrisAI : public ScriptedAI
|
||||
|
||||
Reference in New Issue
Block a user