Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
bCoordMove Class Reference

simple coordmove, with 4 characters, or 5 characters in case of promotion mostly used for interface More...

#include <coordmove.h>

+ Inheritance diagram for bCoordMove:
+ Collaboration diagram for bCoordMove:

Public Member Functions

 bCoordMove (std::string const &coordmove)
 
 bCoordMove (bBasicMove const &m)
 
 ~bCoordMove () override
 
bool operator== (bCoordMove const &rhs)
 
- Public Member Functions inherited from bBasicMove
 bBasicMove ()
 
 bBasicMove (bBasicMove const &bm)
 
 bBasicMove (bBasicMove &&bm)
 
 bBasicMove (bmove_t const bmt)
 
 bBasicMove (case_t cf, case_t ct)
 
virtual ~bBasicMove ()
 
bBasicMoveoperator= (bBasicMove const &bm)
 
bBasicMoveoperator= (bBasicMove &&bm)
 
constexpr bool operator== (bBasicMove const &r) const
 
bool operator== (bmove_t const &r) const
 
constexpr case_t from () const
 
constexpr case_t to () const
 
constexpr rank_t fromrank () const
 
constexpr column_t fromcolumn () const
 
constexpr rank_t torank () const
 
constexpr column_t tocolumn () const
 
constexpr fromto_t getFromTo () const
 
constexpr bmove_t getBMoveT () const
 
constexpr ppiece_t getPromotion () const
 
constexpr bool isValid () const
 
constexpr bool isNullMove () const
 
constexpr bool isPromotion () const
 
constexpr bool isMajorPromotion () const
 
void setPromotion (const ppiece_t p)
 
piece_t getWhitePromotionPiece () const
 
piece_t getBlackPromotionPiece () const
 
constexpr bool isCapture () const
 
void setCapture ()
 
constexpr bool isPawnMove () const
 
void setPawnMove ()
 
constexpr bool isCastleMove () const
 
void setShortCastleMove ()
 
void setLongCastleMove ()
 
constexpr bool isLongCastleMove () const
 
constexpr bool isCheck () const
 
void setCheck ()
 
void clearIsCheck ()
 
constexpr bool getGameEnd () const
 
void setGameEnd ()
 
constexpr bool isEPPossible () const
 
void setEPPossible ()
 
constexpr bool isEPMove () const
 
void setEPMove ()
 
constexpr bool isNonSilent () const
 
 operator std::string () const
 

Detailed Description

simple coordmove, with 4 characters, or 5 characters in case of promotion mostly used for interface

Definition at line 15 of file coordmove.h.

Constructor & Destructor Documentation

◆ bCoordMove() [1/2]

bCoordMove::bCoordMove ( std::string const & coordmove)
explicit

Definition at line 10 of file coordmove.cpp.

Referenced by operator==().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bCoordMove() [2/2]

bCoordMove::bCoordMove ( bBasicMove const & m)
inlineexplicit

Definition at line 18 of file coordmove.h.

+ Here is the call graph for this function:

◆ ~bCoordMove()

bCoordMove::~bCoordMove ( )
inlineoverride

Definition at line 21 of file coordmove.h.

Member Function Documentation

◆ operator==()

bool bCoordMove::operator== ( bCoordMove const & rhs)
inline

Definition at line 24 of file coordmove.h.

+ Here is the call graph for this function: