net.sourceforge.cilib.games.game.tetris.shape
Class RZigZagShape

java.lang.Object
  extended by net.sourceforge.cilib.games.game.tetris.shape.AbstractShape
      extended by net.sourceforge.cilib.games.game.tetris.shape.RZigZagShape
All Implemented Interfaces:
Serializable, Cloneable

public class RZigZagShape
extends AbstractShape

This class represents the Reverse ZigZag shape

Author:
leo
See Also:
Serialized Form

Constructor Summary
RZigZagShape(int gridWidth, int gridHeight)
           
RZigZagShape(RZigZagShape other)
           
 
Method Summary
 RZigZagShape getClone()
          Create a cloned copy of the current object and return it.
 void rotate()
          Rotate the shape to its next possible orientation
 
Methods inherited from class net.sourceforge.cilib.games.game.tetris.shape.AbstractShape
countCellsInRow, getBlock, getBlocks, getBottomBlocks, getBottomMostBlock, getBottomMostBlock, getCurrentOrientation, getLeftBlocks, getLeftMostBlock, getLeftMostBlock, getRightMostBlock, getStaticBlock, getTopMostBlock, isInCell, moveBlock, moveShapeX, moveShapeY, rotate, setShapeTopGrid, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RZigZagShape

public RZigZagShape(int gridWidth,
                    int gridHeight)

RZigZagShape

public RZigZagShape(RZigZagShape other)
Parameters:
other -
Method Detail

getClone

public RZigZagShape getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Specified by:
getClone in class AbstractShape
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

rotate

public void rotate()
Rotate the shape to its next possible orientation

Specified by:
rotate in class AbstractShape


Copyright © 2009 CIRG. All Rights Reserved.