author | nemo |
Mon, 01 Nov 2010 18:19:02 -0400 | |
changeset 4087 | c149f6c4aa9c |
parent 2948 | 3f21a9dc93d0 |
child 4976 | 088d40d8aba2 |
permissions | -rw-r--r-- |
1907 | 1 |
/* |
2 |
* Hedgewars, a free turn based strategy game |
|
3 |
* Copyright (c) 2009 Martin Minarik <ttsmj@pokec.sk> |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program 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 |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef NAMEGEN_H |
|
20 |
#define NAMEGEN_H |
|
21 |
||
22 |
#include <QString> |
|
23 |
||
24 |
class HWForm; |
|
25 |
class HWTeam; |
|
26 |
||
27 |
class HWNamegen |
|
28 |
{ |
|
29 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
30 |
HWNamegen(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
31 |
~HWNamegen(); |
1907 | 32 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
33 |
void TeamRandomName(HWTeam*& team, const int &i); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
34 |
void TeamRandomNames(HWTeam*& team, const bool changeteamname); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
35 |
void RandomNameByHat(HWTeam*& team, const int &i); |
1907 | 36 |
|
37 |
private: |
|
38 |
||
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
39 |
QList<QStringList> TypesTeamnames; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
40 |
QList<QStringList> TypesHatnames; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
41 |
bool TypesAvliable; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
42 |
void TypesLoad(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
43 |
void DictLoad(const QString filename, QStringList &list); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
1907
diff
changeset
|
44 |
void HatCfgLoad(const QString hatname, QStringList &list); |
1907 | 45 |
}; |
46 |
||
47 |
||
48 |
||
49 |
#endif |