Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature
This commit is contained in:
@@ -92,9 +92,9 @@ class boss_priestess_delrissa : public CreatureScript
|
||||
public:
|
||||
boss_priestess_delrissa() : CreatureScript("boss_priestess_delrissa") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_priestess_delrissaAI(pCreature);
|
||||
return new boss_priestess_delrissaAI(creature);
|
||||
}
|
||||
|
||||
struct boss_priestess_delrissaAI : public ScriptedAI
|
||||
@@ -486,9 +486,9 @@ class boss_kagani_nightstrike : public CreatureScript
|
||||
public:
|
||||
boss_kagani_nightstrike() : CreatureScript("boss_kagani_nightstrike") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_kagani_nightstrikeAI(pCreature);
|
||||
return new boss_kagani_nightstrikeAI(creature);
|
||||
}
|
||||
|
||||
struct boss_kagani_nightstrikeAI : public boss_priestess_lackey_commonAI
|
||||
@@ -591,9 +591,9 @@ class boss_ellris_duskhallow : public CreatureScript
|
||||
public:
|
||||
boss_ellris_duskhallow() : CreatureScript("boss_ellris_duskhallow") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_ellris_duskhallowAI(pCreature);
|
||||
return new boss_ellris_duskhallowAI(creature);
|
||||
}
|
||||
|
||||
struct boss_ellris_duskhallowAI : public boss_priestess_lackey_commonAI
|
||||
@@ -683,9 +683,9 @@ class boss_eramas_brightblaze : public CreatureScript
|
||||
public:
|
||||
boss_eramas_brightblaze() : CreatureScript("boss_eramas_brightblaze") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_eramas_brightblazeAI(pCreature);
|
||||
return new boss_eramas_brightblazeAI(creature);
|
||||
}
|
||||
|
||||
struct boss_eramas_brightblazeAI : public boss_priestess_lackey_commonAI
|
||||
@@ -745,9 +745,9 @@ class boss_yazzai : public CreatureScript
|
||||
public:
|
||||
boss_yazzai() : CreatureScript("boss_yazzai") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_yazzaiAI(pCreature);
|
||||
return new boss_yazzaiAI(creature);
|
||||
}
|
||||
|
||||
struct boss_yazzaiAI : public boss_priestess_lackey_commonAI
|
||||
@@ -876,9 +876,9 @@ class boss_warlord_salaris : public CreatureScript
|
||||
public:
|
||||
boss_warlord_salaris() : CreatureScript("boss_warlord_salaris") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_warlord_salarisAI(pCreature);
|
||||
return new boss_warlord_salarisAI(creature);
|
||||
}
|
||||
|
||||
struct boss_warlord_salarisAI : public boss_priestess_lackey_commonAI
|
||||
@@ -997,9 +997,9 @@ class boss_garaxxas : public CreatureScript
|
||||
public:
|
||||
boss_garaxxas() : CreatureScript("boss_garaxxas") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_garaxxasAI(pCreature);
|
||||
return new boss_garaxxasAI(creature);
|
||||
}
|
||||
|
||||
struct boss_garaxxasAI : public boss_priestess_lackey_commonAI
|
||||
@@ -1117,9 +1117,9 @@ class boss_apoko : public CreatureScript
|
||||
public:
|
||||
boss_apoko() : CreatureScript("boss_apoko") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_apokoAI(pCreature);
|
||||
return new boss_apokoAI(creature);
|
||||
}
|
||||
|
||||
struct boss_apokoAI : public boss_priestess_lackey_commonAI
|
||||
@@ -1216,9 +1216,9 @@ class boss_zelfan : public CreatureScript
|
||||
public:
|
||||
boss_zelfan() : CreatureScript("boss_zelfan") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_zelfanAI(pCreature);
|
||||
return new boss_zelfanAI(creature);
|
||||
}
|
||||
|
||||
struct boss_zelfanAI : public boss_priestess_lackey_commonAI
|
||||
@@ -1302,9 +1302,9 @@ class mob_high_explosive_sheep : public CreatureScript
|
||||
public:
|
||||
mob_high_explosive_sheep() : CreatureScript("mob_high_explosive_sheep") { }
|
||||
|
||||
//CreatureAI* GetAI(Creature* pCreature) const
|
||||
//CreatureAI* GetAI(Creature* creature) const
|
||||
//{
|
||||
// return new mob_high_explosive_sheepAI (pCreature);
|
||||
// return new mob_high_explosive_sheepAI (creature);
|
||||
//};
|
||||
};
|
||||
*/
|
||||
|
||||
@@ -56,9 +56,9 @@ class boss_selin_fireheart : public CreatureScript
|
||||
public:
|
||||
boss_selin_fireheart() : CreatureScript("boss_selin_fireheart") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_selin_fireheartAI (pCreature);
|
||||
return new boss_selin_fireheartAI (creature);
|
||||
};
|
||||
|
||||
struct boss_selin_fireheartAI : public ScriptedAI
|
||||
@@ -326,9 +326,9 @@ class mob_fel_crystal : public CreatureScript
|
||||
public:
|
||||
mob_fel_crystal() : CreatureScript("mob_fel_crystal") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new mob_fel_crystalAI (pCreature);
|
||||
return new mob_fel_crystalAI (creature);
|
||||
};
|
||||
|
||||
struct mob_fel_crystalAI : public ScriptedAI
|
||||
|
||||
@@ -64,9 +64,9 @@ class boss_vexallus : public CreatureScript
|
||||
public:
|
||||
boss_vexallus() : CreatureScript("boss_vexallus") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new boss_vexallusAI (pCreature);
|
||||
return new boss_vexallusAI (creature);
|
||||
};
|
||||
|
||||
struct boss_vexallusAI : public ScriptedAI
|
||||
@@ -199,9 +199,9 @@ class mob_pure_energy : public CreatureScript
|
||||
public:
|
||||
mob_pure_energy() : CreatureScript("mob_pure_energy") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new mob_pure_energyAI (pCreature);
|
||||
return new mob_pure_energyAI (creature);
|
||||
};
|
||||
|
||||
struct mob_pure_energyAI : public ScriptedAI
|
||||
|
||||
@@ -56,54 +56,54 @@ class npc_kalecgos : public CreatureScript
|
||||
public:
|
||||
npc_kalecgos() : CreatureScript("npc_kalecgos") { }
|
||||
|
||||
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)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_KAEL_2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
pPlayer->SEND_GOSSIP_MENU(12500, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(12500, creature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_KAEL_3, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);
|
||||
pPlayer->SEND_GOSSIP_MENU(12502, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(12502, creature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+2:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_KAEL_4, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);
|
||||
pPlayer->SEND_GOSSIP_MENU(12606, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(12606, creature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+3:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_KAEL_5, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 4);
|
||||
pPlayer->SEND_GOSSIP_MENU(12607, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(12607, creature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+4:
|
||||
pPlayer->SEND_GOSSIP_MENU(12608, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(12608, creature->GetGUID());
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* pPlayer, Creature* pCreature)
|
||||
bool OnGossipHello(Player* pPlayer, Creature* creature)
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
if (creature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(creature->GetGUID());
|
||||
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_KAEL_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF);
|
||||
pPlayer->SEND_GOSSIP_MENU(12498, pCreature->GetGUID());
|
||||
pPlayer->SEND_GOSSIP_MENU(12498, creature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
CreatureAI* GetAI(Creature* pCreature) const
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new npc_kalecgosAI(pCreature);
|
||||
return new npc_kalecgosAI(creature);
|
||||
}
|
||||
|
||||
struct npc_kalecgosAI : public ScriptedAI
|
||||
{
|
||||
npc_kalecgosAI(Creature* pCreature) : ScriptedAI(pCreature) {}
|
||||
npc_kalecgosAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 m_uiTransformTimer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user