/// <summary> /// Constructs an empty storage. Fill method is supposed to be called after. /// Blocks' positions are 1-indexed. /// </summary> public BlockBoardStorage(int width, int height, CheckeredButtonBoard board) { this.width = width; this.height = height; this.board = board; blocks = new SingleBoardStorage[width + 1, height + 1]; }
public SingleBoardStorage(int width, int height, CheckeredButtonBoard board) { this.board = board; Initialize(width, height); }