|
Belofte version 2.2.0
A promising chess program using the UCI or Winboard interface
|
piece representation More...
#include <piece.h>
Inheritance diagram for bPiece:Public Member Functions | |
| bPiece () | |
| bPiece (bPiece &&bp) | |
| bPiece (piece_t piece) | |
| virtual | ~bPiece () |
| bPiece (bPiece const &)=delete | |
| bPiece & | operator= (bPiece const &)=delete |
| bPiece & | operator= (bPiece &&)=delete |
| constexpr piece_t | getPiece () const |
| virtual bool | hasValidMovePreflightCheck (bBasicBoard &b, case_t const &cf)=0 |
| virtual movenum_t | GenerateMoves (bBasicBoard const &b, case_t const &cf, bMoveList &ml)=0 |
| side_t | toMove () const |
Static Public Member Functions | |
| static piece_t | getPiece (cpiece_t const piece) |
| static class member function | |
| static cpiece_t | getPieceChar (piece_t const piece) |
| static class member function | |
| static bPiece * | getPieceClass (piece_t const piece) |
| static class member function | |
| static std::string | getPieceStrUpper (piece_t const piece) |
| static class member function | |
| static bool | isOpponent (side_t const s, piece_t const piece) |
| static class member function | |
| static bool | isOwnColour (side_t const s, piece_t const piece) |
| static class member function | |
| static bool | isWhitePiece (piece_t const p) |
| static class member function | |
| static bool | isBlackPiece (piece_t const p) |
| static class member function | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, bPiece const &bp) |
|
inlineexplicit |
Definition at line 84 of file piece.h.
Referenced by bBishop::bBishop(), bKing::bKing(), bKnight::bKnight(), bPawn::bPawn(), bPiece(), bPiece(), bQueen::bQueen(), bRook::bRook(), GenerateMoves(), getPieceClass(), operator<<, operator=(), and operator=().
Here is the caller graph for this function:
|
inlineexplicit |
|
delete |
Here is the call graph for this function:
|
inlineconstexpr |
Definition at line 101 of file piece.h.
Referenced by bBasicBoard::bBasicBoard().
Here is the caller graph for this function:
|
pure virtual |
Implemented in bBlackBishop, bBlackKing, bBlackKnight, bBlackPawn, bBlackQueen, bBlackRook, bEmptyPiece, bWhiteBishop, bWhiteKing, bWhiteKnight, bWhitePawn, bWhiteQueen, and bWhiteRook.
|
pure virtual |
Implemented in bBlackBishop, bBlackKing, bBlackKnight, bBlackPawn, bBlackQueen, bBlackRook, bEmptyPiece, bWhiteBishop, bWhiteKing, bWhiteKnight, bWhitePawn, bWhiteQueen, and bWhiteRook.
Here is the call graph for this function:static class member function
Definition at line 219 of file piece.cpp.
Referenced by bBasicBoard::getFEN(), and bBoard::operator std::string().
Here is the caller graph for this function:static class member function
Definition at line 160 of file piece.cpp.
Referenced by bMoveList::atLeastOneMovePossible(), and bMoveList::generateMoves().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
static class member function
Definition at line 247 of file piece.cpp.
Referenced by bBlackPawn::addCapturePawnMove(), bBlackPawn::addCapturePromotionMove(), bBlackPiece::addMove(), bBlackPiece::addMoves(), bMoveList::atLeastOneMovePossible(), bBlackPiece::canMovePreflightCheck(), bWhitePawn::canMovePreflightCheck(), bWhitePiece::canMovePreflightCheck(), bWhitePiece::canMovePreflightCheck(), and bMoveList::generateMoves().
Here is the caller graph for this function:
|
static |
static class member function
Definition at line 254 of file piece.cpp.
Referenced by bWhitePawn::addCapturePawnMove(), bWhitePawn::addCapturePromotionMove(), bWhitePiece::addMove(), bWhitePiece::addMoves(), bMoveList::atLeastOneMovePossible(), bBlackPawn::canMovePreflightCheck(), bBlackPiece::canMovePreflightCheck(), bBlackPiece::canMovePreflightCheck(), bWhitePiece::canMovePreflightCheck(), and bMoveList::generateMoves().
Here is the caller graph for this function: