Ejemplo n.º 1
0
 public PieceMoving(PieceMoving pieceMoving)
 {
     PieceColor  = pieceMoving.PieceColor;
     PieceType   = pieceMoving.PieceType;
     SrcPosition = pieceMoving.SrcPosition;
     DstPosition = pieceMoving.DstPosition;
     Moved       = pieceMoving.Moved;
 }
Ejemplo n.º 2
0
        public MoveContent(MoveContent moveContent)
        {
            MovingPiecePrimary   = new PieceMoving(moveContent.MovingPiecePrimary);
            MovingPieceSecondary = new PieceMoving(moveContent.MovingPieceSecondary);

            TakenPiece = new PieceTaken(moveContent.TakenPiece.PieceColor,
                                        moveContent.TakenPiece.PieceType,
                                        moveContent.TakenPiece.Moved,
                                        moveContent.TakenPiece.Position);

            EnPassantOccured = moveContent.EnPassantOccured;
            PawnPromoted     = moveContent.PawnPromoted;
        }
Ejemplo n.º 3
0
 public MoveContent()
 {
     MovingPiecePrimary   = new PieceMoving(ChessPieceType.None);
     MovingPieceSecondary = new PieceMoving(ChessPieceType.None);
     TakenPiece           = new PieceTaken(ChessPieceType.None);
 }