Jumper icon indicating copy to clipboard operation
Jumper copied to clipboard

Separated pathfinding interfaces for each search algorithm

Open Yonaba opened this issue 11 years ago • 0 comments

As the extra features is about to grow, and cannot be applied straight to all search algorithms, it might be interesting to separate pathfinders.

Basically, there can be a top level pathfinder class, from which the user cannot instantiate. This super class will implement the common features shared accross all finders.

And ideally, from this class we will have methods to derive all specialized finders, with their specific methods.

local Pathfinder = require '.?/pathfinder.lua'
local astarFinder = Pathfinder.newAstarFinder(grid, walkable)

If possible, make it backwards compatible.

Yonaba avatar Apr 10 '13 08:04 Yonaba