libkdegames
#include <KgDifficultyLevel>
- See also
- KgDifficulty
Definition at line 33 of file kgdifficulty.h.
Enumerator |
---|
Custom |
standardLevel() returns this for custom levels.
|
RidiculouslyEasy |
|
VeryEasy |
|
Easy |
|
Medium |
|
Hard |
|
VeryHard |
|
ExtremelyHard |
|
Impossible |
|
Definition at line 44 of file kgdifficulty.h.
KgDifficultyLevel::KgDifficultyLevel |
( |
int |
hardness, |
|
|
const QByteArray & |
key, |
|
|
const QString & |
title, |
|
|
bool |
isDefault = false |
|
) |
| |
Refer to the getters' documentation for details on the params.
Definition at line 51 of file kgdifficulty.cpp.
KgDifficultyLevel::KgDifficultyLevel |
( |
StandardLevel |
level, |
|
|
bool |
isDefault = false |
|
) |
| |
|
explicit |
KgDifficultyLevel::~KgDifficultyLevel |
( |
| ) |
|
|
virtual |
int KgDifficultyLevel::hardness |
( |
| ) |
const |
- Returns
- a numeric key which is used to sort the levels by difficulty (smaller values mean easier levels)
- Note
- For standard levels, this equals the numeric value of the level in the StandardLevel enumeration.
bool KgDifficultyLevel::isDefault |
( |
| ) |
const |
- Returns
- whether this level is the default level when no selection has been stored (e.g. on first startup)
Definition at line 115 of file kgdifficulty.cpp.
QByteArray KgDifficultyLevel::key |
( |
| ) |
const |
- Returns
- a non-localized key for this level
QString KgDifficultyLevel::title |
( |
| ) |
const |
- Returns
- a localized title for this level
bool KgDifficultyLevel::default |
|
read |
int KgDifficultyLevel::hardness |
|
read |
QByteArray KgDifficultyLevel::key |
|
read |
QString KgDifficultyLevel::title |
|
read |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:35 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.