QTfrontend/team.h
changeset 341 184230eb4151
parent 339 7535ab6c3820
child 348 c91b983de18f
equal deleted inserted replaced
340:f5d4db927eba 341:184230eb4151
    41 		QString HHName[8];
    41 		QString HHName[8];
    42 		QString	Grave;
    42 		QString	Grave;
    43 		QString Fort;
    43 		QString Fort;
    44 		unsigned int difficulty;
    44 		unsigned int difficulty;
    45 		BindAction binds[BINDS_NUMBER];
    45 		BindAction binds[BINDS_NUMBER];
       
    46 
    46 		bool netTeam;
    47 		bool netTeam;
       
    48 		unsigned char numHedgehogs;
       
    49 		QColor teamColor;
    47 
    50 
    48 		bool LoadFromFile();
    51 		bool LoadFromFile();
    49 		bool SaveToFile();
    52 		bool SaveToFile();
    50 		void SetToPage(HWForm * hwform);
    53 		void SetToPage(HWForm * hwform);
    51 		void GetFromPage(HWForm * hwform);
    54 		void GetFromPage(HWForm * hwform);
    52 		QStringList TeamGameConfig(quint32 color, int hedgehogs, quint32 InitHealth, bool netTeam=false) const;
    55 		QStringList TeamGameConfig(quint32 InitHealth) const;
    53 
    56 
    54 		bool operator==(const HWTeam& t1) const;
    57 		bool operator==(const HWTeam& t1) const;
    55 		bool operator<(const HWTeam& t1) const;
    58 		bool operator<(const HWTeam& t1) const;
    56 	private:
    59 	private:
    57 		QString OldTeamName;
    60 		QString OldTeamName;
    58 };
    61 };
    59 
    62 
    60 class HWTeamTempParams
       
    61 {
       
    62  public:
       
    63   unsigned char numHedgehogs;
       
    64   QColor teamColor;
       
    65 };
       
    66 
       
    67 #endif
    63 #endif