mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
refactor raid naxx related
This commit is contained in:
18
src/strategy/raids/RaidStrategyContext.h
Normal file
18
src/strategy/raids/RaidStrategyContext.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _PLAYERBOT_RAIDSTRATEGYCONTEXT_H_
|
||||
#define _PLAYERBOT_RAIDSTRATEGYCONTEXT_H_
|
||||
|
||||
#include "Strategy.h"
|
||||
#include "RaidNaxxStrategy.h"
|
||||
|
||||
class RaidStrategyContext : public NamedObjectContext<Strategy>
|
||||
{
|
||||
public:
|
||||
RaidStrategyContext() : NamedObjectContext<Strategy>(false, true)
|
||||
{
|
||||
creators["naxx"] = &RaidStrategyContext::naxx;
|
||||
}
|
||||
private:
|
||||
static Strategy* naxx(PlayerbotAI* botAI) { return new RaidNaxxStrategy(botAI); }
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user