Cute Chess  0.1
Public Member Functions | List of all members
TournamentPlayer Class Reference

A class for storing a player's tournament-specific details. More...

#include <tournamentplayer.h>

Public Member Functions

void addScore (Chess::Side side, int score)
 
int blackDraws () const
 
int blackLosses () const
 
int blackWins () const
 
const OpeningBookbook () const
 
int bookDepth () const
 
const PlayerBuilderbuilder () const
 
int draws () const
 
int gamesFinished () const
 
int losses () const
 
QString name () const
 
int score () const
 
void setName (const QString &name)
 
const TimeControltimeControl () const
 
 TournamentPlayer (PlayerBuilder *builder, const TimeControl &timeControl, const OpeningBook *book, int bookDepth)
 
int whiteDraws () const
 
int whiteLosses () const
 
int whiteWins () const
 
int wins () const
 

Detailed Description

A class for storing a player's tournament-specific details.

Constructor & Destructor Documentation

◆ TournamentPlayer()

TournamentPlayer::TournamentPlayer ( PlayerBuilder builder,
const TimeControl timeControl,
const OpeningBook book,
int  bookDepth 
)

Creates a new TournamentPlayer object.

Member Function Documentation

◆ addScore()

void TournamentPlayer::addScore ( Chess::Side  side,
int  score 
)

Adds score to the player's score in the tournament.

◆ blackDraws()

int TournamentPlayer::blackDraws ( ) const

Returns the total number of draws of the player when playing with Black.

◆ blackLosses()

int TournamentPlayer::blackLosses ( ) const

Returns the total number of losses of the player when playing with Black.

◆ blackWins()

int TournamentPlayer::blackWins ( ) const

Returns the total number of wins of the player when playing with Black.

◆ book()

const OpeningBook * TournamentPlayer::book ( ) const

Returns the player's opening book.

◆ bookDepth()

int TournamentPlayer::bookDepth ( ) const

Returns the player's maximum book depth.

◆ builder()

const PlayerBuilder * TournamentPlayer::builder ( ) const

Returns the player's builder object.

◆ draws()

int TournamentPlayer::draws ( ) const

Returns the total number of draws the player has in the tournament.

◆ gamesFinished()

int TournamentPlayer::gamesFinished ( ) const

Returns the total number of games the player has finished in the tournament.

◆ losses()

int TournamentPlayer::losses ( ) const

Returns the total number of losses the player has in the tournament.

◆ name()

QString TournamentPlayer::name ( ) const

Returns the player's name.

◆ score()

int TournamentPlayer::score ( ) const

Returns the player's total score in the tournament.

◆ setName()

void TournamentPlayer::setName ( const QString name)

Sets the player's name to name.

◆ timeControl()

const TimeControl & TournamentPlayer::timeControl ( ) const

Returns the player's time control.

◆ whiteDraws()

int TournamentPlayer::whiteDraws ( ) const

Returns the total number of draws of the player when playing with White.

◆ whiteLosses()

int TournamentPlayer::whiteLosses ( ) const

Returns the total number of losses of the player when playing with White.

◆ whiteWins()

int TournamentPlayer::whiteWins ( ) const

Returns the total number of wins of the player when playing with White.

◆ wins()

int TournamentPlayer::wins ( ) const

Returns the total number of wins the player has in the tournament.


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