public void SetGameOption(Player player, GameOption gameOption) { player.Game.Option = GameOption.None; if (player.Game.Type == GameType.Null) { if (gameOption.HasFlag(GameOption.Ouvert)) { player.Game.Option |= GameOption.Ouvert; } if (gameOption.HasFlag(GameOption.Hand)) { player.Game.Option |= GameOption.Hand; } } else { if (gameOption.HasFlag(GameOption.Ouvert)) { player.Game.Option |= GameOption.Ouvert | GameOption.Hand | GameOption.Schneider | GameOption.Schwarz; } else if (gameOption.HasFlag(GameOption.Hand)) { player.Game.Option |= GameOption.Hand; if (gameOption.HasFlag(GameOption.Schneider)) { player.Game.Option |= GameOption.Schneider; if (gameOption.HasFlag(GameOption.Schwarz)) { player.Game.Option |= GameOption.Schwarz; } } } } }