• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdegames
 

libtdegames

  • libtdegames
kgamemisc.cpp
1 /*
2  This file is part of the TDE games library
3  Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de)
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 /*
20  $Id$
21 */
22 
23 #include <tqstringlist.h>
24 
25 #include <krandomsequence.h>
26 #include <tdelocale.h>
27 
28 #include "kgamemisc.h"
29 
30 class KGameMiscPrivate
31 {
32 public:
33  KGameMiscPrivate()
34  {
35  }
36 
37 };
38 
39 KGameMisc::KGameMisc()
40 {
41 // not yet used
42 // d = new KGamePrivate;
43 }
44 
45 KGameMisc::~KGameMisc()
46 {
47  // don't forget to delete it as soon as it is used!
48 // delete d;
49 }
50 
51 TQString KGameMisc::randomName()// do we need i18n? I think yes
52 {
53  TQStringList names = TQStringList::split( TQChar(' '),
54  i18n( "A list of language typical names ( for games ), separated by spaces",
55  "Adam Alex Andreas Andrew Bart Ben Bernd Bill "
56  "Chris Chuck Daniel Don Duncan Ed Emily Eric "
57  "Gary Greg Harry Ian Jean Jeff Jan Kai Keith Ken "
58  "Kirk Marc Mike Neil Paul Rik Robert Sam Sean "
59  "Thomas Tim Walter" ) );
60  KRandomSequence random;
61  return *names.at( random.getLong( names.count() ) );
62 }

libtdegames

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

libtdegames

Skip menu "libtdegames"
  • libtdegames
Generated for libtdegames by doxygen 1.8.13
This website is maintained by Timothy Pearson.