QTfrontend/team.h
changeset 6225 505643d4c23d
parent 6223 cc3eb9b7230f
child 6616 f77bb02b669f
equal deleted inserted replaced
6223:cc3eb9b7230f 6225:505643d4c23d
    42 };
    42 };
    43 
    43 
    44 // class representing a team
    44 // class representing a team
    45 class HWTeam : public QObject
    45 class HWTeam : public QObject
    46 {
    46 {
    47 	Q_OBJECT
    47     Q_OBJECT
    48 
    48 
    49     public:
    49     public:
    50 
    50 
    51         // constructors
    51         // constructors
    52         HWTeam(const QString & teamname);
    52         HWTeam(const QString & teamname);
    53         HWTeam(const QStringList& strLst);
    53         HWTeam(const QStringList& strLst);
    54         HWTeam();
    54         HWTeam();
    55 		HWTeam(const HWTeam & other);
    55         HWTeam(const HWTeam & other);
    56 
    56 
    57         // file operations
    57         // file operations
    58         static HWTeam loadFromFile(const QString & teamName);
    58         static HWTeam loadFromFile(const QString & teamName);
    59         bool loadFromFile();
    59         bool loadFromFile();
    60         bool deleteFile();
    60         bool deleteFile();
    94 
    94 
    95         // convert team info into strings for further computation
    95         // convert team info into strings for further computation
    96         QStringList teamGameConfig(quint32 InitHealth) const;
    96         QStringList teamGameConfig(quint32 InitHealth) const;
    97 
    97 
    98         // comparison operators
    98         // comparison operators
    99 		bool operator == (const HWTeam& t1) const;
    99         bool operator == (const HWTeam& t1) const;
   100 		bool operator < (const HWTeam& t1) const;
   100         bool operator < (const HWTeam& t1) const;
   101 		HWTeam & operator = (const HWTeam & other);
   101         HWTeam & operator = (const HWTeam & other);
   102 
   102 
   103 
   103 
   104     private:
   104     private:
   105 
   105 
   106         QString OldTeamName;
   106         QString OldTeamName;
   110         QString m_grave;
   110         QString m_grave;
   111         QString m_fort;
   111         QString m_fort;
   112         QString m_flag;
   112         QString m_flag;
   113         QString m_voicepack;
   113         QString m_voicepack;
   114         HWHog m_hedgehogs[HEDGEHOGS_PER_TEAM];
   114         HWHog m_hedgehogs[HEDGEHOGS_PER_TEAM];
   115 		quint8 m_difficulty;
   115         quint8 m_difficulty;
   116         BindAction m_binds[BINDS_NUMBER];
   116         BindAction m_binds[BINDS_NUMBER];
   117 
   117 
   118         // class members that contain info for the current game setup
   118         // class members that contain info for the current game setup
   119 		quint8 m_numHedgehogs;
   119         quint8 m_numHedgehogs;
   120         QColor m_color;
   120         QColor m_color;
   121         bool m_isNetTeam;
   121         bool m_isNetTeam;
   122         QString m_owner;
   122         QString m_owner;
   123 
   123 
   124         // class members that contain statistics, etc.
   124         // class members that contain statistics, etc.