Exemplo n.º 1
0
        private void moveDown()
        {
            FallingState fs = bState as FallingState;

            if (currentBlock != null && fs != null && lastMove.Equals(""))
            {
                // move block down
                currentBlock.setBlocksPos(currentBlock.getX(), currentBlock.getY() + 1);
                lastMove = "down";
                CheckState cState = new CheckState(this);
            }
        }
Exemplo n.º 2
0
 public override int getX()
 {
     return(block.getX());
 }