QTfrontend/team.h
changeset 1907 a104432e8301
parent 1840 4747f0232b88
child 2747 7889a3a9724f
equal deleted inserted replaced
1906:644f93d8f148 1907:a104432e8301
    34 class HWTeam
    34 class HWTeam
    35 {
    35 {
    36 	public:
    36 	public:
    37 		HWTeam(const QString & teamname);
    37 		HWTeam(const QString & teamname);
    38 		HWTeam(const QStringList& strLst);
    38 		HWTeam(const QStringList& strLst);
    39 		HWTeam(quint8 num);
    39 		HWTeam();
    40 
    40 
    41 		bool isNetTeam() const;
    41 		bool isNetTeam() const;
    42 
    42 
    43 		QString TeamName;
    43 		QString TeamName;
    44 		QString HHName[8];
    44 		QString HHName[8];
    57 		bool SaveToFile();
    57 		bool SaveToFile();
    58 		void SetToPage(HWForm * hwform);
    58 		void SetToPage(HWForm * hwform);
    59 		void GetFromPage(HWForm * hwform);
    59 		void GetFromPage(HWForm * hwform);
    60 		QStringList TeamGameConfig(quint32 InitHealth) const;
    60 		QStringList TeamGameConfig(quint32 InitHealth) const;
    61 
    61 
    62 		void TeamRandomName(const int &i);
       
    63 		void TeamRandomNames(bool changeteamname);
       
    64 
       
    65 		bool operator==(const HWTeam& t1) const;
    62 		bool operator==(const HWTeam& t1) const;
    66 		bool operator<(const HWTeam& t1) const;
    63 		bool operator<(const HWTeam& t1) const;
    67 	private:
    64 	private:
    68 		bool m_isNetTeam;
    65 		bool m_isNetTeam;
    69 		QString OldTeamName;
    66 		QString OldTeamName;
    70 		void RandomNameByHat(const int &i);
       
    71 
    67 
    72 		QList<QStringList> TypesTeamnames;
       
    73 		QList<QStringList> TypesHatnames;
       
    74 		bool TypesAvliable;
       
    75 		void TypesLoad();
       
    76 		void DictLoad(const QString filename, QStringList &list);
       
    77 		void HatCfgLoad(const QString hatname, QStringList &list);
       
    78 };
    68 };
    79 
    69 
    80 #endif
    70 #endif