/// <summary> /// Handles cell interaction result. /// </summary> /// <param name="result">Result from cell interaction.</param> private void HandleCellInteractionResult(CellActionResult result) { switch (result) { case CellActionResult.OutOfRange: this.uiManager.DisplayError(Messages.CellOutOfRange); break; case CellActionResult.AlreadyOpened: this.uiManager.DisplayError(Messages.AlreadyOpened); break; case CellActionResult.Boom: this.MineBoomed(); break; case CellActionResult.Normal: this.UpdateGameStatus(); break; default: break; } this.uiManager.ClearCommandLine(this.prompt); }