mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-01 09:53:47 +00:00
Big update.
This commit is contained in:
60
src/strategy/actions/LfgActions.h
Normal file
60
src/strategy/actions/LfgActions.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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
|
||||
Reference in New Issue
Block a user