Belofte  version 2.1.5
A promising chess program using the UCI or Winboard interface
bEmptyPiece Class Referencefinal

Public Member Functions

 bEmptyPiece ()
 
 ~bEmptyPiece () final
 
bool isAttacked (bBoard const &b UNUSED, case_t const &cf UNUSED) const final
 
int GenerateMoves (bBoard const &b UNUSED, case_t const &cf UNUSED, bMoveList &ml UNUSED, side_t const side UNUSED) final
 
- Public Member Functions inherited from bPiece
 bPiece ()
 
 bPiece (piece_t p)
 
virtual ~bPiece ()
 
 bPiece (bPiece &&)=default
 
 bPiece (bPiece const &)=delete
 
bPieceoperator= (bPiece const &)=delete
 
bPieceoperator= (bPiece &&)=delete
 
piece_t getPiece () const
 
int addMove (bBoard const &b, case_t const &cf, side_t const side, int8_t const ri, int8_t const ci, bMoveList &ml) const
 Check for in-check position, single step move used for King and Knight. More...
 
int addMoves (bBoard const &b, case_t const &cf, side_t const side, int nMax, int8_t const ri, int8_t const ci, bMoveList &ml) const
 Add moves for Queen, Rook and Bishop. More...
 
side_t toMove () const
 
- Public Member Functions inherited from bPieceColour
 bPieceColour (side_t s)
 
virtual ~bPieceColour ()
 
 bPieceColour (bPieceColour const &)=delete
 
 bPieceColour (bPieceColour &&)=delete
 
bPieceColouroperator= (bPieceColour const &)=delete
 
bPieceColouroperator= (bPieceColour &&)=delete
 
bool isWhite () const
 
bool isBlack () const
 
bool isEmpty () const
 
side_t invert ()
 
side_t opponent () const
 
side_t toMove () const
 
virtual bool isAttacked (bBoard const &b, case_t const &cf) const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from bPiece
static piece_t getPiece (cpiece_t const p)
 static class member function More...
 
static cpiece_t getPieceChar (piece_t const p)
 static class member function More...
 
static bPiecegetPieceClass (piece_t const piece)
 static class member function More...
 
static const std::string getPieceStrUpper (piece_t const piece)
 static class member function More...
 
static bool isOpponent (side_t const s, piece_t const p)
 static class member function More...
 
static bool isOwnColour (side_t const s, piece_t const p)
 static class member function More...
 
- Protected Member Functions inherited from bPieceColour
bool isAttackedByPiece (bBoard const &b, case_t const &cf, piece_t const cPiece, int8_t const ri, int8_t const ci) const
 Return true if position is attacked by opponent respecting move offsets. More...
 
bool isAttackedBySlider (bBoard const &b, case_t const &cf, piece_t const cPiece, piece_t const cPiece2, int8_t const ri, int8_t const ci) const
 Return true if position is attacked by opponent respecting move offsets. More...
 
- Protected Attributes inherited from bPieceColour
side_t m_side = tSide::SIDE_UNDEFINED
 

Detailed Description

Todo:
Candidate for template implementation

Definition at line 193 of file piece.h.

Constructor & Destructor Documentation

◆ bEmptyPiece()

bEmptyPiece::bEmptyPiece ( )
inline

Definition at line 195 of file piece.h.

◆ ~bEmptyPiece()

bEmptyPiece::~bEmptyPiece ( )
inlinefinal

Definition at line 196 of file piece.h.

Member Function Documentation

◆ isAttacked()

bool bEmptyPiece::isAttacked ( bBoard const &b  UNUSED,
case_t const &cf  UNUSED 
) const
inlinefinal

Definition at line 198 of file piece.h.

◆ GenerateMoves()

int bEmptyPiece::GenerateMoves ( bBoard const &b  UNUSED,
case_t const &cf  UNUSED,
bMoveList &ml  UNUSED,
side_t const side  UNUSED 
)
inlinefinalvirtual

Implements bPiece.

Definition at line 200 of file piece.h.