refactor(Core): apply clang-tidy modernize-use-override (#3817)

This commit is contained in:
Francesco Borzì
2020-12-06 18:04:55 +01:00
committed by GitHub
parent 9facd81e54
commit d4a58700d4
561 changed files with 9574 additions and 9574 deletions

View File

@@ -44,12 +44,12 @@ public:
{
boss_twilight_corrupterAI(Creature* creature) : ScriptedAI(creature) { }
void Reset()
void Reset() override
{
KillCount = 0;
}
void InitializeAI()
void InitializeAI() override
{
// Xinef: check if copy is summoned
std::list<Creature*> cList;
@@ -66,7 +66,7 @@ public:
ScriptedAI::InitializeAI();
}
void MoveInLineOfSight(Unit* who)
void MoveInLineOfSight(Unit* who) override
{
if (!_introSpoken && who->GetTypeId() == TYPEID_PLAYER)
{
@@ -77,7 +77,7 @@ public:
ScriptedAI::MoveInLineOfSight(who);
}
void EnterCombat(Unit* /*who*/)
void EnterCombat(Unit* /*who*/) override
{
Talk(YELL_TWILIGHTCORRUPTOR_AGGRO);
_events.Reset();
@@ -85,7 +85,7 @@ public:
_events.ScheduleEvent(EVENT_CREATURE_OF_NIGHTMARE, 30000);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* victim) override
{
if (victim->GetTypeId() == TYPEID_PLAYER)
{
@@ -100,7 +100,7 @@ public:
}
}
void UpdateAI(uint32 diff)
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -133,7 +133,7 @@ public:
bool _introSpoken;
};
CreatureAI* GetAI(Creature* creature) const
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_twilight_corrupterAI(creature);
}
@@ -148,7 +148,7 @@ class at_twilight_grove : public AreaTriggerScript
public:
at_twilight_grove() : AreaTriggerScript("at_twilight_grove") { }
bool OnTrigger(Player* player, const AreaTrigger* /*at*/)
bool OnTrigger(Player* player, const AreaTrigger* /*at*/) override
{
if (player->HasQuestForItem(ITEM_FRAGMENT) && !player->HasItemCount(ITEM_FRAGMENT))
player->SummonCreature(NPC_TWILIGHT_CORRUPTER, -10328.16f, -489.57f, 49.95f, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 240000);