mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-21 20:46:22 +00:00
Refactor instance suggestions
This commit is contained in:
33
src/strategy/actions/SuggestDungeonAction.h
Normal file
33
src/strategy/actions/SuggestDungeonAction.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* 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_SUGGESTINSTANCEACTION_H
|
||||
#define _PLAYERBOT_SUGGESTINSTANCEACTION_H
|
||||
|
||||
#include "SuggestWhatToDoAction.h"
|
||||
#include "PlayerbotDungeonSuggestionMgr.h"
|
||||
#include "PlaceholderHelper.h"
|
||||
|
||||
typedef std::vector<DungeonSuggestion> DungeonSuggestions;
|
||||
|
||||
class SuggestDungeonAction : public SuggestWhatToDoAction
|
||||
{
|
||||
public:
|
||||
SuggestDungeonAction(PlayerbotAI* botAI);
|
||||
|
||||
bool Execute(Event event) override;
|
||||
bool isUseful() override { return true; }
|
||||
|
||||
private:
|
||||
static DungeonSuggestions m_dungeonSuggestions;
|
||||
|
||||
DungeonSuggestions const GetDungeonSuggestionsEligibleFor(Player* bot);
|
||||
PlaceholderMap MapPlaceholders(
|
||||
Player* bot,
|
||||
DungeonSuggestion const* dungeonSuggestion
|
||||
);
|
||||
std::string PlayerbotsTextKeyByMapKey(PlaceholderMap const& placeholders);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user