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);
109 void addTime(
int bonus);
119 virtual void makeMove(
const Chess::Move& move) = 0;
122 virtual void makeBookMove(
const Chess::Move& move);
128 void setName(
const QString& name);
131 virtual bool supportsVariant(
const QString& variant)
const = 0;
137 virtual void startPondering();
140 virtual void clearPonderState();
143 virtual bool isHuman()
const = 0;
152 bool areClaimsValidated()
const;
154 void setClaimsValidated(
bool validate);
160 void setCanPlayAfterTimeout(
bool enable);
200 void startedThinking(
int timeLeft);
208 void stoppedThinking();
226 void debugMessage(
const QString& data);
229 void nameChanged(
const QString& name);
238 virtual void onCrashed();
244 virtual void onTimeout();
251 virtual void startGame() = 0;
259 virtual void startThinking() = 0;
265 virtual bool canPlayAfterTimeout()
const;
287 void setState(State state);
290 void setError(
const QString& error);
309 bool m_claimedResult;
310 bool m_validateClaims;
311 bool m_canPlayAfterTimeout;
317 #endif // CHESSPLAYER_H MoveEvaluation m_eval
Definition: chessplayer.h:299
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