QTfrontend/team.h
changeset 86 664b536a1c27
parent 25 27aa8030322b
child 116 00d3d6d2e699
equal deleted inserted replaced
85:44d9045b26ff 86:664b536a1c27
    36 
    36 
    37 #include <QString>
    37 #include <QString>
    38 #include "binds.h"
    38 #include "binds.h"
    39 
    39 
    40 class HWForm;
    40 class HWForm;
       
    41 class GameUIConfig;
       
    42 
    41 class HWTeam
    43 class HWTeam
    42 {
    44 {
    43 	public:
    45 	public:
    44 		HWTeam(const QString & teamname);
    46 		HWTeam(const QString & teamname, GameUIConfig * config);
    45 		
    47 		HWTeam(quint8 num, GameUIConfig * config);
       
    48 
    46 		QString TeamName;
    49 		QString TeamName;
    47 		QString HHName[8];
    50 		QString HHName[8];
    48 		QString	Grave;
    51 		QString	Grave;
    49 		QString Fort;
    52 		QString Fort;
    50 		QString dir;
       
    51 		BindAction binds[BINDS_NUMBER];
    53 		BindAction binds[BINDS_NUMBER];
    52 		
    54 
    53 		void SetCfgDir(const QString & dir);
       
    54 		bool LoadFromFile();
    55 		bool LoadFromFile();
    55 		bool SaveToFile();
    56 		bool SaveToFile();
    56 		void SetToPage(HWForm * hwform);
    57 		void SetToPage(HWForm * hwform);
    57 		void GetFromPage(HWForm * hwform);
    58 		void GetFromPage(HWForm * hwform);
       
    59 		QByteArray IPCTeamInfo() const;
    58 	private:
    60 	private:
       
    61 		GameUIConfig * config;
    59 };
    62 };
    60 
    63 
    61 #endif
    64 #endif