equal
deleted
inserted
replaced
186 { |
186 { |
187 binds[i].strbind = hwform->ui.pageEditTeam->CBBind[i]->currentText(); |
187 binds[i].strbind = hwform->ui.pageEditTeam->CBBind[i]->currentText(); |
188 } |
188 } |
189 } |
189 } |
190 |
190 |
191 QStringList HWTeam::TeamGameConfig(quint32 color, int hedgehogs) const |
191 QStringList HWTeam::TeamGameConfig(quint32 color, int hedgehogs, quint32 InitHealth) const |
192 { |
192 { |
193 QStringList sl; |
193 QStringList sl; |
194 sl.push_back("eaddteam"); |
194 sl.push_back("eaddteam"); |
195 sl.push_back(QString("ecolor %1").arg(color)); |
195 sl.push_back(QString("ecolor %1").arg(color)); |
196 sl.push_back("ename team " + TeamName); |
196 sl.push_back("ename team " + TeamName); |
201 for(int i = 0; i < BINDS_NUMBER; i++) |
201 for(int i = 0; i < BINDS_NUMBER; i++) |
202 { |
202 { |
203 sl.push_back(QString("ebind " + binds[i].strbind + " " + binds[i].action)); |
203 sl.push_back(QString("ebind " + binds[i].strbind + " " + binds[i].action)); |
204 } |
204 } |
205 for (int t = 0; t < hedgehogs; t++) |
205 for (int t = 0; t < hedgehogs; t++) |
206 sl.push_back(QString("eadd hh%1 %2") |
206 sl.push_back(QString("eaddhh %1 %2") |
207 .arg(QString::number(t), QString::number(difficulty))); |
207 .arg(QString::number(difficulty), |
|
208 QString::number(InitHealth))); |
208 return sl; |
209 return sl; |
209 } |
210 } |
210 |
211 |
211 bool HWTeam::operator==(const HWTeam& t1) const { |
212 bool HWTeam::operator==(const HWTeam& t1) const { |
212 return TeamName==t1.TeamName; |
213 return TeamName==t1.TeamName; |