Пример #1
0
 public ChessPiece(int x, int y, EnumChessPieceColor color, EnumChessPieceType type)
 {
     SetPosition(x, y);
     this.Color      = color;
     this.Type       = type;
     this.IsCaptured = false;
 }
Пример #2
0
 public Rook(int x, int y, EnumChessPieceColor color, EnumChessPieceType type) : base(x, y, color, type)
 {
 }
Пример #3
0
 public King(int x, int y, EnumChessPieceColor color, EnumChessPieceType type) : base(x, y, color, type)
 {
     this.HasMoved = false;
 }