Example #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);
            }
        }
Example #2
0
 public override void setBlocksPos(int x, int y)
 {
     block.setBlocksPos(x, y);
 }