Exemplo n.º 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
Arquivo: Card.cs Projeto: 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;
 }
Exemplo n.º 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);
     }
 }