AIPathfinderConfig.h 872 B

12345678910111213141516171819202122232425262728293031323334353637
  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 NK2AI
  14. {
  15. class Nullkiller;
  16. namespace AIPathfinding
  17. {
  18. class AIPathfinderConfig : public PathfinderConfig
  19. {
  20. private:
  21. std::map<const CGHeroInstance *, std::unique_ptr<CPathfinderHelper>> pathfindingHelpers;
  22. std::shared_ptr<AINodeStorage> aiNodeStorage;
  23. public:
  24. AIPathfinderConfig(Nullkiller * aiNk, std::shared_ptr<AINodeStorage> nodeStorage, bool allowBypassObjects);
  25. ~AIPathfinderConfig();
  26. CPathfinderHelper * getOrCreatePathfinderHelper(const PathNodeInfo & source, const IGameInfoCallback & gameInfo) override;
  27. };
  28. }
  29. }