mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 01:49:09 +00:00
Tank face and dps behind
This commit is contained in:
@@ -70,7 +70,7 @@ AvoidAoeStrategy::AvoidAoeStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
|
||||
|
||||
NextAction** AvoidAoeStrategy::getDefaultActions()
|
||||
{
|
||||
return NextAction::array(0, new NextAction("aaoe", ACTION_EMERGENCY), nullptr);
|
||||
return NextAction::array(0, new NextAction("avoid aoe", ACTION_EMERGENCY), nullptr);
|
||||
}
|
||||
|
||||
void AvoidAoeStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
@@ -85,6 +85,17 @@ void AvoidAoeStrategy::InitMultipliers(std::vector<Multiplier*>& multipliers)
|
||||
// multipliers.push_back(new AvoidAoeStrategyMultiplier(botAI));
|
||||
}
|
||||
|
||||
TankFaceStrategy::TankFaceStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
|
||||
|
||||
NextAction** TankFaceStrategy::getDefaultActions()
|
||||
{
|
||||
return NextAction::array(0, new NextAction("tank face", ACTION_MOVE), nullptr);
|
||||
}
|
||||
|
||||
void TankFaceStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
{
|
||||
}
|
||||
|
||||
NextAction** CombatFormationStrategy::getDefaultActions()
|
||||
{
|
||||
return NextAction::array(0, new NextAction("combat formation move", ACTION_NORMAL), nullptr);
|
||||
|
||||
@@ -23,12 +23,21 @@ class AvoidAoeStrategy : public Strategy
|
||||
{
|
||||
public:
|
||||
explicit AvoidAoeStrategy(PlayerbotAI* ai);
|
||||
const std::string getName() override { return "aaoe"; }
|
||||
const std::string getName() override { return "avoid aoe"; }
|
||||
NextAction** getDefaultActions() override;
|
||||
void InitMultipliers(std::vector<Multiplier*>& multipliers) override;
|
||||
void InitTriggers(std::vector<TriggerNode*>& triggers) override;
|
||||
};
|
||||
|
||||
class TankFaceStrategy : public Strategy
|
||||
{
|
||||
public:
|
||||
explicit TankFaceStrategy(PlayerbotAI* ai);
|
||||
const std::string getName() override { return "tank face"; }
|
||||
NextAction** getDefaultActions() override;
|
||||
void InitTriggers(std::vector<TriggerNode*>& triggers) override;
|
||||
};
|
||||
|
||||
class CombatFormationStrategy : public Strategy
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -10,46 +10,10 @@
|
||||
|
||||
class PlayerbotAI;
|
||||
|
||||
// Yunfan: deprecate old save mana method.
|
||||
|
||||
// class ConserveManaMultiplier : public Multiplier
|
||||
// {
|
||||
// public:
|
||||
// ConserveManaMultiplier(PlayerbotAI* botAI) : Multiplier(botAI, "conserve mana") { }
|
||||
|
||||
// float GetValue(Action* action) override;
|
||||
// };
|
||||
|
||||
// class SaveManaMultiplier : public Multiplier
|
||||
// {
|
||||
// public:
|
||||
// SaveManaMultiplier(PlayerbotAI* botAI) : Multiplier(botAI, "save mana") { }
|
||||
|
||||
// float GetValue(Action* action) override;
|
||||
// };
|
||||
|
||||
// class ConserveManaStrategy : public Strategy
|
||||
// {
|
||||
// public:
|
||||
// ConserveManaStrategy(PlayerbotAI* botAI) : Strategy(botAI) { }
|
||||
|
||||
// void InitMultipliers(std::vector<Multiplier*>& multipliers) override;
|
||||
// std::string const getName() override { return "conserve mana"; }
|
||||
// };
|
||||
|
||||
// class HealerSaveManaStrategy : public Strategy
|
||||
// {
|
||||
// public:
|
||||
// HealerSaveManaStrategy(PlayerbotAI* botAI) : Strategy(botAI) { }
|
||||
|
||||
// void InitMultipliers(std::vector<Multiplier*>& multipliers) override;
|
||||
// std::string const getName() override { return "healer save mana"; }
|
||||
// };
|
||||
|
||||
class HealerAutoSaveManaMultiplier : public Multiplier
|
||||
{
|
||||
public:
|
||||
HealerAutoSaveManaMultiplier(PlayerbotAI* botAI) : Multiplier(botAI, "smana") {}
|
||||
HealerAutoSaveManaMultiplier(PlayerbotAI* botAI) : Multiplier(botAI, "save mana") {}
|
||||
|
||||
float GetValue(Action* action) override;
|
||||
};
|
||||
@@ -60,7 +24,7 @@ public:
|
||||
HealerAutoSaveManaStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
|
||||
|
||||
void InitMultipliers(std::vector<Multiplier*>& multipliers) override;
|
||||
std::string const getName() override { return "smana"; }
|
||||
std::string const getName() override { return "save mana"; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user