Exemple #1
0
 /// <summary>
 /// Creates a new Move object without capturing a piece
 /// </summary>
 /// <param name="piece">The chess piece performing the move</param>
 /// <param name="target">The target location of the move</param>
 public Move(BaseChessPiece piece, Point2D target)
 {
     m_Piece    = piece;
     m_From     = m_Piece.Position;
     m_To       = target;
     m_Captured = m_Piece.GetCaptured(target, ref m_EnPassant);
 }
Exemple #2
0
		/// <summary>
		/// Creates a new Move object without capturing a piece
		/// </summary>
		/// <param name="piece">The chess piece performing the move</param>
		/// <param name="target">The target location of the move</param>
		public Move( BaseChessPiece piece, Point2D target )
		{
			m_Piece = piece;
			m_From = m_Piece.Position;
			m_To = target;
			m_Captured = m_Piece.GetCaptured( target, ref m_EnPassant );
		}