mod-playerbots/src/strategy/dungeons/wotlk/gundrak/GundrakTriggerContext.h
Bobblybook 608f9d1a68 Gundrak implementation
EASY one for once
2024-10-13 21:21:40 +11:00

22 lines
735 B
C++

#ifndef _PLAYERBOT_WOTLKDUNGEONGDTRIGGERCONTEXT_H
#define _PLAYERBOT_WOTLKDUNGEONGDTRIGGERCONTEXT_H
#include "NamedObjectContext.h"
#include "AiObjectContext.h"
#include "GundrakTriggers.h"
class WotlkDungeonGDTriggerContext : public NamedObjectContext<Trigger>
{
public:
WotlkDungeonGDTriggerContext()
{
creators["poison nova"] = &WotlkDungeonGDTriggerContext::poison_nova;
creators["whirling slash"] = &WotlkDungeonGDTriggerContext::whirling_slash;
}
private:
static Trigger* poison_nova(PlayerbotAI* ai) { return new SladranPoisonNovaTrigger(ai); }
static Trigger* whirling_slash(PlayerbotAI* ai) { return new GaldarahWhirlingSlashTrigger(ai); }
};
#endif