Beispiel #1
0
        private void putBlock()
        {
            for (int row = 0; row < board.rows; row++)
            {
                for (int lane = 0; lane < board.lanes; lane++)
                {
                    if (block.isGlobalPositionOccupied(row, lane))
                    {
                        board.setCell(row, lane, block.getGlobalCell(row, lane));
                    }
                }
            }
            int linesRemoved = board.removeFullLines();

            score += linesRemoved;
            if (linesRemoved > 0 && clock != null)
            {
                clock.Interval = clock.Interval / 2.0;
            }
            block = null;
        }