Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
|
#include <piece.h>
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, uint_fast8_t nMax) const =0 |
virtual bool | canPawnMovePreflightCheck (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 |
Protected Member Functions | |
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) const |
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=().
|
delete |
|
delete |
|
delete |
|
delete |
|
inlineconstexpr |
Definition at line 152 of file piece.h.
Referenced by invert(), and opponent().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinevirtual |
Reimplemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
inline |
|
pure virtual |
Implemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
pure virtual |
Implemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
pure virtual |
Implemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
pure virtual |
Implemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
pure virtual |
Implemented in bBlackPiece, bEmptyPiece, and bWhitePiece.
|
protected |
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 349 of file piece.cpp.
Referenced by bBlackPiece::isAttacked(), and bWhitePiece::isAttacked().
|
protected |