public TetrisCollisionDetector(TetrisFixedBricksLogic fixedBricks, int boardRowCount, int boardColumnCount) { FixedBricks = fixedBricks; BoardRowCount = boardRowCount; BoardColumnCount = boardColumnCount; PieceCopy = new TetrisPieceWithPositionCopy(); }
public TetrisBoardLogic(TetrisEngineSettings settings) { Logger = settings.Logger; Rows = settings.Rows; Columns = settings.Columns; FixedBricksLogic = new TetrisFixedBricksLogic(Rows, Columns, settings.RowsWithFixedBricks); CollisionDetector = new TetrisCollisionDetector(FixedBricksLogic, Rows, Columns); MakeNewPiece(); }