QTfrontend/namegen.h
changeset 1907 a104432e8301
child 2948 3f21a9dc93d0
equal deleted inserted replaced
1906:644f93d8f148 1907:a104432e8301
       
     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:
       
    30 	HWNamegen();
       
    31 	~HWNamegen();
       
    32 
       
    33 	void TeamRandomName(HWTeam*& team, const int &i);
       
    34 	void TeamRandomNames(HWTeam*& team, const bool changeteamname);
       
    35 	void RandomNameByHat(HWTeam*& team, const int &i);
       
    36 
       
    37 private:
       
    38 
       
    39 		QList<QStringList> TypesTeamnames;
       
    40 		QList<QStringList> TypesHatnames;
       
    41 		bool TypesAvliable;
       
    42 		void TypesLoad();
       
    43 		void DictLoad(const QString filename, QStringList &list);
       
    44 		void HatCfgLoad(const QString hatname, QStringList &list);
       
    45 };
       
    46 
       
    47 
       
    48 
       
    49 #endif