erland.game.tetris
Class BlockFactory
java.lang.Object
erland.game.tetris.BlockFactory
public class BlockFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockFactory
public BlockFactory()
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.