Cute Chess 0.1
ChessGame Class Reference
Inheritance diagram for ChessGame:
QObject

Public Slots

void emitStartFailed ()
void kill ()
void onAdjudication (const Chess::Result &result)
void onMoveMade (const Chess::Move &move)
void onResignation (const Chess::Result &result)
void pause ()
void resume ()
void start ()
void stop (bool emitMoveChanged=true)

Signals

void fenChanged (const QString &fenString)
void finished (ChessGame *game=nullptr, Chess::Result result=Chess::Result())
void humanEnabled (bool)
void initialized (ChessGame *game=nullptr)
void moveChanged (int ply, const Chess::GenericMove &move, const QString &sanString, const QString &comment)
void moveMade (const Chess::GenericMove &move, const QString &sanString, const QString &comment)
void playersReady ()
void scoreChanged (int ply, int score)
void started (ChessGame *game=nullptr)
void startFailed (ChessGame *game=nullptr)

Public Member Functions

Chess::Boardboard () const
bool boardShouldBeFlipped () const
 ChessGame (Chess::Board *board, PgnGame *pgn, QObject *parent=nullptr)
QString errorString () const
void generateOpening ()
bool isFinished () const
void lockThread ()
const QVector< Chess::Move > & moves () const
PgnGamepgn () const
ChessPlayerplayer (Chess::Side side) const
ChessPlayerplayerToMove () const
ChessPlayerplayerToWait () const
Chess::Result result () const
const QMap< int, int > & scores () const
void setAdjudicator (const GameAdjudicator &adjudicator)
void setBoardShouldBeFlipped (bool flip)
void setBookOwnership (bool enabled)
void setError (const QString &message)
bool setMoves (const PgnGame &pgn)
void setMoves (const QVector< Chess::Move > &moves)
void setOpeningBook (const OpeningBook *book, Chess::Side side=Chess::Side(), int depth=1000)
void setPlayer (Chess::Side side, ChessPlayer *player)
void setStartDelay (int time)
void setStartingFen (const QString &fen)
void setTimeControl (const TimeControl &timeControl, Chess::Side side=Chess::Side())
QString startingFen () const
void unlockThread ()

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