com.jeffpalm.eggtris
Class Square

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

public class Square
extends MyShape

Extends Shape to produce and orange Square. Cannot rotate.

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
Square(int size, int x, int y)
          Instantiates an new Square.
 
Method Summary
 boolean rotate(Board board)
          Does not implement this method.
 
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

Square

public Square(int size,
              int x,
              int y)
Instantiates an new Square.

Parameters:
size - Size of the Bricks that make up this.
x - Initial origin x position.
y - Initial origin y position.
Method Detail

rotate

public boolean rotate(Board board)
Does not implement this method.

Specified by:
rotate in class MyShape
Parameters:
board - Board on which to rotate.
Returns:
True, it can always rotate.