24 lines
489 B
C++
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
|