mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 01:49:09 +00:00
21 lines
692 B
C++
21 lines
692 B
C++
#ifndef _PLAYERBOT_RAIDSTRATEGYCONTEXT_H_
|
|
#define _PLAYERBOT_RAIDSTRATEGYCONTEXT_H_
|
|
|
|
#include "Strategy.h"
|
|
#include "raids/blackwinglair/RaidBwlStrategy.h"
|
|
#include "raids/naxxramas/RaidNaxxStrategy.h"
|
|
|
|
class RaidStrategyContext : public NamedObjectContext<Strategy>
|
|
{
|
|
public:
|
|
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 |