Run clang-format

This commit is contained in:
Yunfan Li
2024-08-04 10:23:36 +08:00
parent 44da167492
commit 53611c9040
835 changed files with 35085 additions and 31861 deletions

View File

@@ -1,20 +1,22 @@
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it
* and/or modify it under version 2 of the License, or (at your option), any later version.
*/
#include "PullStrategy.h"
#include "PassiveMultiplier.h"
#include "Playerbots.h"
class MagePullMultiplier : public PassiveMultiplier
{
public:
MagePullMultiplier(PlayerbotAI* botAI, std::string const action) : PassiveMultiplier(botAI), actionName(action) { }
public:
MagePullMultiplier(PlayerbotAI* botAI, std::string const action) : PassiveMultiplier(botAI), actionName(action) {}
float GetValue(Action* action) override;
float GetValue(Action* action) override;
private:
std::string const actionName;
private:
std::string const actionName;
};
float MagePullMultiplier::GetValue(Action* action)
@@ -31,13 +33,11 @@ float MagePullMultiplier::GetValue(Action* action)
NextAction** PullStrategy::getDefaultActions()
{
return NextAction::array(0, new NextAction(action, 105.0f), new NextAction("follow", 104.0f), new NextAction("end pull", 103.0f), nullptr);
return NextAction::array(0, new NextAction(action, 105.0f), new NextAction("follow", 104.0f),
new NextAction("end pull", 103.0f), nullptr);
}
void PullStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
{
CombatStrategy::InitTriggers(triggers);
}
void PullStrategy::InitTriggers(std::vector<TriggerNode*>& triggers) { CombatStrategy::InitTriggers(triggers); }
void PullStrategy::InitMultipliers(std::vector<Multiplier*>& multipliers)
{
@@ -49,5 +49,6 @@ void PossibleAddsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
{
Strategy::InitTriggers(triggers);
triggers.push_back(new TriggerNode("possible adds", NextAction::array(0, new NextAction("flee with pet", 60), nullptr)));
triggers.push_back(
new TriggerNode("possible adds", NextAction::array(0, new NextAction("flee with pet", 60), nullptr)));
}