- Bitboard attackers_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;
+ 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;