25 #include "board/result.h" 26 #include "board/move.h" 27 #include "timecontrol.h" 28 #include "moveevaluation.h" 30 namespace Chess {
class Board; }
66 virtual bool isReady()
const;
72 bool hasError()
const;
106 void setTimeControl(
const TimeControl& timeControl);
116 virtual void makeMove(
const Chess::Move& move) = 0;
119 virtual void makeBookMove(
const Chess::Move& move);
125 void setName(
const QString& name);
128 virtual bool supportsVariant(
const QString& variant)
const = 0;
134 virtual void startPondering();
137 virtual void clearPonderState();
140 virtual bool isHuman()
const = 0;
149 bool areClaimsValidated()
const;
151 void setClaimsValidated(
bool validate);
157 void setCanPlayAfterTimeout(
bool enable);
197 void startedThinking(
int timeLeft);
205 void stoppedThinking();
223 void debugMessage(
const QString& data);
226 void nameChanged(
const QString& name);
235 virtual void onCrashed();
241 virtual void onTimeout();
248 virtual void startGame() = 0;
256 virtual void startThinking() = 0;
262 virtual bool canPlayAfterTimeout()
const;
284 void setState(
State state);
287 void setError(
const QString& error);
306 bool m_claimedResult;
307 bool m_validateClaims;
308 bool m_canPlayAfterTimeout;
314 #endif // CHESSPLAYER_H MoveEvaluation m_eval
Definition: chessplayer.h:296
Time controls of a chess game.
Definition: timecontrol.h:35
A chess player, human or AI.
Definition: chessplayer.h:38
Evaluation data for a chess move.
Definition: moveevaluation.h:35
An internal chessboard class.
Definition: board.h:57
Finishing or cleaning up after a game.
Definition: chessplayer.h:51
Thinking of the next move.
Definition: chessplayer.h:50
State
Definition: chessplayer.h:44
Definition: boardscene.h:29
The side or color of a chess player.
Definition: side.h:35
Observing a game, or waiting for turn.
Definition: chessplayer.h:49
The result of a chess game.
Definition: result.h:34
Type
Definition: result.h:40
Not started or uninitialized.
Definition: chessplayer.h:46
A small and efficient chessmove class.
Definition: move.h:42
Starting or initializing.
Definition: chessplayer.h:47
Idle and ready to start a game.
Definition: chessplayer.h:48