public GameLogic(Field field, IGenerationStrategy generationStrategy, int difficulty) { this._difficulty = difficulty; this.Field = field; this.Field.CountEmptyCells(); this._bubbleGenerationStrategy = generationStrategy; this._findPath = new FindPath(); this.Turn = 0; this.Score = 0; this.SelectedCell = null; this._linesDestroyer = new LinesDestroyer(Field); }
private void OnDestroyLines(object sender, Cell[][] lines) { _destroyLines = new LinesDestroyer(Field); _destroyLines.DestroyLines(lines); }