QTfrontend/team.cpp
changeset 1662 cefb9d0f816f
parent 1659 fd593a5e71fb
child 1683 af34da5726aa
equal deleted inserted replaced
1661:08c6e3665025 1662:cefb9d0f816f
    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() < 20) throw HWTeamConstructException();
    58 	if(strLst.size() < 21) 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 	difficulty = strLst[3].toUInt();
    62 	Voicepack = strLst[3];
       
    63 	difficulty = strLst[4].toUInt();
    63 	for(int i = 0; i < 8; i++)
    64 	for(int i = 0; i < 8; i++)
    64 	{
    65 	{
    65 		HHName[i]=strLst[i * 2 + 4];
    66 		HHName[i]=strLst[i * 2 + 5];
    66 		HHHat[i]=strLst[i * 2 + 5];
    67 		HHHat[i]=strLst[i * 2 + 6];
    67 	}
    68 	}
    68 }
    69 }
    69 
    70 
    70 HWTeam::HWTeam(quint8 num) :
    71 HWTeam::HWTeam(quint8 num) :
    71   difficulty(0),
    72   difficulty(0),