
Public Member Functions | |
| List< Point > | createPath (final TerrainMap map) |
| Computes a path from the start to end points. | |
An interface representing a pathfinder AI interface. The interface exports a single function (createPath) which accepts as input a TerrainMap and computes a path from the start location to the end location.
Definition at line 14 of file AIModule.java.
| List<Point> AIModule.createPath | ( | final TerrainMap | map | ) |
Computes a path from the start to end points.
Given a terrain map containing a start and end point, computes a path from the start point to the end point. The returned list should be a sequence of points from the start location to the end location (containing these points) such that each point in the sequence is reachable from the previous point.
| map | The terrain map to compute a path across. |
Implemented in StupidAI.
1.5.8