コード例 #1
0
ファイル: MoveContent.cs プロジェクト: FatMankey/AR-Chess
 public PieceMoving(PieceMoving pieceMoving)
 {
     PieceColor  = pieceMoving.PieceColor;
     PieceType   = pieceMoving.PieceType;
     SrcPosition = pieceMoving.SrcPosition;
     DstPosition = pieceMoving.DstPosition;
     Moved       = pieceMoving.Moved;
 }
コード例 #2
0
ファイル: MoveContent.cs プロジェクト: FatMankey/AR-Chess
        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;
        }
コード例 #3
0
ファイル: MoveContent.cs プロジェクト: FatMankey/AR-Chess
 public MoveContent()
 {
     MovingPiecePrimary   = new PieceMoving(ChessPieceType.None);
     MovingPieceSecondary = new PieceMoving(ChessPieceType.None);
     TakenPiece           = new PieceTaken(ChessPieceType.None);
 }