27 |
27 |
28 class HWNamegen |
28 class HWNamegen |
29 { |
29 { |
30 public: |
30 public: |
31 |
31 |
32 static void teamRandomName(HWTeam & team, const int HedgehogNumber); |
32 static void teamRandomGrave(HWTeam & team); |
33 static void teamRandomNames(HWTeam & team, const bool changeteamname); |
33 static void teamRandomFort(HWTeam & team); |
|
34 static void teamRandomFlag(HWTeam & team); |
|
35 static void teamRandomVoice(HWTeam & team); |
|
36 static void teamRandomHogName(HWTeam & team, const int HedgehogNumber); |
|
37 static void teamRandomEverything(HWTeam & team, const bool changeteamname); |
|
38 |
|
39 private: |
|
40 HWNamegen(); |
|
41 |
34 static QString getRandomGrave(); |
42 static QString getRandomGrave(); |
35 static QString getRandomFort(); |
43 static QString getRandomFort(); |
36 static QString getRandomFlag(); |
44 static QString getRandomFlag(); |
37 static QString getRandomVoice(); |
45 static QString getRandomVoice(); |
38 |
|
39 private: |
|
40 HWNamegen(); |
|
41 |
46 |
42 static QList<QStringList> TypesTeamnames; |
47 static QList<QStringList> TypesTeamnames; |
43 static QList<QStringList> TypesHatnames; |
48 static QList<QStringList> TypesHatnames; |
44 static bool typesAvailable; |
49 static bool typesAvailable; |
45 |
50 |
46 static bool loadTypes(); |
51 static bool loadTypes(); |
47 static QStringList dictContents(const QString filename); |
52 static QStringList dictContents(const QString filename); |
48 static QStringList dictsForHat(const QString hatname); |
53 static QStringList dictsForHat(const QString hatname); |
49 |
54 |
50 static void teamRandomName(HWTeam & team, const int HedgehogNumber, const QStringList & dict); |
55 static void teamRandomHogName(HWTeam & team, const int HedgehogNumber, const QStringList & dict); |
51 }; |
56 }; |
52 |
57 |
53 |
58 |
54 |
59 |
55 #endif |
60 #endif |