Change piece_attacks_square() API

An extra argument let us simplify some code.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-02-17 12:00:05 +01:00
parent 9f5b709db7
commit 7013efce4e
4 changed files with 6 additions and 19 deletions

View File

@@ -215,7 +215,7 @@ public:
template<PieceType>
Bitboard piece_attacks_square(Square f, Square t) const; // Dispatch at compile-time
bool piece_attacks_square(Square f, Square t) const; // Dispatch at run-time
bool piece_attacks_square(Piece p, Square f, Square t) const; // Dispatch at run-time
// Properties of moves
bool pl_move_is_legal(Move m) const;