コード例 #1
0
ファイル: Settings.cs プロジェクト: Cappinator/chiiilp-pbem
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="settings">The settings.</param>
 public Settings(Settings settings)
 {
     Init(settings);
 }
コード例 #2
0
ファイル: Settings.cs プロジェクト: Cappinator/chiiilp-pbem
 private void Init(Settings settings)
 {
     if (settings != null) {
     this.GameName = settings.GameName;
     this.ShuffledIdentifiers = settings.ShuffledIdentifiers;
      }
 }
コード例 #3
0
ファイル: Game.cs プロジェクト: Cappinator/chiiilp-pbem
 /// <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>();
 }