mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 09:50:27 +00:00
62 lines
1.4 KiB
C++
62 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it
|
|
* and/or modify it under version 2 of the License, or (at your option), any later version.
|
|
*/
|
|
|
|
#ifndef _PLAYERBOT_LFGACTIONS_H
|
|
#define _PLAYERBOT_LFGACTIONS_H
|
|
|
|
#include "InventoryAction.h"
|
|
|
|
class PlayerbotAI;
|
|
|
|
class LfgJoinAction : public InventoryAction
|
|
{
|
|
public:
|
|
LfgJoinAction(PlayerbotAI* botAI, std::string const name = "lfg join") : InventoryAction(botAI, name) {}
|
|
|
|
bool Execute(Event event) override;
|
|
bool isUseful() override;
|
|
|
|
protected:
|
|
bool JoinLFG();
|
|
uint32 GetRoles();
|
|
};
|
|
|
|
class LfgAcceptAction : public LfgJoinAction
|
|
{
|
|
public:
|
|
LfgAcceptAction(PlayerbotAI* botAI) : LfgJoinAction(botAI, "lfg accept") {}
|
|
|
|
bool Execute(Event event) override;
|
|
bool isUseful() override { return true; }
|
|
};
|
|
|
|
class LfgRoleCheckAction : public LfgJoinAction
|
|
{
|
|
public:
|
|
LfgRoleCheckAction(PlayerbotAI* botAI) : LfgJoinAction(botAI, "lfg role check") {}
|
|
|
|
bool Execute(Event event) override;
|
|
bool isUseful() override { return true; }
|
|
};
|
|
|
|
class LfgLeaveAction : public Action
|
|
{
|
|
public:
|
|
LfgLeaveAction(PlayerbotAI* botAI) : Action(botAI, "lfg leave") {}
|
|
|
|
bool Execute(Event event) override;
|
|
bool isUseful() override;
|
|
};
|
|
|
|
class LfgTeleportAction : public Action
|
|
{
|
|
public:
|
|
LfgTeleportAction(PlayerbotAI* botAI) : Action(botAI, "lfg teleport") {}
|
|
|
|
bool Execute(Event event) override;
|
|
};
|
|
|
|
#endif
|