com.jpemartin.jgt
Class MoveOffset

java.lang.Object
  extended by com.jpemartin.jgt.MoveOffset
All Implemented Interfaces:
MoveControl

public class MoveOffset
extends java.lang.Object
implements MoveControl

The object will follow another object with a given (x,y) offset.

Author:
jpmartin

Constructor Summary
MoveOffset(java.awt.Rectangle trailed, int ox, int oy)
           
 
Method Summary
 void move(java.awt.Rectangle moved)
          move "moved" by one step
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveOffset

public MoveOffset(java.awt.Rectangle trailed,
                  int ox,
                  int oy)
Parameters:
trailed - : the object to be followed
ox - : horizontal distance to trailed
oy - : vertical distance to trailed
Method Detail

move

public void move(java.awt.Rectangle moved)
Description copied from interface: MoveControl
move "moved" by one step

Specified by:
move in interface MoveControl