• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

kigo

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Preferences Class Reference

#include <preferences.h>

Inheritance diagram for Preferences:
Inheritance graph
[legend]

Public Member Functions

 ~Preferences ()
 

Static Public Member Functions

static bool blackPlayerHuman ()
 
static QString blackPlayerName ()
 
static int blackPlayerStrength ()
 
static int boardSize ()
 
static QString engineCommand ()
 
static bool engineWorking ()
 
static int fixedHandicapValue ()
 
static double hintVisibleTime ()
 
static double komi ()
 
static Preferences * self ()
 
static void setBlackPlayerHuman (bool v)
 
static void setBlackPlayerName (const QString &v)
 
static void setBlackPlayerStrength (int v)
 
static void setBoardSize (int v)
 
static void setEngineCommand (const QString &v)
 
static void setEngineWorking (bool v)
 
static void setFixedHandicapValue (int v)
 
static void setHintVisibleTime (double v)
 
static void setKomi (double v)
 
static void setShowBoardLabels (bool v)
 
static void setShowMoveNumbers (bool v)
 
static void setTheme (const QString &v)
 
static void setWhitePlayerHuman (bool v)
 
static void setWhitePlayerName (const QString &v)
 
static void setWhitePlayerStrength (int v)
 
static bool showBoardLabels ()
 
static bool showMoveNumbers ()
 
static QString theme ()
 
static bool whitePlayerHuman ()
 
static QString whitePlayerName ()
 
static int whitePlayerStrength ()
 

Protected Member Functions

 Preferences ()
 

Protected Attributes

bool mBlackPlayerHuman
 
QString mBlackPlayerName
 
int mBlackPlayerStrength
 
int mBoardSize
 
QString mEngineCommand
 
bool mEngineWorking
 
int mFixedHandicapValue
 
double mHintVisibleTime
 
double mKomi
 
bool mShowBoardLabels
 
bool mShowMoveNumbers
 
QString mTheme
 
bool mWhitePlayerHuman
 
QString mWhitePlayerName
 
int mWhitePlayerStrength
 

Detailed Description

Definition at line 9 of file preferences.h.

Constructor & Destructor Documentation

Preferences::~Preferences ( )

Definition at line 99 of file preferences.cpp.

Preferences::Preferences ( )
protected

Definition at line 27 of file preferences.cpp.

Member Function Documentation

static bool Preferences::blackPlayerHuman ( )
inlinestatic

Get Is black a human player?

Definition at line 156 of file preferences.h.

static QString Preferences::blackPlayerName ( )
inlinestatic

Get The name of the black player.

Definition at line 175 of file preferences.h.

static int Preferences::blackPlayerStrength ( )
inlinestatic

Get The strength of the black player.

Definition at line 206 of file preferences.h.

static int Preferences::boardSize ( )
inlinestatic

Get Go board size.

Definition at line 306 of file preferences.h.

static QString Preferences::engineCommand ( )
inlinestatic

Get The current game engine command with (optional) parameters.

Definition at line 30 of file preferences.h.

static bool Preferences::engineWorking ( )
inlinestatic

Get EngineWorking.

Definition at line 49 of file preferences.h.

static int Preferences::fixedHandicapValue ( )
inlinestatic

Get Extra stones for the black player.

Definition at line 368 of file preferences.h.

static double Preferences::hintVisibleTime ( )
inlinestatic

Get Number of seconds for which a hint is visible.

Definition at line 137 of file preferences.h.

static double Preferences::komi ( )
inlinestatic

Get Komi.

Definition at line 337 of file preferences.h.

Preferences * Preferences::self ( )
static

Definition at line 17 of file preferences.cpp.

static void Preferences::setBlackPlayerHuman ( bool  v)
inlinestatic

Set Is black a human player?

Definition at line 146 of file preferences.h.

static void Preferences::setBlackPlayerName ( const QString &  v)
inlinestatic

Set The name of the black player.

Definition at line 165 of file preferences.h.

static void Preferences::setBlackPlayerStrength ( int  v)
inlinestatic

Set The strength of the black player.

Definition at line 184 of file preferences.h.

