Files
mod-playerbots/src/strategy/dungeons/wotlk/hallsofstone/HallsOfStoneActionContext.h
2024-10-15 22:40:47 +11:00

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