AIModule Interface Reference

Base class of all AI implementations. More...

Inheritance diagram for AIModule:

StupidAI

List of all members.

Public Member Functions

List< Point > createPath (final TerrainMap map)
 Computes a path from the start to end points.


Detailed Description

Base class of all AI implementations.

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.

Author:
Leonid Shamis
See also:
TerrainMap

Definition at line 14 of file AIModule.java.


Member Function Documentation

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.

Parameters:
map The terrain map to compute a path across.
Returns:
The path from the start point to the end point.

Implemented in StupidAI.


The documentation for this interface was generated from the following file:

Generated on Tue Apr 14 13:50:25 2009 for Path Finder by  doxygen 1.5.8