mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-23 13:36:23 +00:00
21 lines
736 B
C++
21 lines
736 B
C++
#ifndef _PLAYERBOT_WOTLKDUNGEONHOSACTIONCONTEXT_H
|
|
#define _PLAYERBOT_WOTLKDUNGEONHOSACTIONCONTEXT_H
|
|
|
|
#include "Action.h"
|
|
#include "NamedObjectContext.h"
|
|
#include "HallsOfStoneActions.h"
|
|
|
|
class WotlkDungeonHoSActionContext : public NamedObjectContext<Action>
|
|
{
|
|
public:
|
|
WotlkDungeonHoSActionContext() {
|
|
creators["shatter spread"] = &WotlkDungeonHoSActionContext::shatter_spread;
|
|
creators["avoid lightning ring"] = &WotlkDungeonHoSActionContext::avoid_lightning_ring;
|
|
}
|
|
private:
|
|
static Action* shatter_spread(PlayerbotAI* ai) { return new ShatterSpreadAction(ai); }
|
|
static Action* avoid_lightning_ring(PlayerbotAI* ai) { return new AvoidLightningRingAction(ai); }
|
|
};
|
|
|
|
#endif
|