/// <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; }
/// <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); }
/// <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; }
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); } }