| java.lang.Object example.Mover
Mover | public class Mover (Code) | | An example class to illustrate Jumble coverage.
|
Field Summary | |
final protected int | SLOWER | protected int | xy |
SLOWER | final protected int SLOWER(Code) | | How much slower to travel in the horizontal direction
|
move | public void move(String direction, int speed)(Code) | | Move this object in one of the four possible directions.
Horizontal movements have less effect than vertical ones.
throws: RuntimeException - if direction is not valid Parameters: direction - must be "left", "right", "up" or "down". Parameters: speed - how far/fast we would like it to move. |
|
|