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); }
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); }
/// <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 }; } }