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