namespace ClassLib000.Chess { /// /// Фигура /// public class Figure { #region public fields /// /// Тип фигуры /// public EFigureType Type; /// /// Цвет фигуры /// public EColor Color; /// /// Позиция /// public int X; /// /// Позиция /// public int Y; /// /// Срублена ли фигура /// public bool IsBroken; #endregion public Figure(EColor enColor, EFigureType type, int x, int y) { this.Type = type; this.Color = enColor; this.X = x; this.Y = y; } public string AsTextString() { int x = this.X; int y = this.Y; EColor figureColor = this.Color; EFigureType ft = this.Type; // TODO: .. Console.SetCursorPosition(posx, posy); return $"{x};{y};{figureColor};{(int)ft}"; } } }