public Grid(int size, Cell.Factory cellFactory, TileRegistry tileRegistry, SignalBus signalBus) { _cells = new Cell[size, size]; _size = size; for (var row = 0; row < size; ++row) { for (var col = 0; col < size; ++col) { Cell cell = cellFactory.Create(row, col); _cells[row, col] = cell; _emptyCells.Add(cell); } } _tileRegistry = tileRegistry; _signalBus = signalBus; }
public GameEnd(BoardStateManager manager, TileRegistry tileRegistry) : base(manager) { }
public TileMoveHandler(TileRegistry tileRegistry, Grid grid) { _tileRegistry = tileRegistry; _grid = grid; }