AIPathfinderConfig.h 790 B

1234567891011121314151617181920212223242526272829303132333435
  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 "../VCAI.h"
  13. #include "../../../lib/pathfinder/PathfinderOptions.h"
  14. namespace AIPathfinding
  15. {
  16. class AIPathfinderConfig : public PathfinderConfig
  17. {
  18. private:
  19. const CGHeroInstance * hero;
  20. std::unique_ptr<CPathfinderHelper> helper;
  21. public:
  22. AIPathfinderConfig(
  23. CPlayerSpecificInfoCallback * cb,
  24. VCAI * ai,
  25. std::shared_ptr<AINodeStorage> nodeStorage);
  26. ~AIPathfinderConfig();
  27. virtual CPathfinderHelper * getOrCreatePathfinderHelper(const PathNodeInfo & source, CGameState * gs) override;
  28. };
  29. }