Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
|
position on board, defined as 255 if invalid used primarily to compose a move or a source or destination field does not contain the piece that occupies it More...
#include <case.h>
Public Member Functions | |
bCase () | |
bCase (bCase &&cf) | |
bCase (case_t cf) | |
bCase (std::string const &s) | |
bCase (column_t const c, rank_t const r) | |
~bCase () | |
bCase (bCase const &)=delete | |
bCase & | operator= (bCase const &)=delete |
bCase & | operator= (bCase &&)=delete |
bCase & | operator= (std::string const &s) |
bool | operator== (bCase const rhs) const |
constexpr column_t | column0 () const |
constexpr rank_t | rank0 () const |
constexpr column_t | column () const |
constexpr rank_t | rank () const |
constexpr case_t | getCaseT () const |
operator std::string () const | |
Static Public Member Functions | |
static constexpr case_t | coordToCase (column_t const c, rank_t const r) |
static constexpr column_t | column0 (case_t const cf) |
static constexpr rank_t | rank0 (case_t const cf) |
static constexpr column_t | column (case_t const cf) |
static constexpr rank_t | rank (case_t const cf) |
static constexpr boardbitmap_t | caseToBit (case_t const cf) |
Friends | |
std::ostream & | operator<< (std::ostream &os, bCase const &cf) |
position on board, defined as 255 if invalid used primarily to compose a move or a source or destination field does not contain the piece that occupies it
|
inlineexplicit |
Definition at line 20 of file case.h.
Referenced by bCase(), bCase(), operator<<, operator=(), operator=(), operator=(), and operator==().
|
explicit |
|
explicit |
|
delete |
bCase & bCase::operator= | ( | std::string const & | s | ) |
bool bCase::operator== | ( | bCase const | rhs | ) | const |
|
inlineconstexpr |
Definition at line 37 of file case.h.
Referenced by column0(), and operator std::string().
|
inlineconstexpr |
Definition at line 39 of file case.h.
Referenced by operator std::string(), and rank0().
|
inlineconstexpr |
Definition at line 41 of file case.h.
Referenced by bBlackPawn::addCapturePawnMove(), bWhitePawn::addCapturePawnMove(), bBlackPawn::addCapturePromotionMove(), bWhitePawn::addCapturePromotionMove(), bBlackPawn::addEPMove(), bWhitePawn::addEPMove(), bBlackPiece::addMoves(), bWhitePiece::addMoves(), bBlackPawn::addNonCapturePromotionMove(), bWhitePawn::addNonCapturePromotionMove(), bBlackPiece::canMovePreflightCheck(), bWhitePiece::canMovePreflightCheck(), bBlackPiece::canPawnMovePreflightCheck(), bWhitePiece::canPawnMovePreflightCheck(), column(), destinationbits(), bBasicMove::fromcolumn(), bBlackPawn::GenerateMoves(), bWhitePawn::GenerateMoves(), bBlackPiece::isAttacked(), bWhitePiece::isAttacked(), bBasicBoard::setEp(), bBasicMove::tocolumn(), and bBasicBoard::unMakeBoardMove().
|
inlineconstexpr |
Definition at line 43 of file case.h.
Referenced by bBlackPawn::addCapturePawnMove(), bWhitePawn::addCapturePawnMove(), bBlackPawn::addEPMove(), bWhitePawn::addEPMove(), bBlackPiece::addMoves(), bWhitePiece::addMoves(), bBlackPawn::addNonCapturePawnMove(), bWhitePawn::addNonCapturePawnMove(), bBlackPiece::canMovePreflightCheck(), bWhitePiece::canMovePreflightCheck(), bBlackPiece::canPawnMovePreflightCheck(), bWhitePiece::canPawnMovePreflightCheck(), destinationbits(), bBasicMove::fromrank(), bBlackPawn::GenerateMoves(), bWhitePawn::GenerateMoves(), bBlackPawn::hasValidMovePreflightCheck(), bWhitePawn::hasValidMovePreflightCheck(), bBlackPiece::isAttacked(), bWhitePiece::isAttacked(), rank(), and bBasicMove::torank().
bCase::operator std::string | ( | ) | const |
|
inlinestaticconstexpr |
Definition at line 51 of file case.h.
Referenced by bBlackPawn::addCapturePawnMove(), bWhitePawn::addCapturePawnMove(), bBlackPawn::addCapturePromotionMove(), bWhitePawn::addCapturePromotionMove(), bBlackPawn::addEPMove(), bWhitePawn::addEPMove(), bBlackPiece::addMoves(), bWhitePiece::addMoves(), bBlackPawn::addNonCapturePromotionMove(), bWhitePawn::addNonCapturePromotionMove(), bBasicBoard::applyBlackMove(), bBasicBoard::applyWhiteMove(), bBasicBoard::bBasicBoard(), bCase(), bCase(), bPositionEvaluation::bPositionEvaluation(), destinationbits(), bBasicBoard::getEp(), bBasicBoard::getPiece(), bBasicBoard::getPieceCtl(), bBoard::invertColours(), bBasicBoard::isFieldEmpty(), bBasicBoard::makeBoardMove(), operator=(), bBasicBoard::removePiece(), bBasicBoard::setGetPiece(), bBasicBoard::unApplyMove(), and bBasicBoard::unMakeBoardMove().
|
inlinestaticconstexpr |
Definition at line 66 of file case.h.
Referenced by destinationbits().