equal
deleted
inserted
replaced
61 bool saveToFile(); |
61 bool saveToFile(); |
62 bool fileExists(); |
62 bool fileExists(); |
63 |
63 |
64 // attribute getters |
64 // attribute getters |
65 unsigned int campaignProgress() const; |
65 unsigned int campaignProgress() const; |
66 QColor color() const; |
66 int color() const; |
|
67 QColor qcolor() const; |
67 unsigned int difficulty() const; |
68 unsigned int difficulty() const; |
68 QString flag() const; |
69 QString flag() const; |
69 QString fort() const; |
70 QString fort() const; |
70 QString grave() const; |
71 QString grave() const; |
71 const HWHog & hedgehog(unsigned int idx) const; |
72 const HWHog & hedgehog(unsigned int idx) const; |
76 QString owner() const; |
77 QString owner() const; |
77 QString voicepack() const; |
78 QString voicepack() const; |
78 |
79 |
79 // attribute setters |
80 // attribute setters |
80 void bindKey(unsigned int idx, const QString & key); |
81 void bindKey(unsigned int idx, const QString & key); |
81 void setColor(const QColor & color); |
|
82 void setDifficulty(unsigned int level); |
82 void setDifficulty(unsigned int level); |
83 void setFlag(const QString & flag); |
83 void setFlag(const QString & flag); |
84 void setFort(const QString & fort); |
84 void setFort(const QString & fort); |
85 void setGrave(const QString & grave); |
85 void setGrave(const QString & grave); |
86 void setHedgehog(unsigned int idx, HWHog hh); |
86 void setHedgehog(unsigned int idx, HWHog hh); |
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 public slots: |
|
104 void setColor(int color); |
103 |
105 |
104 private: |
106 private: |
105 |
107 |
106 QString OldTeamName; |
108 QString OldTeamName; |
107 |
109 |
115 quint8 m_difficulty; |
117 quint8 m_difficulty; |
116 BindAction m_binds[BINDS_NUMBER]; |
118 BindAction m_binds[BINDS_NUMBER]; |
117 |
119 |
118 // class members that contain info for the current game setup |
120 // class members that contain info for the current game setup |
119 quint8 m_numHedgehogs; |
121 quint8 m_numHedgehogs; |
120 QColor m_color; |
122 int m_color; |
121 bool m_isNetTeam; |
123 bool m_isNetTeam; |
122 QString m_owner; |
124 QString m_owner; |
123 |
125 |
124 // class members that contain statistics, etc. |
126 // class members that contain statistics, etc. |
125 unsigned int m_campaignProgress; |
127 unsigned int m_campaignProgress; |