mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-01 18:03:47 +00:00
Big update.
This commit is contained in:
32
src/strategy/actions/TellMasterAction.h
Normal file
32
src/strategy/actions/TellMasterAction.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_TELLMASTERACTION_H
|
||||
#define _PLAYERBOT_TELLMASTERACTION_H
|
||||
|
||||
#include "MovementActions.h"
|
||||
|
||||
class PlayerbotAI;
|
||||
|
||||
class TellMasterAction : public Action
|
||||
{
|
||||
public:
|
||||
TellMasterAction(PlayerbotAI* botAI, std::string const text) : Action(botAI, "tell master"), text(text) { }
|
||||
|
||||
bool Execute(Event event) override;
|
||||
|
||||
private:
|
||||
std::string const text;
|
||||
};
|
||||
|
||||
class OutOfReactRangeAction : public MovementAction
|
||||
{
|
||||
public:
|
||||
OutOfReactRangeAction(PlayerbotAI* botAI) : MovementAction(botAI, "tell out of react range") { }
|
||||
|
||||
bool Execute(Event event) override;
|
||||
bool isUseful() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user