AIPathfinderConfig.h 780 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * AIPathfinderConfig.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "AINodeStorage.h"
  12. #include "../../../lib/pathfinder/PathfinderOptions.h"
  13. namespace AIPathfinding
  14. {
  15. class AIPathfinderConfig : public PathfinderConfig
  16. {
  17. private:
  18. const CGHeroInstance * hero;
  19. std::unique_ptr<CPathfinderHelper> helper;
  20. public:
  21. AIPathfinderConfig(
  22. CPlayerSpecificInfoCallback * cb,
  23. VCAI * ai,
  24. std::shared_ptr<AINodeStorage> nodeStorage);
  25. ~AIPathfinderConfig();
  26. CPathfinderHelper * getOrCreatePathfinderHelper(const PathNodeInfo & source, const IGameInfoCallback & gameInfo) override;
  27. };
  28. }