AIPathfinderConfig.h 917 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 NKAI
  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(
  25. CPlayerSpecificInfoCallback * cb,
  26. Nullkiller * ai,
  27. std::shared_ptr<AINodeStorage> nodeStorage,
  28. bool allowBypassObjects);
  29. ~AIPathfinderConfig();
  30. CPathfinderHelper * getOrCreatePathfinderHelper(const PathNodeInfo & source, const IGameInfoCallback & gameInfo) override;
  31. };
  32. }
  33. }