Move pathfinders to dedicated files

This commit is contained in:
Jan Mrna
2025-09-28 09:39:40 +02:00
parent 7eee6a5c54
commit c42a6b647e
20 changed files with 430 additions and 377 deletions

View File

@@ -0,0 +1,22 @@
#include <memory>
#include <cassert>
#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 start, WorldPos end)
{
auto path = Path{end};
return path;
}
} // pathfinder namespace