Beispiel #1
0
 public ChessItem(ChessBoard parent, Bitmap image, ChessBoard.P piece, ChessBoard.PColour pieceColour, bool royal = false)
 {
     board      = parent;
     img        = image;
     p          = piece;
     pc         = pieceColour;
     hasMoved   = false;
     this.royal = royal;
 }
Beispiel #2
0
 public ChessItem(ChessItem other)
 {
     img      = other.img;
     p        = other.p;
     pc       = other.pc;
     hasMoved = other.hasMoved;
     board    = other.board;
     royal    = other.royal;
 }
Beispiel #3
0
 public ChessItem(ChessBoard parent, Bitmap image, ChessBoard.P piece, bool royal = false) : this(parent, image, piece, piece.ToString()[0] == 'W' ? ChessBoard.PColour.W : ChessBoard.PColour.B, royal)
 {
 }