com.jpemartin.jgt
Class MoveHorizontalWave

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

public class MoveHorizontalWave
extends java.lang.Object
implements MoveControl

move horizontally following a cosine wave.

Author:
jpmartin
See Also:
MoveVerticalWave

Constructor Summary
MoveHorizontalWave(int amplitude, int angularVelocity)
           
 
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

MoveHorizontalWave

public MoveHorizontalWave(int amplitude,
                          int angularVelocity)
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