Scid  4.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
FullMove Class Reference

#include <fullmove.h>

Public Member Functions

constexpr FullMove (uint32_t m=0)
 
 FullMove (colorT c, squareT kingSq, squareT rookSq)
 
 FullMove (colorT c, squareT from, squareT to, pieceT pt)
 
 operator bool () const
 
bool operator!= (const FullMove &f) const
 
bool isPromo () const
 
bool isEnpassant () const
 
bool isCastle () const
 
squareT getTo () const
 
squareT getFrom () const
 
pieceT getPiece () const
 
colorT getColor () const
 
pieceT getPromo () const
 
pieceT getCaptured () const
 
std::string getSAN (colorT *toMove=0) const
 
void setPromo (pieceT promo)
 
void setCapture (pieceT piece, bool enPassant)
 
void setAmbiguity (bool fyle, bool rank)
 
void setCheck ()
 

Detailed Description

Definition at line 25 of file fullmove.h.

Constructor & Destructor Documentation

◆ FullMove() [1/3]

constexpr FullMove::FullMove ( uint32_t  m = 0)
inline

Definition at line 49 of file fullmove.h.

◆ FullMove() [2/3]

FullMove::FullMove ( colorT  c,
squareT  kingSq,
squareT  rookSq 
)
inline

Definition at line 51 of file fullmove.h.

◆ FullMove() [3/3]

FullMove::FullMove ( colorT  c,
squareT  from,
squareT  to,
pieceT  pt 
)
inline

Definition at line 57 of file fullmove.h.

Member Function Documentation

◆ getCaptured()

pieceT FullMove::getCaptured ( ) const
inline

Definition at line 71 of file fullmove.h.

◆ getColor()

colorT FullMove::getColor ( ) const
inline

Definition at line 69 of file fullmove.h.

◆ getFrom()

squareT FullMove::getFrom ( ) const
inline

Definition at line 67 of file fullmove.h.

◆ getPiece()

pieceT FullMove::getPiece ( ) const
inline

Definition at line 68 of file fullmove.h.

◆ getPromo()

pieceT FullMove::getPromo ( ) const
inline

Definition at line 70 of file fullmove.h.

◆ getSAN()

std::string FullMove::getSAN ( colorT toMove = 0) const
inline

Definition at line 72 of file fullmove.h.

◆ getTo()

squareT FullMove::getTo ( ) const
inline

Definition at line 66 of file fullmove.h.

◆ isCastle()

bool FullMove::isCastle ( ) const
inline

Definition at line 65 of file fullmove.h.

◆ isEnpassant()

bool FullMove::isEnpassant ( ) const
inline

Definition at line 64 of file fullmove.h.

◆ isPromo()

bool FullMove::isPromo ( ) const
inline

Definition at line 63 of file fullmove.h.

◆ operator bool()

FullMove::operator bool ( ) const
inline

Definition at line 61 of file fullmove.h.

◆ operator!=()

bool FullMove::operator!= ( const FullMove f) const
inline

Definition at line 62 of file fullmove.h.

◆ setAmbiguity()

void FullMove::setAmbiguity ( bool  fyle,
bool  rank 
)
inline

Definition at line 125 of file fullmove.h.

◆ setCapture()

void FullMove::setCapture ( pieceT  piece,
bool  enPassant 
)
inline

Definition at line 121 of file fullmove.h.

◆ setCheck()

void FullMove::setCheck ( )
inline

Definition at line 132 of file fullmove.h.

◆ setPromo()

void FullMove::setPromo ( pieceT  promo)
inline

Definition at line 116 of file fullmove.h.


The documentation for this class was generated from the following file: