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 (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 ( PlayerBuilder *  builder,
const TimeControl &  timeControl,
const OpeningBook *  book,
int  bookDepth 
)

Creates a new TournamentPlayer object.

Member Function Documentation

void TournamentPlayer::addScore ( int  score)

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

const OpeningBook * TournamentPlayer::book ( ) const

Returns the player's opening book.

int TournamentPlayer::bookDepth ( ) const

Returns the player's maximum book depth.

const PlayerBuilder * TournamentPlayer::builder ( ) const

Returns the player's builder object.

int TournamentPlayer::draws ( ) const

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

int TournamentPlayer::gamesFinished ( ) const

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

int TournamentPlayer::losses ( ) const

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

QString TournamentPlayer::name ( ) const

Returns the player's name.

int TournamentPlayer::score ( ) const

Returns the player's total score in the tournament.

void TournamentPlayer::setName ( const QString &  name)

Sets the player's name to name.

const TimeControl & TournamentPlayer::timeControl ( ) const

Returns the player's time control.

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: