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,5 +1,6 @@
/*
* 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.
*/
#ifndef _PLAYERBOT_CHANGETALENTSACTION_H
@@ -12,31 +13,31 @@ class PlayerbotAI;
class ChangeTalentsAction : public Action
{
public:
ChangeTalentsAction(PlayerbotAI* botAI, std::string const name = "talents") : Action(botAI, name) { }
public:
ChangeTalentsAction(PlayerbotAI* botAI, std::string const name = "talents") : Action(botAI, name) {}
bool Execute(Event event);
// bool AutoSelectTalents(std::ostringstream* out);
bool Execute(Event event);
// bool AutoSelectTalents(std::ostringstream* out);
private:
// std::vector<TalentPath*> getPremadePaths(std::string const findName);
// std::vector<TalentPath*> getPremadePaths(TalentSpec* oldSpec);
// TalentPath* getPremadePath(uint32 id);
// void listPremadePaths(std::vector<TalentPath*> paths, std::ostringstream* out);
// TalentPath* PickPremadePath(std::vector<TalentPath*> paths, bool useProbability);
// TalentSpec* GetBestPremadeSpec(uint32 spec);
std::string TalentsHelp();
std::string SpecList();
std::string SpecPick(std::string param);
std::string SpecApply(std::string param);
private:
// std::vector<TalentPath*> getPremadePaths(std::string const findName);
// std::vector<TalentPath*> getPremadePaths(TalentSpec* oldSpec);
// TalentPath* getPremadePath(uint32 id);
// void listPremadePaths(std::vector<TalentPath*> paths, std::ostringstream* out);
// TalentPath* PickPremadePath(std::vector<TalentPath*> paths, bool useProbability);
// TalentSpec* GetBestPremadeSpec(uint32 spec);
std::string TalentsHelp();
std::string SpecList();
std::string SpecPick(std::string param);
std::string SpecApply(std::string param);
};
class AutoSetTalentsAction : public ChangeTalentsAction
{
public:
AutoSetTalentsAction(PlayerbotAI* botAI) : ChangeTalentsAction(botAI, "auto talents") { }
public:
AutoSetTalentsAction(PlayerbotAI* botAI) : ChangeTalentsAction(botAI, "auto talents") {}
bool Execute(Event event) override;
bool Execute(Event event) override;
};
#endif