QTfrontend/team.h
changeset 352 4665bfe25470
parent 348 c91b983de18f
child 486 7ea71cd3acd5
equal deleted inserted replaced
351:29bc9c36ad5f 352:4665bfe25470
    31 };
    31 };
    32 
    32 
    33 class HWTeam
    33 class HWTeam
    34 {
    34 {
    35 	public:
    35 	public:
    36 		HWTeam(const QString & teamname, bool isNet=false);
    36 		HWTeam(const QString & teamname, unsigned int netID=0);
    37 		HWTeam(const QStringList& strLst);
    37 		HWTeam(const QStringList& strLst);
    38 		HWTeam(quint8 num);
    38 		HWTeam(quint8 num);
       
    39 
       
    40 		bool isNetTeam() const;
       
    41 		unsigned int getNetID() const;
    39 
    42 
    40 		QString TeamName;
    43 		QString TeamName;
    41 		QString HHName[8];
    44 		QString HHName[8];
    42 		QString	Grave;
    45 		QString	Grave;
    43 		QString Fort;
    46 		QString Fort;
    44 		unsigned int difficulty;
    47 		unsigned int difficulty;
    45 		BindAction binds[BINDS_NUMBER];
    48 		BindAction binds[BINDS_NUMBER];
    46 
    49 
    47 		bool netTeam;
       
    48 		unsigned char numHedgehogs;
    50 		unsigned char numHedgehogs;
    49 		QColor teamColor;
    51 		QColor teamColor;
    50 
    52 
    51 		bool LoadFromFile();
    53 		bool LoadFromFile();
    52 		bool SaveToFile();
    54 		bool SaveToFile();
    55 		QStringList TeamGameConfig(quint32 InitHealth) const;
    57 		QStringList TeamGameConfig(quint32 InitHealth) const;
    56 
    58 
    57 		bool operator==(const HWTeam& t1) const;
    59 		bool operator==(const HWTeam& t1) const;
    58 		bool operator<(const HWTeam& t1) const;
    60 		bool operator<(const HWTeam& t1) const;
    59 	private:
    61 	private:
       
    62 		unsigned int m_netID;
    60 		QString OldTeamName;
    63 		QString OldTeamName;
    61 };
    64 };
    62 
    65 
    63 #endif
    66 #endif