Exemplo n.º 1
0
        public bool CheckPieceOverlap(Tetrimino piece)
        {
            for (int row = 0; row < Constants.TowerHeight; row++)
            {
                for (int col = 0; col < Constants.TowerWidth; col++)
                {
                    if (piece.IsBlockPosition(col, row) && TowerData[row, col] != BlockValue.Empty)
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }