ballwar.model
Interface IMoveable


public interface IMoveable

Interface that represents a "moveable" object.


Method Summary
 Point getLocation()
          The current location of the moveable object.
 void moveDown()
          Tells the moveable object to move to the down by an amount or at a rate determined by the object.
 void moveLeft()
          Tells the moveable object to move to the left by an amount or at a rate determined by the object.
 void moveRight()
          Tells the moveable object to move to the right by an amount or at a rate determined by the object.
 void moveUp()
          Tells the moveable object to move to the up by an amount or at a rate determined by the object.
 void stop()
          Tells a moveable object to stop moving.
 

Method Detail

getLocation

Point getLocation()
The current location of the moveable object.

Returns:
The current location point.

moveLeft

void moveLeft()
Tells the moveable object to move to the left by an amount or at a rate determined by the object.


moveRight

void moveRight()
Tells the moveable object to move to the right by an amount or at a rate determined by the object.


moveUp

void moveUp()
Tells the moveable object to move to the up by an amount or at a rate determined by the object.


moveDown

void moveDown()
Tells the moveable object to move to the down by an amount or at a rate determined by the object.


stop

void stop()
Tells a moveable object to stop moving.