protected void PopulateMines() { MineFactory Mf = new MineFactory(); MinesPack.AddRange(Mf.GetAllMines()); MinesOnBoard.Add(MinesOnBoardLvl1); MinesOnBoard.Add(MinesOnBoardLvl2); MinesOnBoard.Add(MinesOnBoardLvl3); }
public Board(Board board) { currentPlayer = board.currentPlayer; turn = board.turn; _drawer = board._drawer; CoinsOnBoard = board.CoinsOnBoard.ConvertAll(coin => new Coin(coin)); Players = board.Players.ConvertAll(player => new Player(player)); MinesPack = board.MinesPack.ConvertAll(mine => new Mine(mine)); MinesOnBoardLvl1 = board.MinesOnBoardLvl1.ConvertAll(mine => new Mine(mine)); MinesOnBoardLvl2 = board.MinesOnBoardLvl2.ConvertAll(mine => new Mine(mine)); MinesOnBoardLvl3 = board.MinesOnBoardLvl3.ConvertAll(mine => new Mine(mine)); MinesOnBoard.Add(MinesOnBoardLvl1); MinesOnBoard.Add(MinesOnBoardLvl2); MinesOnBoard.Add(MinesOnBoardLvl3); }