bwl strategy

This commit is contained in:
Yunfan Li
2023-08-28 21:21:58 +08:00
parent b97876dbc2
commit dba908be9e
18 changed files with 196 additions and 20 deletions

View File

@@ -2,7 +2,8 @@
#define _PLAYERBOT_RAIDSTRATEGYCONTEXT_H_
#include "Strategy.h"
#include "RaidNaxxStrategy.h"
#include "raids/blackwinglair/RaidBwlStrategy.h"
#include "raids/naxxramas/RaidNaxxStrategy.h"
class RaidStrategyContext : public NamedObjectContext<Strategy>
{
@@ -10,9 +11,11 @@ class RaidStrategyContext : public NamedObjectContext<Strategy>
RaidStrategyContext() : NamedObjectContext<Strategy>(false, true)
{
creators["naxx"] = &RaidStrategyContext::naxx;
creators["bwl"] = &RaidStrategyContext::bwl;
}
private:
static Strategy* naxx(PlayerbotAI* botAI) { return new RaidNaxxStrategy(botAI); }
static Strategy* bwl(PlayerbotAI* botAI) { return new RaidBwlStrategy(botAI); }
};
#endif