AIMovementToDestinationRule.h 970 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * AIMovementToDestinationRule.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 "../../AIGateway.h"
  13. #include "../../../../CCallback.h"
  14. #include "../../../../lib/mapObjects/MapObjects.h"
  15. #include "../../../../lib/pathfinder/PathfindingRules.h"
  16. namespace NKAI
  17. {
  18. namespace AIPathfinding
  19. {
  20. class AIMovementToDestinationRule : public MovementToDestinationRule
  21. {
  22. private:
  23. std::shared_ptr<AINodeStorage> nodeStorage;
  24. bool allowBypassObjects;
  25. public:
  26. AIMovementToDestinationRule(std::shared_ptr<AINodeStorage> nodeStorage, bool allowBypassObjects);
  27. virtual void process(
  28. const PathNodeInfo & source,
  29. CDestinationNodeInfo & destination,
  30. const PathfinderConfig * pathfinderConfig,
  31. CPathfinderHelper * pathfinderHelper) const override;
  32. };
  33. }
  34. }