agungprasetyosakti / ahastar

Automatically exported from code.google.com/p/ahastar
0 stars 0 forks source link

MapFactory and other Map types #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Often it is useful to swap one kind of Map object for another.
For example, sometimes we want to build an octile grid while other times a
4-connected tile grid suffices.

There's no easy way to achieve this at the moment.
This issue should probably be fixed using a factory-based approach.

Original issue reported on code.google.com by dhara...@gmail.com on 16 Feb 2010 at 10:37

GoogleCodeExporter commented 9 years ago

Original comment by dhara...@gmail.com on 16 Feb 2010 at 10:43

GoogleCodeExporter commented 9 years ago
Handling this via custom ::makeGraph functions in classes extending 
mapAbstraction.
Not sure if a factory is really warranted as there are compatibility issues 
between different kind of graphs and different kind of mapAbstraction objects.

Original comment by dhara...@gmail.com on 7 Apr 2011 at 12:25