113 team2.numHedgehogs = 4; |
113 team2.numHedgehogs = 4; |
114 RawSendIPC(HWProto::addStringListToBuffer(teamscfg, |
114 RawSendIPC(HWProto::addStringListToBuffer(teamscfg, |
115 team2.TeamGameConfig(gamecfg->getInitHealth()))); |
115 team2.TeamGameConfig(gamecfg->getInitHealth()))); |
116 } |
116 } |
117 |
117 |
|
118 void HWGame::SendTrainingConfig() |
|
119 { |
|
120 QByteArray teamscfg; |
|
121 HWProto::addStringToBuffer(teamscfg, "TL"); |
|
122 HWProto::addStringToBuffer(teamscfg, "eseed none"); |
|
123 HWProto::addStringToBuffer(teamscfg, "e$gmflags 0"); |
|
124 HWProto::addStringToBuffer(teamscfg, "e$turntime 60000"); |
|
125 HWProto::addStringToBuffer(teamscfg, "emap mushrooms"); |
|
126 HWProto::addStringToBuffer(teamscfg, "etheme avematan"); |
|
127 |
|
128 HWTeam team1(0); |
|
129 team1.difficulty = 0; |
|
130 team1.teamColor = QColor(65535); |
|
131 team1.numHedgehogs = 4; |
|
132 HWProto::addStringListToBuffer(teamscfg, |
|
133 team1.TeamGameConfig(100)); |
|
134 |
|
135 HWTeam team2(2); |
|
136 team2.difficulty = 4; |
|
137 team2.teamColor = QColor(16776960); |
|
138 team2.numHedgehogs = 4; |
|
139 RawSendIPC(HWProto::addStringListToBuffer(teamscfg, |
|
140 team2.TeamGameConfig(100))); |
|
141 } |
|
142 |
118 void HWGame::SendNetConfig() |
143 void HWGame::SendNetConfig() |
119 { |
144 { |
120 commonConfig(); |
145 commonConfig(); |
121 } |
146 } |
122 |
147 |