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