コード例 #1
0
ファイル: Grid.cs プロジェクト: teareyes83/Fight2048
        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;
        }
コード例 #2
0
 public GameEnd(BoardStateManager manager, TileRegistry tileRegistry) : base(manager)
 {
 }
コード例 #3
0
 public TileMoveHandler(TileRegistry tileRegistry, Grid grid)
 {
     _tileRegistry = tileRegistry;
     _grid         = grid;
 }