ballworlds.framework
Interface Relocatable

All Known Implementing Classes:
Ball

public interface Relocatable

A Relocatable is an object that can be found and moved.

Author:
David Mutchler, Salman Azhar and others, January 2005. Modified September, 2008.

Method Summary
 double distanceFrom(Point2D point)
          Returns the distance that the Relocatable object is from the given Point2D.
 void moveTo(Point2D point)
          Moves the Relocatable object to the given Point2D, by setting its position (part of its Shape) to the given Point2D.
 

Method Detail

moveTo

void moveTo(Point2D point)
Moves the Relocatable object to the given Point2D, by setting its position (part of its Shape) to the given Point2D.

Parameters:
point - the Point2D to which the Relocatable object should move.

distanceFrom

double distanceFrom(Point2D point)
Returns the distance that the Relocatable object is from the given Point2D.

Parameters:
point - the Point2D from which the distance is desired.
Returns:
the distance that the Relocatable object is from the given Point2D.