erland.game.tetris
Class BlockFactory

java.lang.Object
  extended by erland.game.tetris.BlockFactory

public class BlockFactory
extends Object


Constructor Summary
BlockFactory()
           
 
Method Summary
static BlockFactory getInstance()
           
protected  erland.game.tetris.Block newBlock()
          Creates a new random block
 erland.game.tetris.Block nextBlock(Object player)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockFactory

public BlockFactory()
Method Detail

getInstance

public static BlockFactory getInstance()

newBlock

protected erland.game.tetris.Block newBlock()
Creates a new random block

Returns:
A new Block object

nextBlock

public erland.game.tetris.Block nextBlock(Object player)

reset

public void reset()


Copyright © 2003-2006 Erland Isaksson. All Rights Reserved.