Files
pathfinding_demo/cpp/src/pathfinder/base.cpp
2025-10-30 15:10:00 +01:00

24 lines
489 B
C++

#include <cassert>
#include <memory>
#include <queue>
#include "pathfinder/base.hpp"
#include "log.hpp"
#include "math.hpp"
namespace pathfinder {
PathFinderBase::PathFinderBase(const Map *map) : m_Map(map) {}
// LinearPathFinder also lives here, since it is too small to get it's
// own implementation file
Path LinearPathFinder::CalculatePath(
WorldPos, WorldPos end) // first argument (start pos) not used
{
auto path = Path{end};
return path;
}
} // namespace pathfinder