X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.h;h=1e49a307f64d3748ea742a618869585b0cc46fdb;hp=f2b4441a5d46259909acf06fa91ecb20d644b524;hb=10e64e05094e75d89baa4495fa867a8a64195bb7;hpb=76622342ec45a372b75bffdf81297861af78bbde diff --git a/src/pawns.h b/src/pawns.h index f2b4441a..1e49a307 100644 --- a/src/pawns.h +++ b/src/pawns.h @@ -46,11 +46,14 @@ public: int has_open_file_to_right(Color c, File f) const; template - Score king_shelter(const Position& pos, Square ksq); + Score king_safety(const Position& pos, Square ksq); private: template - Score updateShelter(const Position& pos, Square ksq); + Score update_safety(const Position& pos, Square ksq); + + template + int shelter_storm(const Position& pos, Square ksq); Key key; Bitboard passedPawns[2]; @@ -100,8 +103,8 @@ inline int PawnInfo::has_open_file_to_right(Color c, File f) const { } template -inline Score PawnInfo::king_shelter(const Position& pos, Square ksq) { - return kingSquares[Us] == ksq ? kingShelters[Us] : updateShelter(pos, ksq); +inline Score PawnInfo::king_safety(const Position& pos, Square ksq) { + return kingSquares[Us] == ksq ? kingShelters[Us] : update_safety(pos, ksq); } #endif // !defined(PAWNS_H_INCLUDED)