mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-05 11:53:49 +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_ROGUEACTIONS_H
|
||||
@@ -12,156 +13,156 @@ class PlayerbotAI;
|
||||
|
||||
class CastEvasionAction : public CastBuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastEvasionAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "evasion") { }
|
||||
public:
|
||||
CastEvasionAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "evasion") {}
|
||||
};
|
||||
|
||||
class CastHungerForBloodAction : public CastBuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastHungerForBloodAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "hunger for blood") { }
|
||||
std::string const GetTargetName() override { return "current target"; }
|
||||
public:
|
||||
CastHungerForBloodAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "hunger for blood") {}
|
||||
std::string const GetTargetName() override { return "current target"; }
|
||||
};
|
||||
|
||||
class CastSprintAction : public CastBuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastSprintAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "sprint") { }
|
||||
public:
|
||||
CastSprintAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "sprint") {}
|
||||
|
||||
std::string const GetTargetName() override { return "self target"; }
|
||||
std::string const GetTargetName() override { return "self target"; }
|
||||
};
|
||||
|
||||
class CastStealthAction : public CastBuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastStealthAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "stealth") { }
|
||||
public:
|
||||
CastStealthAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "stealth") {}
|
||||
|
||||
std::string const GetTargetName() override { return "self target"; }
|
||||
std::string const GetTargetName() override { return "self target"; }
|
||||
|
||||
bool isPossible() override;
|
||||
bool isPossible() override;
|
||||
};
|
||||
|
||||
class UnstealthAction : public Action
|
||||
{
|
||||
public:
|
||||
UnstealthAction(PlayerbotAI* botAI) : Action(botAI, "unstealth") { }
|
||||
public:
|
||||
UnstealthAction(PlayerbotAI* botAI) : Action(botAI, "unstealth") {}
|
||||
|
||||
bool Execute(Event event) override;
|
||||
bool Execute(Event event) override;
|
||||
};
|
||||
|
||||
class CheckStealthAction : public Action
|
||||
{
|
||||
public:
|
||||
CheckStealthAction(PlayerbotAI* botAI) : Action(botAI, "check stealth") { }
|
||||
public:
|
||||
CheckStealthAction(PlayerbotAI* botAI) : Action(botAI, "check stealth") {}
|
||||
|
||||
bool isPossible() override { return true; }
|
||||
bool Execute(Event event) override;
|
||||
bool isPossible() override { return true; }
|
||||
bool Execute(Event event) override;
|
||||
};
|
||||
|
||||
class CastKickAction : public CastSpellAction
|
||||
{
|
||||
public:
|
||||
CastKickAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "kick") { }
|
||||
public:
|
||||
CastKickAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "kick") {}
|
||||
};
|
||||
|
||||
class CastFeintAction : public CastBuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastFeintAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "feint") { }
|
||||
public:
|
||||
CastFeintAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "feint") {}
|
||||
};
|
||||
|
||||
class CastDismantleAction : public CastSpellAction
|
||||
{
|
||||
public:
|
||||
CastDismantleAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "dismantle") { }
|
||||
public:
|
||||
CastDismantleAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "dismantle") {}
|
||||
};
|
||||
|
||||
class CastDistractAction : public CastSpellAction
|
||||
{
|
||||
public:
|
||||
CastDistractAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "distract") { }
|
||||
public:
|
||||
CastDistractAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "distract") {}
|
||||
};
|
||||
|
||||
class CastVanishAction : public CastBuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastVanishAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "vanish") { }
|
||||
public:
|
||||
CastVanishAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "vanish") {}
|
||||
|
||||
bool isUseful() override;
|
||||
bool isUseful() override;
|
||||
};
|
||||
|
||||
class CastBlindAction : public CastDebuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastBlindAction(PlayerbotAI* botAI) : CastDebuffSpellAction(botAI, "blind") { }
|
||||
public:
|
||||
CastBlindAction(PlayerbotAI* botAI) : CastDebuffSpellAction(botAI, "blind") {}
|
||||
};
|
||||
|
||||
class CastBladeFlurryAction : public CastBuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastBladeFlurryAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "blade flurry") { }
|
||||
public:
|
||||
CastBladeFlurryAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "blade flurry") {}
|
||||
};
|
||||
|
||||
class CastAdrenalineRushAction : public CastBuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastAdrenalineRushAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "adrenaline rush") { }
|
||||
public:
|
||||
CastAdrenalineRushAction(PlayerbotAI* botAI) : CastBuffSpellAction(botAI, "adrenaline rush") {}
|
||||
};
|
||||
|
||||
class CastKillingSpreeAction : public CastMeleeSpellAction
|
||||
{
|
||||
public:
|
||||
CastKillingSpreeAction(PlayerbotAI* botAI) : CastMeleeSpellAction(botAI, "killing spree") { }
|
||||
public:
|
||||
CastKillingSpreeAction(PlayerbotAI* botAI) : CastMeleeSpellAction(botAI, "killing spree") {}
|
||||
};
|
||||
|
||||
class CastKickOnEnemyHealerAction : public CastSpellOnEnemyHealerAction
|
||||
{
|
||||
public:
|
||||
CastKickOnEnemyHealerAction(PlayerbotAI* botAI) : CastSpellOnEnemyHealerAction(botAI, "kick") { }
|
||||
public:
|
||||
CastKickOnEnemyHealerAction(PlayerbotAI* botAI) : CastSpellOnEnemyHealerAction(botAI, "kick") {}
|
||||
};
|
||||
|
||||
class EnvenomAction : public CastMeleeSpellAction
|
||||
{
|
||||
public:
|
||||
EnvenomAction(PlayerbotAI* ai) : CastMeleeSpellAction(ai, "envenom") {}
|
||||
public:
|
||||
EnvenomAction(PlayerbotAI* ai) : CastMeleeSpellAction(ai, "envenom") {}
|
||||
};
|
||||
|
||||
class CastTricksOfTheTradeOnMainTankAction : public BuffOnMainTankAction
|
||||
{
|
||||
public:
|
||||
CastTricksOfTheTradeOnMainTankAction(PlayerbotAI* ai) : BuffOnMainTankAction(ai, "tricks of the trade", true) {}
|
||||
virtual bool isUseful() override;
|
||||
public:
|
||||
CastTricksOfTheTradeOnMainTankAction(PlayerbotAI* ai) : BuffOnMainTankAction(ai, "tricks of the trade", true) {}
|
||||
virtual bool isUseful() override;
|
||||
};
|
||||
|
||||
class UseDeadlyPoisonAction : public UseItemAction
|
||||
{
|
||||
public:
|
||||
UseDeadlyPoisonAction(PlayerbotAI* ai) : UseItemAction(ai, "Deadly Poison") {}
|
||||
virtual bool Execute(Event event) override;
|
||||
virtual bool isPossible() override;
|
||||
public:
|
||||
UseDeadlyPoisonAction(PlayerbotAI* ai) : UseItemAction(ai, "Deadly Poison") {}
|
||||
virtual bool Execute(Event event) override;
|
||||
virtual bool isPossible() override;
|
||||
};
|
||||
|
||||
class UseInstantPoisonAction : public UseItemAction
|
||||
{
|
||||
public:
|
||||
UseInstantPoisonAction(PlayerbotAI* ai) : UseItemAction(ai, "Instant Poison") {}
|
||||
virtual bool Execute(Event event) override;
|
||||
virtual bool isPossible() override;
|
||||
public:
|
||||
UseInstantPoisonAction(PlayerbotAI* ai) : UseItemAction(ai, "Instant Poison") {}
|
||||
virtual bool Execute(Event event) override;
|
||||
virtual bool isPossible() override;
|
||||
};
|
||||
|
||||
class UseInstantPoisonOffHandAction : public UseItemAction
|
||||
{
|
||||
public:
|
||||
UseInstantPoisonOffHandAction(PlayerbotAI* ai) : UseItemAction(ai, "Instant Poison Off Hand") {}
|
||||
virtual bool Execute(Event event) override;
|
||||
virtual bool isPossible() override;
|
||||
public:
|
||||
UseInstantPoisonOffHandAction(PlayerbotAI* ai) : UseItemAction(ai, "Instant Poison Off Hand") {}
|
||||
virtual bool Execute(Event event) override;
|
||||
virtual bool isPossible() override;
|
||||
};
|
||||
|
||||
class FanOfKnivesAction : public CastMeleeSpellAction
|
||||
{
|
||||
public:
|
||||
FanOfKnivesAction(PlayerbotAI* ai) : CastMeleeSpellAction(ai, "fan of knives") {}
|
||||
ActionThreatType getThreatType() override { return ActionThreatType::Aoe; }
|
||||
public:
|
||||
FanOfKnivesAction(PlayerbotAI* ai) : CastMeleeSpellAction(ai, "fan of knives") {}
|
||||
ActionThreatType getThreatType() override { return ActionThreatType::Aoe; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user