mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Changes identified in RENAME/REFORMATTING thread (#1861)
I've gone through the RENAME/REFORMATTING thread and changed everything I could find, plus a few more. With this, let's close the previous issue and open another. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
e8ffca3eb4
commit
e917bd59b1
@@ -97,8 +97,8 @@ public:
|
||||
template<PieceType Pt> Square square(Color c) const;
|
||||
|
||||
// Castling
|
||||
int can_castle(Color c) const;
|
||||
int can_castle(CastlingRight cr) const;
|
||||
int castling_rights(Color c) const;
|
||||
bool can_castle(CastlingRight cr) const;
|
||||
bool castling_impeded(CastlingRight cr) const;
|
||||
Square castling_rook_square(CastlingRight cr) const;
|
||||
|
||||
@@ -260,11 +260,11 @@ inline Square Position::ep_square() const {
|
||||
return st->epSquare;
|
||||
}
|
||||
|
||||
inline int Position::can_castle(CastlingRight cr) const {
|
||||
inline bool Position::can_castle(CastlingRight cr) const {
|
||||
return st->castlingRights & cr;
|
||||
}
|
||||
|
||||
inline int Position::can_castle(Color c) const {
|
||||
inline int Position::castling_rights(Color c) const {
|
||||
return st->castlingRights & ((WHITE_OO | WHITE_OOO) << (2 * c));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user