示例#1
0
文件: Pile.cs 项目: kcm1700/Getris
 private void RemoveBlock(int row, int col, Block block)
 {
     for (int i = 0; i < Block.ROW_SIZE; i++)
     {
         for (int j = 0; j < Block.COL_SIZE; j++)
         {
             if (!(block.IsEmpty(i,j)))
             {
                 board[row + i, col + j] = new BlankCell();
             }
         }
     }
 }
示例#2
0
文件: Pile.cs 项目: kcm1700/Getris
 private void PutBlock(int row, int col, Block block, Cell[,] board)
 {
     for (int i = 0; i < Block.ROW_SIZE; i++)
     {
         for (int j = 0; j < Block.COL_SIZE; j++)
         {
             if (!(block.IsEmpty(i,j)))
             {
                 board[row + i, col + j] = block[i, j];
             }
         }
     }
 }