Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
|
move More...
#include <move.h>
Public Member Functions | |
bBasicMove (bBasicMove const &bm) | |
bBasicMove (bBasicMove &&bm) | |
bBasicMove (basicmove_t const bmt) | |
bBasicMove (case_t cf, case_t ct) | |
virtual | ~bBasicMove () |
bBasicMove & | operator= (bBasicMove &&bm) |
bBasicMove & | operator= (bBasicMove const &bm) |
operator std::string () const | |
MEMBER_CONSTEXPR case_t | from () const |
MEMBER_CONSTEXPR case_t | to () const |
rank_t | fromrank () const |
column_t | fromcolumn () const |
rank_t | torank () const |
column_t | tocolumn () const |
basicmove_t | getBasicMoveT () const |
ppiece_t | getPromotion () const |
Protected Attributes | ||
union { | ||
uint32_t u_bmove = 0UL | ||
struct { | ||
basicmove_t m_bmove | ||
uint8_t m_flag | ||
ppiece_t m_promotion | ||
} | ||
}; | ||
Friends | |
std::ostream & | operator<< (std::ostream &os, bBasicMove const &m) |
|
explicit |
|
explicit |
|
explicit |
bBasicMove & bBasicMove::operator= | ( | bBasicMove && | bm | ) |
Definition at line 45 of file move.cpp.
Referenced by bMove::operator=().
bBasicMove & bBasicMove::operator= | ( | bBasicMove const & | bm | ) |
|
inline |
Definition at line 25 of file move.h.
Referenced by fromcolumn(), and fromrank().
|
inline |
Definition at line 29 of file move.h.
Referenced by bMoveList::addBlackPromotionIfValid(), bMoveList::addWhitePromotionIfValid(), tocolumn(), and torank().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 38 of file move.h.
Referenced by bMoveList::getMoveT().
|
friend |
uint32_t bBasicMove::u_bmove = 0UL |
Definition at line 43 of file move.h.
Referenced by operator=(), and operator=().
basicmove_t bBasicMove::m_bmove |
Definition at line 45 of file move.h.
Referenced by bBasicMove(), from(), getBasicMoveT(), and to().
uint8_t bBasicMove::m_flag |
Definition at line 46 of file move.h.
Referenced by bMove::getGameEnd(), bMove::isCapture(), bMove::isCastleMove(), bMove::isCheck(), bMove::isEPMove(), bMove::isEPPossible(), bMove::isLongCastleMove(), bMove::isPawnMove(), bMove::setCapture(), bMove::setCheck(), bMove::setEPMove(), bMove::setEPPossible(), bMove::setGameEnd(), bMove::setLongCastleMove(), bMove::setPawnMove(), and bMove::setShortCastleMove().
ppiece_t bBasicMove::m_promotion |
Definition at line 56 of file move.h.
Referenced by bMove::getBlackPromotionPiece(), getPromotion(), bMove::getWhitePromotionPiece(), bMove::isMajorPromotion(), bMove::isPromotion(), and bMove::setPromotion().
union { ... } bBasicMove |