refactor(Core): apply clang-tidy modernize-use-override (#3817)
This commit is contained in:
parent
9facd81e54
commit
d4a58700d4
561 changed files with 9574 additions and 9574 deletions
|
|
@ -30,7 +30,7 @@ public:
|
|||
{
|
||||
npc_steam_powered_auctioneerAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
bool CanBeSeen(Player const* player)
|
||||
bool CanBeSeen(Player const* player) override
|
||||
{
|
||||
if (player->GetTeamId() == TEAM_ALLIANCE)
|
||||
return me->GetEntry() == 35594;
|
||||
|
|
@ -39,7 +39,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_steam_powered_auctioneerAI(creature);
|
||||
}
|
||||
|
|
@ -54,7 +54,7 @@ public:
|
|||
{
|
||||
npc_mei_francis_mountAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
bool CanBeSeen(Player const* player)
|
||||
bool CanBeSeen(Player const* player) override
|
||||
{
|
||||
if (player->GetTeamId() == TEAM_ALLIANCE)
|
||||
return me->GetEntry() == 32206 || me->GetEntry() == 32335 || me->GetEntry() == 31851;
|
||||
|
|
@ -63,7 +63,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_mei_francis_mountAI(creature);
|
||||
}
|
||||
|
|
@ -303,7 +303,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_archmage_landalockAI(creature);
|
||||
}
|
||||
|
|
@ -347,7 +347,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void JustSummoned(Creature* image)
|
||||
void JustSummoned(Creature* image) override
|
||||
{
|
||||
// xinef: screams like a baby
|
||||
if (image->GetEntry() != NPC_ANUBREKHAN_IMAGE)
|
||||
|
|
@ -355,7 +355,7 @@ public:
|
|||
_summonGUID = image->GetGUID();
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff)
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
ScriptedAI::UpdateAI(diff);
|
||||
|
||||
|
|
@ -429,13 +429,13 @@ public:
|
|||
creature->ApplySpellImmune(0, IMMUNITY_DAMAGE, SPELL_SCHOOL_MASK_MAGIC, true);
|
||||
}
|
||||
|
||||
void Reset() {}
|
||||
void Reset() override {}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
void EnterCombat(Unit* /*who*/) override {}
|
||||
|
||||
void AttackStart(Unit* /*who*/) {}
|
||||
void AttackStart(Unit* /*who*/) override {}
|
||||
|
||||
void MoveInLineOfSight(Unit* who)
|
||||
void MoveInLineOfSight(Unit* who) override
|
||||
{
|
||||
if (!who || !who->IsInWorld() || who->GetZoneId() != 4395)
|
||||
return;
|
||||
|
|
@ -482,10 +482,10 @@ public:
|
|||
return;
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 /*diff*/) {}
|
||||
void UpdateAI(uint32 /*diff*/) override {}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_mageguard_dalaranAI(creature);
|
||||
}
|
||||
|
|
@ -521,7 +521,7 @@ public:
|
|||
me->setActive(true);
|
||||
}
|
||||
|
||||
void Reset()
|
||||
void Reset() override
|
||||
{
|
||||
me->SetVisible(false);
|
||||
events.ScheduleEvent(EVENT_SELECT_TARGET, IN_MILLISECONDS);
|
||||
|
|
@ -551,7 +551,7 @@ public:
|
|||
CharacterDatabase.CommitTransaction(trans);
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff)
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
|
||||
if (!sWorld->getBoolConfig(CONFIG_MINIGOB_MANABONK))
|
||||
|
|
@ -600,7 +600,7 @@ public:
|
|||
EventMap events;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_minigob_manabonkAI(creature);
|
||||
}
|
||||
|
|
@ -611,7 +611,7 @@ class npc_dalaran_mage : public CreatureScript
|
|||
public:
|
||||
npc_dalaran_mage() : CreatureScript("npc_dalaran_mage") {}
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_dalaran_mageAI(creature);
|
||||
}
|
||||
|
|
@ -640,16 +640,16 @@ public:
|
|||
restoremana_timer = 10000;
|
||||
}
|
||||
|
||||
void Reset()
|
||||
void Reset() override
|
||||
{
|
||||
Initialize();
|
||||
me->AddAura(1908, me);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
{
|
||||
}
|
||||
void UpdateAI(uint32 diff)
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
|
||||
if (!UpdateVictim())
|
||||
|
|
@ -717,7 +717,7 @@ class npc_dalaran_warrior : public CreatureScript
|
|||
public:
|
||||
npc_dalaran_warrior() : CreatureScript("npc_dalaran_warrior") {}
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_dalaran_warriorAI(creature);
|
||||
}
|
||||
|
|
@ -742,17 +742,17 @@ public:
|
|||
disarm_timer = 50000;
|
||||
}
|
||||
|
||||
void Reset()
|
||||
void Reset() override
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
{
|
||||
me->AddAura(1908, me);
|
||||
Battleshout_timer = 1000;
|
||||
}
|
||||
void UpdateAI(uint32 diff)
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
|
||||
if (!UpdateVictim())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue