X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=5b1bc664be7782f713f1b8641e8aafe9058dc8e4;hp=cc70bcf815fbd8c58cf3366f9afca5905f5dd6d3;hb=9394db765fba22eae790fe4dc79dfcd0f6a43a6d;hpb=0da461f23b84990d17e1f1341aeb7c0589ab98e7 diff --git a/src/position.h b/src/position.h index cc70bcf8..5b1bc664 100644 --- a/src/position.h +++ b/src/position.h @@ -27,7 +27,6 @@ #include "bitboard.h" #include "color.h" -#include "direction.h" #include "move.h" #include "piece.h" #include "square.h" @@ -197,6 +196,7 @@ public: // Information about attacks to or from a given square Bitboard attackers_to(Square s) const; Bitboard attacks_from(Piece p, Square s) const; + static Bitboard attacks_from(Piece p, Square s, Bitboard occ); template Bitboard attacks_from(Square s) const; template Bitboard attacks_from(Square s, Color c) const;