QTfrontend/team.cpp
changeset 1244 87b3931c70e9
parent 1242 4aca5f7b2504
child 1245 d2eca4a053f5
equal deleted inserted replaced
1243:b98f0ece6369 1244:87b3931c70e9
    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()<13) throw HWTeamConstructException();
    56   if(strLst.size() < 14) 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();