AIPathfinderConfig.h 709 B

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