mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
48 lines
1.2 KiB
C++
48 lines
1.2 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_THREATSTRATEGY_H
|
|
#define _PLAYERBOT_THREATSTRATEGY_H
|
|
|
|
#include "Strategy.h"
|
|
|
|
class PlayerbotAI;
|
|
|
|
class ThreatMultiplier : public Multiplier
|
|
{
|
|
public:
|
|
ThreatMultiplier(PlayerbotAI* botAI) : Multiplier(botAI, "threat") {}
|
|
|
|
float GetValue(Action* action) override;
|
|
};
|
|
|
|
class ThreatStrategy : public Strategy
|
|
{
|
|
public:
|
|
ThreatStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
|
|
|
|
void InitMultipliers(std::vector<Multiplier*>& multipliers) override;
|
|
std::string const getName() override { return "threat"; }
|
|
};
|
|
|
|
class FocusMultiplier : public Multiplier
|
|
{
|
|
public:
|
|
FocusMultiplier(PlayerbotAI* botAI) : Multiplier(botAI, "focus") {}
|
|
|
|
float GetValue(Action* action) override;
|
|
};
|
|
|
|
class FocusStrategy : public Strategy
|
|
{
|
|
public:
|
|
FocusStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
|
|
|
|
void InitMultipliers(std::vector<Multiplier*>& multipliers) override;
|
|
std::string const getName() override { return "focus"; }
|
|
};
|
|
|
|
#endif
|