com.jpemartin.jgt
Class MoveStraight

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

public class MoveStraight
extends java.lang.Object
implements MoveControl

A MoveControl that moves in a straight line


Constructor Summary
MoveStraight(int dx, int dy)
          the two arguments are the horizontal and vertical distance traveled each step.
 
Method Summary
 void move(java.awt.Rectangle me)
          move "moved" by one step
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveStraight

public MoveStraight(int dx,
                    int dy)
the two arguments are the horizontal and vertical distance traveled each step.

Method Detail

move

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

Specified by:
move in interface MoveControl