This interface is implemented by all objects in the game. It allows you to get the location of any object, and to determine the distance and heading to or from the object.
| Method Detail |
public double getDistanceTo(double x,
double y)
double - xdouble - ypublic double getDistanceTo(IObject obj)
IObject -
public int getHeadingTo(double x,
double y)
double - xdouble - ypublic int getHeadingTo(IObject obj)
IObject - public double getX()
public double getY()