X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.h;h=105906bb89e6e821822aaaca309705a5d1e4c203;hb=bf07cc0c5232c7cd486fab118defa0815ff89183;hp=3ee1a8ccc0d7e621c9b896409ea5ae4f847cdd1f;hpb=0ccbe7c602352f55e143e4e533c3c2b7b773dda6;p=xboard.git diff --git a/moves.h b/moves.h index 3ee1a8c..105906b 100644 --- a/moves.h +++ b/moves.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -105,7 +105,7 @@ typedef void (*MoveCallback) P((Board board, int flags, ChessMove kind, Promotion moves generated are to Queen only. */ extern void GenPseudoLegal P((Board board, int flags, - MoveCallback callback, VOIDSTAR closure)); + MoveCallback callback, VOIDSTAR closure, ChessSquare filter)); /* Like GenPseudoLegal, but include castling moves and (unless F_IGNORE_CHECK is set in the flags) omit moves that would leave the @@ -114,7 +114,7 @@ extern void GenPseudoLegal P((Board board, int flags, on move is currently in check and F_IGNORE_CHECK is not set. */ extern int GenLegal P((Board board, int flags, - MoveCallback callback, VOIDSTAR closure)); + MoveCallback callback, VOIDSTAR closure, ChessSquare filter)); /* If the player on move were to move from (rf, ff) to (rt, ft), would he leave himself in check? Or if rf == -1, is the player on move