static void Preferences::setBoardSize ( int  v)
inlinestatic

Set Go board size.

Definition at line 284 of file preferences.h.

static void Preferences::setEngineCommand ( const QString &  v)
inlinestatic

Set The current game engine command with (optional) parameters.

Definition at line 20 of file preferences.h.

static void Preferences::setEngineWorking ( bool  v)
inlinestatic

Set EngineWorking.

Definition at line 39 of file preferences.h.

static void Preferences::setFixedHandicapValue ( int  v)
inlinestatic

Set Extra stones for the black player.

Definition at line 346 of file preferences.h.

static void Preferences::setHintVisibleTime ( double  v)
inlinestatic

Set Number of seconds for which a hint is visible.

Definition at line 115 of file preferences.h.

static void Preferences::setKomi ( double  v)
inlinestatic

Set Komi.

Definition at line 315 of file preferences.h.

static void Preferences::setShowBoardLabels ( bool  v)
inlinestatic

Set Determines whether board labels are shown.

Definition at line 77 of file preferences.h.

static void Preferences::setShowMoveNumbers ( bool  v)
inlinestatic

Set Move numbers are drawn onto stones if enabled.

Definition at line 96 of file preferences.h.

static void Preferences::setTheme ( const QString &  v)
inlinestatic

Set The graphical theme to be used.

Definition at line 58 of file preferences.h.

static void Preferences::setWhitePlayerHuman ( bool  v)
inlinestatic

Set Is white a human player?

Definition at line 215 of file preferences.h.

static void Preferences::setWhitePlayerName ( const QString &  v)
inlinestatic

Set The name of the white player.

Definition at line 234 of file preferences.h.

static void Preferences::setWhitePlayerStrength ( int  v)
inlinestatic

Set The strength of the white player.

Definition at line 253 of file preferences.h.

static bool Preferences::showBoardLabels ( )
inlinestatic

Get Determines whether board labels are shown.

Definition at line 87 of file preferences.h.

static bool Preferences::showMoveNumbers ( )
inlinestatic

Get Move numbers are drawn onto stones if enabled.

Definition at line 106 of file preferences.h.

static QString Preferences::theme ( )
inlinestatic

Get The graphical theme to be used.

Definition at line 68 of file preferences.h.

static bool Preferences::whitePlayerHuman ( )
inlinestatic

Get Is white a human player?

Definition at line 225 of file preferences.h.

static QString Preferences::whitePlayerName ( )
inlinestatic

Get The name of the white player.

Definition at line 244 of file preferences.h.

static int Preferences::whitePlayerStrength ( )
inlinestatic

Get The strength of the white player.

Definition at line 275 of file preferences.h.

Member Data Documentation

bool Preferences::mBlackPlayerHuman
protected

Definition at line 389 of file preferences.h.

QString Preferences::mBlackPlayerName
protected

Definition at line 390 of file preferences.h.

int Preferences::mBlackPlayerStrength
protected

Definition at line 391 of file preferences.h.

int Preferences::mBoardSize
protected

Definition at line 395 of file preferences.h.

QString Preferences::mEngineCommand
protected

Definition at line 379 of file preferences.h.

bool Preferences::mEngineWorking
protected

Definition at line 380 of file preferences.h.

int Preferences::mFixedHandicapValue
protected

Definition at line 397 of file preferences.h.

double Preferences::mHintVisibleTime
protected

Definition at line 386 of file preferences.h.

double Preferences::mKomi
protected

Definition at line 396 of file preferences.h.

bool Preferences::mShowBoardLabels
protected

Definition at line 384 of file preferences.h.

bool Preferences::mShowMoveNumbers
protected

Definition at line 385 of file preferences.h.

QString Preferences::mTheme
protected

Definition at line 383 of file preferences.h.

bool Preferences::mWhitePlayerHuman
protected

Definition at line 392 of file preferences.h.

QString Preferences::mWhitePlayerName
protected

Definition at line 393 of file preferences.h.

int Preferences::mWhitePlayerStrength
protected

Definition at line 394 of file preferences.h.


The documentation for this class was generated from the following files:
  • preferences.h
  • preferences.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kigo

Skip menu "kigo"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal