|
Belofte version 2.2.0
A promising chess program using the UCI or Winboard interface
|
#include <piece.h>
Inheritance diagram for bPieceColour:Public Member Functions | |
| 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 |
| virtual bool | isAttacked (bBasicBoard const &b, case_t const &cf) const |
| side_t | invert () |
| virtual bool | canMovePreflightCheck (bBasicBoard &b, case_t const &cf, case_t const &ct) const =0 |
| virtual bool | canMovePreflightCheck (bBasicBoard &b, case_t const &cf, int8_t const ri, int8_t const ci) const =0 |
| virtual movenum_t | addMove (bBasicBoard const &b, case_t const &cf, case_t const &ct, bMoveList &ml) const =0 |
| virtual movenum_t | addMoves (bBasicBoard const &b, case_t const &cf, int8_t const ri, int8_t const ci, bMoveList &ml) const =0 |
Static Protected Member Functions | |
| 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 | |
| side_t | m_side = tSide::SIDE_UNDEFINED |
|
inlineexplicit |
Definition at line 140 of file piece.h.
Referenced by bBlackPiece::bBlackPiece(), bEmptyPiece::bEmptyPiece(), bPieceColour(), bPieceColour(), bWhitePiece::bWhitePiece(), operator=(), and operator=().
Here is the caller graph for this function:
|
delete |
Here is the call graph for this function:
|
delete |
Here is the call graph for this function:
|
delete |
Here is the call graph for this function:
|
delete |
Here is the call graph for this function:
|
inlineconstexpr |
Definition at line 152 of file piece.h.
Referenced by invert(), and opponent().
Here is the caller graph for this function:
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinevirtual |
Reimplemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
inline |
|
pure virtual |
Implemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
pure virtual |
Implemented in bBlackPawn, bBlackPiece, bEmptyPiece, bWhitePawn, and bWhitePiece.
|
pure virtual |
Implemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
pure virtual |
Implemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
staticprotected |
Class static function Return true if position is attacked by opponent respecting move offsets.
| b | board |
| cf | from field |
| fromcol | field from |
| fromrank | field from |
| ci | col increment |
| ri | row increment |
| cPiece | first possible piece (rook/bishop) |
| cPiece2 | second possible piece (queen) |
Definition at line 350 of file piece.cpp.
Referenced by bBlackPiece::isAttacked(), and bWhitePiece::isAttacked().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |