equal
deleted
inserted
replaced
101 commonConfig(); |
101 commonConfig(); |
102 |
102 |
103 QByteArray teamscfg; |
103 QByteArray teamscfg; |
104 HWTeam team1(0); |
104 HWTeam team1(0); |
105 team1.difficulty = 0; |
105 team1.difficulty = 0; |
106 team1.teamColor = QColor(65535); |
106 team1.teamColor = *color1; |
107 team1.numHedgehogs = 4; |
107 team1.numHedgehogs = 4; |
108 HWProto::addStringListToBuffer(teamscfg, |
108 HWProto::addStringListToBuffer(teamscfg, |
109 team1.TeamGameConfig(gamecfg->getInitHealth())); |
109 team1.TeamGameConfig(gamecfg->getInitHealth())); |
110 |
110 |
111 HWTeam team2(2); |
111 HWTeam team2(2); |
112 team2.difficulty = 4; |
112 team2.difficulty = 4; |
113 team2.teamColor = QColor(16776960); |
113 team2.teamColor = *color2; |
114 team2.numHedgehogs = 4; |
114 team2.numHedgehogs = 4; |
115 HWProto::addStringListToBuffer(teamscfg, |
115 HWProto::addStringListToBuffer(teamscfg, |
116 team2.TeamGameConfig(gamecfg->getInitHealth())); |
116 team2.TeamGameConfig(gamecfg->getInitHealth())); |
117 |
117 |
118 HWProto::addStringToBuffer(teamscfg, *cDefaultAmmoStore); |
118 HWProto::addStringToBuffer(teamscfg, *cDefaultAmmoStore); |
125 QByteArray teamscfg; |
125 QByteArray teamscfg; |
126 HWProto::addStringToBuffer(teamscfg, "TL"); |
126 HWProto::addStringToBuffer(teamscfg, "TL"); |
127 |
127 |
128 HWTeam team1(0); |
128 HWTeam team1(0); |
129 team1.difficulty = 0; |
129 team1.difficulty = 0; |
130 team1.teamColor = QColor(65535); |
130 team1.teamColor = *color1; |
131 team1.numHedgehogs = 1; |
131 team1.numHedgehogs = 1; |
132 HWProto::addStringListToBuffer(teamscfg, |
132 HWProto::addStringListToBuffer(teamscfg, |
133 team1.TeamGameConfig(100)); |
133 team1.TeamGameConfig(100)); |
134 |
134 |
135 QFile file(datadir->absolutePath() + "/Trainings/001_Shotgun.txt"); |
135 QFile file(datadir->absolutePath() + "/Trainings/001_Shotgun.txt"); |