Cute Chess 0.1
TournamentPlayer Class Reference

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

#include <tournamentplayer.h>

Public Member Functions

void addScore (int score)
const OpeningBook * book () const
int bookDepth () const
const PlayerBuilder * builder () const
int draws () const
int gamesFinished () const
int losses () const
QString name () const
int score () const
void setName (const QString &name)
const TimeControl & timeControl () const
 TournamentPlayer (PlayerBuilder *builder, const TimeControl &timeControl, const OpeningBook *book, int bookDepth)
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 ( int score)

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

◆ 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.

◆ 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: