示例#1
0
 /// <summary>Piece constructor.</summary>
 public TerrainPrototype(int id, CounterSection counterSection, int row, int column)
 {
     this.id             = id;
     this.counterSection = counterSection;
     this.row            = row;
     this.column         = column;
 }
示例#2
0
 /// <summary>Piece constructor.</summary>
 public Counter(int id, CounterSection counterSection, int row, int column)
 {
     this.id             = id;
     this.counterSection = counterSection;
     this.row            = row;
     this.column         = column;
     side = (counterSection.Type == CounterSectionType.BackSideOnly ? Side.Back : Side.Front);
 }
示例#3
0
文件: Card.cs 项目: jimu/ZunTzu
 /// <summary>Piece constructor.</summary>
 public Card(int id, CounterSection counterSection, int row, int column)
 {
     this.id             = id;
     this.counterSection = counterSection;
     this.row            = row;
     this.column         = column;
     side = Side.Front;
 }
示例#4
0
 public CounterSheet(int id, CounterSheetProperties properties, List <Piece> pieceList) : base(id)
 {
     this.properties = properties;
     base.Name       = properties.Name;
     counterSections = new CounterSection[properties.CounterSections.Length + properties.CardSections.Length];
     for (int i = 0; i < properties.CounterSections.Length; ++i)
     {
         counterSections[i] = new CounterSection(this, properties.CounterSections[i], pieceList);
     }
     for (int i = 0; i < properties.CardSections.Length; ++i)
     {
         counterSections[properties.CounterSections.Length + i] = new CounterSection(this, properties.CardSections[i], pieceList);
     }
 }