Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature
This commit is contained in:
@@ -724,9 +724,9 @@ class npc_portal_eoe: public CreatureScript
|
||||
public:
|
||||
npc_portal_eoe() : CreatureScript("npc_portal_eoe") {}
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new npc_portal_eoeAI(pCreature);
|
||||
return new npc_portal_eoeAI(creature);
|
||||
}
|
||||
|
||||
struct npc_portal_eoeAI : public ScriptedAI
|
||||
|
||||
@@ -54,9 +54,9 @@ class boss_keristrasza : public CreatureScript
|
||||
public:
|
||||
boss_keristrasza() : CreatureScript("boss_keristrasza") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_keristraszaAI (pCreature);
|
||||
return new boss_keristraszaAI (creature);
|
||||
}
|
||||
|
||||
struct boss_keristraszaAI : public ScriptedAI
|
||||
|
||||
@@ -60,9 +60,9 @@ class boss_magus_telestra : public CreatureScript
|
||||
public:
|
||||
boss_magus_telestra() : CreatureScript("boss_magus_telestra") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_magus_telestraAI (pCreature);
|
||||
return new boss_magus_telestraAI (creature);
|
||||
}
|
||||
|
||||
struct boss_magus_telestraAI : public ScriptedAI
|
||||
|
||||
@@ -54,9 +54,9 @@ class boss_ormorok : public CreatureScript
|
||||
public:
|
||||
boss_ormorok() : CreatureScript("boss_ormorok") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_ormorokAI (pCreature);
|
||||
return new boss_ormorokAI (creature);
|
||||
}
|
||||
|
||||
struct boss_ormorokAI : public ScriptedAI
|
||||
@@ -227,9 +227,9 @@ class mob_crystal_spike : public CreatureScript
|
||||
public:
|
||||
mob_crystal_spike() : CreatureScript("mob_crystal_spike") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new mob_crystal_spikeAI (pCreature);
|
||||
return new mob_crystal_spikeAI (creature);
|
||||
}
|
||||
|
||||
struct mob_crystal_spikeAI : public Scripted_NoMovementAI
|
||||
@@ -270,9 +270,9 @@ class mob_crystalline_tangler : public CreatureScript
|
||||
public:
|
||||
mob_crystalline_tangler() : CreatureScript("mob_crystalline_tangler") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new mob_crystalline_tanglerAI (pCreature);
|
||||
return new mob_crystalline_tanglerAI (creature);
|
||||
}
|
||||
|
||||
struct mob_crystalline_tanglerAI : public ScriptedAI
|
||||
|
||||
@@ -42,9 +42,9 @@ class boss_commander_kolurg : public CreatureScript
|
||||
public:
|
||||
boss_commander_kolurg() : CreatureScript("boss_commander_kolurg") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_commander_kolurgAI (pCreature);
|
||||
return new boss_commander_kolurgAI (creature);
|
||||
}
|
||||
|
||||
struct boss_commander_kolurgAI : public ScriptedAI
|
||||
|
||||
@@ -42,9 +42,9 @@ class boss_commander_stoutbeard : public CreatureScript
|
||||
public:
|
||||
boss_commander_stoutbeard() : CreatureScript("boss_commander_stoutbeard") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_commander_stoutbeardAI (pCreature);
|
||||
return new boss_commander_stoutbeardAI (creature);
|
||||
}
|
||||
|
||||
struct boss_commander_stoutbeardAI : public ScriptedAI
|
||||
|
||||
@@ -156,9 +156,9 @@ class npc_unstable_sphere : public CreatureScript
|
||||
public:
|
||||
npc_unstable_sphere() : CreatureScript("npc_unstable_sphere") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new npc_unstable_sphereAI (pCreature);
|
||||
return new npc_unstable_sphereAI (creature);
|
||||
}
|
||||
|
||||
struct npc_unstable_sphereAI : public ScriptedAI
|
||||
|
||||
@@ -115,9 +115,9 @@ class boss_eregos : public CreatureScript
|
||||
public:
|
||||
boss_eregos() : CreatureScript("boss_eregos") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_eregosAI (pCreature);
|
||||
return new boss_eregosAI (creature);
|
||||
}
|
||||
|
||||
struct boss_eregosAI : public BossAI
|
||||
|
||||
@@ -91,9 +91,9 @@ class boss_urom : public CreatureScript
|
||||
public:
|
||||
boss_urom() : CreatureScript("boss_urom") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_uromAI (pCreature);
|
||||
return new boss_uromAI (creature);
|
||||
}
|
||||
|
||||
struct boss_uromAI : public BossAI
|
||||
|
||||
@@ -55,10 +55,10 @@ class npc_oculus_drake : public CreatureScript
|
||||
public:
|
||||
npc_oculus_drake() : CreatureScript("npc_oculus_drake") { }
|
||||
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
switch(pCreature->GetEntry())
|
||||
switch(creature->GetEntry())
|
||||
{
|
||||
case NPC_VERDISA: //Verdisa
|
||||
switch(uiAction)
|
||||
@@ -68,12 +68,12 @@ public:
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_VERDISA1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_VERDISA2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_VERDISA1, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_VERDISA1, creature->GetGUID());
|
||||
}
|
||||
else
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_VERDISA2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_VERDISA2, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_VERDISA2, creature->GetGUID());
|
||||
}
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF + 2:
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
break;
|
||||
}
|
||||
case GOSSIP_ACTION_INFO_DEF + 3:
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_VERDISA3, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_VERDISA3, creature->GetGUID());
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@@ -98,12 +98,12 @@ public:
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_BELGARISTRASZ1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_BELGARISTRASZ2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_BELGARISTRASZ1, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_BELGARISTRASZ1, creature->GetGUID());
|
||||
}
|
||||
else
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_BELGARISTRASZ2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_BELGARISTRASZ2, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_BELGARISTRASZ2, creature->GetGUID());
|
||||
}
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF + 2:
|
||||
@@ -116,7 +116,7 @@ public:
|
||||
break;
|
||||
}
|
||||
case GOSSIP_ACTION_INFO_DEF + 3:
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_BELGARISTRASZ3, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_BELGARISTRASZ3, creature->GetGUID());
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@@ -128,12 +128,12 @@ public:
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_ETERNOS1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_ETERNOS2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ETERNOS1, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ETERNOS1, creature->GetGUID());
|
||||
}
|
||||
else
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_ETERNOS2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ETERNOS2, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ETERNOS2, creature->GetGUID());
|
||||
}
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF + 2:
|
||||
@@ -146,7 +146,7 @@ public:
|
||||
break;
|
||||
}
|
||||
case GOSSIP_ACTION_INFO_DEF + 3:
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ETERNOS3, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ETERNOS3, creature->GetGUID());
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user