示例#1
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="settings">The settings.</param>
 public Settings(Settings settings)
 {
     Init(settings);
 }
示例#2
0
 private void Init(Settings settings)
 {
     if (settings != null) {
     this.GameName = settings.GameName;
     this.ShuffledIdentifiers = settings.ShuffledIdentifiers;
      }
 }
示例#3
0
 /// <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>();
 }