AIPathfinder.h 655 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * AIhelper.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 "../AIUtility.h"
  12. #include "AINodeStorage.h"
  13. class AIPathfinder
  14. {
  15. private:
  16. static std::vector<std::shared_ptr<AINodeStorage>> storagePool;
  17. static std::map<HeroPtr, std::shared_ptr<AINodeStorage>> storageMap;
  18. static boost::mutex storageMutex;
  19. CPlayerSpecificInfoCallback * cb;
  20. public:
  21. AIPathfinder(CPlayerSpecificInfoCallback * cb);
  22. std::vector<AIPath> getPathInfo(HeroPtr hero, int3 tile);
  23. void clear();
  24. };