Пример #1
0
 /// <summary>
 /// Fieldの初期化を行います。
 /// </summary>
 /// <param name="cell">コピーするマスを指定します。</param>
 public Cell(Cell cell)
 {
     Point      = cell.Point;
     IsTileOn   = new TeamBool(cell.IsTileOn);
     IsEnclosed = new TeamBool(cell.IsEnclosed);
     Coordinate = new Coordinate(cell.Coordinate);
 }
Пример #2
0
 /// <summary>
 /// Fieldの初期化を行います。
 /// </summary>
 /// <param name="coordinate">セルの座標を指定します。</param>
 public Cell(Coordinate coordinate)
 {
     Point      = 0;
     IsTileOn   = new TeamBool();
     IsEnclosed = new TeamBool();
     Coordinate = coordinate;
 }
Пример #3
0
 /// <summary>
 /// Fieldの初期化を行います。
 /// </summary>
 public Cell()
 {
     Point      = 0;
     IsTileOn   = new TeamBool();
     IsEnclosed = new TeamBool();
     Coordinate = new Coordinate();
 }
Пример #4
0
 /// <summary>
 /// Fieldの初期化を行います。
 /// </summary>
 /// <param name="cell">コピーするマスを指定します。</param>
 public Cell(XmlCell cell)
 {
     Point      = cell.Point;
     IsTileOn   = new TeamBool();
     IsEnclosed = new TeamBool();
     foreach (Team team in Enum.GetValues(typeof(Team)))
     {
         IsTileOn[team]   = cell.IsTileOn[(int)team];
         IsEnclosed[team] = cell.IsEnclosed[(int)team];
     }
     Coordinate = new Coordinate(cell.Coordinate);
 }
 /// <summary>
 /// TeamBoolを設定します
 /// </summary>
 /// <param name="teamBool">コピーするTeamBool</param>
 public TeamBool(TeamBool teamBool)
 {
     this[Team.A] = teamBool[Team.A];
     this[Team.B] = teamBool[Team.B];
 }