Beispiel #1
0
        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;
        }
Beispiel #2
0
 public GameEnd(BoardStateManager manager, TileRegistry tileRegistry) : base(manager)
 {
 }
 public TileMoveHandler(TileRegistry tileRegistry, Grid grid)
 {
     _tileRegistry = tileRegistry;
     _grid         = grid;
 }