mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-18 11:15:43 +00:00
refactor: naxxramas and kel'thuzad strategy
This commit is contained in:
@@ -85,6 +85,7 @@
|
||||
#include "TankTargetValue.h"
|
||||
#include "ThreatValues.h"
|
||||
#include "TradeValues.h"
|
||||
#include "Value.h"
|
||||
|
||||
class PlayerbotAI;
|
||||
|
||||
@@ -289,6 +290,7 @@ class ValueContext : public NamedObjectContext<UntypedValue>
|
||||
creators["main tank"] = &ValueContext::main_tank;
|
||||
creators["find target"] = &ValueContext::find_target;
|
||||
creators["boss target"] = &ValueContext::boss_target;
|
||||
creators["nearest triggers"] = &ValueContext::nearest_triggers;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -483,6 +485,7 @@ class ValueContext : public NamedObjectContext<UntypedValue>
|
||||
static UntypedValue* main_tank(PlayerbotAI* ai) { return new PartyMemberMainTankValue(ai); }
|
||||
static UntypedValue* find_target(PlayerbotAI* ai) { return new FindTargetValue(ai); }
|
||||
static UntypedValue* boss_target(PlayerbotAI* ai) { return new BossTargetValue(ai); }
|
||||
static UntypedValue* nearest_triggers(PlayerbotAI* ai) { return new NearestTriggersValue(ai); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user