public Controller(SaperView.View view, Board board, GameEventsManager gameEventsManager) { this.view = view; this.board = board; this.gameEventsManager = gameEventsManager; view.Init(this); }
GameTimer gameTimer;//nie bedzie public Board(SaperView.View v) { this.view = v; this.fieldTable = new Field[boardWidth, boardHeight]; this.tableSize = (boardWidth * boardHeight); this.StartQuantityBombs = 5;//Convert.ToInt32(tableSize * 0.2); this.QuantityBomb = StartQuantityBombs; this.bombTable = new bool[tableSize]; this.gameTimer = new GameTimer(); CreateFields(); view.Init(boardWidth, boardHeight, gameTimer); view.Show(fieldTable, QuantityBomb); }