AIPreviousNodeRule.h 856 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * AIPreviousNodeRule.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 AIPreviousNodeRule : public MovementToDestinationRule
  20. {
  21. private:
  22. std::shared_ptr<AINodeStorage> nodeStorage;
  23. public:
  24. AIPreviousNodeRule(std::shared_ptr<AINodeStorage> nodeStorage);
  25. virtual void process(
  26. const PathNodeInfo & source,
  27. CDestinationNodeInfo & destination,
  28. const PathfinderConfig * pathfinderConfig,
  29. CPathfinderHelper * pathfinderHelper) const override;
  30. };
  31. }
  32. }