- // Attack information to a given square
- Bitboard attacks_to(Square s) const;
- Bitboard attacks_to(Square s, Color c) const;
- template<PieceType> Bitboard piece_attacks(Square s) const;
- Bitboard pawn_attacks(Square s, Color c) const;
-
- // Attack information to a given square from another given square
- template<PieceType> Bitboard piece_attacks_square(Square f, Square t) const; // Dispatch at compile-time
- bool piece_attacks_square(Piece p, Square f, Square t) const; // Dispatch at run-time
- bool pawn_attacks_square(Square f, Square t, Color c) const;
+ // Information about attacks to or from a given square
+ Bitboard attackers_to(Square s) const;
+ Bitboard attacks_from(Piece p, Square s) const;
+ template<PieceType> Bitboard attacks_from(Square s) const;
+ template<PieceType> Bitboard attacks_from(Square s, Color c) const;