|
Belofte version 2.2.0
A promising chess program using the UCI or Winboard interface
|
#include <piece.h>
Inheritance diagram for bBlackPiece:
Collaboration diagram for bBlackPiece:Public Member Functions | |
| bBlackPiece () | |
| ~bBlackPiece () override | |
| bool | canMovePreflightCheck (bBasicBoard &b, case_t const &cf, case_t const &ct) const override |
| Check if any could be added by just checking there. | |
| bool | canMovePreflightCheck (bBasicBoard &b, case_t const &cf, int8_t const ri, int8_t const ci) const override |
| Check if pawn move could be added by just checking there is not check, case of possible promotion. | |
| bool | isAttacked (bBasicBoard const &b, case_t const &cf) const override |
| movenum_t | addMove (bBasicBoard const &b, case_t const &cf, case_t const &ct, bMoveList &ml) const override |
| movenum_t | addMoves (bBasicBoard const &b, case_t const &cf, int8_t const ri, int8_t const ci, bMoveList &ml) const override |
Public Member Functions inherited from bPieceColour | |
| bPieceColour (side_t s) | |
| virtual | ~bPieceColour () |
| bPieceColour (bPieceColour const &)=delete | |
| bPieceColour (bPieceColour &&)=delete | |
| bPieceColour & | operator= (bPieceColour const &)=delete |
| bPieceColour & | operator= (bPieceColour &&)=delete |
| constexpr bool | isWhite () const |
| constexpr bool | isBlack () const |
| constexpr bool | isEmpty () const |
| constexpr side_t | opponent () const |
| constexpr side_t | toMove () const |
| side_t | invert () |
Additional Inherited Members | |
Static Protected Member Functions inherited from bPieceColour | |
| static bool | isAttackedBySlider (bBasicBoard const &b, case_t cf, column_t fromcol, rank_t fromrank, int8_t const ci, int8_t const ri, piece_t const cPiece, piece_t const cPiece2) |
| Class static function Return true if position is attacked by opponent respecting move offsets. | |
Protected Attributes inherited from bPieceColour | |
| side_t | m_side = tSide::SIDE_UNDEFINED |
|
inline |
|
overridevirtual |
Check if any could be added by just checking there.
Implements bPieceColour.
Definition at line 467 of file piece.cpp.
Referenced by bBlackBishop::hasValidMovePreflightCheck(), bBlackKing::hasValidMovePreflightCheck(), bBlackKnight::hasValidMovePreflightCheck(), bBlackQueen::hasValidMovePreflightCheck(), and bBlackRook::hasValidMovePreflightCheck().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Check if pawn move could be added by just checking there is not check, case of possible promotion.
Implements bPieceColour.
Definition at line 489 of file piece.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from bPieceColour.
Definition at line 303 of file piece.cpp.
Referenced by bBlackPawn::canMovePreflightCheck(), canMovePreflightCheck(), canMovePreflightCheck(), and bBlackKing::GenerateMoves().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements bPieceColour.
Definition at line 566 of file piece.cpp.
Referenced by bBlackKing::GenerateMoves(), and bBlackKnight::GenerateMoves().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements bPieceColour.
Definition at line 617 of file piece.cpp.
Referenced by bBlackBishop::GenerateMoves(), bBlackQueen::GenerateMoves(), and bBlackRook::GenerateMoves().
Here is the call graph for this function:
Here is the caller graph for this function: