pathfinder_null.cpp 622 B

1234567891011121314151617181920212223242526
  1. #include "pathfinder_null.h"
  2. IPathfinder::IPath PathfinderNull::FindRoute(const glm::vec3 &start, const glm::vec3 &end, bool &partial, bool &stuck, int flags)
  3. {
  4. partial = false;
  5. stuck = false;
  6. IPath ret;
  7. ret.push_back(start);
  8. ret.push_back(end);
  9. return ret;
  10. }
  11. IPathfinder::IPath PathfinderNull::FindPath(const glm::vec3 &start, const glm::vec3 &end, bool &partial, bool &stuck, const PathfinderOptions &opts)
  12. {
  13. partial = false;
  14. stuck = false;
  15. IPath ret;
  16. ret.push_back(start);
  17. ret.push_back(end);
  18. return ret;
  19. }
  20. glm::vec3 PathfinderNull::GetRandomLocation(const glm::vec3 &start)
  21. {
  22. return glm::vec3(0.0f);
  23. }