246 connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); |
246 connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); |
247 connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&))); |
247 connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&))); |
248 |
248 |
249 connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(hhogsNumChanged(const HWTeam&)), |
249 connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(hhogsNumChanged(const HWTeam&)), |
250 hwnet, SLOT(onHedgehogsNumChanged(const HWTeam&))); |
250 hwnet, SLOT(onHedgehogsNumChanged(const HWTeam&))); |
|
251 connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(teamColorChanged(const HWTeam&)), |
|
252 hwnet, SLOT(onTeamColorChanged(const HWTeam&))); |
251 connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(teamWillPlay(HWTeam)), hwnet, SLOT(AddTeam(HWTeam))); |
253 connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(teamWillPlay(HWTeam)), hwnet, SLOT(AddTeam(HWTeam))); |
252 connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(teamNotPlaying(const HWTeam&)), hwnet, SLOT(RemoveTeam(const HWTeam&))); |
254 connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(teamNotPlaying(const HWTeam&)), hwnet, SLOT(RemoveTeam(const HWTeam&))); |
253 |
255 |
254 connect(ui.pageNetGame->pGameCFG, SIGNAL(seedChanged(const QString &)), hwnet, SLOT(onSeedChanged(const QString &))); |
256 connect(ui.pageNetGame->pGameCFG, SIGNAL(seedChanged(const QString &)), hwnet, SLOT(onSeedChanged(const QString &))); |
255 connect(ui.pageNetGame->pGameCFG, SIGNAL(mapChanged(const QString &)), hwnet, SLOT(onMapChanged(const QString &))); |
257 connect(ui.pageNetGame->pGameCFG, SIGNAL(mapChanged(const QString &)), hwnet, SLOT(onMapChanged(const QString &))); |
264 connect(hwnet, SIGNAL(initHealthChanged(quint32)), ui.pageNetGame->pGameCFG, SLOT(setInitHealth(quint32))); |
266 connect(hwnet, SIGNAL(initHealthChanged(quint32)), ui.pageNetGame->pGameCFG, SLOT(setInitHealth(quint32))); |
265 connect(hwnet, SIGNAL(turnTimeChanged(quint32)), ui.pageNetGame->pGameCFG, SLOT(setTurnTime(quint32))); |
267 connect(hwnet, SIGNAL(turnTimeChanged(quint32)), ui.pageNetGame->pGameCFG, SLOT(setTurnTime(quint32))); |
266 connect(hwnet, SIGNAL(fortsModeChanged(bool)), ui.pageNetGame->pGameCFG, SLOT(setFortsMode(bool))); |
268 connect(hwnet, SIGNAL(fortsModeChanged(bool)), ui.pageNetGame->pGameCFG, SLOT(setFortsMode(bool))); |
267 connect(hwnet, SIGNAL(hhnumChanged(const HWTeam&)), |
269 connect(hwnet, SIGNAL(hhnumChanged(const HWTeam&)), |
268 ui.pageNetGame->pNetTeamsWidget, SLOT(changeHHNum(const HWTeam&))); |
270 ui.pageNetGame->pNetTeamsWidget, SLOT(changeHHNum(const HWTeam&))); |
269 |
271 connect(hwnet, SIGNAL(teamColorChanged(const HWTeam&)), |
|
272 ui.pageNetGame->pNetTeamsWidget, SLOT(changeTeamColor(const HWTeam&))); |
270 |
273 |
271 hwnet->Connect(hostName, port, nick); |
274 hwnet->Connect(hostName, port, nick); |
272 config->SaveOptions(); |
275 config->SaveOptions(); |
273 } |
276 } |
274 |
277 |