Files
mod-playerbots/src/strategy/actions/StayActions.h
2022-03-12 22:27:09 +01:00

40 lines
962 B
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_STAYACTIONS_H
#define _PLAYERBOT_STAYACTIONS_H
#include "MovementActions.h"
class PlayerbotAI;
class StayActionBase : public MovementAction
{
public:
StayActionBase(PlayerbotAI* botAI, std::string const name) : MovementAction(botAI, name) { }
protected:
bool Stay();
};
class StayAction : public StayActionBase
{
public:
StayAction(PlayerbotAI* botAI) : StayActionBase(botAI, "stay") { }
bool Execute(Event event) override;
bool isUseful() override;
};
class SitAction : public StayActionBase
{
public:
SitAction(PlayerbotAI* botAI) : StayActionBase(botAI, "sit") { }
bool Execute(Event event) override;
bool isUseful() override;
};
#endif