AIMovementAfterDestinationRule.h 940 B

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