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

#include <fastgame.h>

Public Member Functions

 FastBoard ()
 
 FastBoard (Position &pos)
 
void Init ()
 
void Init (Position &pos)
 
bool isEqual (const pieceT *board, const byte *nPiecesW, const byte *nPiecesB) const
 
template<colorT color>
squareT getSquare (byte idx) const
 
template<colorT color>
pieceT getPiece (byte idx) const
 
template<colorT color>
uint8_t getCount (pieceT p=0) const
 
template<colorT color>
void castle (squareT king_to, squareT rook_from, squareT rook_to)
 
template<colorT color>
pieceT move (byte idx, squareT to, pieceT promo)
 
template<colorT color>
pieceT remove (squareT sq, byte newIdx=0)
 
void fillSANInfo (FullMove &lastmove) const
 

Detailed Description

Definition at line 30 of file fastgame.h.

Constructor & Destructor Documentation

FastBoard::FastBoard ( )
inline

Definition at line 39 of file fastgame.h.

FastBoard::FastBoard ( Position pos)
inline

Definition at line 40 of file fastgame.h.

Member Function Documentation

template<colorT color>
void FastBoard::castle ( squareT  king_to,
squareT  rook_from,
squareT  rook_to 
)
inline

Definition at line 98 of file fastgame.h.

void FastBoard::fillSANInfo ( FullMove lastmove) const
inline

Definition at line 138 of file fastgame.h.

template<colorT color>
uint8_t FastBoard::getCount ( pieceT  p = 0) const
inline

Definition at line 92 of file fastgame.h.

template<colorT color>
pieceT FastBoard::getPiece ( byte  idx) const
inline

Definition at line 87 of file fastgame.h.

template<colorT color>
squareT FastBoard::getSquare ( byte  idx) const
inline

Definition at line 82 of file fastgame.h.

void FastBoard::Init ( )
inline

Definition at line 42 of file fastgame.h.

void FastBoard::Init ( Position pos)
inline

Definition at line 48 of file fastgame.h.

bool FastBoard::isEqual ( const pieceT board,
const byte nPiecesW,
const byte nPiecesB 
) const
inline

Definition at line 64 of file fastgame.h.

template<colorT color>
pieceT FastBoard::move ( byte  idx,
squareT  to,
pieceT  promo 
)
inline

Definition at line 110 of file fastgame.h.

template<colorT color>
pieceT FastBoard::remove ( squareT  sq,
byte  newIdx = 0 
)
inline

Definition at line 122 of file fastgame.h.


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