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

            if (ConflictWithBoard(test))
            {
                StopFallingBlock();
            }
            else
            {
                fallingBlock = test;
            }
        }
예제 #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);
            }
        }
예제 #3
0
        public void MoveDown()
        {
            if (!IsFallingBlock())
            {
                return;
            }
            MovableGrid test = fallingBlock.MoveDown();

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

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