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_PVPVALUES_H
@@ -14,58 +15,60 @@ class Unit;
class BgTypeValue : public ManualSetValue<uint32>
{
public:
BgTypeValue(PlayerbotAI* botAI) : ManualSetValue<uint32>(botAI, 0, "bg type") { }
public:
BgTypeValue(PlayerbotAI* botAI) : ManualSetValue<uint32>(botAI, 0, "bg type") {}
};
class ArenaTypeValue : public ManualSetValue<uint32>
{
public:
ArenaTypeValue(PlayerbotAI* botAI) : ManualSetValue<uint32>(botAI, 0, "arena type") { }
public:
ArenaTypeValue(PlayerbotAI* botAI) : ManualSetValue<uint32>(botAI, 0, "arena type") {}
};
class BgRoleValue : public ManualSetValue<uint32>
{
public:
BgRoleValue(PlayerbotAI* botAI) : ManualSetValue<uint32>(botAI, 0, "bg role") { }
public:
BgRoleValue(PlayerbotAI* botAI) : ManualSetValue<uint32>(botAI, 0, "bg role") {}
};
class BgMastersValue : public SingleCalculatedValue<std::vector<CreatureData const*>>, public Qualified
{
public:
BgMastersValue(PlayerbotAI* botAI) : SingleCalculatedValue<std::vector<CreatureData const*>>(botAI, "bg masters") { }
public:
BgMastersValue(PlayerbotAI* botAI) : SingleCalculatedValue<std::vector<CreatureData const*>>(botAI, "bg masters") {}
std::vector<CreatureData const*> Calculate() override;
std::vector<CreatureData const*> Calculate() override;
};
class BgMasterValue : public CDPairCalculatedValue, public Qualified
{
public:
BgMasterValue(PlayerbotAI* botAI) : CDPairCalculatedValue(botAI, "bg master", 60) { }
public:
BgMasterValue(PlayerbotAI* botAI) : CDPairCalculatedValue(botAI, "bg master", 60) {}
CreatureData const* Calculate() override;
CreatureData const* NearestBm(bool allowDead = true);
CreatureData const* Calculate() override;
CreatureData const* NearestBm(bool allowDead = true);
};
class RpgBgTypeValue : public CalculatedValue<BattlegroundTypeId>
{
public:
RpgBgTypeValue(PlayerbotAI* botAI) : CalculatedValue(botAI, "rpg bg type") { }
public:
RpgBgTypeValue(PlayerbotAI* botAI) : CalculatedValue(botAI, "rpg bg type") {}
BattlegroundTypeId Calculate() override;
BattlegroundTypeId Calculate() override;
};
class FlagCarrierValue : public UnitCalculatedValue
{
public:
FlagCarrierValue(PlayerbotAI* botAI, bool sameTeam = false, bool ignoreRange = false) :
UnitCalculatedValue(botAI), sameTeam(sameTeam), ignoreRange(ignoreRange) { }
public:
FlagCarrierValue(PlayerbotAI* botAI, bool sameTeam = false, bool ignoreRange = false)
: UnitCalculatedValue(botAI), sameTeam(sameTeam), ignoreRange(ignoreRange)
{
}
Unit* Calculate() override;
Unit* Calculate() override;
private:
bool sameTeam;
bool ignoreRange;
private:
bool sameTeam;
bool ignoreRange;
};
#endif