mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-19 03:35:43 +00:00
Run clang-format
This commit is contained in:
@@ -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_BUDGETVALUES_H
|
||||
@@ -12,75 +13,76 @@ class PlayerbotAI;
|
||||
|
||||
enum class NeedMoneyFor : uint32
|
||||
{
|
||||
none = 0,
|
||||
repair = 1,
|
||||
ammo = 2,
|
||||
spells = 3,
|
||||
travel = 4,
|
||||
none = 0,
|
||||
repair = 1,
|
||||
ammo = 2,
|
||||
spells = 3,
|
||||
travel = 4,
|
||||
consumables = 5,
|
||||
gear = 6,
|
||||
guild = 7,
|
||||
tradeskill = 8,
|
||||
anything = 9
|
||||
gear = 6,
|
||||
guild = 7,
|
||||
tradeskill = 8,
|
||||
anything = 9
|
||||
};
|
||||
|
||||
class MaxGearRepairCostValue : public Uint32CalculatedValue
|
||||
{
|
||||
public:
|
||||
MaxGearRepairCostValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI,"max repair cost", 60) { }
|
||||
public:
|
||||
MaxGearRepairCostValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "max repair cost", 60) {}
|
||||
|
||||
uint32 Calculate() override;
|
||||
uint32 Calculate() override;
|
||||
};
|
||||
|
||||
class RepairCostValue : public Uint32CalculatedValue
|
||||
{
|
||||
public:
|
||||
RepairCostValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "repair cost", 60) { }
|
||||
public:
|
||||
RepairCostValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "repair cost", 60) {}
|
||||
|
||||
uint32 Calculate() override;
|
||||
uint32 Calculate() override;
|
||||
};
|
||||
|
||||
class TrainCostValue : public Uint32CalculatedValue
|
||||
{
|
||||
public:
|
||||
TrainCostValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "train cost", 60) { }
|
||||
public:
|
||||
TrainCostValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "train cost", 60) {}
|
||||
|
||||
uint32 Calculate() override;
|
||||
uint32 Calculate() override;
|
||||
};
|
||||
|
||||
class MoneyNeededForValue : public Uint32CalculatedValue, public Qualified
|
||||
{
|
||||
public:
|
||||
MoneyNeededForValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "money needed for",60) { }
|
||||
public:
|
||||
MoneyNeededForValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "money needed for", 60) {}
|
||||
|
||||
uint32 Calculate() override;
|
||||
uint32 Calculate() override;
|
||||
};
|
||||
|
||||
class TotalMoneyNeededForValue : public Uint32CalculatedValue, public Qualified
|
||||
{
|
||||
public:
|
||||
TotalMoneyNeededForValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "total money needed for", 60) { }
|
||||
public:
|
||||
TotalMoneyNeededForValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "total money needed for", 60) {}
|
||||
|
||||
uint32 Calculate() override;
|
||||
uint32 Calculate() override;
|
||||
|
||||
private:
|
||||
std::vector<NeedMoneyFor> saveMoneyFor = { NeedMoneyFor::guild,NeedMoneyFor::repair,NeedMoneyFor::ammo, NeedMoneyFor::spells, NeedMoneyFor::travel };
|
||||
private:
|
||||
std::vector<NeedMoneyFor> saveMoneyFor = {NeedMoneyFor::guild, NeedMoneyFor::repair, NeedMoneyFor::ammo,
|
||||
NeedMoneyFor::spells, NeedMoneyFor::travel};
|
||||
};
|
||||
|
||||
class FreeMoneyForValue : public Uint32CalculatedValue, public Qualified
|
||||
{
|
||||
public:
|
||||
FreeMoneyForValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "free money for") { }
|
||||
public:
|
||||
FreeMoneyForValue(PlayerbotAI* botAI) : Uint32CalculatedValue(botAI, "free money for") {}
|
||||
|
||||
uint32 Calculate() override;
|
||||
uint32 Calculate() override;
|
||||
};
|
||||
|
||||
class ShouldGetMoneyValue : public BoolCalculatedValue
|
||||
{
|
||||
public:
|
||||
ShouldGetMoneyValue(PlayerbotAI* botAI) : BoolCalculatedValue(botAI, "should get money",2) { }
|
||||
public:
|
||||
ShouldGetMoneyValue(PlayerbotAI* botAI) : BoolCalculatedValue(botAI, "should get money", 2) {}
|
||||
|
||||
bool Calculate() override;
|
||||
bool Calculate() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user