kgamemisc.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
#include <qstringlist.h>
00024
00025
#include <krandomsequence.h>
00026
#include <klocale.h>
00027
00028
#include "kgamemisc.h"
00029
00030
class KGameMiscPrivate
00031 {
00032
public:
00033 KGameMiscPrivate()
00034 {
00035 }
00036
00037 };
00038
00039 KGameMisc::KGameMisc()
00040 {
00041
00042
00043 }
00044
00045 KGameMisc::~KGameMisc()
00046 {
00047
00048
00049 }
00050
00051
QString KGameMisc::randomName()
00052 {
00053
QStringList names = QStringList::split(
QChar(
' '),
00054 i18n(
"A list of language typical names ( for games ), separated by spaces",
00055
"Adam Alex Andreas Andrew Bart Ben Bernd Bill "
00056
"Chris Chuck Daniel Don Duncan Ed Emily Eric "
00057
"Gary Greg Harry Ian Jean Jeff Jan Kai Keith Ken "
00058
"Kirk Marc Mike Neil Paul Rik Robert Sam Sean "
00059
"Thomas Tim Walter" ) );
00060 KRandomSequence random;
00061
return *names.at( random.getLong( names.count() ) );
00062 }
This file is part of the documentation for libkdegames Library Version 3.3.0.