AIPathfinderConfig.h 878 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. ~AIPathfinderConfig();
  29. virtual CPathfinderHelper * getOrCreatePathfinderHelper(const PathNodeInfo & source, CGameState * gs) override;
  30. };
  31. }
  32. }