2018-08-12 13:31:31 +02:00
|
|
|
/*
|
2018-12-01 10:30:37 +02:00
|
|
|
* AIPathfinderConfig.h, part of VCMI engine
|
2018-08-12 13:31:31 +02:00
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AINodeStorage.h"
|
2018-10-09 21:31:44 +02:00
|
|
|
#include "../VCAI.h"
|
2023-06-21 12:46:09 +02:00
|
|
|
#include "../../../lib/pathfinder/PathfinderOptions.h"
|
2018-08-12 13:31:31 +02:00
|
|
|
|
2018-11-03 15:25:14 +02:00
|
|
|
namespace AIPathfinding
|
2018-08-12 13:31:31 +02:00
|
|
|
{
|
2018-11-03 15:25:14 +02:00
|
|
|
class AIPathfinderConfig : public PathfinderConfig
|
|
|
|
{
|
2021-05-16 19:53:11 +02:00
|
|
|
private:
|
|
|
|
const CGHeroInstance * hero;
|
|
|
|
std::unique_ptr<CPathfinderHelper> helper;
|
|
|
|
|
2018-11-03 15:25:14 +02:00
|
|
|
public:
|
|
|
|
AIPathfinderConfig(
|
|
|
|
CPlayerSpecificInfoCallback * cb,
|
|
|
|
VCAI * ai,
|
|
|
|
std::shared_ptr<AINodeStorage> nodeStorage);
|
2021-05-16 19:53:11 +02:00
|
|
|
|
2023-06-21 12:46:09 +02:00
|
|
|
~AIPathfinderConfig();
|
|
|
|
|
2021-05-16 19:53:11 +02:00
|
|
|
virtual CPathfinderHelper * getOrCreatePathfinderHelper(const PathNodeInfo & source, CGameState * gs) override;
|
2018-11-03 15:25:14 +02:00
|
|
|
};
|
2018-12-01 10:30:37 +02:00
|
|
|
}
|