|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.viper.geometry.AbstractMoveable
Implements the 'move' method using the 'shift' method.
Field Summary |
Fields inherited from interface edu.umd.cfar.lamp.viper.geometry.Moveable |
EAST, NORTH, NORTHEAST, NORTHWEST, SOUTH, SOUTHEAST, SOUTHWEST, WEST |
Constructor Summary | |
AbstractMoveable()
|
Method Summary | |
Moveable |
move(int direction,
int distance)
Gets a copy of the box, shifted by the given amount in the specified direction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.umd.cfar.lamp.viper.geometry.Moveable |
shift |
Constructor Detail |
public AbstractMoveable()
Method Detail |
public Moveable move(int direction, int distance)
move
in interface Moveable
direction
- the direction to remove the box, e.g. Moveable.NORTH
distance
- the distance to move the box
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |