24 #include "board/result.h" 25 #include "board/move.h" 26 #include "timecontrol.h" 27 #include "moveevaluation.h" 29 namespace Chess {
class Board; }
65 virtual bool isReady()
const;
100 void setTimeControl(
const TimeControl& timeControl);
110 virtual void makeMove(
const Chess::Move& move) = 0;
113 virtual void makeBookMove(
const Chess::Move& move);
119 void setName(
const QString& name);
122 virtual bool supportsVariant(
const QString& variant)
const = 0;
128 virtual void startPondering();
131 virtual void clearPonderState();
134 virtual bool isHuman()
const = 0;
143 bool areClaimsValidated()
const;
145 void setClaimsValidated(
bool validate);
184 void startedThinking(
int timeLeft)
const;
192 void stoppedThinking()
const;
210 void debugMessage(
const QString& data)
const;
213 void nameChanged(
const QString& name);
222 virtual void onCrashed();
228 virtual void onTimeout();
235 virtual void startGame() = 0;
243 virtual void startThinking() = 0;
251 virtual bool canPlayAfterTimeout()
const;
273 void setState(State state);
291 bool m_claimedResult;
292 bool m_validateClaims;
298 #endif // CHESSPLAYER_H MoveEvaluation m_eval
Definition: chessplayer.h:282
Time controls of a chess game.
Definition: timecontrol.h:34
A chess player, human or AI.
Definition: chessplayer.h:37
Evaluation data for a chess move.
Definition: moveevaluation.h:34
An internal chessboard class.
Definition: board.h:56
Finishing or cleaning up after a game.
Definition: chessplayer.h:50
Thinking of the next move.
Definition: chessplayer.h:49
State
Definition: chessplayer.h:43
Definition: boardscene.h:28
The side or color of a chess player.
Definition: side.h:34
Observing a game, or waiting for turn.
Definition: chessplayer.h:48
The result of a chess game.
Definition: result.h:33
Type
Definition: result.h:39
Not started or uninitialized.
Definition: chessplayer.h:45
A small and efficient chessmove class.
Definition: move.h:41
Starting or initializing.
Definition: chessplayer.h:46
Idle and ready to start a game.
Definition: chessplayer.h:47