Belofte version 2.1.8
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
 
- Public Member Functions inherited from bBasicMove
 bBasicMove (bBasicMove const &bm)
 
 bBasicMove (bBasicMove &&bm)
 
 bBasicMove (basicmove_t const bmt)
 
 bBasicMove (case_t cf, case_t ct)
 
virtual ~bBasicMove ()
 
bBasicMoveoperator= (bBasicMove &&bm)
 
bBasicMoveoperator= (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
 

Friends

bool operator== (bCoordMove const &lhs, bCoordMove const &rhs)
 

Additional Inherited Members

- Protected Attributes inherited from bBasicMove
union { 
 
   uint32_t   u_bmove = 0UL 
 
   struct { 
 
      basicmove_t   m_bmove 
 
      uint8_t   m_flag 
 
      ppiece_t   m_promotion 
 
   }  
 
};  
 

Detailed Description

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

Definition at line 14 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.

◆ bCoordMove() [2/2]

bCoordMove::bCoordMove ( bBasicMove const &  m)
explicit

Definition at line 18 of file coordmove.cpp.

◆ ~bCoordMove()

bCoordMove::~bCoordMove ( )
inlineoverride

Definition at line 18 of file coordmove.h.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( bCoordMove const &  lhs,
bCoordMove const &  rhs 
)
friend

Definition at line 20 of file coordmove.h.