org.haphazard.gui.engine
Class PathPlanner

java.lang.Object
  extended byorg.haphazard.gui.engine.PathPlanner

public class PathPlanner
extends java.lang.Object


Constructor Summary
PathPlanner()
          Creates a new instance of PathPlanner
 
Method Summary
 java.util.Vector getPlan(Point3D from, Point3D to)
          Plans a path with waypoints.
 void setMap(Map map)
          Sets the path planners map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathPlanner

public PathPlanner()
Creates a new instance of PathPlanner

Method Detail

setMap

public void setMap(Map map)
Sets the path planners map

Parameters:
map - The map the paths should be planned on

getPlan

public java.util.Vector getPlan(Point3D from,
                                Point3D to)
Plans a path with waypoints. Doesn't take into account any MoveableGOs that are in the way.

Parameters:
from - The point to plan from
to - The point to reach with the plan
Returns:
A number of waypoints between from and to, null if the to position cannot be reached.