/// <summary> /// Starts the initialization of all UI components as well as the initialization of the game. /// </summary> /// <param name="columns"></param> /// <param name="rows"></param> /// <param name="secondsPerStep"></param> /// <param name="isHost"></param> /// <param name="IsMultiplayer"></param> public void StartGameInitialisation(GameSettings settings, bool isMultiplayer, ReplayManager replay) { currentGame = new Game(fieldCell, settings, isMultiplayer, replay); currentGame.InitializeGame(); InitializeGameEvents(); currentGame.SetBallToMidpoint(); //add the start round to the replay manager if (replay == null) { currentGame.CurrentReplayManager.Image.RoundImages.Add(currentGame.CreateRoundImage()); } Show(); Refresh(); if (isMultiplayer) { AddOpenChatButton(); } fieldGrid.Focus(); currentGame.StartRoundTimer(); currentGame.IsWaitingForHost += WaitingForHostChanged; }