mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-21 07:59:25 +02:00
29 lines
1.2 KiB
C++
29 lines
1.2 KiB
C++
#ifndef _PLAYERBOT_RAIDONYXIAACTIONS_CONTEXT_H
|
|
#define _PLAYERBOT_RAIDONYXIAACTIONS_CONTEXT_H
|
|
|
|
#include "Action.h"
|
|
#include "NamedObjectContext.h"
|
|
#include "RaidOnyxiaActions.h"
|
|
|
|
class RaidOnyxiaActionContext : public NamedObjectContext<Action>
|
|
{
|
|
public:
|
|
RaidOnyxiaActionContext()
|
|
{
|
|
creators["ony move to side"] = &RaidOnyxiaActionContext::move_to_side;
|
|
creators["ony spread out"] = &RaidOnyxiaActionContext::spread_out;
|
|
creators["ony move to safe zone"] = &RaidOnyxiaActionContext::move_to_safe_zone;
|
|
creators["ony kill whelps"] = &RaidOnyxiaActionContext::kill_whelps;
|
|
creators["ony avoid eggs move"] = &RaidOnyxiaActionContext::avoid_eggs;
|
|
}
|
|
|
|
private:
|
|
static Action* move_to_side(PlayerbotAI* ai) { return new RaidOnyxiaMoveToSideAction(ai); }
|
|
static Action* spread_out(PlayerbotAI* ai) { return new RaidOnyxiaSpreadOutAction(ai); }
|
|
static Action* move_to_safe_zone(PlayerbotAI* ai) { return new RaidOnyxiaMoveToSafeZoneAction(ai); }
|
|
static Action* kill_whelps(PlayerbotAI* ai) { return new RaidOnyxiaKillWhelpsAction(ai); }
|
|
static Action* avoid_eggs(PlayerbotAI* ai) { return new OnyxiaAvoidEggsAction(ai); }
|
|
};
|
|
|
|
#endif
|