Example #1
0
        public void Tick()
        {
            MovableGrid test = fallingBlock.MoveDown();

            if (ConflictWithBoard(test))
            {
                StopFallingBlock();
            }
            else
            {
                fallingBlock = test;
            }
        }
Example #2
0
        public void MoveDown()
        {
            MovableGrid test = movingGrid.MoveDown();

            refreshTab(movingGrid, null);
            if (!ConflictsWithBoard(test))
            {
                refreshTab(null, test);
                movingGrid = test;
            }
            else
            {
                StopFallingBlock();
                refreshTab(null, movingGrid);
            }
        }
Example #3
0
        public void MoveDown()
        {
            if (!IsFallingBlock())
            {
                return;
            }
            MovableGrid test = fallingBlock.MoveDown();

            if (ConflictsWithBoard(test))
            {
                StopFallingBlock();
                RemoveFullRows();
            }
            else
            {
                fallingBlock = test;
            }
        }
Example #4
0
        public void MoveDown()
        {
            if (!IsFallingBlock())
            {
                return;
            }
            MovableGrid test = fallingBlock.MoveDown();

            if (OutsideBoard(test) || HitAnotherBlock(test))
            {
                StopFallingBlock();
                checkFullRows();
            }
            else
            {
                fallingBlock = test;
            }
        }