/// <summary> /// Copy constructor. /// </summary> /// <param name="settings">The settings.</param> public Settings(Settings settings) { Init(settings); }
private void Init(Settings settings) { if (settings != null) { this.GameName = settings.GameName; this.ShuffledIdentifiers = settings.ShuffledIdentifiers; } }
/// <summary> /// Initializes the game with the specified name and other default parameters. /// </summary> /// <param name="name">The name.</param> public void Init(string name) { this.Engine = new Engine(this); this.Settings = new Settings(); this.Settings.GameName = name; this.GameData = new GameData(this); this.GameData.CurrentTurn = 0; this.Pool = new Pool(); this.Pool.CreateIdentifiers(); this.Players = new Dictionary<string,Player>(); }