Scid  4.6.5
Public Member Functions | List of all members
FullMove Class Reference

#include <fullmove.h>

Public Member Functions

 FullMove (uint32_t m=0)
 
bool operator!= (const FullMove &f) const
 
bool isNull () 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
 
squareT getCaptSq () const
 
std::string getSAN (colorT *toMove=0) const
 
void reset (colorT c, pieceT p, squareT from, squareT to, pieceT promo=0)
 
void resetCastle (colorT c, squareT kingSq, squareT rookSq)
 
void setCapture (pieceT piece, bool enPassant)
 
void setAmbiguous (const FullMove &move2)
 
void setCheck ()
 

Detailed Description

Definition at line 25 of file fullmove.h.

Constructor & Destructor Documentation

FullMove::FullMove ( uint32_t  m = 0)
inline

Definition at line 49 of file fullmove.h.

Member Function Documentation

squareT FullMove::getCaptSq ( ) const
inline

Definition at line 61 of file fullmove.h.

pieceT FullMove::getCaptured ( ) const
inline

Definition at line 60 of file fullmove.h.

colorT FullMove::getColor ( ) const
inline

Definition at line 58 of file fullmove.h.

squareT FullMove::getFrom ( ) const
inline

Definition at line 56 of file fullmove.h.

pieceT FullMove::getPiece ( ) const
inline

Definition at line 57 of file fullmove.h.

pieceT FullMove::getPromo ( ) const
inline

Definition at line 59 of file fullmove.h.

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

Definition at line 66 of file fullmove.h.

squareT FullMove::getTo ( ) const
inline

Definition at line 55 of file fullmove.h.

bool FullMove::isCastle ( ) const
inline

Definition at line 54 of file fullmove.h.

bool FullMove::isEnpassant ( ) const
inline

Definition at line 53 of file fullmove.h.

bool FullMove::isNull ( ) const
inline

Definition at line 51 of file fullmove.h.

bool FullMove::isPromo ( ) const
inline

Definition at line 52 of file fullmove.h.

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

Definition at line 50 of file fullmove.h.

void FullMove::reset ( colorT  c,
pieceT  p,
squareT  from,
squareT  to,
pieceT  promo = 0 
)
inline

Definition at line 104 of file fullmove.h.

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

Definition at line 108 of file fullmove.h.

void FullMove::setAmbiguous ( const FullMove move2)
inline

Definition at line 116 of file fullmove.h.

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

Definition at line 112 of file fullmove.h.

void FullMove::setCheck ( )
inline

Definition at line 124 of file fullmove.h.


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