QTfrontend/team.cpp
changeset 443 eec37eb7f5db
parent 353 5ec611d702a0
child 468 8403d6884707
equal deleted inserted replaced
442:57ed1444606e 443:eec37eb7f5db
    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),