mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Created bgreater strat and trigger/action contexts
This commit is contained in:
@@ -68,6 +68,7 @@ public:
|
||||
creators["bmana"] = &PaladinBuffStrategyFactoryInternal::bmana;
|
||||
creators["bdps"] = &PaladinBuffStrategyFactoryInternal::bdps;
|
||||
creators["bstats"] = &PaladinBuffStrategyFactoryInternal::bstats;
|
||||
creators["bgreater"] = &PaladinBuffStrategyFactoryInternal::bgreater;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -75,6 +76,8 @@ private:
|
||||
static Strategy* bmana(PlayerbotAI* botAI) { return new PaladinBuffManaStrategy(botAI); }
|
||||
static Strategy* bdps(PlayerbotAI* botAI) { return new PaladinBuffDpsStrategy(botAI); }
|
||||
static Strategy* bstats(PlayerbotAI* botAI) { return new PaladinBuffStatsStrategy(botAI); }
|
||||
|
||||
static Strategy* bgreater(PlayerbotAI* botAI) { return new PaladinBuffGreaterBlessingStrategy(botAI); }
|
||||
};
|
||||
|
||||
class PaladinCombatStrategyFactoryInternal : public NamedObjectContext<Strategy>
|
||||
@@ -142,6 +145,8 @@ public:
|
||||
creators["blessing of might on party"] = &PaladinTriggerFactoryInternal::blessing_of_might_on_party;
|
||||
|
||||
creators["avenging wrath"] = &PaladinTriggerFactoryInternal::avenging_wrath;
|
||||
creators["cast greater blessing"] = &PaladinTriggerFactoryInternal::cast_greater_blessing;
|
||||
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -208,6 +213,8 @@ private:
|
||||
static Trigger* blessing_of_might_on_party(PlayerbotAI* botAI) { return new BlessingOfMightOnPartyTrigger(botAI); }
|
||||
|
||||
static Trigger* avenging_wrath(PlayerbotAI* botAI) { return new AvengingWrathTrigger(botAI); }
|
||||
static Trigger* cast_greater_blessing(PlayerbotAI* botAI) { return new CastGreaterBlessingTrigger(botAI); }
|
||||
|
||||
};
|
||||
|
||||
class PaladinAiObjectContextInternal : public NamedObjectContext<Action>
|
||||
@@ -294,6 +301,7 @@ public:
|
||||
creators["divine illumination"] = &PaladinAiObjectContextInternal::divine_illumination;
|
||||
creators["divine sacrifice"] = &PaladinAiObjectContextInternal::divine_sacrifice;
|
||||
creators["cancel divine sacrifice"] = &PaladinAiObjectContextInternal::cancel_divine_sacrifice;
|
||||
creators["cast greater blessing"] = &PaladinAiObjectContextInternal::cast_greater_blessing;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -395,6 +403,7 @@ private:
|
||||
static Action* divine_illumination(PlayerbotAI* ai) { return new CastDivineIlluminationAction(ai); }
|
||||
static Action* divine_sacrifice(PlayerbotAI* ai) { return new CastDivineSacrificeAction(ai); }
|
||||
static Action* cancel_divine_sacrifice(PlayerbotAI* ai) { return new CastCancelDivineSacrificeAction(ai); }
|
||||
static Action* cast_greater_blessing(PlayerbotAI* ai) { return new CastGreaterBlessingAction(ai); }
|
||||
};
|
||||
|
||||
PaladinAiObjectContext::PaladinAiObjectContext(PlayerbotAI* botAI) : AiObjectContext(botAI)
|
||||
|
||||
Reference in New Issue
Block a user