Example #1
0
 public override SingleBlock[] SetBlocks(Board board_)
 {
     SingleBlock[] blocks = new SingleBlock[4];
     blocks[0] = new SingleBlock(board_, new Point(1, 1) + position);
     blocks[1] = new SingleBlock(board_, new Point(1, 2) + position);
     blocks[2] = new SingleBlock(board_, new Point(2, 1) + position);
     blocks[3] = new SingleBlock(board_, new Point(2, 2) + position);
     return(blocks);
 }
Example #2
0
 public override SingleBlock[] SetBlocks(Board board_)
 {
     SingleBlock[] blocks = new SingleBlock[4];
     for (int i = 0; i < 4; i++)
     {
         blocks[i] = new SingleBlock(board_, new Point(1, i) + position);
     }
     return(blocks);
 }
Example #3
0
 /// <summary>
 /// Adds a figure to a board
 /// </summary>
 public void AddToPile()
 {
     for (int i = 0; i < 4; i++)
     {
         SingleBlock blockToAdd = current_figure[i];
         board[blockToAdd.position.X, blockToAdd.position.Y] = new SingleBlock(this, blockToAdd.position)
         {
             Color = current_figure[i].Color
         };
     }
 }