Updated README

This commit is contained in:
Jan Mrna
2025-09-29 07:11:29 +02:00
parent 1779fde397
commit 6ce349e976
2 changed files with 62 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ PathFindingDemo::PathFindingDemo(int width, int height) :
{
LOG_DEBUG(".");
// set default pathfinder method
m_PathFinder = pathfinder::utils::create(pathfinder::PathFinderType::LINEAR, (const Map*)&m_Map);
m_PathFinder = pathfinder::utils::create(pathfinder::PathFinderType::DIJKSTRA, (const Map*)&m_Map);
}
PathFindingDemo::~PathFindingDemo() { LOG_DEBUG("."); }
@@ -63,7 +63,7 @@ void PathFindingDemo::CreateMap() {
}
WorldPos PathFindingDemo::GetRandomPosition() const {
return WorldPos{0.0, 0.0};
return WorldPos{0.0, 0.0}; // totally random!
}
std::optional<WorldPos> PathFindingDemo::GetMoveTarget() {