From 5941bddd979d937e1f04797d392159a9dc832481 Mon Sep 17 00:00:00 2001 From: Flekz Date: Thu, 26 Oct 2023 09:20:54 +0100 Subject: [PATCH] Remove bad files --- playerbot/strategy/hunter/HunterStrategy.cpp | 378 ------------------- playerbot/strategy/hunter/HunterStrategy.h | 170 --------- 2 files changed, 548 deletions(-) delete mode 100644 playerbot/strategy/hunter/HunterStrategy.cpp delete mode 100644 playerbot/strategy/hunter/HunterStrategy.h diff --git a/playerbot/strategy/hunter/HunterStrategy.cpp b/playerbot/strategy/hunter/HunterStrategy.cpp deleted file mode 100644 index 4d07c9379..000000000 --- a/playerbot/strategy/hunter/HunterStrategy.cpp +++ /dev/null @@ -1,378 +0,0 @@ -#include "botpch.h" -#include "../../playerbot.h" -#include "HunterStrategy.h" -#include "HunterAiObjectContext.h" - -using namespace ai; - -class HunterStrategyActionNodeFactory : public NamedObjectFactory -{ -public: - HunterStrategyActionNodeFactory() - { - creators["rapid fire"] = &rapid_fire; - creators["aspect of the pack"] = &aspect_of_the_pack; - creators["wing clip"] = &wing_clip; - //creators["freezing trap"] = &freezing_trap; - creators["scatter shot"] = &scatter_shot; - creators["concussive shot"] = &concussive_shot; - //creators["feign death"] = &feign_death; - creators["feign death threat"] = &feign_death_threat; - //creators["auto shot"] = &auto_shot; - } - -private: - ACTION_NODE_A(rapid_fire, "rapid fire", "readiness"); - - ACTION_NODE_A(aspect_of_the_pack, "aspect of the pack", "aspect of the cheetah"); - - ACTION_NODE_A(wing_clip, "wing clip", "raptor strike"); - - ACTION_NODE_A(scatter_shot, "scatter shot", "wing clip"); - - //ACTION_NODE_A(feign_death, "feign death", "scatter shot"); - - ACTION_NODE_A(concussive_shot, "concussive shot", "intimidation"); - - //ACTION_NODE_A(freezing_trap, "freezing trap", "remove feign death"); - - ACTION_NODE_C(feign_death_threat, "feign death", "remove feign death"); - - //ACTION_NODE_A(auto_shot, "auto shot", "melee"); -}; - -HunterStrategy::HunterStrategy(PlayerbotAI* ai) : ClassStrategy(ai) -{ - actionNodeFactories.Add(new HunterStrategyActionNodeFactory()); -} - -#ifdef MANGOSBOT_ZERO // Vanilla - -NextAction** HunterStrategy::GetDefaultCombatActions() -{ - return NextAction::array(0, new NextAction("auto shot", ACTION_IDLE), NULL); -} - -void HunterStrategy::InitCombatTriggers(std::list& triggers) -{ - ClassStrategy::InitCombatTriggers(triggers); - - /* - triggers.push_back(new TriggerNode( - "switch to ranged", - NextAction::array(0, new NextAction("switch to ranged", ACTION_HIGH), NULL))); - - triggers.push_back(new TriggerNode( - "switch to melee", - NextAction::array(0, new NextAction("switch to melee", ACTION_HIGH + 1), NULL))); - */ - - triggers.push_back(new TriggerNode( - "target of attacker close", - NextAction::array(0, new NextAction("deterrence", ACTION_HIGH + 2), NULL))); - - triggers.push_back(new TriggerNode( - "stealthed nearby", - NextAction::array(0, new NextAction("flare", ACTION_HIGH + 1), NULL))); - - triggers.push_back(new TriggerNode( - "hunters pet low health", - NextAction::array(0, new NextAction("mend pet", ACTION_HIGH), NULL))); - - triggers.push_back(new TriggerNode( - "no ammo", - NextAction::array(0, new NextAction("say::no ammo", ACTION_NORMAL), NULL))); - - /* - triggers.push_back(new TriggerNode( - "feign death", - NextAction::array(0, new NextAction("remove feign death", 63.0f), - new NextAction("freezing trap", 63.0f), NULL))); - */ - - /* - triggers.push_back(new TriggerNode( - "enemy is close", - NextAction::array(0, new NextAction("feign death", 62.0f), NULL))); - */ -} - -void HunterStrategy::InitNonCombatTriggers(std::list& triggers) -{ - ClassStrategy::InitNonCombatTriggers(triggers); -} - -void HunterStrategy::InitReactionTriggers(std::list& triggers) -{ - ClassStrategy::InitReactionTriggers(triggers); -} - -void HunterStrategy::InitDeadTriggers(std::list& triggers) -{ - ClassStrategy::InitDeadTriggers(triggers); -} - -void HunterPvpStrategy::InitCombatTriggers(std::list& triggers) -{ - ClassPvpStrategy::InitCombatTriggers(triggers); -} - -void HunterPvpStrategy::InitNonCombatTriggers(std::list& triggers) -{ - ClassPvpStrategy::InitNonCombatTriggers(triggers); -} - -void HunterPvpStrategy::InitReactionTriggers(std::list& triggers) -{ - ClassPvpStrategy::InitReactionTriggers(triggers); -} - -void HunterPvpStrategy::InitDeadTriggers(std::list& triggers) -{ - ClassPvpStrategy::InitDeadTriggers(triggers); -} - -void HunterPveStrategy::InitCombatTriggers(std::list& triggers) -{ - ClassPveStrategy::InitCombatTriggers(triggers); -} - -void HunterPveStrategy::InitNonCombatTriggers(std::list& triggers) -{ - ClassPveStrategy::InitNonCombatTriggers(triggers); -} - -void HunterPveStrategy::InitReactionTriggers(std::list& triggers) -{ - ClassPveStrategy::InitReactionTriggers(triggers); -} - -void HunterPveStrategy::InitDeadTriggers(std::list& triggers) -{ - ClassPveStrategy::InitDeadTriggers(triggers); -} - -void HunterRaidStrategy::InitCombatTriggers(std::list& triggers) -{ - ClassRaidStrategy::InitCombatTriggers(triggers); - - triggers.push_back(new TriggerNode( - "high threat", - NextAction::array(0, new NextAction("feign death", ACTION_EMERGENCY), NULL))); -} - -void HunterRaidStrategy::InitNonCombatTriggers(std::list& triggers) -{ - ClassRaidStrategy::InitNonCombatTriggers(triggers); -} - -void HunterRaidStrategy::InitReactionTriggers(std::list& triggers) -{ - ClassRaidStrategy::InitReactionTriggers(triggers); -} - -void HunterRaidStrategy::InitDeadTriggers(std::list& triggers) -{ - ClassRaidStrategy::InitDeadTriggers(triggers); -} - -void HunterAoeStrategy::InitCombatTriggers(std::list& triggers) -{ - AoeStrategy::InitCombatTriggers(triggers); - - triggers.push_back(new TriggerNode( - "ranged light aoe", - NextAction::array(0, new NextAction("explosive trap", ACTION_HIGH), NULL))); -} - -void HunterAoeStrategy::InitNonCombatTriggers(std::list& triggers) -{ - AoeStrategy::InitNonCombatTriggers(triggers); -} - -void HunterAoePvpStrategy::InitCombatTriggers(std::list& triggers) -{ - AoePvpStrategy::InitCombatTriggers(triggers); -} - -void HunterAoePvpStrategy::InitNonCombatTriggers(std::list& triggers) -{ - AoePvpStrategy::InitNonCombatTriggers(triggers); -} - -void HunterAoePveStrategy::InitCombatTriggers(std::list& triggers) -{ - AoePveStrategy::InitCombatTriggers(triggers); -} - -void HunterAoePveStrategy::InitNonCombatTriggers(std::list& triggers) -{ - AoePveStrategy::InitNonCombatTriggers(triggers); -} - -void HunterAoeRaidStrategy::InitCombatTriggers(std::list& triggers) -{ - AoeRaidStrategy::InitCombatTriggers(triggers); -} - -void HunterAoeRaidStrategy::InitNonCombatTriggers(std::list& triggers) -{ - AoeRaidStrategy::InitNonCombatTriggers(triggers); -} - -void HunterBuffStrategy::InitCombatTriggers(std::list& triggers) -{ - BuffStrategy::InitCombatTriggers(triggers); -} - -void HunterBuffStrategy::InitNonCombatTriggers(std::list& triggers) -{ - BuffStrategy::InitNonCombatTriggers(triggers); -} - -void HunterBuffPvpStrategy::InitCombatTriggers(std::list& triggers) -{ - BuffPvpStrategy::InitCombatTriggers(triggers); -} - -void HunterBuffPvpStrategy::InitNonCombatTriggers(std::list& triggers) -{ - BuffPvpStrategy::InitNonCombatTriggers(triggers); -} - -void HunterBuffPveStrategy::InitCombatTriggers(std::list& triggers) -{ - BuffPveStrategy::InitCombatTriggers(triggers); -} - -void HunterBuffPveStrategy::InitNonCombatTriggers(std::list& triggers) -{ - BuffPveStrategy::InitNonCombatTriggers(triggers); -} - -void HunterBuffRaidStrategy::InitCombatTriggers(std::list& triggers) -{ - BuffRaidStrategy::InitCombatTriggers(triggers); -} - -void HunterBuffRaidStrategy::InitNonCombatTriggers(std::list& triggers) -{ - BuffRaidStrategy::InitNonCombatTriggers(triggers); -} - -void HunterBoostStrategy::InitCombatTriggers(std::list& triggers) -{ - BoostStrategy::InitCombatTriggers(triggers); - - triggers.push_back(new TriggerNode( - "rapid fire", - NextAction::array(0, new NextAction("rapid fire", ACTION_HIGH + 5), NULL))); - - // MOVE TO BEASTMASTER - triggers.push_back(new TriggerNode( - "bestial wrath", - NextAction::array(0, new NextAction("bestial wrath", 16.0f), NULL))); -} - -void HunterBoostStrategy::InitNonCombatTriggers(std::list& triggers) -{ - BoostStrategy::InitNonCombatTriggers(triggers); -} - -void HunterBoostPvpStrategy::InitCombatTriggers(std::list& triggers) -{ - BoostPvpStrategy::InitCombatTriggers(triggers); -} - -void HunterBoostPvpStrategy::InitNonCombatTriggers(std::list& triggers) -{ - BoostPvpStrategy::InitNonCombatTriggers(triggers); -} - -void HunterBoostPveStrategy::InitCombatTriggers(std::list& triggers) -{ - BoostPveStrategy::InitCombatTriggers(triggers); -} - -void HunterBoostPveStrategy::InitNonCombatTriggers(std::list& triggers) -{ - BoostPveStrategy::InitNonCombatTriggers(triggers); -} - -void HunterBoostRaidStrategy::InitCombatTriggers(std::list& triggers) -{ - BoostRaidStrategy::InitCombatTriggers(triggers); -} - -void HunterBoostRaidStrategy::InitNonCombatTriggers(std::list& triggers) -{ - BoostRaidStrategy::InitNonCombatTriggers(triggers); -} - -void HunterCcStrategy::InitCombatTriggers(std::list& triggers) -{ - CcStrategy::InitCombatTriggers(triggers); - - triggers.push_back(new TriggerNode( - "scare beast", - NextAction::array(0, new NextAction("scare beast on cc", ACTION_HIGH + 3), NULL))); - - triggers.push_back(new TriggerNode( - "freezing trap", - NextAction::array(0, new NextAction("freezing trap on cc", ACTION_HIGH + 3), NULL))); - - triggers.push_back(new TriggerNode( - "enemy five yards", - NextAction::array(0, new NextAction("scatter shot", ACTION_HIGH + 2), NULL))); - - triggers.push_back(new TriggerNode( - "enemy fifteen yards", - NextAction::array(0, new NextAction("concussive shot", ACTION_HIGH + 1), NULL))); - - triggers.push_back(new TriggerNode( - "ranged light aoe", - NextAction::array(0, new NextAction("frost trap", ACTION_HIGH), NULL))); -} - -void HunterCcStrategy::InitNonCombatTriggers(std::list& triggers) -{ - CcStrategy::InitNonCombatTriggers(triggers); -} - -void HunterCcPvpStrategy::InitCombatTriggers(std::list& triggers) -{ - CcPvpStrategy::InitCombatTriggers(triggers); -} - -void HunterCcPvpStrategy::InitNonCombatTriggers(std::list& triggers) -{ - CcPvpStrategy::InitNonCombatTriggers(triggers); -} - -void HunterCcPveStrategy::InitCombatTriggers(std::list& triggers) -{ - CcPveStrategy::InitCombatTriggers(triggers); -} - -void HunterCcPveStrategy::InitNonCombatTriggers(std::list& triggers) -{ - CcPveStrategy::InitNonCombatTriggers(triggers); -} - -void HunterCcRaidStrategy::InitCombatTriggers(std::list& triggers) -{ - CcRaidStrategy::InitCombatTriggers(triggers); -} - -void HunterCcRaidStrategy::InitNonCombatTriggers(std::list& triggers) -{ - CcRaidStrategy::InitNonCombatTriggers(triggers); -} - -#endif -#ifdef MANGOSBOT_ONE // TBC - -#endif -#ifdef MANGOSBOT_TWO // WOTLK - -#endif \ No newline at end of file diff --git a/playerbot/strategy/hunter/HunterStrategy.h b/playerbot/strategy/hunter/HunterStrategy.h deleted file mode 100644 index 53c1e5607..000000000 --- a/playerbot/strategy/hunter/HunterStrategy.h +++ /dev/null @@ -1,170 +0,0 @@ -#pragma once -#include "../generic/ClassStrategy.h" - -namespace ai -{ - class HunterStrategy : public ClassStrategy - { - public: - HunterStrategy(PlayerbotAI* ai); - - protected: - virtual void InitCombatTriggers(std::list& triggers) override; - virtual void InitNonCombatTriggers(std::list& triggers) override; - virtual void InitReactionTriggers(std::list& triggers) override; - virtual void InitDeadTriggers(std::list& triggers) override; - - virtual NextAction** GetDefaultCombatActions() override; - }; - - class HunterPvpStrategy : public ClassPvpStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - static void InitReactionTriggers(std::list& triggers); - static void InitDeadTriggers(std::list& triggers); - }; - - class HunterPveStrategy : public ClassPveStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - static void InitReactionTriggers(std::list& triggers); - static void InitDeadTriggers(std::list& triggers); - }; - - class HunterRaidStrategy : public ClassRaidStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - static void InitReactionTriggers(std::list& triggers); - static void InitDeadTriggers(std::list& triggers); - }; - - class HunterAoeStrategy : public AoeStrategy - { - public: - HunterAoeStrategy(PlayerbotAI* ai) : AoeStrategy(ai) {} - - protected: - virtual void InitCombatTriggers(std::list& triggers) override; - virtual void InitNonCombatTriggers(std::list& triggers) override; - }; - - class HunterAoePvpStrategy : public AoePvpStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterAoePveStrategy : public AoePveStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterAoeRaidStrategy : public AoeRaidStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterBuffStrategy : public BuffStrategy - { - public: - HunterBuffStrategy(PlayerbotAI* ai) : BuffStrategy(ai) {} - - protected: - virtual void InitCombatTriggers(std::list& triggers) override; - virtual void InitNonCombatTriggers(std::list& triggers) override; - }; - - class HunterBuffPvpStrategy : public BuffPvpStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterBuffPveStrategy : public BuffPveStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterBuffRaidStrategy : public BuffRaidStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterBoostStrategy : public BoostStrategy - { - public: - HunterBoostStrategy(PlayerbotAI* ai) : BoostStrategy(ai) {} - - protected: - virtual void InitCombatTriggers(std::list& triggers) override; - virtual void InitNonCombatTriggers(std::list& triggers) override; - }; - - class HunterBoostPvpStrategy : public BoostPvpStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterBoostPveStrategy : public BoostPveStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterBoostRaidStrategy : public BoostRaidStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterCcStrategy : public CcStrategy - { - public: - HunterCcStrategy(PlayerbotAI* ai) : CcStrategy(ai) {} - - protected: - virtual void InitCombatTriggers(std::list& triggers) override; - virtual void InitNonCombatTriggers(std::list& triggers) override; - }; - - class HunterCcPvpStrategy : public CcPvpStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterCcPveStrategy : public CcPveStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; - - class HunterCcRaidStrategy : public CcRaidStrategy - { - public: - static void InitCombatTriggers(std::list& triggers); - static void InitNonCombatTriggers(std::list& triggers); - }; -} \ No newline at end of file