com.jeffpalm.eggtris
Class LeftWiggle

java.lang.Object
  extended by com.jeffpalm.eggtris.MyShape
      extended by com.jeffpalm.eggtris.LeftWiggle

public class LeftWiggle
extends MyShape

Extends Shape to produce an L shape.

Since:
10.23.1998
Author:
Jeffrey Palm
See Also:
Eggtris.Shape

Field Summary
 
Fields inherited from class com.jeffpalm.eggtris.MyShape
bricks, size, x, y
 
Constructor Summary
LeftWiggle(int size, int x, int y)
          Instantiates a new LeftWiggle.
 
Method Summary
 boolean rotate(Board board)
          Over-rides Shape's rotate.
 
Methods inherited from class com.jeffpalm.eggtris.MyShape
draw, givesItsBricksTo, moveDown, moveLeft, moveRight, moveUp, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeftWiggle

public LeftWiggle(int size,
                  int x,
                  int y)
Instantiates a new LeftWiggle.

Parameters:
size - Size of each Brick.
x - Initial origin x position.
y - Initial origin y position.
Method Detail

rotate

public boolean rotate(Board board)
Over-rides Shape's rotate.

Specified by:
rotate in class MyShape
Parameters:
board - Board on which to rotate.
Returns:
True if this could rotate, else false.