102 HWProto::addStringToBuffer(buf, QString("eammloadt %1").arg(ammostr.mid(0, cAmmoNumber))); |
102 HWProto::addStringToBuffer(buf, QString("eammloadt %1").arg(ammostr.mid(0, cAmmoNumber))); |
103 HWProto::addStringToBuffer(buf, QString("eammprob %1").arg(ammostr.mid(cAmmoNumber, cAmmoNumber))); |
103 HWProto::addStringToBuffer(buf, QString("eammprob %1").arg(ammostr.mid(cAmmoNumber, cAmmoNumber))); |
104 HWProto::addStringToBuffer(buf, QString("eammdelay %1").arg(ammostr.mid(2 * cAmmoNumber, cAmmoNumber))); |
104 HWProto::addStringToBuffer(buf, QString("eammdelay %1").arg(ammostr.mid(2 * cAmmoNumber, cAmmoNumber))); |
105 HWProto::addStringToBuffer(buf, QString("eammreinf %1").arg(ammostr.mid(3 * cAmmoNumber, cAmmoNumber))); |
105 HWProto::addStringToBuffer(buf, QString("eammreinf %1").arg(ammostr.mid(3 * cAmmoNumber, cAmmoNumber))); |
106 if(gamecfg->schemeData(15).toBool() || !gamecfg->schemeData(21).toBool()) HWProto::addStringToBuffer(buf, QString("eammstore")); |
106 if(gamecfg->schemeData(15).toBool() || !gamecfg->schemeData(21).toBool()) HWProto::addStringToBuffer(buf, QString("eammstore")); |
107 HWProto::addStringListToBuffer(buf, |
107 // HWProto::addStringListToBuffer(buf, |
108 team.teamGameConfig(gamecfg->getInitHealth())); |
108 // team.teamGameConfig(gamecfg->getInitHealth())); |
109 ; |
109 ; |
110 } |
110 } |
111 } |
111 } |
112 //RawSendIPC(buf); |
112 //RawSendIPC(buf); |
113 } |
113 } |
131 |
131 |
132 HWTeam team1; |
132 HWTeam team1; |
133 team1.setDifficulty(0); |
133 team1.setDifficulty(0); |
134 team1.setColor(0); |
134 team1.setColor(0); |
135 team1.setNumHedgehogs(4); |
135 team1.setNumHedgehogs(4); |
136 HWNamegen::teamRandomNames(team1,true); |
136 HWNamegen::teamRandomNames(team1, true); |
137 HWProto::addStringListToBuffer(teamscfg, |
137 // HWProto::addStringListToBuffer(teamscfg, |
138 team1.teamGameConfig(100)); |
138 // team1.teamGameConfig(100)); |
139 |
139 |
140 HWTeam team2; |
140 HWTeam team2; |
141 team2.setDifficulty(4); |
141 team2.setDifficulty(4); |
142 team2.setColor(1); |
142 team2.setColor(1); |
143 team2.setNumHedgehogs(4); |
143 team2.setNumHedgehogs(4); |
144 do |
144 do |
145 HWNamegen::teamRandomNames(team2,true); |
145 HWNamegen::teamRandomNames(team2,true); |
146 while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat)); |
146 while(!team2.name().compare(team1.name()) || !team2.hedgehogHat(0).compare(team1.hedgehogHat(0))); |
147 HWProto::addStringListToBuffer(teamscfg, |
147 // HWProto::addStringListToBuffer(teamscfg, |
148 team2.teamGameConfig(100)); |
148 // team2.teamGameConfig(100)); |
149 |
149 |
150 HWProto::addStringToBuffer(teamscfg, QString("eammloadt %1").arg(cDefaultAmmoStore->mid(0, cAmmoNumber))); |
150 HWProto::addStringToBuffer(teamscfg, QString("eammloadt %1").arg(cDefaultAmmoStore->mid(0, cAmmoNumber))); |
151 HWProto::addStringToBuffer(teamscfg, QString("eammprob %1").arg(cDefaultAmmoStore->mid(cAmmoNumber, cAmmoNumber))); |
151 HWProto::addStringToBuffer(teamscfg, QString("eammprob %1").arg(cDefaultAmmoStore->mid(cAmmoNumber, cAmmoNumber))); |
152 HWProto::addStringToBuffer(teamscfg, QString("eammdelay %1").arg(cDefaultAmmoStore->mid(2 * cAmmoNumber, cAmmoNumber))); |
152 HWProto::addStringToBuffer(teamscfg, QString("eammdelay %1").arg(cDefaultAmmoStore->mid(2 * cAmmoNumber, cAmmoNumber))); |
153 HWProto::addStringToBuffer(teamscfg, QString("eammreinf %1").arg(cDefaultAmmoStore->mid(3 * cAmmoNumber, cAmmoNumber))); |
153 HWProto::addStringToBuffer(teamscfg, QString("eammreinf %1").arg(cDefaultAmmoStore->mid(3 * cAmmoNumber, cAmmoNumber))); |