equal
deleted
inserted
replaced
53 HWTeam::HWTeam(const QStringList& strLst) : |
53 HWTeam::HWTeam(const QStringList& strLst) : |
54 numHedgehogs(4), |
54 numHedgehogs(4), |
55 m_isNetTeam(true) |
55 m_isNetTeam(true) |
56 { |
56 { |
57 // net teams are configured from QStringList |
57 // net teams are configured from QStringList |
58 if(strLst.size() < 21) throw HWTeamConstructException(); |
58 if(strLst.size() != 22) throw HWTeamConstructException(); |
59 TeamName = strLst[0]; |
59 TeamName = strLst[0]; |
60 Grave = strLst[1]; |
60 Grave = strLst[1]; |
61 Fort = strLst[2]; |
61 Fort = strLst[2]; |
62 Voicepack = strLst[3]; |
62 Voicepack = strLst[3]; |
63 difficulty = strLst[4].toUInt(); |
63 Owner = strLst[4]; |
|
64 difficulty = strLst[5].toUInt(); |
64 for(int i = 0; i < 8; i++) |
65 for(int i = 0; i < 8; i++) |
65 { |
66 { |
66 HHName[i]=strLst[i * 2 + 5]; |
67 HHName[i]=strLst[i * 2 + 6]; |
67 HHHat[i]=strLst[i * 2 + 6]; |
68 HHHat[i]=strLst[i * 2 + 7]; |
68 } |
69 } |
69 } |
70 } |
70 |
71 |
71 HWTeam::HWTeam(quint8 num) : |
72 HWTeam::HWTeam(quint8 num) : |
72 difficulty(0), |
73 difficulty(0), |