AIMovementToDestinationRule.h 935 B

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