AIPathfinderConfig.h 797 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. namespace NKAI
  13. {
  14. class Nullkiller;
  15. namespace AIPathfinding
  16. {
  17. class AIPathfinderConfig : public PathfinderConfig
  18. {
  19. private:
  20. std::map<const CGHeroInstance *, std::unique_ptr<CPathfinderHelper>> pathfindingHelpers;
  21. std::shared_ptr<AINodeStorage> aiNodeStorage;
  22. public:
  23. AIPathfinderConfig(
  24. CPlayerSpecificInfoCallback * cb,
  25. Nullkiller * ai,
  26. std::shared_ptr<AINodeStorage> nodeStorage);
  27. virtual CPathfinderHelper * getOrCreatePathfinderHelper(const PathNodeInfo & source, CGameState * gs) override;
  28. };
  29. }
  30. }